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 "Raymond Feng (JIRA)" <ji...@apache.org> on 2007/09/15 05:03:32 UTC

[jira] Created: (AXIS2-3205) org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService() doesn't support WSDL definition with imported WSDLs

org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService() doesn't support WSDL definition with imported WSDLs
-----------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-3205
                 URL: https://issues.apache.org/jira/browse/AXIS2-3205
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.3
            Reporter: Raymond Feng
         Attachments: rfeng-findservice.patch

We have a case that WSDL definition that has imported definitions. When the definition is passed to org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findService(Definition), the imported definition is not honored.  The issue is in the findService(Definition) method:

    private Service findService(Definition definition) throws AxisFault {
        Map services = definition.getServices();
        Service service = null;
        if (serviceName != null) {
            // i.e if a user has specified a pirticular port
            service = (Service) services.get(serviceName);
            if (service == null) {
                throw new AxisFault("Service " + serviceName
                                    + " was not found in the WSDL");
            }
        } else {
...

The fix will be very simple: service = definition.getService(serviceName);

I'll attach a patch for that.

-- 
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


[jira] Updated: (AXIS2-3205) org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService() doesn't support WSDL definition with imported WSDLs

Posted by "Raymond Feng (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng updated AXIS2-3205:
--------------------------------

    Attachment: rfeng-findservice.patch

> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService() doesn't support WSDL definition with imported WSDLs
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3205
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3205
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>            Reporter: Raymond Feng
>         Attachments: rfeng-findservice.patch
>
>
> We have a case that WSDL definition that has imported definitions. When the definition is passed to org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findService(Definition), the imported definition is not honored.  The issue is in the findService(Definition) method:
>     private Service findService(Definition definition) throws AxisFault {
>         Map services = definition.getServices();
>         Service service = null;
>         if (serviceName != null) {
>             // i.e if a user has specified a pirticular port
>             service = (Service) services.get(serviceName);
>             if (service == null) {
>                 throw new AxisFault("Service " + serviceName
>                                     + " was not found in the WSDL");
>             }
>         } else {
> ...
> The fix will be very simple: service = definition.getService(serviceName);
> I'll attach a patch for that.

-- 
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


[jira] Resolved: (AXIS2-3205) org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService() doesn't support WSDL definition with imported WSDLs

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-3205.
-------------------------------------------------

    Resolution: Won't Fix

Since it is possible to start the code generation with the wsdl containing the required service. No need this fix.

> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService() doesn't support WSDL definition with imported WSDLs
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3205
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3205
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>            Reporter: Raymond Feng
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: rfeng-findservice.patch
>
>
> We have a case that WSDL definition that has imported definitions. When the definition is passed to org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findService(Definition), the imported definition is not honored.  The issue is in the findService(Definition) method:
>     private Service findService(Definition definition) throws AxisFault {
>         Map services = definition.getServices();
>         Service service = null;
>         if (serviceName != null) {
>             // i.e if a user has specified a pirticular port
>             service = (Service) services.get(serviceName);
>             if (service == null) {
>                 throw new AxisFault("Service " + serviceName
>                                     + " was not found in the WSDL");
>             }
>         } else {
> ...
> The fix will be very simple: service = definition.getService(serviceName);
> I'll attach a patch for that.

-- 
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


[jira] Assigned: (AXIS2-3205) org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService() doesn't support WSDL definition with imported WSDLs

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi reassigned AXIS2-3205:
---------------------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService() doesn't support WSDL definition with imported WSDLs
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3205
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3205
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>            Reporter: Raymond Feng
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: rfeng-findservice.patch
>
>
> We have a case that WSDL definition that has imported definitions. When the definition is passed to org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findService(Definition), the imported definition is not honored.  The issue is in the findService(Definition) method:
>     private Service findService(Definition definition) throws AxisFault {
>         Map services = definition.getServices();
>         Service service = null;
>         if (serviceName != null) {
>             // i.e if a user has specified a pirticular port
>             service = (Service) services.get(serviceName);
>             if (service == null) {
>                 throw new AxisFault("Service " + serviceName
>                                     + " was not found in the WSDL");
>             }
>         } else {
> ...
> The fix will be very simple: service = definition.getService(serviceName);
> I'll attach a patch for that.

-- 
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


[jira] Commented: (AXIS2-3205) org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService() doesn't support WSDL definition with imported WSDLs

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540398 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-3205:
-----------------------------------------------------

well let me ask this question. 
Why don't you give the wsdl name which contains the service element. You can start generating code with that.

> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService() doesn't support WSDL definition with imported WSDLs
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3205
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3205
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>            Reporter: Raymond Feng
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: rfeng-findservice.patch
>
>
> We have a case that WSDL definition that has imported definitions. When the definition is passed to org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findService(Definition), the imported definition is not honored.  The issue is in the findService(Definition) method:
>     private Service findService(Definition definition) throws AxisFault {
>         Map services = definition.getServices();
>         Service service = null;
>         if (serviceName != null) {
>             // i.e if a user has specified a pirticular port
>             service = (Service) services.get(serviceName);
>             if (service == null) {
>                 throw new AxisFault("Service " + serviceName
>                                     + " was not found in the WSDL");
>             }
>         } else {
> ...
> The fix will be very simple: service = definition.getService(serviceName);
> I'll attach a patch for that.

-- 
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