ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> soapbuilders
soapbuilders
[soapbuilders] NuSoap Client call second layer complexType XML element
by Kensonpeh other posts by this author
Jun 21 2009 8:27AM messages near this date
[soapbuilders] [ANNOUNCE] Axis2 1.5.1 | [soapbuilders] Re: [ANNOUNCE] Axis2 1.5
SERVICES Hi All,

I need to call third party web services from my php NuSoap.

The Web Services abc.asmx?WSDL is look like below:

<?xml version="1.0" encoding="utf-8" ?>  
...
- <wsdl:types> 
- <s:schema elementFormDefault="qualified" targetNamespace="(URL address blocked: See forum 
rules)/"> 
  <s:import namespace="(URL address blocked: See forum rules)/wsdl/types/" />  
- <s:element name="submitAMBData"> 
- <s:complexType> 
- <s:sequence> 
  <s:element minOccurs="0" maxOccurs="1" name="userId" type="s:string" />  
  <s:element minOccurs="0" maxOccurs="1" name="incId" type="s:string" />  
  <s:element minOccurs="0" maxOccurs="1" name="callsign" type="s:string" />  
  <s:element minOccurs="0" maxOccurs="1" name="bufferImage" type="s:string" />  
  <s:element minOccurs="0" maxOccurs="1" name="data" type="tns:BigAntData" />  
  </s:sequence> 
  </s:complexType> 
  </s:element> 
- <s:complexType name="BigAntData"> 
- <s:sequence> 
  <s:element minOccurs="1" maxOccurs="1" name="lastPatientFlag" type="s:boolean" />  
  <s:element minOccurs="0" maxOccurs="1" name="Time_on_Reaching_Patient" type="s:string" />  
  <s:element minOccurs="0" maxOccurs="1" name="Type_of_Building" type="s:string" />  
  <s:element minOccurs="0" maxOccurs="1" name="Type_of_Building_SubSelect" type="s:string" /
>  
  <s:element minOccurs="0" maxOccurs="1" name="Type_of_Building_Other" type="s:string" />  
  <s:element minOccurs="0" maxOccurs="1" name="medication" type="tns:ArrayOfMedication" />  
  </s:sequence> 
  </s:complexType> 
- <s:complexType name="ArrayOfMedication"> 
- <s:sequence> 
  <s:element minOccurs="0" maxOccurs="unbounded" name="Medication" nillable="true" type="tns
:Medication" />  
  </s:sequence> 
  </s:complexType> 
- <s:complexType name="Medication"> 
- <s:sequence> 
  <s:element minOccurs="0" maxOccurs="1" name="Time" type="s:string" />  
  <s:element minOccurs="0" maxOccurs="1" name="Drug_Procedure" type="s:string" />  
  <s:element minOccurs="0" maxOccurs="1" name="Other_Drug_Name" type="s:string" />  
  <s:element minOccurs="0" maxOccurs="1" name="Dosage" type="s:string" />  
  </s:sequence> 
  </s:complexType> 
- <s:element name="submitAMBDataResponse"> 
- <s:complexType> 
- <s:sequence> 
  <s:element minOccurs="0" maxOccurs="1" name="submitAMBDataResult" type="s:string" />  
  </s:sequence> 
  </s:complexType> 
  </s:element> 
  </s:schema> 
- <s:schema elementFormDefault="qualified" targetNamespace="(URL address blocked: See forum 
rules)/wsdl/types/"> 
- <s:simpleType name="char"> 
  <s:restriction base="s:unsignedShort" />  
  </s:simpleType> 
  </s:schema> 
  </wsdl:types> 
...
  </wsdl:port> 
  </wsdl:service> 
  </wsdl:definitions> 

In my SoapClient:
$s = new nusoap_client($config-> client_webService.'?WSDL',true);

$arr_HtT_fields = array('userId' =>  'IJM123');
$arr_HtT_fields += array('incId' =>  'DDAA11');
$arr_HtT_fields += array('callsign' =>  'HHGGAA');
$arr_HtT_fields += array('bufferImage' =>  $base64_png);
$arr_HtT_fields += array('data' =>  array('Last_record' => '1', 'Time_Begin' => 01:30));  

$result=$s-> call('submitAMBData', $arr_HtT_fields);

Result:
They can receive value for 'userId', 'incId', 'callsign' and 'bufferImage' from my NuSoap ca
lling but can not receive 'data' set values.

Question:
How should i call/send with element has different complex Type (type="tns:BigAntData") for '
data'?

Thanks in advanced.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved