|
-
May 15th, 2005, 03:23 PM
#1
Thread Starter
Frenzied Member
Webservice issue
A colleague at work has a problem. He has designed an asp.net app that will use a webservice located at a 3rd party company. They have provided him with the link to the .wsdl description (http:/www.blabla.com/ws.wsdl) as well as a 30 page user gude describing all the nuts and bolts (the xml specs). Now he turned to me asking; "what to do now??"
He is a very experienced vb6 and vb.net winforms programmer, this is his first asp.net-webservice project.
Basically, my thought is that he need a reference class. And I usually build my reference classes using the nice tools provided with visual studio (wsdl.exe) ...
The problem is that I find it impossible to make the reference.vb using the ms tools... they report errors in the xml structure, some kind of simple types error.
Now the question is.. what other ways are there to go from .wsdl -> finished asp.net app that uses webservice. I suspect that the 3rd party ws is built using websphere/java... but wsdl should be universal... hrmmm. Or is it an issue with the wsdl.exe file??
anyone with suggestions, ideas???
/Henrik
-
May 15th, 2005, 07:27 PM
#2
Re: Webservice issue
You could first try using the wsdl.exe to generate a proxy class for the web service in question. I believe the syntax is:
wsdl.exe /language:VB http://www.blabla.com/servicename.asmx
Or you could just add a web reference to your project. That should work.
-
May 16th, 2005, 01:40 AM
#3
Thread Starter
Frenzied Member
Re: Webservice issue
Hiya!
As I wrote the wsdl.exe app fails to generate a reference file. It has problems with the shema (the wsdl file). However when I examine the xsd in xmlspy everything looks fine!
And it is impossible to access the webservice from IE 
/Henrik
-
May 16th, 2005, 01:42 AM
#4
Re: Webservice issue
What's the error message it's showing you? Screenshot/paste ti
-
May 18th, 2005, 01:54 AM
#5
Thread Starter
Frenzied Member
Re: Webservice issue
Hiya, sorry for the late reply. The message we are getting is:
The underlying connection was closed: Unable to connect to the remote server."
We have the wsdl file on our internet server, which is behind proxy&firewall. And the webservice is unable to connet to the remote vendor server.
We have tried using an IProxy object on the webservice object, but no luck 
/Henrik
-
May 18th, 2005, 10:45 AM
#6
Re: Webservice issue
I just straight use the Add Web Reference Wizard - typing in a URL & a name for the reference, then just start using the calls:
MyWebReferenceNameITyped.Method()
I've never used the wsdl.exe you guys are on about - just referenced the file itself...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|