You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pedro Queirós <pq...@telbit.pt> on 2005/08/25 13:37:28 UTC

302 Moved - firewall??

Hi,

I developed a Java class that invokes an Axis WebService like this:

Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new
java.net.URL("http://www.mydomain.pt/ws"));
call.setOperationName(new QName("http://soapinterop.org/","deliverMethod"));
call.invoke(mydata);

I tested it in my machine and it is working fine.
I tested it in a remote machine without proxy and it is still working

I need to install it in a remote machine which uses proxy and proxy
autentication and, with this definitions:

System.setProperty("http.proxyHost","proxy.domain.pt");
System.setProperty("http.proxyPort","3128"));
System.setProperty("http.proxyUser","user");
System.setProperty("http.proxyPassword","pass");

I can use the proxy and autentication.

####################

My problem is that in the remote machine with proxy I get a 302 Moved,
while in the other everything is good:

LOG from local machine (with log4j DEBUG):
(...)
- XML sent:
- ---------------------------------------------------
- POST http://www.domain.pt/ws HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: www.domain.pt
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 1171

null
- HTTP/1.0 200 OK
- Date Thu, 25 Aug 2005 10:01:43 GMT
- Server Apache-Coyote/1.1
- Content-Type text/xml;charset=utf-8
- X-Cache MISS from www.domain.pt
- X-Cache MISS from gw-city.domain.pt
- X-Cache-Lookup MISS from gw-city.domain.pt:3128
- Proxy-Connection close
- Enter: SOAPPart ctor(FORM_INPUTSTREAM)
- org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
- Setting current message form to: FORM_INPUTSTREAM (currentMessage is
now org.apache.axis.transport.http.SocketInputStream)
- Exit: SOAPPart ctor()
- org.apache.axis.i18n.resource::handleGetObject(no00)
-
no Content-Length
- org.apache.axis.i18n.resource::handleGetObject(xmlRecd00)
-
XML received:
- -----------------------------------------------
(...)


LOG from remote machine (with log4j DEBUG):
(...)
- XML sent:
- ---------------------------------------------------
- POST http://www.telbit.pt/ir HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: www.telbit.pt
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 1167
Proxy-Authorization: Basic aXYwMDAwMjE6N2JvbGhhQHRtbg==

null
- HTTP/1.0 302 Moved
- Location
http://10.101.1.72:15871/cgi-bin/blockpage.cgi?ws-session=3372246455
- Pragma no-cache
- Cache-Control no-cache
- org.apache.axis.i18n.resource::handleGetObject(return01)
- (302)Moved
- Enter: SOAPPart ctor(FORM_FAULT)
- org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
- Setting current message form to: FORM_FAULT (currentMessage is now
org.apache.axis.AxisFault)
- Exit: SOAPPart ctor()
- org.apache.axis.i18n.resource::handleGetObject(exception00)
- Exception:
- NSPush (32)
- org.apache.axis.i18n.resource::handleGetObject(empty00)
- NSPop (empty)
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (302)Moved
faultActor:
faultNode:
faultDetail:
        {}string: return code:  302


(302)Moved
        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
        at org.apache.axis.client.Call.invoke(Call.java:2553)
        at org.apache.axis.client.Call.invoke(Call.java:2248)
        at org.apache.axis.client.Call.invoke(Call.java:2171)
        at org.apache.axis.client.Call.invoke(Call.java:1691)
        at com.telbit.pm.ws.WSCommunication.sendIR(Unknown Source)
        at com.telbit.pm.ws.WSCommunication.send(Unknown Source)
        at com.telbit.pm.ws.WSCommunication.main(Unknown Source)
- org.apache.axis.i18n.resource::handleGetObject(toAxisFault00)
- NSPush (32)
- org.apache.axis.i18n.resource::handleGetObject(empty00)
- NSPop (empty)
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (302)Moved
faultActor:
faultNode:
faultDetail:
        {}string: return code:  302


(302)Moved
        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
        at org.apache.axis.client.Call.invoke(Call.java:2553)
        at org.apache.axis.client.Call.invoke(Call.java:2248)
        at org.apache.axis.client.Call.invoke(Call.java:2171)
        at org.apache.axis.client.Call.invoke(Call.java:1691)
        at com.telbit.pm.ws.WSCommunication.sendIR(Unknown Source)
        at com.telbit.pm.ws.WSCommunication.send(Unknown Source)
        at com.telbit.pm.ws.WSCommunication.main(Unknown Source)


####################

Does anyone knows the problem?
I think there is no problem with my Java class! Is it a problem with the
remote machine (firewall)?

thanks for any help!

Pedro Queirós