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
Community moderators have prevented the ability to post new answers.
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?
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have created soap client that clones issues from one jira instance onto another.
System.setProperty("http.proxySet","true");
System.setProperty("http.proxyHost","wwwgate0.xxx.com");
System.setProperty("http.proxyPort","1080");
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");
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.