hello,
the php pages I was using with SGD 4.61 in http mode doesn t work anymore with SGD 5.0 in https.
my pages were using nusoap lib ($Id: nusoap.php,v 0.7.2 2005/08/04) and they were OK with sgd4.61 and http (on port 8080)
with SGD5 and https, I get an :
XML error parsing SOAP payload on line XXX : Invalid document end
I updated the nusoap lib with 0.9.5 2010/04/26, but allways the same pb
after a few tests :
- I know that the server is OK thanks to apitest,
- I know that the request is good :
Request
POST /axis/services/document/webtopsession HTTP/1.0 Host: XXX.XXX.XXX.19 User-Agent: NuSOAP/0.9.5 (1.123) Content-Type: text/xml; charset=UTF-8 SOAPAction: "http://sgd.sun.com/webservices/document/webtopsession/authenticate" Content-Length: 545 <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns8813="http://tempuri.org"><SOAP-ENV:Body><authenticate xmlns="http://sgd.sun.com/webservices/document/webtopsession"><user>xxxxxxx</user><passwd>xxxxxxxx</passwd><clientid>12345</clientid><locale>fr</locale></authenticate></SOAP-ENV:Body></SOAP-ENV:Envelope>
may be it is because of the automatic forwarding to https and port 443 ? and / or pb of wrong decoding (as you can see in the response under, the begining of the respnse is corrct, but not in the middle )?
Response
HTTP/1.1 200 OK Date: Tue, 17 Sep 2013 11:34:06 GMT Server: Apache Content-Length: 1450 Vary: User-Agent,Accept-Encoding Content-Type: text/xml;charset=utf-8 <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><authenticateResponse xmlns="http://sgd.sun.com/webservices/document/webtopsession"><return><?xml version="1.0" encoding="UTF-8"?> <tta:response xmlns:tta="http://xml.tarantella.com/2001/soapreply.xsd"> <attr name="scottasessioncookie">8544189537634943910:xxxxxxxxx.xxxxxxx.fr:1379416574976:6048721943343582209:2</attr> <attr name="isadministrator">false</attr> <attr name="scottatheme">sco/tta/standard</attr> <attr name="cn">xxxxxxxxxx</attr> <attr name="arrayMember">xxxxx.xxxx.fr</attr> <obj name="serverattributes"> <attr name="scottasessionid">xxxxxx.xxxxx.fr:1379416574976:6048721943343582209</attr> <attr name="scottasessiontemplateowner">.../_ens/o=organization/cn=xxxxxx</attr> <attr name="scottasessionowner">.../_ens/o=organization/cn=xxxxx</attr> </obj> <obj name="views"> <obj name="view"> <attr name="viewid">1</attr> <attr name="tc
Has anyone used SGD web services from php ?
If yes, is it possible to send me the code of a simple example to see where I am mistaken ? (too few documentation from SGD ).
Thanks in advance