Hi,
I got it working:
Looks like the web reference tool form vstudio strips out the port# from the service address, so http://localhost:8080/axis becomes http://localhost/axis.
 
After setting the Url property for the service object in code to "http://localhost:8080/axis/Calculator.jws" it worked.
 
ArentJan
-----Original Message-----
From: Paolo Paganotto [mailto:[EMAIL PROTECTED]]
Sent: maandag 4 november 2002 14:15
To: [EMAIL PROTECTED]
Subject: Re: using a jws instand deployed service from .NET

 

Hello,

 

I am trying to use a service deployed as .jws to Tomcat 4.1.2 from .NET without success.

- I copied the Calculator.java sample as Calculator.jws to the Axis folder.

- I compiled the CalcClient.java class and it works fine

- I can see the wsdl with http://localhost:8080/axis/Calculator.jws?wsdl

 

Now I imported the wsdl into my .NET project as a Web Reference. Importing works, but when I try to run the application I get a HTTP error (HTTP status 405: Method not allowed).

 

Is jws instant deployment supposed to work as a SOAP webservice, or should I do something specific to get it working from outside Java?

 

Thanks,

ArentJan

 

 

==>Hallo,

I had the same problem running that application.

One way to get the things work is:

1) get a valid .wsdl file by using the Java2WSDL axis tool;

2) use the wsdl.exe tool to get a valid proxy .NET class (you can find it in the .NET tools window);

3) use the csc.exe tool to get a valid .dll file from the proxy class.

 

Import this .dll file in your project and everything should work.

I'm tuned to find out the correct way to access a web service with .NET by the web reference tool.

best regards,

 

:P:

Reply via email to