/    Sign up×
Community /Pin to ProfileBookmark

NuSOAP error: Unexpected subelement

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.

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @almac007 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...