Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Consume dot net webservice

 
Siva Masilamani
Ranch Hand
Posts: 385
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am very newbie to web service and my requirements are

1.Consume dot net webservice
2.Should receive response in xml
3. Need to add custom header to the soap
4.need to use only Java 1.2(my company still uses java 1.2)

these are some of the questions need to be asked:

How to create/receive soap response?

do i need to create soap request in xml or is there any other tool that i can use to generate it with respect to java 1.2?

How to add custom header to the soap message?

How to read the response of the web services which will be in xml?

I have no idea how to proceed with web service and what are all the apis required from java 1.2.

Please let me know the steps to be followed.

Also please direct me to right resources if possible.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think any of the common WS libraries support Java 1.2, so you may have to roll your own. You'd have to create the SOAP request as an XML document, and then send (and receive the response) using the HttpURLConnection class.

By "custom header", do you mean a SOAP header or an HTTP header? If the former, then you'll have to add that yourself using whatever XML API you end up using. If the latter, then the HttpURLConnection class can do that.

I'm not sure which XML libraries support Java 1.2. The Crimson parser (http://xml.apache.org/crimson/) is pretty old, so that may work.
 
Siva Masilamani
Ranch Hand
Posts: 385
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your help
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic