Pergunta

I have asp.net web service application created in VS 2010. I created this web service using ASP.NET Web Service Application template in VS 2010. My InfoPath form consumes my webservice. However to fill out my IP form, I first have to make sure I run my web service, otherwise I get errors like cannot connect to the webservice.

How can I make sure my web services are properly deployed to my SharePoint site that hosts infoPath form services? Please let me know the necessary steps. If my web services are deployed to my SharePoint site then there's no need to manually run my asp.net web service in the browser everytime I need to fill out the form. Thanks.

enter image description here Here's the error message I got when I tried to browse my custom web service deployed to layouts folder:

http://abcd/_layouts/WebServiceDemo/MyCustomWebService.asmx

I couldn't find relevant message in 14-->LOGS. Any idea what's causing this? Thanks. My own analysis: Please visit the web.config inside LAYOUTS folder and set Customerros to Off to get more meaningful error message.

enter image description here

Foi útil?

Solução

I Googled "How to consume asp.net web service in SharePoint site".

The third hit was Walkthrough: Creating a Custom ASP.NET (ASMX) Web Service in SharePoint 2010. The post shows how to create, deploy and consume the service.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top