webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to use a SOAP RPC Literal

  • 1.  How to use a SOAP RPC Literal

    Posted Wed October 24, 2007 01:53 PM

    Hello,

    I would like to learn how to use “SOAP RPC Literal” with webMethods.
    I get a wsdl file which specifies the use of RPC Literal.
    But when I create a new webServiceConnector and I use it, the RPC datas which are exchanged are not “RPC Literal” but “RPC Encoded”. I believe webMethods uses “RPC Encoded” by default. Can I specify to webMethods to use “RPC Literal” encoding style?
    Could you give me some indications or advice.


    #soa
    #webMethods
    #API-Management


  • 2.  RE: How to use a SOAP RPC Literal

    Posted Wed October 24, 2007 03:44 PM

    I don’t believe IS 6.x supports RPC/Literal encoding. I did confirm that IS 7.1 (now in FCS release) does support this SOAP messaging style.

    Mark


    #webMethods
    #soa
    #API-Management


  • 3.  RE: How to use a SOAP RPC Literal

    Posted Tue February 05, 2008 08:22 AM

    Can I convert a RPC/Encoded WSDL file into a RPC/Literal WSDL? RPC/Encoded does not be supported by JAX-WS.


    #soa
    #webMethods
    #API-Management


  • 4.  RE: How to use a SOAP RPC Literal

    Posted Tue February 05, 2008 10:14 PM

    Can you provide a bit more information about what you are attempting to accomplish? What role does IS play in your web services scenario? Publisher or consumer?

    If IS 7.1 is publishing a web service just configure the publisher web services descriptor node to use RPC/Literal.

    Mark


    #webMethods
    #soa
    #API-Management


  • 5.  RE: How to use a SOAP RPC Literal

    Posted Tue February 05, 2008 11:36 PM

    In this case, my IS worked as a publisher. I published a IS service as a web service in IS6.15 using default RPC/Encoded WSDL binding style/use model. But, SOAP-RPC/Encoded model is not WS-I compliant, and not be supported by wsimport within NetBeans. It got an error “[ERROR] rpc/encoded wsdls are not supported in JAXWS 2.0.” when I try to create a web service client in NetBeans to consume this web service.


    #API-Management
    #soa
    #webMethods


  • 6.  RE: How to use a SOAP RPC Literal

    Posted Tue February 05, 2008 11:52 PM

    Allen,

    IS 6.5 does not support RPC/Literal although you could create a custom soap processor to get the job done. See discussions in this forum on creating document/literal soap processors. The principles will be similar and it might be easier to go with doc/lit (widely supported) than to figure out how to get IS 6.5 to grok rpc/literal.

    Mark


    #API-Management
    #soa
    #webMethods


  • 7.  RE: How to use a SOAP RPC Literal

    Posted Wed February 06, 2008 12:25 AM

    Thanks MC,I have manually converted the WSDL from rpc/enc to rpc/lit, and finally load the rpc/lit WSDL into NetBeans using JAX-WS wsimport utility to generate the java code.


    #API-Management
    #soa
    #webMethods


  • 8.  RE: How to use a SOAP RPC Literal

    Posted Wed February 06, 2008 12:57 AM

    Allen,

    I would be surprised if the generated java client would create the correct message. If the endpoint URL remains http://is_host:port/soap/rpc, the default rpc soap processor would not understand an rpc/literal (or document/literal) message.

    Mark


    #webMethods
    #API-Management
    #soa


  • 9.  RE: How to use a SOAP RPC Literal

    Posted Wed February 06, 2008 02:55 AM

    Hi Mark,
    Good point, I have the same concern.
    But, I did a test for a simple web service “Add2Numbers” right now, and the outcome was just fortunately right.
    What I did for the rpc/enc–>rpc/lit convertion was deleting the “encoding” bits and changing the “encoded” into “literal”.
    Regards,
    Allen


    #soa
    #API-Management
    #webMethods