Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAP in Java

 
Jesse Miller
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am fairly unfamiliar with SOAP so I am trying to learn as I go. I understand how to write SOAP requests in XML but I am having some trouble converting that to JAVA code so I can use it in my program. I have a web server that accepts requests in the form of http://myserver'sURL/getXML.php?method=example¶ms=ALL (something like this) and returns a response. I am trying to get that response returned as an array so I can use it in my Java program. At some point I will have to add authentication to the SOAP header since these server requests are secure. Im not really sure where to start with this so any help would be greatly appreciated. Thanks!

 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So the request isn't SOAP, but an HTTP GET, and SOAP would only be used in the response? See this for an example SAAJ client, although that may not fit the bill if the request isn't actually SOAP. It also shows how to set HTTP Authentication headers (assuming that's what you mean by authentication).
 
Jesse Miller
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, a SAAJ client does seem like a good way to go about this. I have been looking around on how to convert a SOAP request to a JAX-RPC DII interface. Below is my original SOAP code. Could someone help me convert this to a JAX-RPC interface or at least point me in the right direction? Thanks





 
Jesse Miller
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bump. Any suggestions on this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic