axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Nogueira" <>
Subject TCP error
Date Fri, 10 Oct 2008 02:07:59 GMT
Guys, I'm trying to use the TCP protocol on axis. I've already uncommented
the tag on axis2.xml:

 transportReceiver name="tcp"
 <parameter name="port">6060</parameter>

If I set the client to invoke "tcp://" it gives me
"com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog" I think
because of HTTP protocol.

If i set it to "tcp://" it gives
" Connection refused: connect at

Here's my client:

EndpointReference targetEPR = new EndpointReference(

  Options opts = new Options();
  opts.setTo(targetEPR );

//engaging addressing
ConfigurationContext ctx =
("D:\\axis2-1.4.1\\repository", null);
ServiceClient client = new ServiceClient(ctx,null);
  OMElement testando = client.sendReceive(getPayload());

 private static OMElement getPayload() {
            OMFactory fac = OMAbstractFactory.getOMFactory();
            OMNamespace omNs = fac.createOMNamespace(
                    "tcp://", "");
            OMElement method = fac.createOMElement("createSession", omNs);
            OMElement value = fac.createOMElement("Text", omNs);
            value.addChild(fac.createOMText(value, "Axis2 Echo String "));

            return method;
Am I doing something wrong?

And another question, is there a way of using TCP protocol without engaging
addressing? I'm trying to invoke a web service from Jgroups. As it works
over TCP, I'll try to build the SOAP Envelope and send it from another group
member to test if I can invoke the service. This member may not be another
Web service, so I don't know if I'm able to use addressing on it...

Best Regards,

Igor Nogueira

View raw message