GeeCON Prague 2014*
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
Author

Consume dot net webservice

Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
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.


SCJP 6,SCWCD 5,SCBCD 5

Failure is not an option.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42035
    
  64
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.


Ping & DNS - my free Android networking tools app
Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
thanks for your help
 
GeeCON Prague 2014
 
subject: Consume dot net webservice