You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Lin Sun (JIRA)" <ji...@apache.org> on 2007/03/20 20:06:32 UTC
[jira] Commented: (AXIS2-2353) Selecting a port name / wsdl
provided scenario
[ 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.<init>(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