IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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

Unable to Generate webServices from WM wsdl

  • 1.  Unable to Generate webServices from WM wsdl

    Posted Thu November 25, 2004 06:51 PM

    Ok, I have a web Service published on an Oracle OC4J App Server for which I can generate a web Service connector and consume via SOAP-RPC.

    I then generated
    Pkg: TestWS
    Folder: docTypes
    document: wsOutput
    exchRate String
    Folder: JDBC
    testWS Connection
    Folder: Utils
    CustomJDBC “select todays_rate from exch_rate where country_Name=?”
    getExchange Flow Service
    pipelineIN: countryName String
    pipelineOut: DocRef to wsOutput named getRateOut
    :getRateOutput:results:exchRate mapped to DocRef:exchRate
    (all others vars dropped in pipelineOut)
    I set execute to Anonymous

    I can invoke this WS from URL
    [url]http://saker:7777/invoke/utils/getExchange?countryName=Canada[/url]
    and get Results

    getRateOut exchRate 1.181482
    countryNameList Canada

    If I generate WSDL and try and create a connector to it from another package I never get anything in the soap-return
    The document generated for output is empty unlike my external WS which has a return document and SOAP-FAULT document

    When I test the wm generated WebService I get this in my pipeline after SOAP-RPC

    <?xml>
    <soap-env:envelope>
    <soap-env:body>
    <ser-root:getratewsresponse>
    </ser-root:getratewsresponse>
    </soap-env:body>
    </soap-env:envelope>

    When Invoke my externally generated WS I get
    <?xml>
    <soap-env:envelope>
    <soap-env:body>
    <ns1:hellowsresponse>
    <return>
    <textout>Hello There Integration Server!</textout>
    </return>
    </ns1:hellowsresponse>

    Here is the generated WSDL from wm.
    I have been looking online and at the WebServicesDevGuide.pdf but have not found the key to my mistake.

    </soap-env:body>

    </soap-env:envelope>

    generatedWSDL
    getRateSOAPRPC.wsdl (2.0 k)


    #webMethods
    #soa
    #API-Management


  • 2.  RE: Unable to Generate webServices from WM wsdl

    Posted Thu November 25, 2004 08:09 PM

    Some followup Information,
    I created my output document (wsOutput) in exactly the same format as the output from JDBC adapter server which is
    Doc:getRateOutput
    |
    ->DocList:results
    |
    ->String:exchRate

    and in the pipeline I remapped the toplevel output to this new document type.
    I regenereated WSDL and just for a lark I generated a server side stub for this in another java development tool and I was given 2 classes for the document
    wsOuptut which contains an array of results
    which contains a string exchRate
    public class wsOutput
    {
    private results public class results
    […]
    and
    public class results
    { private String m_exchRate;
    […]
    But wm Would not generate an output document from that WSDL.


    #soa
    #webMethods
    #API-Management


  • 3.  RE: Unable to Generate webServices from WM wsdl

    Posted Thu November 25, 2004 10:07 PM

    Okay, my bad
    Or maybe not. What i needed to do , or what worked for me anyway was
    on input/output tab of the Flow Service specify what my output type was to be and make sure I mapped that variable properly as the result of the Flow…

    <doh!>


    #API-Management
    #soa
    #webMethods