Consume ASP.NET Webservice from PHP Pearl (Namespace issue)

R

Remy

We have an ASP.NET Webservice that our client would like to access
from PHP (with the PEARL toolkit).
Making requests works fine and for functions that only have a return
value (no parameters) everything is good.
But as soon as they try to pass some parameters, they are not
received. Problem seems to be the namespace.
ASP expects this (according to the Testsite:
<soap:Body>
<EchoDateTime xmlns="http://www.supertext.ch/webservices/">
<echo>2007-03-21T09:46:52.0427284-04:00</echo>
</EchoDateTime>
</soap:Body>

What I get is this:
<SOAP-ENV:Body>
<ns4:EchoInteger>
<echo>1</echo>
</ns4:EchoInteger>
</SOAP-ENV:Body>
And this does not work.

When I manually add ns4 to the echo parameter it works:
<SOAP-ENV:Body>
<ns4:EchoInteger>
<ns4:echo>1</ns4:echo>
</ns4:EchoInteger>
</SOAP-ENV:Body>

Anyway to make ASP understand the 2nd version or any other hints?

Thanks

Remy
 

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

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top