[SoapRMI] Trouble accessing .NET
BESTJ@Nationwide.com
BESTJ_at_Nationwide.com
Thu, 4 Sep 2003 18:48:02 -0400
I have looked at the links, and still can not find out what's wrong. My
current client has the following output:
------------------------------------------------------------------------------------------------------------
Logger $Revision: 1.19 $ $Date: 2003/04/06 00:04:04 $ (GMT) configured as
':ALL'
[ 22:39:52.218 main: soaprmi.mapping.XmlJavaMapping.java:42
setDefaultPortTypeNsPrefix #] called. value =
urn:soaprmi-v11:temp-java-port-type
[ 22:39:52.218 main: soaprmi.mapping.XmlJavaMapping.java:47
setDefaultArrayComponentInterfaceNsPrefix +] ENTRY
urn:soaprmi-v11:temp-java-array-component-interface-type
[ 22:39:52.359 main: soaprmi.soaprpc.HttpSocketSoapInvoker.java:65 <clinit>
%] property xsoap.rpc.invoke.timeout.ms is not specified
[ 22:39:52.531 main: soaprmi.soaprpc.MethodInvoker.java:252 sendRequest ]
invoking remote method HelloWorld
[ 22:39:52.531 main: soaprmi.trace.invoke.out
soaprmi.soaprpc.MethodInvoker.java:308 sendRequest ] TRACE sending len=439:
---<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/2001/XMLSchema-instance' xmlns:xsd
='http://www.w3.org/2001/XMLSchema' SOAP-ENV:encodingStyle
='http://schemas.xmlsoap.org/soap/encoding/'><SOAP-ENV:Body><m:HelloWorld
xmlns:m
='http://tempuri.org/filenet_rpc/Service1'></m:HelloWorld></SOAP-ENV:Body></SOAP-ENV:Envelope>
--
[ 22:39:52.546 main: soaprmi.soaprpc.HttpUtils.java:156 post ] sending
request to host NW638232:80 path=/filenet_rpc/Service1.asmx
requestContentType=text/xml; charset=utf-8 timeout=240000 httpProxy=null:-1
[ 22:39:52.546 main: soaprmi.util.Util.java:207 getContentTypeCharset ]
ndx=10 from contentType=text/xml; charset=utf-8
[ 22:39:52.593 main: soaprmi.soaprpc.HttpUtils.java:236 post ] sending
headers:---POST /filenet_rpc/Service1.asmx HTTP/1.0
Host: NW638232
User-Agent: SoapRMI/1.2.23
Content-Type: text/xml; charset=utf-8
Content-Length: 439
SOAPAction: "http://tempuri.org/filenet_rpc/Service1/HelloWorld"
Connection: Close
---
[ 22:39:52.593 main: soaprmi.soaprpc.HttpUtils.java:258 post ] sending
request body len=439 content:---<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/2001/XMLSchema-instance' xmlns:xsd
='http://www.w3.org/2001/XMLSchema' SOAP-ENV:encodingStyle
='http://schemas.xmlsoap.org/soap/encoding/'><SOAP-ENV:Body><m:HelloWorld
xmlns:m
='http://tempuri.org/filenet_rpc/Service1'></m:HelloWorld></SOAP-ENV:Body></SOAP-ENV:Envelope>
--
[ 22:39:52.593 main: soaprmi.soaprpc.HttpUtils.java:269 post ] reading
response
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 72
character:`H' line so far
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 84
character:`T' line so far H
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 84
character:`T' line so far HT
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 80
character:`P' line so far HTT
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 47
character:`/' line so far HTTP
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 49
character:`1' line so far HTTP/
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 46
character:`.' line so far HTTP/1
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 49
character:`1' line so far HTTP/1.
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 32
character:` ' line so far HTTP/1.1
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 50
character:`2' line so far HTTP/1.1
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 48
character:`0' line so far HTTP/1.1 2
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 48
character:`0' line so far HTTP/1.1 20
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 32
character:` ' line so far HTTP/1.1 200
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 79
character:`O' line so far HTTP/1.1 200
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 75
character:`K' line so far HTTP/1.1 200 O
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 13
character:`' line so far HTTP/1.1 200 OK
[ 22:39:52.593 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:280 post ] reading first line byte: 10
character:`' line so far HTTP/1.1 200 OK
[ 22:39:52.593 main: soaprmi.soaprpc.HttpUtils.java:307 post ] received
first line:`HTTP/1.1 200 OK'
[ 22:39:52.609 main: soaprmi.soaprpc.HttpUtils.java:329 post ] converting
rest of response into byte array
[ 22:39:52.609 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:343 post ] read:---Server: Microsoft-IIS/5.1
Date: Thu, 04 Sep 2003 22:39:55 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 383
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap
="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd
="http://www.w3.org/2001/XMLSchema"><soap:Body><HelloWorldResponse xmlns
="http://tempuri.org/filenet_rpc/Service1"><HelloWorldResult>Hello
World</HelloWorldResult></HelloWorldResponse></soap:Body></soap:Envelope>
---
[ 22:39:52.718 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:347 post ] input array:---Server:
Microsoft-IIS/5.1
Date: Thu, 04 Sep 2003 22:39:55 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 383
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap
="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd
="http://www.w3.org/2001/XMLSchema"><soap:Body><HelloWorldResponse xmlns
="http://tempuri.org/filenet_rpc/Service1"><HelloWorldResult>Hello
World</HelloWorldResult></HelloWorldResponse></soap:Body></soap:Envelope>
---
[ 22:39:52.718 main: soaprmi.soaprpc.HttpUtils.java:387 post ] reading body
from array
[ 22:39:52.718 main: soaprmi.util.Util.java:207 getContentTypeCharset ]
ndx=10 from contentType=text/xml; charset=utf-8
[ 22:39:52.718 main: soaprmi.verbose.trace.invoker
soaprmi.soaprpc.HttpUtils.java:403 post ] received response:---<?xml
version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap
="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd
="http://www.w3.org/2001/XMLSchema"><soap:Body><HelloWorldResponse xmlns
="http://tempuri.org/filenet_rpc/Service1"><HelloWorldResult>Hello
World</HelloWorldResult></HelloWorldResponse></soap:Body></soap:Envelope>
---
[ 22:39:52.718 main: soaprmi.trace.invoke.in
soaprmi.soaprpc.MethodInvoker.java:321 receiveResponse ] TRACE reading
response to buffer
[ 22:39:52.718 main: soaprmi.trace.invoke.in
soaprmi.soaprpc.MethodInvoker.java:331 receiveResponse ] TRACE received:
len=383---<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap
="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd
="http://www.w3.org/2001/XMLSchema"><soap:Body><HelloWorldResponse xmlns
="http://tempuri.org/filenet_rpc/Service1"><HelloWorldResult>Hello
World</HelloWorldResult></HelloWorldResponse></soap:Body></soap:Envelope>
---
SOAP exception; nested exception is:
xml mapping problem when reading object at line 1 and column 304 seen
...<HelloWorldResult>... (parser state START_TAG); nested exception is:
soaprmi.mapping.XmlMapException: no mapping for
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
uri=http://tempuri.org/filenet_rpc/Service1 localName=HelloWorldResult
at
soaprmi.mapping.XmlJavaMapping.queryTypeMap(XmlJavaMapping.java:391)
at
soaprmi.mapping.XmlJavaMapping.queryTypeMap(XmlJavaMapping.java:345)
at
soaprmi.soap.SoapDeserializeContextImpl.queryTypeMap(SoapDeserializeContextImpl.java:278)
at soaprmi.soapenc.SoapEnc.readObject(SoapEnc.java:389)
at
soaprmi.soaprpc.MethodInvoker.receiveResponse(MethodInvoker.java:471)
at
soaprmi.soaprpc.HttpSocketSoapInvocationHandler.invokeTransport(HttpSocketSoapInvocationHandler.java:134)
at soaprmi.soaprpc.SoapDynamicStub.invoke(SoapDynamicStub.java:118)
at $Proxy0.HelloWorld(Unknown Source)
at testClient.main(testClient.java:54)
Exception in thread "main"
------------------------------------------------------------------------------------------------------------
This is the default "Hello world" service that microsoft creates when you
start a SOAP project in visual studio.net. Again, I have had no problem
accessing this from perl or C. I have tried a number of ways to map the
"HelloWorldResult", but always get the same error no matter how I do it. I
don't understand exactly what the mapping functions do, but trial and error
has gotten me nowhere.
Jamie
|---------+-------------------------------------->
| | Aleksander Slominski |
| | <aslom_at_cs.indiana.edu> |
| | |
| | |
| | |
| | |
| | 09/03/03 07:35 PM |
| | |
|---------+-------------------------------------->
>----------------------------------------------------------------------------------------------------------------|
| |
| To: BESTJ_at_Nationwide.com |
| cc: soaprmi_at_cs.indiana.edu |
| bcc: |
| Subject: Re: [SoapRMI] Trouble accessing .NET |
>----------------------------------------------------------------------------------------------------------------|
BESTJ_at_Nationwide.com wrote:
>I don't think there is a defect, unless lack of documentation is a defect.
>
>I just can't find any samples, and your API refrence has no detail, just
>method prototypes.
>
>I can execute a service fine on the ASP.NET server, but when I get a
>response back it responds with this error:
>
>xml mapping problem when reading object at line 1 and column 304 seen
>...<HelloWorldResult>... (parser state START_TAG); nested exception is:
>soaprmi.mapping.XmlMapException: no mapping for
>encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
>uri=test:/jtest/Service1 localName=HelloWorldResult
>
>It seems it is seeing a <HelloWorldResult> and doesn't know what to do
with
>it - no mapping. I have tried to learn how to do this mapping by looking
>at every sample you have, and none have enlightened me. I am frustrated
>because I can't figure it out and can't find any documentation.
>
>
hi Jamie,
you are right it looks liekproblem with mappign but i need to reproduce
it to be avle to fix it - could you try to run it with SOAP XML messages
tracing and debug on - use -Dlog=:ALL as JAVA_OPTS (set it as
environment variable and use run.sh/.bat script or directly pass to
java.exe). here you can find some more about it:
http://mailman.cs.indiana.edu/pipermail/soaprmi/2002-March/000336.html
http://mailman.cs.indiana.edu/pipermail/soaprmi/2002-December/000424.html
http://mailman.cs.indiana.edu/pipermail/soaprmi/2002-December/000427.html
http://mailman.cs.indiana.edu/pipermail/soaprmi/2001-December/000277.html
i realize that mappign is probably the biggest weakness in xsoap and
will try to make better job with next xsoap version.
thanks,
alek
>
>
>
>
>|---------+-------------------------------------->
>| | Aleksander Slominski |
>| | <aslom_at_cs.indiana.edu> |
>| | |
>| | |
>| | |
>| | |
>| | 09/03/03 02:37 PM |
>| | |
>|---------+-------------------------------------->
> >
----------------------------------------------------------------------------------------------------|
> |
|
> | To: BESTJ_at_Nationwide.com
|
> | cc: soaprmi_at_cs.indiana.edu
|
> | bcc:
|
> | Subject: Re: [SoapRMI]
Trouble accessing .NET |
> >
----------------------------------------------------------------------------------------------------|
>
>
>
>
>BESTJ_at_Nationwide.com wrote:
>
>
>
>>I am trying this again, as my last try bounced.
>>
>>----- Forwarded by James M Best/Nationwide/NWIE on 09/02/03 08:09 PM
-----
>>
>>I was pointed to your soap implementation from a link on the Apache
>>website. I am trying to access a SOAP service on an ASP.NET server, and
>>having no luck. I spent many hours today just trying to get it talking
to
>>Microsoft's "Hello World" service.
>>
>>
>>
>>
>hi James,
>
>i was connecting xsoap (aka soaprmi) to .NET services before and it
worked.
>
>
>
>>I have no trouble connecting to this service from Perl or C, using other
>>libraries, but I have not found a single simple example of using your
>>library to talk to a non-xsoap server.
>>
>>I would like to find a small JAVA library I can use to connect to both an
>>IBM websphere server (apache) and Microsoft server, but unless someone
>>
>>
>here
>
>
>>can point me in the right direction I am going to start examining other
>>libraries.
>>
>>
>>
>>
>that is definitely what for xsoap was designed for.
>
>
>
>>I have searched your mailing list archive and website, but have not found
>>anything useful.
>>
>>
>>
>>
>if you describe in bugzilla how to reproduce the problem you have i will
>try to reproduce it and fix it.
>
>please send bug report to xsoap-java:
>http://www.extreme.indiana.edu/bugzilla/enter_bug.cgi
>http://www.extreme.indiana.edu/bugzilla/
>
>thanks,
>
>alek
>
>
>
>>_______________________________________________
>>SoapRMI mailing list
>>http://www.extreme.indiana.edu/soap
>>http://mailman.cs.indiana.edu/mailman/listinfo/soaprmi
>>
>>
>>
>>
>
>
>--
>If everything seems under control, you're just not going fast enough.
>?Mario Andretti
>
>
>
>
>
>
>
>
>
>
--
If everything seems under control, you're just not going fast enough.
?Mario Andretti