Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX_RPC and SOAP

 
Haroldo Nascimento
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I create the simple application that using JAX-RPC similar to the examples of WSDP.
My doubt is if this example use the SOAP, because I dont amount any xml, but the client call the method e receive the return this method. The SOAP is tranparent to application or the applicatin can define this XML of SOAP ?

How I can use XML to create call of RPC and recieve data in format XML ?

Thanks
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using the JAX-RPC API, you won't be specifying the SOAP message yourself. If you want low-level access to the SOAP message you're sending, you need to use the SAAJ API.
 
Haroldo Nascimento
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,


but I will wish use XML to access the remote method and get the result in XML too. For example:

<?xml version="1.0"?>
<methodCall>
<methodName>GetCelcius</methodName>
<params>
<param>
<value><int>-5</int></value>
<param>
<params>
</methodCall>


How I can do it using the simple example Hello World of jwsdp ?

Thanks
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need an XML-RPC implementation to call XML-RPC services unless you want to construct the XML document by hand, use HttpURLConnection to send it to the server, and parse the response by hand. JWSDP only implements web services standards which are different from XML-RPC.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic