Показать сообщение отдельно
Старый 27.08.2012, 10:28   #3  
Rimantas is offline
Rimantas
Участник
 
304 / 16 (1) ++
Регистрация: 30.04.2004
Адрес: Utena , Lithuania
Цитата:
Сообщение от michel1971 Посмотреть сообщение
вот тут посмотрите \Classes\tutorial_SMSHandler\sendMessage
Спасибо за направление ...

Ну пока неуспешно ... Вот мой код , по етому примеру :

X++:
   soapMessageTemplate = @'
        <?xml version="1.0" encoding="utf-8" standalone="no"?>
        <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
            <s:Body>
                <message xmlns="urn:prin_link" >
                <submit>
                    <user>%1</user>
                    <pass>%2</pass>
                    <pack_no >%3</pack_no>
                </submit>
                </message>
            </s:Body>
        </s:Envelope>';


   soapMessage = strFmt( soapMessageTemplate, "усер", "пасв", "002350858" );
   req = new XMLHTTPRequest();
   d = XMLDocument::newXML( soapMessage );

   req.open( 'POST', 'https://go.venipak.lt/ws/print_link' );
   req.sendXML( d );
   reply = XMLDocument::newXML( req.responseText() );
   n = reply.documentElement();
Я получяю вот такой ответ :

ErrorCode : -1072896682
reason : Invalid at the top level of the document.,
url :
srcText : Error: Incorrect username or password.
filePosition: 0
lineNumber : 1
linePosition: 1
XML invalid, error code: -1072896682

Что я делаю плохо ?