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 "Jeff Barrett (JIRA)" <ji...@apache.org> on 2007/04/03 18:03: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_12486393 ] 

Jeff Barrett commented on AXIS2-2353:
-------------------------------------

Hi Lin,

That attached SEI and WSDL still don't match each other.

Given the SEI annotation:
@WebService(name="Calculator", portName="CalculatorPortType", targetNamespace = "http://jws.samples.geronimo.apache.org")
public interface Calculator {

The annotation attribute "name" which indicates the WSDL PortType has a 
value of "Calculator".  

Give th WSDL definition:
    <wsdl:portType name="CalculatorPortType">

The only PortType in the WSDL is named "CalculatorPortType".

You need to change EITHER the SEI annotation OR the WSDL.  It is probably 
easier to change the SEI annotation, so here's what the new SEI annotation 
would probably look like.  Notice I changed the attribute values for name 
and portName: 

@WebService(name="CalculatorPortType", portName="CalculatorPort", targetNamespace = "http://jws.samples.geronimo.apache.org")
public interface Calculator {

I hope that helps.


> 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: Jeff Barrett
>         Attachments: Calculator.java, CalculatorClient.java, CalculatorService.java, CalculatorService.wsdl
>
>
> 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