HighTechTalks DotNet Forums  

Problems with asp.net and jws

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Problems with asp.net and jws in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Problems with asp.net and jws - 11-27-2003 , 06:24 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?

Thanks in advanced.

Reply With Quote
  #2  
Old   
Saurabh Nandu
 
Posts: n/a

Default Re: Problems with asp.net and jws - 11-29-2003 , 12:54 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



Reply With Quote
  #3  
Old   
Roberto Becerril
 
Posts: n/a

Default Re: Problems with asp.net and jws - 11-29-2003 , 02:50 AM





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 ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #4  
Old   
Saurabh Nandu
 
Posts: n/a

Default Re: Problems with asp.net and jws - 12-01-2003 , 01:23 AM



hi,

I believe you can atleast access the WSDL file from IE ? If not then you
need
to find the exact config to connect to the server from the people who wrote
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




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.