简体   繁体   中英

How to get XMLResponse from Webservice in c# Soap or other soap

I want to integrate with webservice writes in php (PEAR SOAP).

Wsdl file is without types definition.

When i was connect to webservice i getting a null response.

In WebServiceStudio i see xmlrequest and xmlresponse, my I get xmlresponse in c# default soap or other soap.

I know what is causing the null response. PEAR SOAP returnx STRUCT[X] as a response type, where X is number of list element.

When I my get XMLresponse and replace this section then it would be cool

Regards

Sorry for my english

The method you need is getLastResponse() , but if it's anything like other, similar HTTP-stream classes, you'll probably need to set a flag to enable capturing the raw requests/responses. Then again, maybe not, since you apparently have to use parseResposne to get the data out of the XML.

Try:

$soapClient->call(some,parameters,here);
$response = $soapClient->getLastResponse();

echo $response;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM