NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
call method within a call method


Joined: 30 Jun 2009
Posts: 1
Reply with quote
I am trying to get a newOrderRequest tag within a NewOrder tag using nuSOAP and a WSDL file.

WSDL:

<element name="NewOrder">
<complexType>
<sequence>
<element name="newOrderRequest" type="ns:NewOrderRequestElement" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</element>

<complexType name="NewOrderRequestElement">
<sequence>
<element name="version" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<element name="ecpAuthMethod" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</sequence>
</complexType>


my existing php looks like this:

my php:

$call2 = $client->call('NewOrderRequestElement'
,$params
,'urn:url');

$answer = $client->call('NewOrder',$call2
,'urn:url');


but nuSOAP only makes one call and that is for NewOrder.

Anyone have any suggestions as to how I can obtain a new order request that looks like this:

<soapenv:Body>
<NewOrder xmlns="urn:ws.paymentech.net/PaymentechGateway">
<newOrderRequest xsi:type="ns1:NewOrderRequestElement" xmlns:ns1="urn:url" xmlns="">
<ns:element1></ns:element1> etc...
</newOrderRequest>
</NewOrder>

Thanks.
View user's profileFind all posts by mac89Send private message
call method within a call method
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic