Hi again, and thanks very much for your help!

I took another tack. Because I know I'm getting a response from the
server, I tried to compare what I'm sending with what their website
says the service expects. I ran a http port sniffer and its like this:

What I'm sending:

POST / HTTP/1.0
Host: localhost:81
Content-Type: text/xml; charset=utf-8
Content-Length: 528
SOAPAction: "http://www.webservicex.net/Translate";

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<SOAP-ENV:Body>
<ns1:Translate xmlns:ns1="http://www.webservicex.net/";
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
<LanguageMode xsi:type="xsd:string">EnglishTOFrench</LanguageMode>
<Text xsi:type="xsd:string">Hello</Text>
</ns1:Translate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

What the service expects:

POST /TranslateService.asmx HTTP/1.1
Host: www.webservicex.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.webservicex.net/Translate";

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Body>
    <Translate xmlns="http://www.webservicex.net/";>
      <LanguageMode>EnglishTOChinese or EnglishTOFrench or
EnglishTOGerman or EnglishTOItalian or EnglishTOJapanese or
EnglishTOKorean or EnglishTOPortuguese or EnglishTOSpanish or
ChineseTOEnglish or FrenchTOEnglish or FrenchTOGerman or
GermanTOEnglish or GermanTOFrench or ItalianTOEnglish or
JapaneseTOEnglish or KoreanTOEnglish or PortugueseTOEnglish or
RussianTOEnglish or SpanishTOEnglish</LanguageMode>
      <Text>string</Text>
    </Translate>
  </soap:Body>
</soap:Envelope>

Does anything jump out here?


Reply via email to