File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Consume dot net webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Consume dot net webservice" Watch "Consume dot net webservice" New topic

Consume dot net webservice

Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385

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.


Failure is not an option.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
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 ( is pretty old, so that may work.
Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
thanks for your help
I agree. Here's the link:
subject: Consume dot net webservice
It's not a secret anymore!