[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to