Groups | Blog | Home
all groups > asp.net webservices > november 2003 >

asp.net webservices : Problems with asp.net and jws


robert NO[at]SPAM disicom.com
11/27/2003 3:24:26 PM
Hi Forum, there is a web service with a jws extension. I want to
create an application in ASP.NET that call the web service, i have the
documentation, url and user and password for that. The problem is that
when i create a web form and want to add a web reference to the
project, i put the url and ask me for user, passwrod and domain, but i
can not connect. If i try this url in explorer then i recive this
message:

ws/webservicename.jws
Hi there, this is an AXIS service!

Perhaps there will be a form for invoking the service here...


So is there a problem with the web service or maybe with the .net.
Some body can help me please?

Roberto Becerril
11/28/2003 11:50:37 PM


Hi, thanks for your reply. The server where the web service is i don´t
know its configuration. I just have to create the client to send it
information by a function of the web service.

The user and password is for the server and i think it has permmission
on the web service too.

For the WSDL definition i use:

http://www.domain.com/ws/webservicename.jws?wsdl

Is there another form to create a client??, or to add the reference to
the project?

Thanks in advanced.

*** Sent via Developersdex http://www.developersdex.com ***
Saurabh Nandu
11/29/2003 11:24:45 AM
Hi,

This should be a problem of how you have setup the servers i.e. the Web
Server serving the service might not be allowing anonymouse connections.

Also you mentioned that you have the username and password for the service,
are they to be passed in the web method call or are they used to access the
server?

Another thing you can try is call the following url:
ws/webservicename.jws?WSDL in IE. This will give the WSDL for the web
service. Save this file on localdisk.

Now in the Add Web Reference dialog browse to the location of the saved WSDL
file and it will create the appropriate proxy for the service.

Regards,
Saurabh Nandu

Saurabh Nandu
12/1/2003 11:53:30 AM
hi,

I believe you can atleast access the WSDL file from IE ? If not then you
need
[quoted text, click to view]
the service.

Since even if you manage to create a Proxy, your client will not work if it
does not provide the appropriate network credentials to access the web
service.

As I mentioned in my earlier post, you can access the WSDL file through IE,
and save the WSDL file on disk. Then use VS.NET's add Web Reference dialog
and select the saved WSDL file (rather than the actual live path). This will
create the proxy class for you.

But if your server needs some credentials to be passed, before you call the
web service you will have to setup the appropriate credentials in your code,
else you service call will fail.

Regards,
Saurabh Nandu


AddThis Social Bookmark Button