Problem with WebService

C

cinias

Hi,

I'm writing application for Windows CE 5.0. in C#. My app is using
WebService which I wrote in Delphi 2006. When I start app I want to read URL
to my WebService from XML file. Problem is that I do not how to do it. I try
to do it in this way:URL Behaviour I set to "Dynamic"

string WebServiceAddr(from XML)
WS = new WSrv.MYWebservise();

WS.Url = WebServiceAddr;

WS.SomeOperationOnMyWebService();

When I run my app on Windows CE I received exception "SOAPException" but
when I run on Windows XP I received exception

Possible SOAP version mismatch: Envelope namespace
http://schemas.xmlsoap.org/wsdl/ was unexpeted. Expecting
http://schemas.xml/org/soap/envelope/.

Could you help me with my problem?

Best regards

Martin

--
 
N

Nicholas Paldino [.NET/C# MVP]

Martin,

It seems like you are using a namespace for SOAP which is not expected
by the .NET client. Can you change the delphi web service to output the
correct soap namespace and elements?
 
C

cinias

I will try and let you know

--

U¿ytkownik "Nicholas Paldino [.NET/C# MVP]"
Martin,

It seems like you are using a namespace for SOAP which is not expected
by the .NET client. Can you change the delphi web service to output the
correct soap namespace and elements?
 
C

cinias

But from the other hand why my WebService Client is working in good way?
I've made a lot of SQL query's and everything is working fine, problem is
only when I try to change my URL.

--

U¿ytkownik "cinias said:
I will try and let you know

--

U¿ytkownik "Nicholas Paldino [.NET/C# MVP]"
Martin,

It seems like you are using a namespace for SOAP which is not expected
by the .NET client. Can you change the delphi web service to output the
correct soap namespace and elements?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

cinias said:
Hi,

I'm writing application for Windows CE 5.0. in C#. My app is using
WebService which I wrote in Delphi 2006. When I start app I want to read
URL to my WebService from XML file. Problem is that I do not how to do
it. I try to do it in this way:URL Behaviour I set to "Dynamic"

string WebServiceAddr(from XML)
WS = new WSrv.MYWebservise();

WS.Url = WebServiceAddr;

WS.SomeOperationOnMyWebService();

When I run my app on Windows CE I received exception "SOAPException" but
when I run on Windows XP I received exception

Possible SOAP version mismatch: Envelope namespace
http://schemas.xmlsoap.org/wsdl/ was unexpeted. Expecting
http://schemas.xml/org/soap/envelope/.

Could you help me with my problem?

Best regards

Martin
 

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