[SoapRMI] [SPAM:# 57%] Re: _how_to_call_apache-soap_
Aleksander Slominski
aslom_at_cs.indiana.edu
Tue, 10 Dec 2002 17:07:17 -0500
hi,
please run XSOAP with all debugging enabled (-Ddebug) and send me all
logger output.
i think that address you access is incorrect and you get back HTML page
with error instead of SOAP :-(
this is based looking on error message (see that it reports <html>
instead of SOAP Envelope): "Envelope start tag expected not html at line
1 and column 6 seen <html>... (parser state START_TAG) at
soaprmi.soaprpc.MethodInvoker.receiveResponse"
alek
nodep_at_libero.it wrote:
>Hi Alek,
>I modified "HelloClient.java" with your code but it doesn't works :(
>I've attached the source. It sends:
>
>POST / HTTP/1.0
>Host: localhost
>User-Agent: SoapRMI/1.2
>Content-Type: text/xml; charset=utf-8
>Content-Length: 449
>SOAPAction: ""
>Connection: Close
>
><SOAP-ENV:Envelope xmlns:SOAP-
>ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:SOAP-
>ENC='http://schemas.xmlsoap.org/soap/encoding/'
>xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
>xmlns:xsd='http://www.w3.org/1999/XMLSchema'
>SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
>
><SOAP-ENV:Body>
>
> <m:sayHello xmlns:m='urn:HelloWorld'>
>
> <box xsi:type='xsd:string'>steve</box>
>
> </m:sayHello>
>
></SOAP-ENV:Body>
>
></SOAP-ENV:Envelope>
>
>
>but I've got the error:
>
>Client executing remote method sayHello on server with 'steve' argument
>Exception in thread "main" soaprmi.RemoteException: Envelope start tag
>expected
>not html at line 1 and column 6 seen <html>... (parser state START_TAG)
> at soaprmi.soaprpc.MethodInvoker.receiveResponse
>(MethodInvoker.java:344)
>
> at
>soaprmi.soaprpc.HttpSocketSoapInvocationHandler.invokeTransport(HttpS
>ocketSoapInvocationHandler.java:133)
> at soaprmi.soaprpc.SoapDynamicStub.invoke
>(SoapDynamicStub.java:118)
> at $Proxy0.sayHello(Unknown Source)
> at minimal.HelloClient.main(HelloClient.java:75)
>
>Difference from Apache-soap message is:
>
><m:sayHello xmlns:m='urn:HelloWorld'>
>
>Vs
><ns1:sayHello xmlns:ns1="urn:HelloWorld" SOAP-
>ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>
>but: is it very important?(the place where is "SOAP-
>ENV:encodingStyle=....")
>
it is n_not_ important.
alek