how to use actor sending soap requests?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have very urgent problem and I will be very grateful for any suggestions
form you. I would like to send SOAP request to final recipient which is
server2.php, using ACTOR (server1.php), which will change soap's header. My
problem is that I don't know how to do it (how to communicate/change soap's
header with actor).
My client looks looks like that:

$header=new
SoapHeader('http://localhost/soap/server1.php',"Authentication",$authVar,FALSE,'http://localhost/soap/server1.php');
$client = new SoapClient("http://localhost/soap/data.wsdl";);
$client->__setSoapHeaders(array($header)); 

and file server1.php
function headerfunc(string $param){}
$server = new SoapServer("data.wsdl");
$server->setClass("getDataService");
$server->handle($data);

and file server2.php
$server = new SoapServer("data.wsdl",
array('actor'=>'http://localhost/soap/server1.php');
$server->setClass("getDataService");
$server->handle($data);


and fragment of data.wsdl file:
<types>
<xsd:element name="headerfunc" type="xsd:string"/>
</types>
<message name="headermsg">
<part name="param1" element="tns:headerfunc"/>
</message>
<binding name='getDataBinding' type='tns:getDataPortType'>
<soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
<operation name='getData'>
<soap:operation soapAction='urn:getData#getData'/>
<input>
<soap:header message="tns:headermsg" part="param1" use="literal"/>
<soap:body use='encoded' namespace='urn:getDataService'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</input>
<output>
<soap:body use='encoded' namespace='urn:getDataService'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</output>
</operation>
</binding>
<service name='getDataService'>
<port name='getDataPort' binding='getDataBinding'>
<soap:address location='http://localhost/soap/server2.php'/>
</port>
</service>

Could you explain me what I am doing wrong?, because I don't get it really
how can I send SOAP request via actor?
Monika



-- 
View this message in context: http://www.nabble.com/how-to-use-actor-sending-soap-requests--tf3705469.html#a10362740
Sent from the Php - Soap mailing list archive at Nabble.com.

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux