Hello Peeps.
I have never touched SOAP before and I am a little confused how it works. I have seen a few tutorials onsuming a service to receive date but the one which is confusing me is how to send data.
We are looking at sending data to a services and have been given the API.
Here is what we have been given.
POST /api/service.asmx HTTP/1.1
Host: secure.domain.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<InsertCustomer xmlns="YourKashFlow">
<UserName>string</UserName>
<Password>string</Password>
<custr>
<CustomerID>int</CustomerID>
<Code>string</Code>
<Name>string</Name>
<Contact>string</Contact>
<Telephone>string</Telephone>
<Mobile>string</Mobile>
<Fax>string</Fax>
<Email>string</Email>
<Address1>string</Address1>
<Address2>string</Address2>
<Address3>string</Address3>
<Address4>string</Address4>
<Postcode>string</Postcode>
<Website>string</Website>
<EC>int</EC>
<Notes>string</Notes>
<Source>int</Source>
<Discount>decimal</Discount>
<ShowDiscount>boolean</ShowDiscount>
<PaymentTerms>int</PaymentTerms>
<ExtraText1>string</ExtraText1>
<ExtraText2>string</ExtraText2>
<CheckBox1>int</CheckBox1>
<CheckBox2>int</CheckBox2>
<Created>dateTime</Created>
<Updated>dateTime</Updated>
</custr>
</InsertCustomer>
</soap12:Body>
</soap12:Envelope>
and
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<InsertCustomerResponse xmlns="YourKashFlow">
<InsertCustomerResult>int</InsertCustomerResult>
<Status>string</Status>
<StatusDetail>string</StatusDetail>
</InsertCustomerResponse>
</soap12:Body>
</soap12:Envelope>
How can we use the services to submit data to them.
I hope you can advise. I know this is SOAP 1.2 and we have the latest php5 version.
Ta in advance