• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

.NET equivalent of a URL object?

 
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a Servlet that I need to do a POST to from a .NET web service client.

The problem was that I had to write the client in .NET since the JAX-WS client had trouble with the .NET web service's wsdl.

So, I'm in a regular .NET web service client class and have retrieved the String from the .NET web service. Now, I just need to POST it to the Servlet running under Tomcat.

Anyone know how to do in .NET what's easy with a Java URL object?

Thanks in advance.

-mike
 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In C# I have used something like this:

 
Mike London
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John Schretz wrote:In C# I have used something like this:



Awesome!!!

Thanks very much.

-mike
 
John Schretz
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Im at work now. That is just from memory. I have the code for both at home. If you are still stuck tonight i can post both my C# code and Servlet code when i get home later.
Let me know how it works out.
 
Mike London
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John Schretz wrote:Im at work now. That is just from memory. I have the code for both at home. If you are still stuck tonight i can post both my C# code and Servlet code when i get home later.
Let me know how it works out.



Nope, got it working fine. Thanks again very much.

- mike
 
reply
    Bookmark Topic Watch Topic
  • New Topic