chs
15-05-07, 17:54
I am trying to make an API request using Java, however the documentation seems to be lacking some example SOAP XML requests.
Does anyone have any to hand? I'm using:
<?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:Header xmlns="http://api.productserve.com/">
<UserAuthentication><iId>99999</iId>
<sPassword>mypass</sPassword>
<sType>affiliate</sType>
</UserAuthentication>
</soap:Header>
<soap:Body></soap:Body>
</soap:Envelope>
That just returns a 500 error from the server. Any help or sample XML code would be much appreciated. Once I can get some simple communication going I'll be on my way!
Does anyone have any to hand? I'm using:
<?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:Header xmlns="http://api.productserve.com/">
<UserAuthentication><iId>99999</iId>
<sPassword>mypass</sPassword>
<sType>affiliate</sType>
</UserAuthentication>
</soap:Header>
<soap:Body></soap:Body>
</soap:Envelope>
That just returns a 500 error from the server. Any help or sample XML code would be much appreciated. Once I can get some simple communication going I'll be on my way!