(WID/WPS) StandAlone Reference Client Implementation

Following imports are required to implement this :


<%@ page import="com.ibm.websphere.sca.ServiceManager" %>
<%@ page import="com.ibm.websphere.sca.Service" %>
<%@ page import="commonj.sdo.DataObject" %>
<%@ page import="com.ibm.websphere.bo.BOFactory" %>


Code snippet :


ServiceManager serviceManager = new ServiceManager();
BOFactory bofactory = (BOFactory) serviceManager.locateService("com/ibm/websphere/bo/BOFactory");

// Create the request DO
DataObject input = bofactory.createByElement("http://WSLib/IProviderSync", "syncOp");
input.setString("in", "My_Input");


// "http://WSLib/IProviderSync" is the namespace of the interface containing "syncOp" operation, // which are going to call through standalone reference.
// "in" is the input name of the operation.


// Send the request
Service service = (Service) serviceManager.locateService("IProviderSyncPartner");
// "IProviderSyncPartner" is the name of the reference partner of the standalone reference.
DataObject output = (DataObject)service.invoke("syncOp", input);


// Get the response
String outputDoTest = output.getString("out");
// "out " is the  output name of the operation.


Interface


Standalone reference property


Note : We should bundle this client app into the EAR which has standalone reference.

9 comments:

  1. What is a stand alone reference...?

    http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/index.jsp?topic=/com.ibm.websphere.wps.620.doc/welcome_wps.html

    ReplyDelete
    Replies
    1. @Abhi, I think you are referring this:

      http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/index.jsp?topic=/com.ibm.wbit.620.help.basics.doc/topics/csaref.html

      Delete
  2. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.
    Best Selenium Training in Chennai | Selenium Training Institute in Chennai | Besant Technologies
    Best AWS Training in Chennai | Amazon Web Services Training in Chennai

    ReplyDelete
  3. This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.

    angularjs-Training in velachery

    angularjs-Training in annanagar

    angularjs Training in chennai

    angularjs Training in chennai

    ReplyDelete
  4. I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog. 
    python interview questions and answers | python tutorials

    ReplyDelete
  5. hank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me 

    Java training in Tambaram | Java training in Velachery

    Java training in Omr | Oracle training in Chennai

    ReplyDelete
  6. Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.
    Data Science Training in Chennai | Data Science course in anna nagar

    Data Science course in chennai | Data science course in Bangalore

    Data Science course in marathahalli | Data Science course in btm layout

    ReplyDelete
  7. I would like to thank you for your nicely written post, its informative and your writing style encouraged me to read it till end. Thanks

    devops online training

    aws online training

    data science with python online training

    data science online training

    rpa online training

    ReplyDelete