>Thank you António!
>Great work, I could not do this by myself!
>
>However, I'm getting an error at the:
>
>m.SessionId = m.SOAPResponse.selectNodes("//gp:SessionId").item(0).text
>
>
>I guess the code is retrieving an error. The m.WS.status return 415 (Unsupported Media Type).
>What could it be?
>
>Thank you!
Cesar, I think the problem is with the Content-type defined in the .setRequestHeader() method. You could try to change to "text/xml" (but if you have it documented then better still, just follow whatever mime type is expected by the Web Service).
----------------------------------
António Tavares Lopes