Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to write pure JAX-RPC client to invoke webservice?  RSS feed

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anyone tell me how to write a JAX-RPC client(I mean pure JAX-RPC, without any proprietary import statements like org.apache.axis.*.*)

For information I have written client to the level we can send complex type object as an arguement to Web service. But, now I need to get the same object after modification in the web service. For this we need to deserialize the XML format to Java object. How we can do this? Any light into the problem? Please suggest me.

Thanks and Regards,
Narendranath
 
Kevin G Scott
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure if this will eliminate all the apache imports, but I would think that the best way to free yourself of properitery libraries is the use the wscompile program which is included as part of the JWSDP

KS
 
Tim West
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bearing in mind that JAX-RPC is itself only an API specification, what you want to use is a Web services toolkit that purely implements JAX-RPC, without adding any extra 'proprietary' features.

So far as I'm aware, Kevin has it right: the JWSDP implementation of JAX-RPC should fit your bill. However, if you use wscompile to build the Java - WSDL mapping, then the generated serialiser and deserialiser files will use proprietary imports, specifically ones like:



However, this is about as good as you can get: these classes are part of Sun's implementation of JAX-RPC (they're in 'jaxrpc-impl.jar' in the JWSDP).

So, if having custom imports in generated Java files is OK, then I think this will work for you. Otherwise, you could write custom deserialisers, etc.


-Tim
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!