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

Wsdl (rpc)

webMethods Community Member

webMethods Community MemberFri July 06, 2007 01:12 PM

  • 1.  Wsdl (rpc)

    Posted Wed July 04, 2007 02:19 PM

    Hi,

    I am using webMethods6.5 . I created a flow service which concatinates 2 strings and its working fine. I then generated a WSDL (RPC) for that service and i am not getting the output. Can anyone help me in this regard.

    Thanks in advance

    Prabhu Kanthi


    #webMethods
    #soa
    #API-Management


  • 2.  RE: Wsdl (rpc)

    Posted Wed July 04, 2007 07:50 PM

    Can you be more specific? I did this exact thing yesterday to expose the pub.math:addInts service as an RPC / encoded web service operation using IS 6.5 SP2.


    #soa
    #webMethods
    #API-Management


  • 3.  RE: Wsdl (rpc)

    Posted Thu July 05, 2007 06:26 AM

    Hi Mark,

    Did you get the output. Can you please explain me the process.

    What i have done is. After generating the WSDL(RPC) for the flow service. I generated the webservice connector for the above WSDL file. Now when i am running the webservice connector, i am not getting the output, only inputs are again displayed in the results panel.

    Here I’m pasting the .wsdl script that I used to generate the web service connector

    <?xml version="1.0" encoding="UTF-8"?>

    <wsdl:definitions name=“IBM_Kirti” targetNamespace=“[URL=“http://www.webmethods.com/”]http://www.webmethods.com/[/URL]
    xmlns:wsdl=“[URL=“http://schemas.xmlsoap.org/wsdl/”]http://schemas.xmlsoap.org/wsdl/[/URL]
    xmlns:xsd=“[URL=“http://www.w3.org/2001/XMLSchema”]http://www.w3.org/2001/XMLSchema[/URL]
    xmlns:http=“[URL=“http://schemas.xmlsoap.org/wsdl/http/”]http://schemas.xmlsoap.org/wsdl/http/[/URL]
    xmlns:tns=“[URL=“http://www.webmethods.com/”]http://www.webmethods.com/[/URL]
    xmlns:mime=“[URL=“http://schemas.xmlsoap.org/wsdl/mime/”]http://schemas.xmlsoap.org/wsdl/mime/[/URL]
    xmlns:soap=“[URL=“http://schemas.xmlsoap.org/wsdl/soap/”]http://schemas.xmlsoap.org/wsdl/soap/[/URL]”>
    wsdl:types
    <xsd:schema xmlns:xsd=“[URL=“http://www.w3.org/2001/XMLSchema”]http://www.w3.org/2001/XMLSchema[/URL]” targetNamespace=“[URL=“http://localhost/IBM/Kirti/add”]http://localhost/IBM/Kirti/add[/URL]” xmlns:tns=“[URL=“http://localhost/IBM/Kirti/add”]http://localhost/IBM/Kirti/add[/URL]”>
    <xsd:complexType name=“__addInput”>
    xsd:sequence
    <xsd:element name=“a” nillable=“true” type=“xsd:string”/>
    <xsd:element name=“b” nillable=“true” type=“xsd:string”/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name=“__addOutput”>
    xsd:sequence
    <xsd:element name=“result” nillable=“true” type=“xsd:string”/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>

    </wsdl:types>

    <wsdl:message name=“_addInput”>
    <wsdl:part name=“a” type=“xsd:string”/>
    <wsdl:part name=“b” type=“xsd:string”/>
    </wsdl:message>

    <wsdl:message name=“_addOutput”>
    <wsdl:part name=“result” type=“xsd:string”/>
    </wsdl:message>
    <wsdl:portType name=“IBM_KirtiPortType”>
    <wsdl:operation name=“add”>
    <wsdl:input message=“tns:_addInput”/>
    <wsdl:output message=“tns:_addOutput”/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name=“IBM_KirtiBinding” type=“tns:IBM_KirtiPortType”>
    <soap:binding style=“rpc” transport="


    #webMethods
    #API-Management
    #soa


  • 4.  RE: Wsdl (rpc)

    Posted Thu July 05, 2007 06:31 AM

    Hi Mark,

    Did you get the output. Can you please explain me the process.

    What i have done is. After generating the WSDL(RPC) for the flow service. I generated the webservice connector for the above WSDL file. Now when i am running the webservice connector, i am not getting the output, only inputs are again displayed in the results panel.

    Here I’m pasting the .wsdl script that I used to generate the web service connector :



    #API-Management
    #webMethods
    #soa


  • 5.  RE: Wsdl (rpc)

    Posted Thu July 05, 2007 07:02 AM

    Yes, I used the SOAPSonar web services testing tool to consume the addInts service using the WSDL created from the “Tools - Generate WSDL” menu option.

    The WSDL you pasted does not appear to be complete, not sure if that is really the case or whether you just didn’t paste the whole thing.

    The Web Services Connector should generate a Flow which will consume your service.

    Mark


    #API-Management
    #soa
    #webMethods


  • 6.  RE: Wsdl (rpc)

    Posted Thu July 05, 2007 07:03 AM

    Hi Mark,

    Attached is the WSDL file which i am using to create the webservice connector. Please let me know if there are any issues.

    Thanks in advance
    Prabhu Kanthi
    add.wsdl (2.36 KB)


    #API-Management
    #webMethods
    #soa


  • 7.  RE: Wsdl (rpc)

    Posted Thu July 05, 2007 07:08 AM

    Hi Mark,

    I was actually unable to paste the whole content . However I have sent an attchment of the WSDL file that i have generated. Please have a look and let me know if there are any defects.

    Thanks & Regards
    Prabhu Kanthi


    #webMethods
    #soa
    #API-Management


  • 8.  RE: Wsdl (rpc)

    Posted Thu July 05, 2007 10:15 AM

    Hi,

    Its urgent. Can anyone give me some inputs in this regard.

    Thanks & Regards
    Prabhu Kanthi


    #API-Management
    #soa
    #webMethods


  • 9.  RE: Wsdl (rpc)

    Posted Thu July 05, 2007 03:28 PM

    Assuming that your Flow is named IBM.Kirti:add, the WSDL should be fine.

    Are there any errors in the IS error log at the time when you attempt to invoke your service using the generated Flow?

    -M


    #webMethods
    #API-Management
    #soa


  • 10.  RE: Wsdl (rpc)

    Posted Thu July 05, 2007 03:48 PM

    Hi Prabhu Kanthi,

    am not sure, what you missed.
    1) check flow service input is soapRequestData, soapResponseData and output is soapResponseData
    2) while creating wsdl, what are the input you are specifying for
    Protocol,
    transport
    Directive
    Input / Output
    target namespace

    Thanks & Regards,
    ArulchristhuRaj. A


    #soa
    #API-Management
    #webMethods


  • 11.  RE: Wsdl (rpc)

    Posted Fri July 06, 2007 05:53 AM

    Hi ArulchristhuRaj,

    I have created a simple flow service which adds 2 numbers (invoked pub.math:addInts) using sequence(try/catch). I was using 2 inputs(strings) and 1 output(string). So where do i check if the input is soapRequestData, soapResponseData and output is soapResponseData in my flow servcie.

    After creating the flow servcie. I generated the WSDL (RPC) for the flow service and then generated the webservice connector for the above WSDL file. Now when i am running the webservice connector i am not geting the output.

    While creating wsdl, these are the inputs which i have specified
    [FONT=Tahoma][COLOR=#000080]
    Protocol = SOAP-RPC
    transport = HTTPS
    Directive = rpc
    Input / Output (i have not specified anything. Its disabled)
    [FONT=Tahoma][COLOR=navy]target namespace = [URL=“http://www.webmethods.com/”]API Integration Platform | Software AG

    Thanks & Regards
    Prabhu Kanthi


    #webMethods
    #API-Management
    #soa


  • 12.  RE: Wsdl (rpc)

    Posted Fri July 06, 2007 06:36 AM

    Hi Mark,

    I have used getlasterror service in my flow service and invoked the webservice connector which i have generated and i didn’t get any errors.

    Actually 1 week back when i ran the same webservice connector it was working fine. But surprisingly now when i run the same, i am not getting the output and there are no errors. What could be the problem??

    Thanks & regards
    Prabhu Kanthi


    #webMethods
    #API-Management
    #soa


  • 13.  RE: Wsdl (rpc)

    Posted Fri July 06, 2007 11:46 AM

    Hi Prabhu Kanthi,

    we also did POC for concatinating two string using SOAP. I have attached the package. please import in the <IS_DIR>/replicate/inbound. and install from IS using inbound releases.

    we used here Protocol as SOAP_MSG.

    1) POC_SOAP.services:concatString - this flow service used to concat 2 strings.
    2) Created wsdl file using above services.
    3) POC_SOAP.connectorsSoap - this folder having webservice connector, which i have created using wsdl file.
    4) Run the webservice connector service.
    5) it will work fine.


    Thanks & Regards,
    ArulchristhuRaj. A

    POC_SOAP.zip (20.9 KB)


    #webMethods
    #soa
    #API-Management


  • 14.  RE: Wsdl (rpc)

    Posted Fri July 06, 2007 01:12 PM

    Thanks a lot ArulchristhuRaj !


    #API-Management
    #webMethods
    #soa


  • 15.  RE: Wsdl (rpc)

    Posted Fri July 06, 2007 06:21 PM

    I’m always amused (and irritated) by “urgent” posts that provide inadequate details for anyone to actually assist.

    How have you attempted to isolate this problem? Did you make any effort to capture the soap messages exchanged between the service consumer and service provider?

    If this “worked” a week ago and no longer “works”, then something changed. Find out what changes have taken place in your environment and you’ll be closer to resolving this issue.

    -M


    #webMethods
    #API-Management
    #soa