PHP SoapParam not nesting

I’ve used this method 3-4 times before and never had an issue with this. I use “soapParam” to generate all those XML children for “serviceJobListRequest” and yet this time when I’m doing it, they parameters won’t nest under it like it always has before. I searched and searched for an answer for the last three days and cannot find anything like this.

this…
[php]
$result = $client->serviceJobList(new SoapParam($sourceSystemName, “sourceSystemName”));
[/php]

generates this…
[php]
ns1:serviceJobListRequest/
SourceTest
[/php]

instead of what it should…this
[php]
ns1:serviceJobListRequest
SourceTest
</ns1:serviceJobListRequest>
[/php]

Try this:

[php]$result = $client->serviceJobList(array(“sourceSystemName”=>$sourceSystemName));[/php]

With that it then runs for about 15 seconds and doesn’t even generate a request, so I tried

[php]
$result = $client->__soapCall(“serviceJobList”,array(“sourceSystemName”=>$sourceSystemName);
[/php]

and I get this…

[php]
ns1:serviceJobListRequest/
SourceTest
[/php]

I’m at a loss, never had so much trouble with soap.

Sponsor our Newsletter | Privacy Policy | Terms of Service