SOAP Header with Envelope and Body is never sent to the client

xorinox.gmx.ch's picture
Hi WSO2 I was very successful with following your example for creating data services like http://wso2.org/library/articles/introduction-php-data-services However what kind of service I create even doing a hello world service like described in the introduction the SOAP header with envelope body is always missing. I just get back straight XML like below. What do I miss that the SOAP header is not sent? This is what I get as a response. <?xml version="1.0"?> <myResponse>   <row>     <itemId>456</itemId>     <valid>0</valid>     <feedback>could not find parent_probe_id for probe_id</feedback>   </row> </myResponse> I would expect to get back a SOAP standard header like this incluing myResponse in the body? <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> <soap:Body xmlns:m="http://www.example.org/myProject">   <myResponse>     <row>       <itemId>456</itemId>       <valid>0</valid>       <feedback>could not find parent_probe_id for probe_id</feedback>     </row>   </myResponse> </soap:Body> </soap:Envelope>  
nandika's picture

Re

What is shown in examples is the soap payload xml which it the xml content sent as the child element of soap body element. If you use either getLastRequest getLastResponse functions or capture the exchanged http messages using either tcpmon or wireshark you will notice how the soap messages are exchanged between the client and the service. Regards Nandika
xorinox.gmx.ch's picture

thx

Thanks for your response. I was able to figure it out now. I have modified DSDBExecutor.php to work with Oracle. Where do you want me to provide the source? Regards
nandika's picture

Re

Can you create a jira issue on the issue tracker[1] and attach your patch. [1]https://wso2.org/jira/browse/WSFPHP
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)