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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.