Eric
You will not that running their demo
http://www.webservicex.net/TranslateService.asmx/Translate?LanguageMode=Germ
an&Text=Hello
causes
      The page cannot be displayed
      There is a problem with the page you are trying to reach and it cannot
be displayed.

--------------------------------------------------------------------------

      Please try the following:

        a.. Open the www.webservicex.net home page, and then look for links
to the information you want.
        b.. Click the  Refresh button, or try again later.

        c.. Click  Search to look for information on the Internet.
        d.. You can also see a list of related sites.




      HTTP 500 - Internal server error
      Internet Explorer

So my suggestion is that their site at least the Translate SOAP Server is
not yet operational
Why dont you code the SOAP Server yourself ?
What application / features do you desire?
A great way for you to learn SOAP is to code the SOAP Server and the Client
Regards,
Martin Gainty
----- Original Message -----
From: "Eric Carlson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, March 06, 2004 12:33 PM
Subject: Re: My java client always returns (null)


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