on ‎2010 Nov 27 9:32 PM
I am getting this error message back from the DI Server:
27/11/2010 16:27:43 Request
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="LoginService"><SOAP-ENV:Body><ns1:Login><ns1:DatabaseServer>(local)</ns1:DatabaseServer><ns1:DatabaseName>SBODemoUS</ns1:DatabaseName><ns1:DatabaseType>dst_MSSQL2008</ns1:DatabaseType><ns1:CompanyUsername>manager</ns1:CompanyUsername><ns1:CompanyPassword>1111</ns1:CompanyPassword><ns1:Language>ln_English</ns1:Language><ns1:LicenseServer>localhost:30000</ns1:LicenseServer></ns1:Login></SOAP-ENV:Body></SOAP-ENV:Envelope>
27/11/2010 16:27:43 Response (Fault)
<?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><env:Fault><env:Code><env:Value>env:Sender</env:Value></env:Code><env:Reason><env:Text xml:lang="en">Invalid XML</env:Text></env:Reason><env:Detail><ErrorList><Error>System Id = 48139752, Line Number = 2, Column Number = 1, Description = Invalid document structure</Error></ErrorList></env:Detail></env:Fault></env:Body></env:Envelope>
I am using PHP to send a soap request in 1.2 format. I am using B1 8.8 on MSSQL2008R2 / Server 2007.
I know I am close, I have looked at the example schema and can't see what I am missing. Even if I include the DatabaseUser and Database Password entities, this does not work.
Thanks in advance.
Request clarification before answering.
The error is Invalid document structure. That means PHP generated request has wrong format. Try some other formats to test.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Gordon; I have tried all of PHP SOAP's encoding types and I am still havign trouble. I am tryign to narrow down in this is a possible WSDL error, etc.
Am I missing anything completely obvious in my request? Has anyone done a PHP/DI server implementation that can point me in the right direction?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gordon,
I have searched the forum, there is very little info about connecting to 8.8 and the DI Server w/ PHP which I will remedy shortly.
I resolved this issue by preg-changing PHP's default UTF-8 to UTF-16 and using PHP's mbstring class to encode my parameters properly.
Thanks for your help.
Edited by: Chris Candido on Nov 29, 2010 4:39 PM
| User | Count |
|---|---|
| 57 | |
| 29 | |
| 21 | |
| 11 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.