Jump to content

Another SOAP issue.....


garethhall

Recommended Posts

This is so frustrating the documentation on SOAP for php is very poor.

 

Here is a very simple example.

 

I need this request:

<soapenv:Body>
   <ns1:retrieveCompanyCompleteDetails v:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" ns1="MED:CompanyDetailsService">
      <companyNumber href="#id0"/>
      <clientBillingReference xsi:type="xsd:string"></clientBillingReference>
   </ns1:retrieveCompanyCompleteDetails>
   <multiRef id="id0" soapenc:root="0" v:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" soapenc="http://schemas.xmlsoap.org/soap/encoding/">1015969</multiRef>
</soapenv:Body>

 

 

MY php

$CompanyDetailsService = new SoapClient('http://ws.eat.business.govt.nz/med-services/services/CompanyDetailsService.svc?wsdl');

$result = $CompanyDetailsService->retrieveCompanyCompleteDetails('1968659');

 

But my php posts this

<SOAP-ENV:Body>
<ns1:retrieveCompanyCompleteDetails>
	<companyNumber xsi:type="xsd:int">1968659</companyNumber>
	<clientBillingReference xsi:nil="true"/></ns1:retrieveCompanyCompleteDetails>
</SOAP-ENV:Body>

 

How do I get the right request?

 

Link to comment
https://forums.phpfreaks.com/topic/241623-another-soap-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.