File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Languages and the fly likes .NET equivalent of a URL object? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Other Languages
Bookmark ".NET equivalent of a URL object?" Watch ".NET equivalent of a URL object?" New topic
Author

.NET equivalent of a URL object?

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1054
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
John Schretz
Ranch Hand

Joined: Sep 10, 2008
Posts: 188
In C# I have used something like this:

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1054
John Schretz wrote:In C# I have used something like this:



Awesome!!!

Thanks very much.

-mike
John Schretz
Ranch Hand

Joined: Sep 10, 2008
Posts: 188
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
Ranch Hand

Joined: Jul 12, 2002
Posts: 1054
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .NET equivalent of a URL object?