Re: [SOAP] WSDL help.... possibly a complexTypes issue
| From: | geekier | Date: | Sat, 08 Apr 2006 10:07:51 +0000 |
| Subject: | Re: [SOAP] WSDL help.... possibly a complexTypes issue | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2190@lists.php.net to get a copy of this message | ||
I have experienced a similar incomplete SOAP client request making calls to
NetSuite's CRM service.
Many calls do work, but when building a nested object (ComplexType?)
SoapClient only generates the first level and omits its contents.
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="urn:messages_1_3.platform.webservices.netsuite.com">
<SOAP-ENV:Body><ns1:add><ns1:record/></ns1:add></SOAP-ENV:Body>
</SOAP-ENV:Envelope>
the "ns1:record" element should contain variable content...
here is PHP which creates the above request (after creating a SoapClient for
the NetSuite service and logging in):
$customer = array("entityID" => "GeeKieR", "companyName" =>
"GeeKieR
Enterprises");
print_r( $client->add( array("record" => $customer) ));
Is this a reasonable approach or should I be using another constructor?
Should I build the SOAP request manually? ...use a classmap?
--
View this message in context: http://www.nabble.com/WSDL-help....-possibly-a-complexTypes-issue-t1054908.html#a3816752
Sent from the Php - Soap forum at Nabble.com.