How to map data coming from SOAP request to the flow service in webMethods.IO

Hi All,

I created a SOAP API in webMethods.io and using the endpoint I am sending the request via postman to my wMIO instance which invokes a flow service. Thing is, I am unable to capture the data posted by the postman in my flow service.
Can any one of you suggest what should be written in the flow service to capture the incoming SOAP Requests.

Note:- I am getting “202 Accepted” Status in Postman when I do the POST to the SOAP API endpoint.

Hi Atul,

please provide some more details:

Did you import a WSDL to create a provider WSD which is adressed by Postman invocation?
Or did expose the service by creating the WSD in the Designer for existing service?
Any further messages in the server log related to this issue?

See WebService Development Guide for further informations.

Regards,
Holger

Hi Holger,

I am making a POST request from postman using the endpoint url: https://something.webmethods.io/integration/ws/development/flc07c71770f4321c47a7074/TD_Get_Create/TD_Get_Create_Port

Sample payload: -

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <Body>
        <TD_Get_Create_FS xmlns="https://something.webmethods.io/integration/wsd/TD_Get_Create"/>
            <TFS_SUMMARY>test</TFS_SUMMARY>
            <TFS_DESCRIPTION>test</TFS_DESCRIPTION>
            <OPEN_DATE_TIME>2021-01-12T08:26:49</OPEN_DATE_TIME>
    </Body>
</Envelope>

The status I get is : 202 Accepted.
The flow service contains the following as of now:-
image

My Question is to what should I include in the flow service code so as to capture the payload?

Thanks.

Hi Atul,

the request looks a little bit weird to me.
Current:

 <TD_Get_Create_FS xmlns="https://something.webmethods.io/integration/wsd/TD_Get_Create"/>
            <TFS_SUMMARY>test</TFS_SUMMARY>
            <TFS_DESCRIPTION>test</TFS_DESCRIPTION>
            <OPEN_DATE_TIME>2021-01-12T08:26:49</OPEN_DATE_TIME>

I would have expected something like this:

 <TD_Get_Create_FS xmlns="https://something.webmethods.io/integration/wsd/TD_Get_Create">
            <TFS_SUMMARY>test</TFS_SUMMARY>
            <TFS_DESCRIPTION>test</TFS_DESCRIPTION>
            <OPEN_DATE_TIME>2021-01-12T08:26:49</OPEN_DATE_TIME>
 </TD_Get_Create_FS>

Can you provide the current input signature of your flow service please?
In this case you should see a document “TD_Get_Create_FS” in your signature containing the 3 fields.
Eventually it is located one level deeper under (SOAP) Body.

Regards,
Holger

Hi Holger,

Below is the configuration details for the API. Can you please have a look if options selected is ok?

The corresponding flow service is blank as of now (only customLog message is there) with no inputs and/or outputs.

Hi Atul,

options look fine so far.

But you should define a document type for your data structure which serves as an input to your flow service.
After that you should recreate the API descriptor (WSD).

Regards,
Holger

Hi Holger,

Just did that. And it worked finally… Regarding the API options, I enabled the Enforce WS-I Basics Operations option and the request payload generated correctly.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.