Calling a JAX-WS based web service from Classic ASP client

Hi/Hello

Context:

Calling a JEE6 based JAX-WS web service from Classic ASP client .

Problem:
I could not call the JAX-WS from my classic ASP page.

Error : I am simply getting 404 error when accessing this web service from ASP client hosted on IIS server.

Do I need to build SOAP request message and pass in the parameters?

Based on your reply I will be asking subsequent questions.


Thanks & Best Regards

Harish

JSimpCalcWebService.java
wsclient.txt
NumberFormater.java
HarishVembuAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
BigRatConnect With a Mentor Commented:
>> Is this way of sending xml over http through XMLHttp request object is similar to that of a REST POST call?

Yes, but from what I have seen the method seems overly complicated. take this example as an example :-

http://stackoverflow.com/questions/1460197/how-do-i-call-rest-webserivce-with-a-post-method-and-send-xml-data-in-c

>>Also what's the advantages of MS-SOAP toolkit to this approach through XMLHttp request.

I have no idea because I have never used it.

It is some years now since a chap called Don Box from DevelopMentor invented a simple method to access a web service instantiated as an object. His idea was very simple: An XML file would be posted to a web URL. The XML file would consist of a header, denoting the fact that it was such a request, and a body which was essentially a name of an object, a name of a method and perhaps a few parameters. Don called this SOAP for SIMPLE Object Access Protocol. Ever since then everybody else has been complicating it - as if it were too simple.
0
 
BigRatConnect With a Mentor Commented:
>>Do I need to build SOAP request message and pass in the parameters

Yes. Providing that JSimpCalcWebService is actually installed as a web service. That may be the result of the 404, rather than a 500 Bad Request.
0
 
HarishVembuAuthor Commented:

Some additional information.

I am trying hit the Java Web Service (JAX-WS) from a different machine. The web service is deployed on Glassfish 3 server.

404 is somewhat puzzling . Let me check again

@BigRat - Did you check the classic ASP code for calling JAX-WS web service??

Let me know

Thanks & Best Regards

Harish
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
BigRatConnect With a Mentor Commented:
http://www.aspfree.com/c/a/ASP/Consuming-a-WSDL-Webservice-from-ASP/

is a good example of how to do it in conventional ASP without all the SOAP stuff.
0
 
HarishVembuAuthor Commented:
Thanks Big Rat,

I had already gone through the above link.

I am attaching a modified ASP file with SOAP request as reference . ASP is complaining on the line

xmlhttp.send SOAPRequest

when the page is submitted.

Would someone be able to go through the ASP code and suggest any modification needed in it to connect to JAX-WS web service.

Any suggestions/assistance would be much appreciated.


Thanks & Best Regards

Harish
WSSOAPClient.txt
0
 
BigRatConnect With a Mentor Commented:
Yes, no problem.

xmlhttp.setRequestHeader "Content-Type","application/x-www-form-urlencoded"

No, the content is text/xml or the newer application/xml.
0
 
HarishVembuAuthor Commented:
Yes Big Rat that's what I did exactly before and it worked. Anyway thanks for reiterating it.

Question : Is this way of sending xml over http through XMLHttp request object is similar to that of a REST POST call?

Also what's the advantages of MS-SOAP toolkit to this approach through XMLHttp request.

Let me know.

Thanks & Best Regards

Harish
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.