Re: WSDL help.... possibly a complexTypes issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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.

[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux