WSDL and webservice
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: WSDL and webservice

  1. #1
    Join Date
    Mar 2003
    Location
    USA
    Posts
    102

    WSDL and webservice

    Hi ,
    I have a doc/literal wsdl. Using WSDL.exe utility I
    (WSDL /Server xxxxx.wsdl )created a stub code(to implement a server) that can
    be implemented as a webservice on IIS.

    What should I do if I want to implement the same as
    a .NET Remoting Windows Application?
    What changes should I have to make to the code generated by
    WSDL?

    Any ideas are welcome.

    Thanks,
    Raj

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    do you have WSDL as a remote dll then when you make a program in C#.NET,
    in your project reference you can add as web and search from folder and then reference that WSDL. so that It can be used there.

    hope it helps
    Paresh
    - Software Architect

  3. #3
    Join Date
    Mar 2003
    Location
    USA
    Posts
    102

    WSDL

    Hi Paresh,
    I don't have any remote dll.
    I just have a DocumentLiteral WSDL file given to me. I have been asked to implement the server as a webservice/.NET Remoting.
    With WSDL.exe(WSDL /Server option) we can generate an abstract class that inherits from WebServices class and not from MarshalByRefObject. What changes should I have to make on the generated code so that I can implement the server as a windows application rather than a .NeT webservice.

    p.s.
    I will pass this server location while invoking another webservice so that that webservice and invoke the functions in this server. Hope you understand what I am trying to say.

    Thanks for the reply paresh.

    Raj

  4. #4
    Join Date
    Jan 2002
    Location
    TamilNadu, India
    Posts
    158
    I think you'll have to compile your .cs code into a dll by using the csc.exe with a switch /lib. This will create a dll for you. But I've not used a webservice in a windows forms program.

    Thanks
    Muthu

  5. #5
    Join Date
    Jul 2002
    Location
    .NET 2.0/.NET 3.0/.NET 3.5 VS2005/VS2008
    Posts
    284
    I maded a webservice with starting an ASP.NET webservice project in visual studio. Then I completely implemented all functions and subs.

    After that I made a windows forms project and added a web reference to the webservice. After that I made a new instance in my program of the webservice object and just like the normal code I used it.

    Nothing at all with remoting dll's n such.
    WM.

    What about weapons of mass construction?

  6. #6
    Join Date
    Jan 2002
    Location
    TamilNadu, India
    Posts
    158
    Try looking into the ProjectDirectory\bin. An asp.net webservice project creates a .dll during compilation.
    Muthu

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center