IBM Sterling Transformation Extender

 View Only
  • 1.  Webservice with response in attachments

    Posted Fri November 08, 2019 09:25 AM

    Originally posted by: WTxIBCoder


    Hi Team

    We have a scenario were we will be receiving a request in file from MQ and make a SOAP webservice call and fetch the response in attachments.

    Place those attachments into SFTP folder.

    Here we are using IIB + WTX.

    IIB we consume the request message and routes to the WTX map.

    WTX map has to do webservice call and then take attachments and place it into SFTP.

     

    Thanks,

    WtxIBCoder

     

     


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Webservice with response in attachments

    Posted Mon November 11, 2019 09:58 AM

    Originally posted by: PaulBrett


    Let's split this into two parts:

    1. Make the WebService call
    2. Decode and route the attachments

    Have you been able to do part 1 yourself?  Making a WebService call in ITX is relatively straightforward.  Interpreting the return data can be difficult.  Do you have a WSDL for the WebService?

    Once you have the data, you need to know how to split the attachments, then decode them (if encoded).

    Thank you.

    Paul

    Follow me on Twitter


    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: Webservice with response in attachments

    Posted Thu December 05, 2019 05:14 AM

    Originally posted by: WTxIBCoder


    Hi Paul

    Can you please provide some sample map.

    which reads one text blob field and creates SOAP wsdl message request and calls webservice and capture the response from webservice in xml and pdf attachment.

    thanks,

    WtxIbCoder

     


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 4.  Re: Webservice with response in attachments

    Posted Thu December 05, 2019 05:24 AM

    Originally posted by: PaulBrett


    We can perhaps provide a sample map, if you can point us to the instance of the WebService and any parameters needed to access it.  We do not have WebServices available in the lab.

    I suspect you can make the WebService call yourself, but are unable to parse/map the response from the server.   If this is the case, please provide a flat file version of the response, and your WSDL file, and I will see what I can do.

    Thank you.

    Paul

    Follow me on Twitter


    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 5.  Re: Webservice with response in attachments

    Posted Tue December 10, 2019 08:03 AM
      |   view attached

    Originally posted by: WTxIBCoder


    Hi Paul,

    Yes, I can make webservice call with SOAP request successfully and getting HTTP trace as expected.

    Can you please help me on how to read the pdf attachment from the response.

    Thanks,

    WTxIBCoder

     


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange

    Attachment(s)

    mtr
    m4http.mtr   51 KB 1 version


  • 6.  Re: Webservice with response in attachments

    Posted Tue December 10, 2019 08:14 AM

    Originally posted by: PaulBrett


    I will be unable to help, unless you post your web service response and WSDL here.

    Thank you.

    Paul

    Follow me on Twitter


    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 7.  Re: Webservice with response in attachments

    Posted Tue December 10, 2019 08:29 AM

    Originally posted by: WTxIBCoder


    Hi paul,

    attached wsdl and request message.

    also i am using using below rule in the target outcard:

    =GET("SOAP", "-T -TRANSPORT 'HTTP(-HDRI+ -TYPE application/soap+xml -METHOD POST -TV -URL http://aw01tdmappd006.ohs.tycoelectronics.com:39560/TECdm2/webservices/DocumentService  )'", CPACKAGE(input, "NATIVE") )
     

    Thanks,

    WTxIBCoder


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender

    Attachment(s)

    wsdl
    DocumentService.wsdl   68 KB 1 version
    txt
    input1.txt   1 KB 1 version


  • 8.  Re: Webservice with response in attachments

    Posted Tue December 10, 2019 08:35 AM

    Originally posted by: PaulBrett


    I don't need the request, I need the reply/response.

    Thank you.

    Paul

    Follow me on Twitter


    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 9.  Re: Webservice with response in attachments

    Posted Fri December 27, 2019 05:11 AM
      |   view attached

    Originally posted by: WTxIBCoder


    oops my bad

    here is the response xsd

    thanks

    WTxIBCoder


    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange

    Attachment(s)

    xsd
    DeliverFileResponse.xsd   4 KB 1 version


  • 10.  Re: Webservice with response in attachments

    Posted Fri December 27, 2019 05:14 AM

    Originally posted by: PaulBrett


    I don't need the schema, I need the reply/response from the Web Service.

    Thank you.

    Paul

    Follow me on Twitter


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender