Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 26542 invoked from network); 10 Oct 2006 21:09:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2006 21:09:04 -0000 Received: (qmail 76236 invoked by uid 500); 10 Oct 2006 21:09:00 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 76195 invoked by uid 500); 10 Oct 2006 21:09:00 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 76184 invoked by uid 99); 10 Oct 2006 21:09:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2006 14:09:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2006 14:08:59 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 108687142DC for ; Tue, 10 Oct 2006 14:08:20 -0700 (PDT) Message-ID: <12720527.1160514500038.JavaMail.root@brutus> Date: Tue, 10 Oct 2006 14:08:20 -0700 (PDT) From: "yogen (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-1339) WSDL2Java client side stub code does not work with AXIS2 TCP Server In-Reply-To: <13791061.1160496448005.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-1339?page=comments#action_12441283 ] yogen commented on AXIS2-1339: ------------------------------ This is further information on this issue.... One difference I debugged is ... In TCP Server impl the MessageContext.Options.to value is never set. Therefore none of the org.apache.axis2.engine.xxxDispatcher classes find the service implementation. Whereas in HTTP Server implementation HttpTransportUtils.processHTTPPostRequest calls MessageContext.setTo to set it value to "/axis2/services/Axis2SampleDocLitServer". > WSDL2Java client side stub code does not work with AXIS2 TCP Server > ------------------------------------------------------------------- > > Key: AXIS2-1339 > URL: http://issues.apache.org/jira/browse/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\TCPClient.java *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(OutInAxisOperation.java:294) > at com.sample.Axis2SampleDocLitServiceStub.echoString(Axis2SampleDocLitServiceStub.java:505) > at TCP1Client.echoString(TCP1Client.java:28) > at TCP1Client.main(TCP1Client.java:17) > 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; > try{ > stub = new Axis2SampleDocLitServiceStub(null, "tcp://localhost:6060/axis2/services/Axis2SampleDocLitService"); > stub._getServiceClient().getOptions().setTo(new EndpointReference("tcp://localhost:6060/axis2/services/Axis2SampleDocLitService")); > stub._getServiceClient().getOptions().setTransportInProtocol(Constants.TRANSPORT_TCP); > stub._getServiceClient().engageModule(new QName(Constants.MODULE_ADDRESSING)); > System.out.println(echoString(stub)); > } catch(Exception e){ > e.printStackTrace(); > } > } > public static String echoString(Axis2SampleDocLitServiceStub stub){ > try{ > EchoStringParamDocument reqDoc00 = EchoStringParamDocument.Factory.newInstance(); > reqDoc00.setEchoStringParam("echo"); > EchoStringReturnDocument resDoc00 = stub.echoString(reqDoc00); > return resDoc00.getEchoStringReturn(); > } catch(Exception e){ > e.printStackTrace(); > } > return null; > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org