[ http://issues.apache.org/jira/browse/AXIS2-1569?page=all ]

Rajith Attapattu resolved AXIS2-1569.
-------------------------------------

    Fix Version/s: 1.1
       Resolution: Fixed
         Assignee: Rajith Attapattu

This is fixed in r470527 in the 1.1 branch.

Fixed it inside org.apache.axis2.deployment.ServiceBuilder


> Inconsistent behavior in Axis2 service deployment
> -------------------------------------------------
>
>                 Key: AXIS2-1569
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1569
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.4
>            Reporter: Charitha Kankanamge
>         Assigned To: Rajith Attapattu
>             Fix For: 1.1
>
>         Attachments: sample-mtom.aar, sample-swa.aar
>
>
> Axis2 refers a service by its name when the service is defined within a 
> service group. However it uses the archive name, when the service is 
> described in the service xml without specifying a serviceGroup.
> Steps to reproduce:
> ====================
> 1. Deploy the attached 'sample-mtom' service archive. (sample-mtom.aar)
> 2. Look at its services.xml
> <serviceGroup>
> <service name="MTOMSample">
> <messageReceivers>
> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"; 
> class="sample.mtom.service.MTOMSampleMessageReceiverInOut"/>
> </messageReceivers>
> <parameter locked="false" 
> name="ServiceClass">sample.mtom.service.MTOMSampleSkeleton</parameter>
> <operation name="attachment" mep="http://www.w3.org/2004/08/wsdl/in-out";>
> <actionMapping>attachment</actionMapping>
> <outputActionMapping>//schemas.xmlsoap.org/wsdl/MTOMServicePortType/AttachmentResponse</outputActionMapping>
> </operation>
> </service>
> </serviceGroup>
> 3. Service can be seen in the admin console as 'MTOMSample' (This is the name 
> of service inside the service group)
> 4. Deploy the attached 'sample-swa' service archive. (sample-swa.aar)
> 5. Look at the services.xml
>    ie:- 
>    <service name="SWASampleService">
>     <description>
>         This is a sample Web Service for illustrating Attachments API of Axis2
>     </description>
>     <parameter name="ServiceClass" 
> locked="false">sample.soapwithattachments.service.AttachmentService</parameter>
>     <operation name="uploadFile">
>         <actionMapping>urn:uploadFile</actionMapping>
>         <messageReceiver 
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>     </operation>
> </service>
> 6. In this case, service is displayed in the admin console as 'sample-swa' 
> (This is the name of archive)
> Following solutions can be suggested to overcome this issue.
> 1. All the services should be defined using <serviceGroup>, even if the 
> services.xml contains only one service.
>    Then the service can be displayed in the admin console by the specified 
> service name in services.xml.
>                                                            OR
> 2.  Throw a deployment error if service name and archive names are different 
> in a single service archive.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to