axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yogen (JIRA)" <>
Subject [jira] Created: (AXIS2-1339) WSDL2Java client side stub code does not work with AXIS2 TCP Server
Date Tue, 10 Oct 2006 16:07:28 GMT
WSDL2Java client side stub code does not work with AXIS2 TCP Server

                 Key: AXIS2-1339
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: core
    Affects Versions: 1.1
         Environment: Sun JVM 1.5, Axis2 1.1, WinXP
            Reporter: yogen
            Priority: Critical

The sample service axis2-rc1\samples\userguide\MyService.aar and client 
\axis2-rc1\samples\userguide\src\userguide\clients\ *works* with AXIS2 TCP Server.

But the code generated using wsdl2java for \axis2-rc1\samples\wsdl\Axis2SampleDocLit.wsdl
and service Axis2SampleDocLitService.aar *does not work* with AXIS2 TCP Server (works with
HTTP Server).
1. the code is generated like this: >wsdl2java -d xmlbeans -p com.sample -ss -sd -g -uri
Axis2SampleDocLit.wsdl -pn Axis2SampleDocLitPort
2. the service runs on port 6060.
3. Running the client code throws this exception stack trace:
Oct 10, 2006 12:06:02 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : addressing-1.09
org.apache.axis2.AxisFault: Service not found operation terminated !!
	at org.apache.axis2.description.OutInAxisOperationClient.execute(
	at com.sample.Axis2SampleDocLitServiceStub.echoString(
	at TCP1Client.echoString(
	at TCP1Client.main(

The client code is attached:
import javax.xml.namespace.QName;

import org.apache.axis2.Constants;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.userguide.xsd.*;
import com.sample.*;

public class TCP1Client{

    public static void main(java.lang.String args[]){
        Axis2SampleDocLitServiceStub stub = null;
            stub = new Axis2SampleDocLitServiceStub(null, "tcp://localhost:6060/axis2/services/Axis2SampleDocLitService");
            stub._getServiceClient().getOptions().setTo(new EndpointReference("tcp://localhost:6060/axis2/services/Axis2SampleDocLitService"));
            stub._getServiceClient().engageModule(new QName(Constants.MODULE_ADDRESSING));
        } catch(Exception e){

    public static String echoString(Axis2SampleDocLitServiceStub stub){
            EchoStringParamDocument reqDoc00 = EchoStringParamDocument.Factory.newInstance();

            EchoStringReturnDocument resDoc00 = stub.echoString(reqDoc00);

            return resDoc00.getEchoStringReturn();
        } catch(Exception e){
        return null;


This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message