Hi Guys,
I am hoping that somebody could please help me out with this. I am very new to using nuSOAP and i am trying to make a call to a SOAP service but i keep recieving the following error:
MESSAGE: soapenv:Server ..
MESSAGE: org.apache.axis2.databinding.ADBException: Unexpected subelement getAccountsForServiceDomain ..
MESSAGE: ..
here is a copy of the code that i am using…
//get all service domains
$allServiceDomains = $c->call(‘getAllServiceDomains’);
echo “<b>Get All Service Domains</b><br>”;
//cycle through the array and print a list of service domains
foreach($allServiceDomains as $key => $value) {
//assign service domain to variable
$serviceDomain = $value;
} //close foreach loop that cycles through the array of service domains.
echo “the service domain is ” . $serviceDomain . “<br><br>”;
//get all accounts for the service domain
$getAccountsForServiceDomain = $c->call(‘getAccountsForServiceDomain’, $serviceDomain);
echo “<b>Get All Accounts For The Service Domain</b><br/>”;
foreach($getAccountsForServiceDomain as $key => $value) {
echo “MESSAGE: ” .$value . ” ..<br>”;
}
The first call (getAllServiceDomains) works correctly but i am having problems witht eh call getAccountsForServiceDomain which requires a variable to be passed in.
I am hoping that this is something really simple to fix, but as i have not had much experience using nuSOAP i am a bit lost.
Here is a copy of the SOAP element that i am trying to call.
<xsd:element name=”getAccountsForServiceDomain”>
<xsd:complexType>
<xsd:sequence>
<xsd:element form=”unqualified” name=”extID” type=”xsd:string”/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
any help witht his would be much apprieciated.
Thanks in advance,
almac007.