[ 
https://issues.apache.org/jira/browse/AXIS2-5628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14154812#comment-14154812
 ] 

Andy Schmidt commented on AXIS2-5628:
-------------------------------------

I attached the new patch file 'AXIS2-5628_2.patch' which includes a refactored 
implementation of classes

- org.apache.axis2.osgi.deployment.AbstractRegistry
- org.apache.axis2.osgi.deployment.ServiceRegistry

In ServiceRegistry class the new methods were added.
- processServiceXMLFile
- processWSDLFile
- processWSDLs

The method 'addServices' in ServiceRegistry  are absolutely new 
implemented/refactored to deploy the Axis Service from WSDL and service XML 
files which are located inside the META-INF folder of the bundle. This way 
follows the deploy process like WAR/AAR files and is more stable.

The patch doesn't include formatting changes.

Note: I implemented the new classes
- OSGiBundleBasedWSDLLocator
- OSGiBundleFileBasedURIResolver
which are attached to this case as well, couldn't included into the patch and 
must be included by hand. Include the two new java file into package 
'org.apache.axis2.osgi.deployment.resolver'.

Currently I have no unit test for it. I deliver a unit test in the next time. 
But you can start to integrate my patch. The patch was created on the trunk of 
branch 1_6.

> Axis OSGi Bundle doesn't provide AxisServices with original WSDL
> ----------------------------------------------------------------
>
>                 Key: AXIS2-5628
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5628
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.6.2
>            Reporter: Andy Schmidt
>            Priority: Critical
>             Fix For: 1.7.0, 1.6.3
>
>         Attachments: AXIS2-5628.patch, AXIS2-5628_2.patch, 
> OSGiBundleBasedWSDLLocator.java, OSGiBundleFileBasedURIResolver.java, 
> ServiceRegistry.java, org.apache.axis2.osgi_patch.7z
>
>
> I am using the Axis2 OSGi Bundle in version 1.6.2. Currently its not possible 
> to provide AxisService with original WSDL files.
> So if i set the useOriginalwsdl parameter to 'true' like
> <service name="...">
>     <parameter name="useOriginalwsdl">true</parameter>
> </service>
> I get the error message
> <error><description>Unable to generate WSDL 1.1 for this 
> service</description><reason>If you wish Axis2 to automatically generate the 
> WSDL 1.1, then please set useOriginalwsdl as false in your 
> services.xml</reason></error>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to