NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Format complex SOAP envelope [rpc/literal] as an array?


Joined: 02 Nov 2004
Posts: 45
Location: Omaha, NE
Reply with quote
Question:

How do I format the following complex SOAP envelope [rpc/literal] as an array type for the $params in the method soapclient::call?

Code:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:mrns0="http://soap.dtn.com/ColorWebService.xsd"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<mrns0:GenerateDTNDBRequest>
<AuthInfo>
<mrns0:RqstAppl>WXWEBSRVC</mrns0:RqstAppl>
<mrns0:RqstApplVers/>
<mrns0:Client>DTN</mrns0:Client>
<mrns0:User>ORA2DTN</mrns0:User>
<mrns0:Pswd/>
</AuthInfo>
<Database>190320A1</Database>
<Submit>true</Submit>
<ReturnDB>false</ReturnDB>
<DestList>
<mrns0:Dest>FF00260F</mrns0:Dest>
</DestList>
<QueryVars>
<mrns0:QueryVars>
<mrns0:name>:CUSTID</mrns0:name>
<mrns0:type>9</mrns0:type>
<mrns0:valueInt/>
<mrns0:valueString>0052544</mrns0:valueString>
<mrns0:valueFloat/>
</mrns0:QueryVars>
<mrns0:QueryVars>
<mrns0:name>:UNITID</mrns0:name>
<mrns0:type>7</mrns0:type>
<mrns0:valueInt/>
<mrns0:valueString>1</mrns0:valueString>
<mrns0:valueFloat/>
</mrns0:QueryVars>
</QueryVars>
</mrns0:GenerateDTNDBRequest>
</soap:Body>
</soap:Envelope>


I have tried the following without success, I receive an error, socket time out?
Code:

$authinfo = array(
'RqstAppl' => 'WXWEBSRVC',
'RqstApplVers' => '',
'Client' => 'DTN',
'User' => 'ORA2DTN',
'Pswd' => ''
);

$destlist = array(
'Dest' => 'FF00260F'
);

$queryvars0 = array(
'name' => ':CUSTID',
'type' => '9',
'valueInt' => '',
'valueString' => '0052544',
'valueFloat' => '',
);

$queryvars1 = array(
'name' => ':UNITID',
'type' => '7',
'valueInt' => '',
'valueString' => '1',
'valueFloat' => '',
);

$queryvars = array(
'QueryVars' => $queryvars0,
'QueryVars' => $queryvars1
);

$req = array(
'AuthInfo' => $authinfo,
'Database' => '190320A1',
'Submit' => 'true',
'ReturnDB' => 'true',
'DestList' => $destlist,
'QueryVars' => $queryvars
);

$result = $client->call('GenerateDTNDBRequest', array('GenerateDTNDBRequest' => $req));


Any suggestions or help would be greatly appreciated?

Thank you!

_________________
Tp
View user's profileFind all posts by jtp51Send private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
I'd recommend you debug your soap server to what is happening on that end.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Format complex SOAP envelope [rpc/literal] as an array?
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