Connect to a web service

O

Olle

Hi,
I am new to InfoPath and am trying to set up a form based on a web service.
Unfortunately all I get is an error message,

"InfoPath cannot find or cannot access the specified Web service description"
and
"WSDLService:processing service Svc found no port definitions
HRESULT=0x80070057: The parameter is incorrect.
- WSDLReader:Analyzing the WSDL file failed HRESULT=0x80070057: The
parameter is incorrect."

The service runs in an internal network and I am able to connect to the
service with svcutil.exe as well as open it with a browser. What is the error?

Thankful for response.
 
E

erugalatha

Hi, are you adding your web service to your form as a data connection
or as a web reference?
 
O

Olle

Designing a new Form template, choosing web service with the text "Create a
form template that queries and submits data to a Web service".

I guess that is data connection?
 
O

Olle

May the problem be that InfoPath can only connect to .asmx web services and
not to WCF .svc services?
 
E

erugalatha

May the problem be that InfoPath can only connect to .asmx web services and
not to WCF .svc services?

That could be the case. Have you tried adding the web service as a
web reference? This is only possible though by creating a VS 2005
solution from your form schema and then in the solution explorer in VS
add a web reference.
Otherwise I am sorry but I don't know if InfoPath accepts only .asmx
web services when you add it as a data connection.
 
O

Olle

Problem solved. The solution was to change the binding in the service from
wsHttpBinding to basicBinding.
 
E

Ed Schell

Oll, I have a similar problem using InfoPath to connect to a web service. Where in InfoPath do you change the binding. This is not obvious to me.

Thanks for any help you can lend.



Oll wrote:

Problem solved.
05-Jul-07

Problem solved. The solution was to change the binding in the service fro
wsHttpBinding to basicBinding

:

Previous Posts In This Thread:

Connect to a web service
Hi
I am new to InfoPath and am trying to set up a form based on a web service.
Unfortunately all I get is an error message,

"InfoPath cannot find or cannot access the specified Web service description
an
"WSDLService:processing service Svc found no port definitions
HRESULT=0x80070057: The parameter is incorrect
- WSDLReader:Analyzing the WSDL file failed HRESULT=0x80070057: The
parameter is incorrect.

The service runs in an internal network and I am able to connect to the
service with svcutil.exe as well as open it with a browser. What is the error

Thankful for response.

Hi, are you adding your web service to your form as a data connectionor as a
Hi, are you adding your web service to your form as a data connectio
or as a web reference?

Designing a new Form template, choosing web service with the text "Create a
Designing a new Form template, choosing web service with the text "Create
form template that queries and submits data to a Web service"

I guess that is data connection

:

May the problem be that InfoPath can only connect to .
May the problem be that InfoPath can only connect to .asmx web services an
not to WCF .svc services?

Re: Connect to a web service

That could be the case. Have you tried adding the web service as
web reference? This is only possible though by creating a VS 200
solution from your form schema and then in the solution explorer in V
add a web reference
Otherwise I am sorry but I don't know if InfoPath accepts only .asm
web services when you add it as a data connection.

Problem solved.
Problem solved. The solution was to change the binding in the service fro
wsHttpBinding to basicBinding

:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Dr. Dotnetsky's Cool .NET Tips and Tricks #17
http://www.eggheadcafe.com/tutorial...ad65-add4829715f8/dr-dotnetskys-cool-net.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top