Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 73778 invoked from network); 20 Mar 2007 19:06:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2007 19:06:58 -0000 Received: (qmail 58732 invoked by uid 500); 20 Mar 2007 19:07:01 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 58677 invoked by uid 500); 20 Mar 2007 19:07:01 -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 58665 invoked by uid 99); 20 Mar 2007 19:07:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2007 12:07:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2007 12:06:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 276E4714057 for ; Tue, 20 Mar 2007 12:06:32 -0700 (PDT) Message-ID: <16793704.1174417592157.JavaMail.jira@brutus> Date: Tue, 20 Mar 2007 12:06:32 -0700 (PDT) From: "Lin Sun (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-2353) Selecting a port name / wsdl provided scenario In-Reply-To: <23613752.1174416392816.JavaMail.jira@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 [ https://issues.apache.org/jira/browse/AXIS2-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482485 ] Lin Sun commented on AXIS2-2353: -------------------------------- Hi, I tried to replace String portTypeLP = getName(); with String portTypeLP = getAnnoWebServicePortName(); and was able to pass this. Then I ran into the following error on the client: Exception in thread "main" javax.xml.ws.WebServiceException: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'o' (code 111) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:179) at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:79) at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:133) at org.apache.axis2.jaxws.core.controller.AxisInvocationController.execute(AxisInvocationController.java:552) at org.apache.axis2.jaxws.core.controller.AxisInvocationController.doInvoke(AxisInvocationController.java:110) at org.apache.axis2.jaxws.core.controller.InvocationController.invoke(InvocationController.java:97) at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:265) at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:142) at $Proxy9.add(Unknown Source) at org.apache.geronimo.samples.jws.client.CalculatorClient.add(CalculatorClient.java:46) at org.apache.geronimo.samples.jws.client.CalculatorClient.main(CalculatorClient.java:33) Caused by: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'o' (code 111) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:212) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:165) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:113) at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:130) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:77) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:357) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295) at org.apache.axis2.jaxws.core.controller.AxisInvocationController.execute(AxisInvocationController.java:547) ... 7 more Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'o' (code 111) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:126) ... 15 more Attaching the files in a min. > Selecting a port name / wsdl provided scenario > ---------------------------------------------- > > Key: AXIS2-2353 > URL: https://issues.apache.org/jira/browse/AXIS2-2353 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: jaxws > Reporter: Davanum Srinivas > Assigned To: Rich Scheuerle > > Port Name confusion. > EndpointDesciptionImpl#selectWSDLPortToUse (Line 1396) says: > // Per JSR-181, > // - The portType name corresponds to the WebService.name annotation value, which is > // returned by getName() > // - The portType namespace corresponds to the WebService.targetNamespace annotation, which > // is returned by getTargetNamespace() > String portTypeLP = getName(); > BUT, EndpointDesciptionImpl#getAnnoWebServicePortName does this: > // This is the @WebService annotation path > // Default value is the @WebService.name of the class or interface + "Port" > // Per JSR-181 MR Sec 4.1, pg 15 > annotation_PortName = getAnnoWebServiceName() + "Port"; > So which is correct? > Here's the scenario we are trying: > http://cwiki.apache.org/GMOxDOC20/simple-web-service-with-jax-ws.html > We will upload the latest versions of wsdl/service/client as well. > -- dims -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org