Category : soap

I am trying to decode a binary zipped attachment received from a curl request, the attachment is an xml file but sent as binary by the API end point. Here is the full request I received: –_=4883624417507473IBM4883624417507473MOKO Content-Transfer-Encoding: 8bit Content-ID: 30854c92-252a-4cb0-ae65-18ecf0de28d5 Content-Type: application/soap+xml; charset=UTF-8 <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"><ns2:Messaging xmlns:ns2="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soapenv:mustUnderstand="true" wsu:Id="soapheader-1"> <rest of ..

Read more

So after trying and trying I simply can not get this to work, A SOAP request that must then simply format the xml nicely, but nothing seems to work, tried these methods //1 //Dumps entire contents in a long string // $client = new SoapClient(‘http://www.autobid.co.za/halfway/vehicledetails.php?wsdl’); // $result = $client->getVehicleDetails(‘spwf87′,’hk8*9jd’); // echo(‘<pre>’.$result.'</pre>’); //2 //Results in StartTag: ..

Read more

After numerous attempts still no success, trying to access this ‘http://www.autobid.co.za/halfway/vehicledetails.php?wsdl , providing the username and password and then gathering the xml feedback. This code : $client = new SoapClient(‘http://www.autobid.co.za/halfway/vehicledetails.php?wsdl’); $result = $client->getVehicleDetails(‘spwf87′,’hk8*9jd’); echo(‘<pre>’.$result.'</pre>’); Dumps the entire text field, want it of course cleaned up as the page source states : <pre><![CDATA[<VEHICLEDETAILS><VEHICLE><ID…. etc, so tried ..

Read more

I’ve made a PHP SOAP request, the request returns a complete dump of the contents, How do I format it ? Never used xml or PHP,SOAP before this ? The code <?php $client = new SoapClient(‘http://www.autobid.co.za/halfway/vehicledetails.php?wsdl’); $result = $client->getVehicleDetails(‘spwf87′,’hk8*9jd’); echo(‘<p>’.$result.'</p>’); ?> Returns: 5002386176AHTHA3CD503427515BPSSZN1GD058155439845.00WHITE2019TOYOTAHILUX 2.8 GD-6 RAIDER 4X4 A/T P/U D/C60039521Full Service History with agentsSigns of ..

Read more

I have the following auth header to be passed from php soap client <soap:Header> <AuthNASoapHeader xmlns="http://networkanalyser.manxtelecom.com/Wholesale"> <ClientName>string</ClientName> <Password>string</Password> </AuthNASoapHeader> </soap:Header> How can I pass this in PHP soap header?. In the WSDL file I have it like <s:element name="AuthNASoapHeader" type="tns:AuthNASoapHeader" /> <s:complexType name="AuthNASoapHeader"> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="ClientName" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" ..

Read more

I encounter some problems when I try to call a method of api with authentication. $auth = (object) array( ‘user’=>’username’, ‘password’=>’password’, ‘company’=> ‘companyname’ ); $url = ‘https://webservices.gocadservices.com/NVS?wsdl’; $soap = new SoapClient(‘https://webservices.gocadservices.com/NVS?wsdl’,$auth); echo $soap->nop(); I get an error : The user parameter is empty or missing. My question : How can I send a request xml ..

Read more

I try parse xml receiving from server with function simplexml_load_string(), but I receive parse error. Is another way to parse this xml? <xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet"><xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="Measurements" msdata:UseCurrentLocale="true"><xs:complexType><xs:choice minOccurs="0" maxOccurs="unbounded"><xs:element name="Measurements"><xs:complexType><xs:sequence><xs:element name="Station" type="xs:long" minOccurs="0"/><xs:element name="ChannelID" type="xs:int" minOccurs="0"/><xs:element name="DateTime" type="xs:dateTime" minOccurs="0"/><xs:element name="Value" type="xs:double" minOccurs="0"/><xs:element name="Status" type="xs:int" minOccurs="0"/></xs:sequence></xs:complexType></xs:element></xs:choice></xs:complexType></xs:element></xs:schema><diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"><DocumentElement xmlns=""><Measurements diffgr:id="Measurements1" msdata:rowOrder="0"><Station>12</Station><ChannelID>6</ChannelID><DateTime>2021-06-04T18:10:00+02:00</DateTime><Value>13.77392</Value><Status>0</Status></Measurements><Measurements diffgr:id="Measurements2" ..

Read more