users@jax-rpc.java.net

Problems with Dynamic Proxy Client against document/literal service

From: Merten Schumann <Merten.Schumann_at_asg.com>
Date: Fri, 8 Oct 2004 14:53:57 +0200

Hello,

could it be that in JAX-RPC from Sun J2EE 1.4 RI a Dynamic Proxy Client
has got problems with web services, when you use (wscompile) the
document/literal mode?

I do not mean the null value problem, I do know now that I cannot send
there null as parameter, which is okay. I mean that my Dynamic Proxy
Client (which is working fine against the web service, when I use
non-wsi or rpc/literal mode for wscompile to generate the WSDL) fails
for some strange reason against document/literal web service.

I found before (I think Kathy told me that in a forum) that a Dynamic
Proxy Client at the moment cannot really deal with complex types in a
WSDL, and that's used in document / literal mode when I look at the WSDL
... So, what I want is, if this could be the reason for my problem here,
just a confirmation for this limitation of Dynamic Proxy Client at the
moment (Kathy wrote that things will be improved) ... :-)

This is the stack trace from server.log. The string "rums" is my
parameter I'm trying to hand over to sayHello() method.

[#|2004-10-08T14:44:49.898+0200|SEVERE|sun-appserver-pe8.1|com.sun.xml.r
pc.server|_ThreadID=17;|deserialization error: XML reader error:
unexpected character content: "rums" deserialization error: XML reader
error: unexpected character content: "rums" at
com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize
(LiteralObjectSerializerBase.java:128) at
de.rochade.srap.ws.HelloService_Tie.deserialize_sayHello(HelloService_Ti
e.java:108) at
de.rochade.srap.ws.HelloService_Tie.readFirstBodyElement(HelloService_Ti
e.java:95) at
com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:233
) at
com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDe
legate.java:443) at
com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50
) at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)

I do use the 2004 Q4 Beta.

Thank you!
   Merten

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net