This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Originally posted by Haroldo: but the SAAJ does not use WSDL. Is possible other application (Perl, Microsft, ...) exchange message using only SAAJ. Eh possible use JAX-RPC and SAAJ together ?
In the end, both SAAJ and JAX-RPC APIs are used for sending SOAP messages over (usually) HTTP. You can use JAX-RPC to invoke service X and you can use SAAJ to invoke service X, but there's no point in trying to use both JAX-RPC and SAAJ to invoke service X. Also, because what goes over the wire is SOAP, it doesn't matter for a client written in Perl, C#, C++, Python, Java, etc. in which language or platform the service was implemented -- as long as it understands SOAP messages.
Originally posted by Haroldo: What is the advantages and disadvantages of SAAJ and JAX_RPC ?
In short: - JAX-RPC is easy to use (no need to worry about the actual SOAP message) - SAAJ gives you more power (ability to tweak the actual SOAP message)
In the specification of the project FlyByNight entreprise of SCEA part II use this specification of XML too.
My doubt is: The library of JAX-RPC understand this XML pattern or I have that implements a layer that parser this xml and call the RPC and in the response get the return of remote method and create the XML that contain the data.
How I would can use JAX-RPC send the XML above because the example of HelloWorld of the C:\jwsdp-1.4\jaxrpc\samples\ need that the client use the stub class to call the method stub.sayHelloBack("JAXRPC Sample"). I would like send the XML and not use the stub class.
Joined: Jan 23, 2002
As far as I know, JAX-RPC does not support XML-RPC. JAX-RPC supports SOAP which is not the same as XML-RPC. In other words, no, you can't invoke an XML-RPC service with JAX-RPC.