Jump to content

newbie PHJ-SOAP question


jvanick

Recommended Posts

I'm having a problem figuring out how to add different parts into a soap query...

 

my query needs to look like:

<?xml version="1.0" encoding="utf-8" ?>

<soap:Envelope>

<soap:Body>

<tns:update>

  <in0 xsi:type="xsd:string">system1</in0>

  <in1 href="#id1" />

  <in2 href="#id2" />

  </tns:update>

  <q1:RouteKey id="id1" xsi:type="q1:RouteKey" xmlns:q1="http://someserver.com/model">

  <Element1Id xsi:type="xsd:string">postingname</Element1Id>

  <digitType xsi:type="xsd:int">1</digitType>

  <timeProfileId xsi:type="xsd:string">ALL</timeProfileId>

  </q1:RouteKey>

  <q2:Route id="id2" xsi:type="q2:Route" xmlns:q2="http://someserver.com/model">

  <routingType xsi:type="xsd:short">0</routingType>

  <calltype xsi:type="xsd:int">0</calltype>

  <transmissionMedium xsi:type="xsd:long">0</transmissionMedium>

  <digitType xsi:type="xsd:int">1</digitType>

  </q2:Route>

</soap:Body>

</soap:Envelope>

 

I can't figure out how to get the q1 and q2 into the query... I'm sure it's simple, It's just beyond me how to do it.

 

My php code...

 

$objResponse = $client->update("system1",null,null);

 

can somebody set me in the right direction?

 

Thanks!

-J

Link to comment
https://forums.phpfreaks.com/topic/127708-newbie-phj-soap-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.