Hello, I'm quite newbie with PHP development, but need to do pretty complicated stuff (which may be of course very simple for somebody else).
Ok, here's the deal. My purpose is to produce a user registration form to my site which submits the data to another server via ASMX WebService.
Here's the sample code that should be submitted to the server:
POST /Shop.UserService/UserService.asmx HTTP/1.1
Host: test.myserver.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://shop.myserver.com/RegisterUser"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<RegisterUser xmlns="http://shop.myserver.com/">
<user>
<Username>string</Username>
<Password>string</Password>
<FirstName>string</FirstName>
<LastName>string</LastName>
<EmailAddress>string</EmailAddress>
<City>string</City>
<Country>string</Country>
<SignupCode>string</SignupCode>
<IsActive>boolean</IsActive>
</user>
<merchant>string</merchant>
<merchantPassword>string</merchantPassword>
</RegisterUser>
</soap:Body>
</soap:Envelope>
So, would you help me to consturct the submitting PHP-code? XML is really weird thing for me.
I really do appreciate any help!