Topic
  • 21 replies
  • Latest Post - ‏2013-06-18T15:01:20Z by bpaskin
6NQH_Santosh_Bhutkar
16 Posts

Pinned topic W3C SOAP JMS Service

‏2013-06-11T08:06:19Z |

I am following (http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzau.doc%2Fts22552_.htm) this doc to create W3C soap JMS service in IBM WAS.All the prodcuts required are of same or higher version.However WSDL created after follwing this doc has HTTP as a transport instead of SOAP/JMS.Is this an issue or am i missing somthing.Also i am getting timeout error in AXIS2 client of same service when changed the URL to "jms:jndi:requestaxis?&jndiURL=iiop//localhost:2810 &jndiConnectionFactoryName=qm1&jndiInitialContextFactory=com.ibm.websphere.naming.WsnInitialContextFactory &targetService=StockQuoteAxis&replyToName=replyaxis;" 

  • bpaskin
    bpaskin
    4203 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-11T11:46:24Z  

    Hi, that page only explains how to configure WMQ and WAS and not how to generate a SOAP over JMS web services.  You need to look http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzau.doc/ts20430_.htm and http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzau.doc/ts22553_.htm .

    Regards,

    Brian

  • 6NQH_Santosh_Bhutkar
    16 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-11T12:16:50Z  
    • bpaskin
    • ‏2013-06-11T11:46:24Z

    Hi, that page only explains how to configure WMQ and WAS and not how to generate a SOAP over JMS web services.  You need to look http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzau.doc/ts20430_.htm and http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzau.doc/ts22553_.htm .

    Regards,

    Brian

    Hi Brian,

    The link that i have followed has "what to do next " in which link mentioned by you are given so i have followed the steps already

    What i have done

    1.Configured MQ and WAS resources.

    2.Devlpoed JAX-RPC service and  ran Simple Java Listner.

    3.Devloped JAX-WS EJB service for W3C soap JMS the WSDL generated in 3 step has the issue mentioned above

    could you please cofirm is this an issue?

  • bpaskin
    bpaskin
    4203 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-11T13:06:10Z  

    Hi Brian,

    The link that i have followed has "what to do next " in which link mentioned by you are given so i have followed the steps already

    What i have done

    1.Configured MQ and WAS resources.

    2.Devlpoed JAX-RPC service and  ran Simple Java Listner.

    3.Devloped JAX-WS EJB service for W3C soap JMS the WSDL generated in 3 step has the issue mentioned above

    could you please cofirm is this an issue?

    Hi, you can replace the http endpoint with jms:endpoint_url to fix your WSDL issue.  The timeout can be caused by several issues, like no message available, incorrect port, etc.

    Regards,

    Brian

  • 6NQH_Santosh_Bhutkar
    16 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-11T13:11:37Z  
    • bpaskin
    • ‏2013-06-11T13:06:10Z

    Hi, you can replace the http endpoint with jms:endpoint_url to fix your WSDL issue.  The timeout can be caused by several issues, like no message available, incorrect port, etc.

    Regards,

    Brian

    Yes I change the transport details in  WSDL to SOAP JMS but the WSDL generated is not following the W3C soap Specification then.

    What am i asking here ,is this a known issue ? or am i following completely diffrent doc? 

    Please find attached WSDL 

    Attachments

  • bpaskin
    bpaskin
    4203 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-11T13:17:46Z  

    Yes I change the transport details in  WSDL to SOAP JMS but the WSDL generated is not following the W3C soap Specification then.

    What am i asking here ,is this a known issue ? or am i following completely diffrent doc? 

    Please find attached WSDL 

    Hi, I do not understand why you are saying it is not SOAP compliant.  The WSDL generated is 100% SOAP compliant.  I have not tried creating the items in the documentation you are trying to follow.

    Regards,

    Brian

  • 6NQH_Santosh_Bhutkar
    16 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-11T14:01:10Z  
    • bpaskin
    • ‏2013-06-11T13:17:46Z

    Hi, I do not understand why you are saying it is not SOAP compliant.  The WSDL generated is 100% SOAP compliant.  I have not tried creating the items in the documentation you are trying to follow.

    Regards,

    Brian

    I am not saying it is not soap compliant.But as per the W3C soap JMS Specification (http://www.w3.org/TR/2012/REC-soapjms-20120216/#WSDLUsage-3003) the transport entry in WSDL is wrong. Wanted to know is there any fix pack or update or something to avoid this issue

  • bpaskin
    bpaskin
    4203 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-11T14:05:21Z  

    I am not saying it is not soap compliant.But as per the W3C soap JMS Specification (http://www.w3.org/TR/2012/REC-soapjms-20120216/#WSDLUsage-3003) the transport entry in WSDL is wrong. Wanted to know is there any fix pack or update or something to avoid this issue

    Hi, Did you use amqwdeployWMQService to generate the WSDL?

    Regards,

    Brian

     

  • 6NQH_Santosh_Bhutkar
    16 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-11T14:09:26Z  
    • bpaskin
    • ‏2013-06-11T14:05:21Z

    Hi, Did you use amqwdeployWMQService to generate the WSDL?

    Regards,

    Brian

     

    No There are two apparoches.one is with amqwdeployWMQService and other one is with Eclipse.I foolwed the Eclispe one

  • bpaskin
    bpaskin
    4203 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-11T14:18:33Z  

    No There are two apparoches.one is with amqwdeployWMQService and other one is with Eclipse.I foolwed the Eclispe one

    Hi, Like I mentioned, I have not tried what what is written in the document.  However, naturally, if it is generating a WSDL for HTML and you are changing it for JMS, then the transport is going to be incorrect and must be changed.  I will take a look at this later, but I have been able to generate proper SOAP over JMS WSDLs using RAD without any issue.

    Are you using Eclipse or RAD and which version?

    Regards,

    Brian

  • bpaskin
    bpaskin
    4203 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-11T14:37:39Z  

    No There are two apparoches.one is with amqwdeployWMQService and other one is with Eclipse.I foolwed the Eclispe one

    I looked at the wsdl you provided.  You want the sample WSDL provided with WMQ updated?  The sample was not generated using the WSDL 1.1 specification, thus is not bound by the requirements for WSDL 1.1.

    Regards,

    Brian

  • 6NQH_Santosh_Bhutkar
    16 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-11T14:46:03Z  
    • bpaskin
    • ‏2013-06-11T14:37:39Z

    I looked at the wsdl you provided.  You want the sample WSDL provided with WMQ updated?  The sample was not generated using the WSDL 1.1 specification, thus is not bound by the requirements for WSDL 1.1.

    Regards,

    Brian

    Yes i want the WMQ updated WSDL.Also Could you please explain me the how to generate WSDL from amqwdeployWMQService command given in http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzau.doc%2Fts20430_.htm. I am getting MQJE001: Completion Code '2', Reason '2495' exception while creating WSDL (Step 7 in doc) .also class not found /StockQuoteAxis

  • bpaskin
    bpaskin
    4203 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-11T15:15:39Z  

    Yes i want the WMQ updated WSDL.Also Could you please explain me the how to generate WSDL from amqwdeployWMQService command given in http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzau.doc%2Fts20430_.htm. I am getting MQJE001: Completion Code '2', Reason '2495' exception while creating WSDL (Step 7 in doc) .also class not found /StockQuoteAxis

    Hi, these are sample applications.  You can request the sample to be updated by using the Request for Enhancement (RFE) site. http://www.ibm.com/developerworks/rfe/ .  

    You might have a problem with you setup as 2495 indicates that a module is missing.  Under the covers that application uses java2wsdl.  You can achieve the same thing by running java2wsdl.  http://pic.dhe.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=%2Fcom.ibm.websphere.express.doc%2Finfo%2Fexp%2Fae%2Frwbs_java2wsdl.html

    Regards,

    Brian

     

  • 6NQH_Santosh_Bhutkar
    16 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-15T18:34:39Z  
    • bpaskin
    • ‏2013-06-11T15:15:39Z

    Hi, these are sample applications.  You can request the sample to be updated by using the Request for Enhancement (RFE) site. http://www.ibm.com/developerworks/rfe/ .  

    You might have a problem with you setup as 2495 indicates that a module is missing.  Under the covers that application uses java2wsdl.  You can achieve the same thing by running java2wsdl.  http://pic.dhe.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=%2Fcom.ibm.websphere.express.doc%2Finfo%2Fexp%2Fae%2Frwbs_java2wsdl.html

    Regards,

    Brian

     

    I am stil not able to generate the wsdl from amqwdeployWMQService :(  Is this service generates same wsdl file as given in /tools/sample/axis folder in mq installation.If it is possible could you please send me the detailed steps from amqwdeployWMQService with errors and their workaround as well as if you any sample wsdl for soap jms then send that also

     

     

  • bpaskin
    bpaskin
    4203 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-17T11:39:59Z  

    I am stil not able to generate the wsdl from amqwdeployWMQService :(  Is this service generates same wsdl file as given in /tools/sample/axis folder in mq installation.If it is possible could you please send me the detailed steps from amqwdeployWMQService with errors and their workaround as well as if you any sample wsdl for soap jms then send that also

     

     

    Hi,

    What are you trying to achieve?  You want to create a WSDL from a POJO with the JMS bindings and transports?  If so, the issue is there is no annotation to allow this to happen, and this is why you need to manually change this in the WSDL. 

    Java annotations for JAX-WS : https://jax-ws.java.net/jax-ws-ea3/docs/annotations.html

    Regards,

    Brian

  • 6NQH_Santosh_Bhutkar
    16 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-17T11:45:36Z  
    • bpaskin
    • ‏2013-06-17T11:39:59Z

    Hi,

    What are you trying to achieve?  You want to create a WSDL from a POJO with the JMS bindings and transports?  If so, the issue is there is no annotation to allow this to happen, and this is why you need to manually change this in the WSDL. 

    Java annotations for JAX-WS : https://jax-ws.java.net/jax-ws-ea3/docs/annotations.html

    Regards,

    Brian

    Yeah Kind of only thing i have to create is SOAP JMS service.WSDL contains JMS address in WSdL but in transport it is showing http transport  <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

     

     

  • bpaskin
    bpaskin
    4203 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-17T12:22:43Z  

    Yeah Kind of only thing i have to create is SOAP JMS service.WSDL contains JMS address in WSdL but in transport it is showing http transport  <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

     

     

    Hi,

    Did you try making this a JAX-WS web service and not a JAX-RPC web service?

    http://pic.dhe.ibm.com/infocenter/wmqv7/v7r5/index.jsp?topic=%2Fcom.ibm.mq.doc%2Fts22553_.htm

    Brian

  • 6NQH_Santosh_Bhutkar
    16 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-18T04:20:28Z  
    • bpaskin
    • ‏2013-06-17T12:22:43Z

    Hi,

    Did you try making this a JAX-WS web service and not a JAX-RPC web service?

    http://pic.dhe.ibm.com/infocenter/wmqv7/v7r5/index.jsp?topic=%2Fcom.ibm.mq.doc%2Fts22553_.htm

    Brian

    Hi Brian,

    I am following Exactly this steps.But before this step there is prerequisite in which I have to make wsdl out of JAX-RPC service.And I am using WSDL created by JAX-RPC service in making JAX-WS web service to make it soap jms.But as the previous WSDL is HTTP i guess its picking the transport attribute from there.

  • bpaskin
    bpaskin
    4203 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-18T06:39:43Z  

    Hi Brian,

    I am following Exactly this steps.But before this step there is prerequisite in which I have to make wsdl out of JAX-RPC service.And I am using WSDL created by JAX-RPC service in making JAX-WS web service to make it soap jms.But as the previous WSDL is HTTP i guess its picking the transport attribute from there.

    Hi, As I mentioned above there is no way to specify the transport in the annotations and the transport must be changed by hand, if so desired. The soapjms transport that you cite is not a finalized standard, but a recommendation.  There currently is no standard how to make a soapjms WSDL and without annotations or another method to specify the transport and endpoint, so it is left up to the vendor for the time being. 

    Regards,

    Brian

  • 6NQH_Santosh_Bhutkar
    16 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-18T08:57:36Z  
    • bpaskin
    • ‏2013-06-18T06:39:43Z

    Hi, As I mentioned above there is no way to specify the transport in the annotations and the transport must be changed by hand, if so desired. The soapjms transport that you cite is not a finalized standard, but a recommendation.  There currently is no standard how to make a soapjms WSDL and without annotations or another method to specify the transport and endpoint, so it is left up to the vendor for the time being. 

    Regards,

    Brian

    I think  there is confusion between us.Let me clearify all the steps

    Basically i want one soap /jms (mq over soap) service from IBM.So i searched the same over net and found the link(http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzau.doc%2Fts22552_.htm) This link mentions the versions and softwares which are required for this task. 

    Softwares required 

    1.Rational software architect 7.5 with websphere test environment.

    2.Rational Application Devloper for Websphere 7.5 

    3.WebSphere apllication server community server

    4.Websphere MQ 7.0.1.3

    Steps 

    1.Configure the MQ and WAS resorces as per the link

    2.At the end of this document under what to do next heading there is link to next step for creating jax ws web service (http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzau.doc%2Fts22551_.htm)

    3.In this link it is mentioned that before creating this task you have to complete (http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzau.doc%2Fts22551_.htm) that is jax-rpc service

    4.So created the jax-rpc service and by stockquoteaxis.java sample program shipped with the mq

    5.Created the webservice with the same class in eclipse and made that service running on WASCE server

    6 Used the same wsdl from step 5 for creating jax-ws webservice

    7.At the end of step6 One wsdl gets created and it has transport attribut as http but soap address as JMS

    so as per document if it w3c soap jms service it transport attribute in wsdl should have soap/jms namespace 

     

     

  • bpaskin
    bpaskin
    4203 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-18T11:41:20Z  

    I think  there is confusion between us.Let me clearify all the steps

    Basically i want one soap /jms (mq over soap) service from IBM.So i searched the same over net and found the link(http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzau.doc%2Fts22552_.htm) This link mentions the versions and softwares which are required for this task. 

    Softwares required 

    1.Rational software architect 7.5 with websphere test environment.

    2.Rational Application Devloper for Websphere 7.5 

    3.WebSphere apllication server community server

    4.Websphere MQ 7.0.1.3

    Steps 

    1.Configure the MQ and WAS resorces as per the link

    2.At the end of this document under what to do next heading there is link to next step for creating jax ws web service (http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzau.doc%2Fts22551_.htm)

    3.In this link it is mentioned that before creating this task you have to complete (http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzau.doc%2Fts22551_.htm) that is jax-rpc service

    4.So created the jax-rpc service and by stockquoteaxis.java sample program shipped with the mq

    5.Created the webservice with the same class in eclipse and made that service running on WASCE server

    6 Used the same wsdl from step 5 for creating jax-ws webservice

    7.At the end of step6 One wsdl gets created and it has transport attribut as http but soap address as JMS

    so as per document if it w3c soap jms service it transport attribute in wsdl should have soap/jms namespace 

     

     

    Hi, As the WMQ documentation states, this is for a W3C Candidate Recommendation.  There is no finalized specification.  You are more than welcome to change the transport to the way you see fit.

    Brian

  • bpaskin
    bpaskin
    4203 Posts

    Re: W3C SOAP JMS Service

    ‏2013-06-18T15:01:20Z  

    I think  there is confusion between us.Let me clearify all the steps

    Basically i want one soap /jms (mq over soap) service from IBM.So i searched the same over net and found the link(http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzau.doc%2Fts22552_.htm) This link mentions the versions and softwares which are required for this task. 

    Softwares required 

    1.Rational software architect 7.5 with websphere test environment.

    2.Rational Application Devloper for Websphere 7.5 

    3.WebSphere apllication server community server

    4.Websphere MQ 7.0.1.3

    Steps 

    1.Configure the MQ and WAS resorces as per the link

    2.At the end of this document under what to do next heading there is link to next step for creating jax ws web service (http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzau.doc%2Fts22551_.htm)

    3.In this link it is mentioned that before creating this task you have to complete (http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzau.doc%2Fts22551_.htm) that is jax-rpc service

    4.So created the jax-rpc service and by stockquoteaxis.java sample program shipped with the mq

    5.Created the webservice with the same class in eclipse and made that service running on WASCE server

    6 Used the same wsdl from step 5 for creating jax-ws webservice

    7.At the end of step6 One wsdl gets created and it has transport attribut as http but soap address as JMS

    so as per document if it w3c soap jms service it transport attribute in wsdl should have soap/jms namespace 

     

     

    Hi,

    I created an RFE for this (http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=36081).  You can vote on the RFE or make comments on it, if you like.  Again, this is a "nice to have" since the specification is not finalized.

    Regards,

    Brian