Results 1 to 6 of 6

Thread: Webservice issue

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    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

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Webservice issue

    What's the error message it's showing you? Screenshot/paste ti

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    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

  6. #6
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    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...

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width