Joined: 02 Nov 2004 |
Posts: 45 |
Location: Omaha, NE |
|
|
Posted: Wed Dec 22, 2004 3:38 pm |
|
|
|
|
|
Question:
How do I format the following complex SOAP envelope [rpc/literal] as an array type for the $params in the method soapclient::call?
<?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?
$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
|