求助:请问如何修改soap的request message?需要加一个JSESSIONID在header里面用php写了一个web service的客户端,需要先call一个web service做authentication,然后再call其他的function在另外的web service里面。$client = new SoapClient('http://ws/Authenticate?wsdl', array('trace' => 1));$answer = $client->__soapCall("connect", array("username" => "abc", "password"=> "abc" ));echo $client->__getLastResponseHeaders(); //内容如下:HTTP/1.1 200 OK Date: Mon, 19 May 2008 21:07:35 GMT
Server: Apache
Set-Cookie: JSESSIONID=XXXXXXXXXXXXXXXXXXXX;
Path=/test expires: Tue, 13-May-2008 14:32:15 GMT
pragma: no-cache x-webobjects-loadaverage: 5 x-webobjects-servlet: YES
Content-Length: 1259 Keep-Alive: timeout=15, max=100
Connection: Keep-Alive Content-Type: text/xml;charset=utf-8
需要在给另外一个web service的request message header里面加上:COOKIE $VERSION=0;JSESSIONID=XXXXXXXXXXX请问该如何修改header?需要在那一步之前或者之后修改?谢谢
Server: Apache
Set-Cookie: JSESSIONID=XXXXXXXXXXXXXXXXXXXX;
Path=/test expires: Tue, 13-May-2008 14:32:15 GMT
pragma: no-cache x-webobjects-loadaverage: 5 x-webobjects-servlet: YES
Content-Length: 1259 Keep-Alive: timeout=15, max=100
Connection: Keep-Alive Content-Type: text/xml;charset=utf-8
需要在给另外一个web service的request message header里面加上:COOKIE $VERSION=0;JSESSIONID=XXXXXXXXXXX请问该如何修改header?需要在那一步之前或者之后修改?谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货