Jump to content

linde12

Members
  • Posts

    1
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

About linde12

  • Birthday 01/01/1

linde12's Achievements

Newbie

Newbie (1/3)

0

Reputation

  1. Hello, i am making a soap class, which will contact mangos, in PHP but i don't know how to authorize myself and i cant seem to figure it out by looking at the mangos source. Basically i open a socket to the server and send: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:ns1="urn:MaNGOS"> <SOAP-ENV:login> FEENIXES </SOAP-ENV:login> <SOAP-ENV:password> FEENIXSERVER </SOAP-ENV:password> <SOAP-ENV:Body> <ns1:executeCommand> .send mail "Fee" "ABC" "123" </ns1:executeCommand> </SOAP-ENV:Body></SOAP-ENV:Envelope> And this comes back as response: HTTP/1.1 500 Internal Server Error Server: gSOAP/2.7 Content-Type: text/xml; charset=utf-8 Content-Length: 605 Connection: close <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:ns1="urn:MaNGOS"><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Validation constraint violation: tag name or namespace mismatch in element 'SOAP-ENV:login'</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> And if have tried other ways like making them parameters of a header etc but i cant get it to work! Please help! /Oscar
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use