Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

Java SOAP through HTTP firewall?

Thread view: 
Robert M. Gary - 21 Oct 2005 23:07 GMT
Is it true that there is no way to push a SOAP message from behind a
firewall because java's SOAP implementation does not allow the use of
proxys? The SOAPConnction object only allows a URL to be given (not a
URLConnection that supports proxys).

You must do...
           URL endpoint = new
URL("http://soapclient.com/xml/SQLDataSoap.WSDL");
           SOAPMessage response = connection.call(message, endpoint);

but really want to be able to do...

           URL endpoint = new
URL("http://soapclient.com/xml/SQLDataSoap.WSDL");
           URLConnection conn = endpoint.openConnection(proxy);
           //Send the message
           SOAPMessage response = connection.call(message, conn );

-Robert
Robert M. Gary - 22 Oct 2005 00:56 GMT
BTW: I'm already setting...
           System.getProperties().put("proxySet", "true");
           System.getProperties().put("proxyHost", "http://foo.com");
           System.getProperties().put("proxyPort", 8088);
           System.getProperties().put("socksProxyHost",
"http://foo.com");
           System.getProperties().put("http.proxyHost",
"http://http://foo.com");
           System.getProperties().put("http.proxyPort", 8088);

           System.setProperty("proxySet", "true");
           System.setProperty("http.proxyHost", "http://foo.com");
           //System.setProperty( "http.proxyPort", "8088");
           System.setProperty("http.proxyUser", "joe");
           System.setProperty("http.proxyPassword", "trust");

           System.setProperty("http.proxySet", "true");
           System.setProperty("http.proxyHost", "http://foo.com");
           //System.setProperty("http.proxyPort", 8088);
           System.setProperty("http.proxyUser", "joe");
           System.setProperty("http.proxyPassword", "trust");
Rogan Dawes - 24 Oct 2005 13:12 GMT
> BTW: I'm already setting...
>             System.getProperties().put("proxySet", "true");
[quoted text clipped - 17 lines]
>             System.setProperty("http.proxyUser", "joe");
>             System.setProperty("http.proxyPassword", "trust");

And therein lies your problems:

Does "http://foo.com" look like a hostname?

Rogan
Robert M. Gary - 27 Oct 2005 22:48 GMT
I made it up because I didn't want you to know the name of my actual
proxy host. Should I also publish my user and password? Would that be
helpful?

-Robert
Luc The Perverse - 28 Oct 2005 00:46 GMT
>I made it up because I didn't want you to know the name of my actual
> proxy host. Should I also publish my user and password? Would that be
> helpful?

Being a smart a.s is an excellent way to get experts to assist you.

Bravo!

Perhaps a more appropriate reaction would have been the realization that you
need to explain if you are going to change the code before asking others to
review it.

--
LTP

:)
Roedy Green - 31 Oct 2005 11:00 GMT
On Thu, 27 Oct 2005 17:46:42 -0600, "Luc The Perverse"
<sll_noSpamlicious_z_XXX_m@cc.usu.edu> wrote, quoted or indirectly
quoted someone who said :

>hould I also publish my user and password? Would that be
>> helpful?

Possibly, but you would set up a dummy account with just enough power
to let others help you.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Rogan Dawes - 28 Oct 2005 08:26 GMT
I wrote:

> And therein lies your problems:
>
> Does "http://foo.com" look like a hostname?
>
> Rogan

> I made it up because I didn't want you to know the name of my actual
> proxy host. Should I also publish my user and password? Would that be
> helpful?
>
> -Robert

My point was, you entered an URL, not a hostname. I don't care what the
name of your host was, just that what you entered could not possibly be one.

To spell it out to you in words of one syllable (oops - 3 right there!),
you should have done:

System.getProperties().put("proxyHost", "foo.com");

Rogan
Roedy Green - 22 Oct 2005 02:45 GMT
>The SOAPConnction object only allows a URL to be given (not a
>URLConnection that supports proxys).

how did you learn that?  I was under the impression that SOAP
piggybacked on HTTP and as such would not be meddling in such affairs.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.