axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-2223) soap over jms
Date Fri, 16 Mar 2007 02:25:09 GMT

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

Davanum Srinivas commented on AXIS2-2223:
-----------------------------------------

Rajith,

Thoughts please...

-- dims

> soap over jms
> -------------
>
>                 Key: AXIS2-2223
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2223
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>    Affects Versions: 1.1.1
>         Environment: Linux Red Hat 3
>            Reporter: Fabio Ferri
>         Assigned To: Rajith Attapattu
>
> Hi all,  
> I am new to Axis2 and to axis in general. 
>   I need to create an Axis2 client starting from the WSDL provided by the server.  
> I have gone through changing the axis2.xml file with the filowing information: 
>   <transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener">
 
>     <parameter name="TibcoQueueConnectionFactory" locked="false">  
>             <parameter name="java.naming.factory.initial" locked="false">com.tibco.tibjms.naming.TibjmsInitialContextFactory</parameter>
>               <parameter name="java.naming.provider.url" locked="false">tibjmsnaming://localhost:7222</parameter>
 
>             <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">QueueConnectionFactory</parameter>
 
>     </parameter>  
> </transportReceiver> 
>   <transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"/>

>   and after that I have used the wsdl2java tool to generate the java stub. I have then
created a simple client that was using this stub:
>    
> public class testAxis2JMS {  
>         /**  
>          * @param args  
>          */  
>         public static void main(String[] args) {  
>                 // TODO Auto-generated method stub  
>         try{  
>                 String endpointURL = "jms:/TCM.INTEGRAT.REQ.ADDRESS?"  
>                 + "transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory"  
>                 + "&java.naming.factory.initial="   
>                   + "com.tibco.tibjms.naming.TibjmsInitialContextFactory"  
>                 + "&java.naming.provider.url=tibjmsnaming://localhost:7222"  
>                 + "&java.naming.security.principal=user"  
>                 + "&java.naming.security.credentials=password";           
>                   
>                 IntfTestWSfromXSDProcessServiceStub stub =   
>                         new IntfTestWSfromXSDProcessServiceStub(endpointURL);  
>                 Indirizzo ind = new Indirizzo();  
>                 ind.setCitta("Rome");  
>                 ind.setNumero(2);  
>                 ind.setVia("blabla");  
>                   
>                 Output out = stub.TestWSfromXSDProcessOp(ind);  
>                 System.out.println("Code : " + out.getCode());  
>                 System.out.println("Me : " + out.getMsg());  
>         } catch(Exception e){  
>             e.printStackTrace();  
>             System.out.println("\n\n\n");  
>         } 
>           }  
> } 
>   Now when I send the request to the jms server the message is successfully sent. The
problem is that the web service that I am calling needs to have some more information on the
JMS header sent from my client to the jms server.
>  
>  The jms message sent look like this:
>  $Header:  
> JMSMessageID=ID:EMS-SERVER.8A445C9FBB14:3  
> JMSTimestamp=Wed Feb 07 17:18:09 CET 2007  
> JMSDestination=Queue[TCM.INTEGRAT.REQ.ADDRESS]  
> JMSDeliveryMode=PERSISTENT  
> JMSCorrelationID=null  
> JMSType=null  
> JMSReplyTo=Queue[$TMP$.EMS-SERVER.8A445C9FBB14.3]  
> JMSPriority=4  
> $Properties:  
> SOAPAction="test/Axis2"  
> $Body:  
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
/><soapenv:Body><ns1:Indirizzo xmlns:ns1="http://www.tibco.com/schemas/eChannel/Schema.xsd"><ns1:citta>Rome</ns1:citta><ns1:via>blabla</ns1:via><ns1:numero>2</ns1:numero></ns1:Indirizzo></soapenv:Body></soapenv:Envelope>
>   The problem is that it should look like this: 
>   $Header:  
> JMSMessageID=ID:EMS-SERVER.8A445C9FBB184:8  
> JMSTimestamp=Thu Feb 08 10:09:16 CET 2007  
> JMSDestination=Queue[TCM.INTEGRAT.REQ.ADDRESS]  
> JMSDeliveryMode=PERSISTENT  
> JMSCorrelationID=null  
> JMSType=null  
> JMSReplyTo=Queue[$TMP$.EMS-SERVER.8A445C9FBB185.7]  
> JMSPriority=4  
> $Properties:  
> Content_Type=application/xml; charset="utf-8"  
> Mime_Version=1.0  
> SoapAction="test/Axis2"  
> $Body:  
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
/><soapenv:Body><ns1:Indirizzo xmlns:ns1="http://www.tibco.com/schemas/eChannel/Schema.xsd"><ns1:citta>Rome</ns1:citta><ns1:via>blabla</ns1:via><ns1:numero>2</ns1:numero></ns1:Indirizzo></soapenv:Body></soapenv:Envelope>
>   There are this two properties in the jms message header (Content_Type and Mime_Version)
that I need to add in order to make the Web Servixce server work.
> Apparently, API doesn't support custom JMS properties and I do not have an easy solution.
> regards,
> Fabio

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