A
anton1980
Guest
hi guys!
i am trying to do a SOAP request to create a user account and get an error message... i am using PHP. below you can see my request variable.
$soap_request = "
<?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>
<CredentialsSoapHeader xmlns=\"http://swsoft.com/webservices/sb/4.0/SystemService\">
<Login>$sb_username</Login>
<Password>$sb_password</Password>
</CredentialsSoapHeader>
</soap:Header>
<soap:Body>
<CreateAccount xmlns=\"http://swsoft.com/webservices/sb/4.0/AccountService\">
<ownerAccountId>1</ownerAccountId>
<username>$username</username>
<password>$password</password>
<firstName>$client_fname</firstName>
<lastName>$client_lname</lastName>
<email>$client_email</email>
<role>SiteOwner</role>
<planId>8</planId>
<changePasswordAllowed>true</changePasswordAllowed>
</CreateAccount>
</soap:Body>
</soap:Envelope>
";
the error i get is this:
HTTP/1.1 500
Date: Fri, 02 Nov 2007 18:47:12 GMT
Server: Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.7 mod_ssl/2.8.30 OpenSSL/0.9.7a
X-Powered-By: PHP/5.2.1
Content-Length: 278
Connection: close
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Bad Request</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
thank you for any help you can offer...
i am trying to do a SOAP request to create a user account and get an error message... i am using PHP. below you can see my request variable.
$soap_request = "
<?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>
<CredentialsSoapHeader xmlns=\"http://swsoft.com/webservices/sb/4.0/SystemService\">
<Login>$sb_username</Login>
<Password>$sb_password</Password>
</CredentialsSoapHeader>
</soap:Header>
<soap:Body>
<CreateAccount xmlns=\"http://swsoft.com/webservices/sb/4.0/AccountService\">
<ownerAccountId>1</ownerAccountId>
<username>$username</username>
<password>$password</password>
<firstName>$client_fname</firstName>
<lastName>$client_lname</lastName>
<email>$client_email</email>
<role>SiteOwner</role>
<planId>8</planId>
<changePasswordAllowed>true</changePasswordAllowed>
</CreateAccount>
</soap:Body>
</soap:Envelope>
";
the error i get is this:
HTTP/1.1 500
Date: Fri, 02 Nov 2007 18:47:12 GMT
Server: Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.7 mod_ssl/2.8.30 OpenSSL/0.9.7a
X-Powered-By: PHP/5.2.1
Content-Length: 278
Connection: close
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Bad Request</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
thank you for any help you can offer...