Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How/Where to set proxy details when running soap client

Nazia Tarannum
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

I have set proxy details while creating soap client as below, and it created successfully, but how/where to set PROXY DETAILS while running soap client?? Please advise

java -Dhttps.proxyHost="wwwxxxx.xxx.com" -Dhttps.proxyPort="1080" org.apache.axis.wsdl.WSDL2Java https://xxxx.xxxxxx.com/jira/rpc/soap/jirasoapservice-v2?wsdl

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 21, 2012

Er, you appear to have answered your own question. If the "create" worked successfully, then you've got the client past the proxy.

I suspect I'm misunderstanding the question though. Could you explain/expand?

Nazia Tarannum
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2012

Initially for creating soap client, I was getting error as unknown host, I added proxy details to the command to create soap client, & I was able to create soap client successfully.

Now while am running the soap client, now I see error again:

AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

faultSubcode:

faultString: java.net.UnknownHostException: xxx.xxx.com

faultActor:

faultNode:

faultDetail:

{http://xml.apache.org/axis/}stackTrace:java.net.UnknownHostException: xxx.xxx.com

Where do I set the proxy details now, can we set as part of the url?If yes, then how?

Nazia Tarannum
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 26, 2012

I have created soap client that clones issues from one jira instance onto another.

Initially I got UnknowHostException: for edart.xxxxxx.com

Then I set proxy details as below before fetching eDart token:
System.setProperty("http.proxySet","true");
System.setProperty("http.proxyHost","wwwgate0.xxx.com");
System.setProperty("http.proxyPort","1080");
And I have disabled proxy as below before fetching dev01 token:
System.getProperties().remove("http.proxySet");
System.getProperties().remove("http.proxyHost");
System.getProperties().remove("http.proxyPort");
System.setProperty("http.proxySet","false");
System.getProperties().put("http.nonProxyHosts", "xxxxxdev01.xxx.xxx.com");
After adding above code, finally this error doesn't appear anymore "UnknowHostException: for edart.xxxxx.com"
But now some new error appears.. as below
Now after adding proxy settings, we cannot create token for dev01(second jira instance/target), though am disabling proxy before creating token for dev01.
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (503)Service Unavailable
faultActor:
faultNode:
faultDetail:
{}:return code: 503
<HTML><HEAD>
<FONT face="Helvetica">
Your request could not be processed because an error occurred contacting the DNS server.
</FONT>
<TR><TD>
<FONT face="Helvetica">
The DNS server may be temporarily unavailable, or there could be a network problem.
</FONT>
<BR>
For assistance, contact your network support team.
</FONT>
</BODY></HTML>
{http://xml.apache.org/axis/}HttpErrorCode:503
(503)Service Unavailable
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

I tried all combinations, please if anyone have any idea/workaround, please suggest.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 26, 2012

What I'm reading here is that you can run it with a proxy, and when you then deliberately disable that proxy, the service can't resolve the target server name. That makes perfect sense - you need the proxy to talk to the service. So I don't understand why you don't just keep running with the proxy.

TAGS
AUG Leaders

Atlassian Community Events