function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jayant Kumar JaiswalJayant Kumar Jaiswal 

Can we consume SOAP Web Services built over JMS from Salesforce Apex code?

We have a existing system which is exposing SOAP over JMS. Can we consume those API's from Apex?
I worked on SOAP over https/http in salesforce but not on SOAP over JMS.

How different is it to implement?
Prady01Prady01
Hi, If the sevice is exposed then you can contact that sevice using apex.


Thanks
Prady01
Jayant Kumar JaiswalJayant Kumar Jaiswal
Thanks @Pradya01 

But I'm wanted to ask in question whether the Client side apex Code(While consuing the API) for SOAP over JMS differes from regular SOAP over https or http.

I've found a article which is quite helpful.
http://www.oracle.com/technetwork/articles/murphy-soa-jms-092653.html 

"The Java code for the client and service don't change when SOAP over JMS is configured as the transport protocol. In fact, a Web service can support SOAP over JMS and SOAP over HTTP at the same time. The difference between using these protocols is apparent in how the Web service endpoints are defined."

This stands true for Java. So a POC for doing this in Apex will be helpful.

Regards,
Jayant
Prady01Prady01
Hi, I am not sure about your sentence 

"The Java code for the client and service don't change when SOAP over JMS is configured as the transport protocol. In fact, a Web service can support SOAP over JMS and SOAP over HTTP at the same time. The difference between using these protocols is apparent in how the Web service endpoints are defined."

But in a general point of view. I presume the Java class was created from WSDL file. You can use the WSDL file to create and apex class (with other settings like adding the remote site setting..etc) and this way you can call the service. 

You can upload the wsdl file to salesforce and salesforce will convert the wsdl file to an apex class. 

Thanks,
Prady01