axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3205) org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService() doesn't support WSDL definition with imported WSDLs
Date Tue, 06 Nov 2007 10:32:00 GMT

    [ 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


Mime
View raw message