tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dewey, John" <jde...@rsasecurity.com>
Subject help getting a simple no dependency client working with tomcat
Date Sat, 16 Jul 2005 00:28:31 GMT
I am trying to get a simple zero dependency client to work with tomcat,
at current it works with

http://services.xmethods.net:80/soap/servlet/rpcrouter
<http://services.xmethods.net/soap/servlet/rpcrouter> 

but not my home grown test web service

http://localhost:8080/axis/services/fibonacci

 

 

I have build a simple client using Apache dependencies that access the
Fibonacci client so I know it works, but I'm utterly confused as to why
my zero dependency client doesn't work.

Well I shouldn't say my client since I took from an example article
http://www-128.ibm.com/developerworks/xml/library/x-soapcl/ listing 1
has the source code
http://www-128.ibm.com/developerworks/xml/library/x-soapcl/listing1.html


The error I get follows (note I renamed the file LowClient.java):

Exception in thread "main" java.io.IOException: Server returned HTTP
response code: 500 for URL:
http://localhost:8080/axis/services/fibonacci

        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec
tion.java:800)

        at LowClient.main(LowClient.java:71)

 

I don't understand why the client would break when targeting a tomcat
service... I thought the whole point of web services is that they are
all supposed to be a single client. The SOAP message file that LowClient
is sending follows:

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 

                  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 

                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

            <soapenv:Body>

                        <ns1:calculateFibonacci
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 

 
xmlns:ns1="urn:fibonacci">

                        <in0 href="#id0"/>

                        </ns1:calculateFibonacci>

                        <multiRef id="id0" 

                                  soapenc:root="0" 

 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 

                                  xsi:type="xsd:int" 

 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">10</multiRef>

            </soapenv:Body>

</soapenv:Envelope>

 

Thanks in advance for helping me understand this Tomcat Client
interaction problem.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message