Rich Keegan

I have a web service that I would like to access through the BDC. using the samples from the SDK, I eventually put together a BDC configuration file and successfully imported it into SharePoint. When I setup a BDC List web part, it read from the configuration and appears to interpret it correctly so that it can give me a list of filters from which to choose. After I click "Retrieve Data" I consistently get the error "Could not unambiguously find Web Method with name 'SearchMeetings'."


When I check the log I find, among other things, "Exception handed to HandleRuntimeException.HandleException Microsoft.Office.Server.ApplicationRegistry.MetadataModel.InvalidMetadataObjectException:
Could not unambiguously find Web Method with name 'SearchMeetings' at Microsoft.Office.Server.ApplicationRegistry.SystemSpecific.WebService.WebServiceSystemUtility.Execute(Object[] args) "

I've verified that I can call the web service from the SP server manually. In the BDC config I specified the "RevertToSelf" option for both the WsdlFetchUrl and WebServiceAuthenticationMode properties. When I check the web service server logs, I can see the SP server successfully authenticated and was able to read the WSDL.

Does anyone have any suggestions on how to proceed with this I've been at this a couple days now and don't seem to be getting anywhere with it.

Thanks
Rich



Re: SharePoint - Business Data Catalog Could not unambiguously find Web Method error

Nick Swan

I've not seen this error before but from the error do you have more than one web method called SearchMeetings






Re: SharePoint - Business Data Catalog Could not unambiguously find Web Method error

Rich Keegan

From the error it sounds like there are multiple instances of SearchMeetings, but I've verified several times that there is one and only one method called SearchMeetings.


Is it possible that the web service itself is not being seen correctly I have in the service the WebServiceBindingAttribute set with Conforms=WsiProfiles.BasicProfile1_1. However, on the MSDN site (http://msdn2.microsoft.com/en-us/library/ms550743.aspx) it says:


"Business Data Catalog supports only "first" generation Web services. Therefore, if you are using Windows Communication Foundation Web Services, make sure you are using only WS-I Basic Profile v1.0."


I've created a standard ASP.NET web service, not one using WCF. However, if my conformance level is too high, it seems to me that might be the issue. But there's no basic_Profil1_0 or similar option. Does this make sense Has anyone had experience using the BDC to access a web service






Re: SharePoint - Business Data Catalog Could not unambiguously find Web Method error

Pamela Yang

Is your SearchMettings method a Finder or SpecificFinder Suspect the entity your SearchMeetings method belongs to may have more than one Finder/Scpecific finder - this may give you the error message as above.




Re: SharePoint - Business Data Catalog Could not unambiguously find Web Method error

Nick Swan

feel free to post your application definition file here and we can take a look at it...




Re: SharePoint - Business Data Catalog Could not unambiguously find Web Method error

Rich Keegan

Well it only took me 2+ days to figure it out. It turns out my WSDL had multiple entries under the <wsdlTongue Tiedervice name=""> section. My class was naming different sections with the same name, and .NET interpretted that to mean ServiceName1, ServiceName2, etc. Therefore the BDC was looking for a method that effectively existed in multiple places.

Thanks to all who tried to help with this one. Time for a few shots of Jameson with some Guinness chasers this evening...Cheers!






Re: SharePoint - Business Data Catalog Could not unambiguously find Web Method error

RyanKirchner

I am experiencing the same issue. I read your response as to what the problem might be, but how did you resolve it I have a web service written in .NET 2.0 and can view the wsdl by appending wsdl to the url of the service. I think I have the same problem you did, but need advice as to what my next steps should be.

Thanks!

Ryan





Re: SharePoint - Business Data Catalog Could not unambiguously find Web Method error

Rich Keegan

In my case I needed to go to the very bottom of the wsdl and check the ports. I had multiple ports when I should have had only one. Each port was pointing to the same place, so it essentially couldn't decide which to go through to get to the same web method. I combined everything into one port and it finally worked properly.




Re: SharePoint - Business Data Catalog Could not unambiguously find Web Method error

Lisa Jeffares

I had the same problem, to remove the extra port I added this to my web.config file:

<webServices>

<protocols>

<remove name="HttpSoap12"/>

</protocols>

</webServices>