0

How can I generate this schema using php soap client cant seem to get a way

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:loc="http://www.csapi.org/schema/parlayx/subscribe/manage/v1_0/local">
 <soapenv:Header>
 <tns:RequestSOAPHeader xmlns:tns="http://www.namesapace.com/common/v2_1">
 <tns:one>***</tns:one>
 <tns:two>***</tns:three>
 <oauth_token>***</oauth_token>
 </tns:RequestSOAPHeader>
 </soapenv:Header>
 <soapenv:Body>
 <loc:ProductRequest>
 <subInfo>
 <productID>***</productID>
 <isAutoExtend>0</isAutoExtend>
 </subInfo>
 </loc:ProductRequest>
 </soapenv:Body>
</soapenv:Envelope>
HaveNoDisplayName
  • 7,711
  • 106
  • 32
  • 44

2 Answers2

0

On top of using the client, sometimes it may not bind to the namespace especially if using different soap versions or other strange reasons. Solved it by overriding the soap class and replacing the ns1 and ns2 values as described here http://php.net/manual/en/soapclient.dorequest.php#74123

0

IF no success with php soapclient, just post the request with curl.

Example in this answer - SOAP request in PHP with CURL

Community
  • 1
  • 1
Vince Lowe
  • 2,993
  • 7
  • 32
  • 62