Hi,
first of all I'm a total newbie to SOAP so excuse me if I missed
something obvious.
I have to access a .net service from a php client.
Lot's of problems with authentication and in general with different
conventions.
First request pointer to work specifically with .net from php, best
practices and commonpitfalls.
Second and most important. Right now this is what I do:
$client = new SoapClient( "http://their.site.cpm/WSPA/WSpr.asmx?WSDL",
array('trace' => 1 ) );
$auth->Username = "a_user";
$auth->Password = "xxx";
$authvalues = new SoapVar($auth, SOAP_ENC_OBJECT, null, null, null,
"http://site.it/webservices/Pre"); // trying to force the nodes namespace
$client->__setSoapHeaders(array($header));
$object = $client->getStartMap( );
etc....
this is what gets to the other side:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://navale.it/webservices/PreventivoAuto"
xmlns:ns2="http://site.it/webservices/Pre">
<SOAP-ENV:Header>
<ns2:wsHeader>
<username>SA-CEBI_test</username>
<password>7$37_I83C-A$</password>
</ns2:wsHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:getStart/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Note that the username and password nodes don't have a namespace. The
..net service dies on this.
I don't seem to manage to get it in there some how. And I don't know if
php is right or .net ...
but this page of the php manual
http://www.php.net/manual/en/function.soap-soapvar-construct.php
has some contributed code VERY SIMILAR to what I have and there the
|ObjectParameter node has its namespace set.
Only difference is I am working in the header.
I am working with php 5.1.6 from the zend package bundle for Oracle on
fedoracore 5.
thanks in advance
Alberto Olindo
|
--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php