aspose file tools*
The moose likes Web Services and the fly likes JAX_RPC and SOAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX_RPC and SOAP" Watch "JAX_RPC and SOAP" New topic
Author

JAX_RPC and SOAP

Haroldo Nascimento
Ranch Hand

Joined: Aug 14, 2003
Posts: 79
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Haroldo Nascimento
Ranch Hand

Joined: Aug 14, 2003
Posts: 79
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.
 
Don't get me started about those stupid light bulbs.
 
subject: JAX_RPC and SOAP