.NET and Web Service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marcin O

    .NET and Web Service

    Hi all,
    I installed first time 'Microsoft Visual Studio .NET 2002' and all is OK
    (probably), except once thing. :(
    When I have Managed C++ Application and I want to add to project my Web
    Service which I earlier created and tested, I choose 'Add Web Reference...'
    from Project menu. Dialog box open, where they should be three links, but I
    have only two links without 'Web Reference on Local Web Server' - WHY??
    When I write down URL of my Web Service to 'Address' field then in window
    'Available references:' is mistake:
    "The document was not recognized as known document type (WSDL, XML, Shema,
    or Discovery document) for the following reason:
    -The content type 'application/octet - stream' is not valid for an XML
    document"

    Greate THX for every help!
    Marcin O.


  • Cowboy \(Gregory A. Beamer\)

    #2
    Re: .NET and Web Service

    The "Add web services" capabilities are much better in 2003. I think the
    local server reference was added then.

    You should be able to point to the web service by aiming at the asmx like
    so:


    If you miss the ?WSDL, it is try to actually fire off the service, and the
    web reference will fail.

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA
    Author: ADO.NET and XML: ASP.NET on the Edge

    *************** *************** *************** *************** *************** *
    ****
    Think Outside the Box!
    *************** *************** *************** *************** *************** *
    ****
    "Marcin O" <marolej79@pocz ta.onet.pl> wrote in message
    news:bg2v1o$d38 $1@news.onet.pl ...[color=blue]
    > Hi all,
    > I installed first time 'Microsoft Visual Studio .NET 2002' and all is[/color]
    OK[color=blue]
    > (probably), except once thing. :(
    > When I have Managed C++ Application and I want to add to project my Web
    > Service which I earlier created and tested, I choose 'Add Web[/color]
    Reference...'[color=blue]
    > from Project menu. Dialog box open, where they should be three links, but[/color]
    I[color=blue]
    > have only two links without 'Web Reference on Local Web Server' - WHY??
    > When I write down URL of my Web Service to 'Address' field then in[/color]
    window[color=blue]
    > 'Available references:' is mistake:
    > "The document was not recognized as known document type (WSDL, XML, Shema,
    > or Discovery document) for the following reason:
    > -The content type 'application/octet - stream' is not valid for an XML
    > document"
    >
    > Greate THX for every help!
    > Marcin O.
    >
    >[/color]


    Comment

    • Cowboy \(Gregory A. Beamer\)

      #3
      Re: .NET and Web Service

      The "Add web services" capabilities are much better in 2003. I think the
      local server reference was added then.

      You should be able to point to the web service by aiming at the asmx like
      so:


      If you miss the ?WSDL, it is try to actually fire off the service, and the
      web reference will fail.

      --
      Gregory A. Beamer
      MVP; MCP: +I, SE, SD, DBA
      Author: ADO.NET and XML: ASP.NET on the Edge

      *************** *************** *************** *************** *************** *
      ****
      Think Outside the Box!
      *************** *************** *************** *************** *************** *
      ****
      "Marcin O" <marolej79@pocz ta.onet.pl> wrote in message
      news:bg2v1o$d38 $1@news.onet.pl ...[color=blue]
      > Hi all,
      > I installed first time 'Microsoft Visual Studio .NET 2002' and all is[/color]
      OK[color=blue]
      > (probably), except once thing. :(
      > When I have Managed C++ Application and I want to add to project my Web
      > Service which I earlier created and tested, I choose 'Add Web[/color]
      Reference...'[color=blue]
      > from Project menu. Dialog box open, where they should be three links, but[/color]
      I[color=blue]
      > have only two links without 'Web Reference on Local Web Server' - WHY??
      > When I write down URL of my Web Service to 'Address' field then in[/color]
      window[color=blue]
      > 'Available references:' is mistake:
      > "The document was not recognized as known document type (WSDL, XML, Shema,
      > or Discovery document) for the following reason:
      > -The content type 'application/octet - stream' is not valid for an XML
      > document"
      >
      > Greate THX for every help!
      > Marcin O.
      >
      >[/color]


      Comment

      • Cowboy \(Gregory A. Beamer\)

        #4
        Re: .NET and Web Service

        The "Add web services" capabilities are much better in 2003. I think the
        local server reference was added then.

        You should be able to point to the web service by aiming at the asmx like
        so:


        If you miss the ?WSDL, it is try to actually fire off the service, and the
        web reference will fail.

        --
        Gregory A. Beamer
        MVP; MCP: +I, SE, SD, DBA
        Author: ADO.NET and XML: ASP.NET on the Edge

        *************** *************** *************** *************** *************** *
        ****
        Think Outside the Box!
        *************** *************** *************** *************** *************** *
        ****
        "Marcin O" <marolej79@pocz ta.onet.pl> wrote in message
        news:bg2v1o$d38 $1@news.onet.pl ...[color=blue]
        > Hi all,
        > I installed first time 'Microsoft Visual Studio .NET 2002' and all is[/color]
        OK[color=blue]
        > (probably), except once thing. :(
        > When I have Managed C++ Application and I want to add to project my Web
        > Service which I earlier created and tested, I choose 'Add Web[/color]
        Reference...'[color=blue]
        > from Project menu. Dialog box open, where they should be three links, but[/color]
        I[color=blue]
        > have only two links without 'Web Reference on Local Web Server' - WHY??
        > When I write down URL of my Web Service to 'Address' field then in[/color]
        window[color=blue]
        > 'Available references:' is mistake:
        > "The document was not recognized as known document type (WSDL, XML, Shema,
        > or Discovery document) for the following reason:
        > -The content type 'application/octet - stream' is not valid for an XML
        > document"
        >
        > Greate THX for every help!
        > Marcin O.
        >
        >[/color]


        Comment

        Working...