Hello All,
Could someone please help in calling web service written in WSDL to pass some details?
In my progress program I have written below code to pass supplier details as below:
RUN TestSupplier IN hPortType(INPUT SampleSuppReq, OUTPUT SampleSuppOutput).
- How should I popluate the details in SampleSuppReq to send supplier details?
- How should I read response from SampleSuppOutput in my program?
- Should I call like below instead of above run statement ?
RUN SampleSupplie IN hPortType(INPUT SampleSuppReq, OUTPUT SampleSuppOutput).
PFB the details from my WSDL document:
Operation (internal procedure) detail
TestSupplier
Procedure prototype
PROCEDURE TestSupplier:
DEFINE INPUT PARAMETER SampleSuppReq AS LONGCHAR NO-UNDO.
DEFINE OUTPUT PARAMETER SampleSuppOutput AS LONGCHAR NO-UNDO.
END PROCEDURE.
Example
DEFINE VARIABLE SampleSuppReq AS LONGCHAR NO-UNDO.
DEFINE VARIABLE SampleSuppOutput AS LONGCHAR NO-UNDO.
RUN TestSupplier IN hPortType(INPUT SampleSuppReq, OUTPUT SampleSuppOutput).
Parameters
SampleSuppReq
This value is defined as a SampleSupplier element in the http://xyz.org/ namespace.
Example
<ns0:SampleSupplier xmlns:ns0="http://xyz.org/">
<!-- The following element may have the 'xsi:nil="true"` attribute (it is nillable). -->
<ns0:SupplierID>string-value</ns0:SupplierID>
<!-- The following element may have the 'xsi:nil="true"` attribute (it is nillable). -->
<ns0:Code>string-value</ns0:Code>
<!-- The following element may have the 'xsi:nil="true"` attribute (it is nillable). -->
<ns0:Email>string-value</ns0:Email>
<!-- The following element may have the 'xsi:nil="true"` attribute (it is nillable). -->
<ns0:Address>string-value</ns0:Address>
</ns0:SampleSupplier>
Could someone please help in calling web service written in WSDL to pass some details?
In my progress program I have written below code to pass supplier details as below:
RUN TestSupplier IN hPortType(INPUT SampleSuppReq, OUTPUT SampleSuppOutput).
- How should I popluate the details in SampleSuppReq to send supplier details?
- How should I read response from SampleSuppOutput in my program?
- Should I call like below instead of above run statement ?
RUN SampleSupplie IN hPortType(INPUT SampleSuppReq, OUTPUT SampleSuppOutput).
PFB the details from my WSDL document:
Operation (internal procedure) detail
TestSupplier
Procedure prototype
PROCEDURE TestSupplier:
DEFINE INPUT PARAMETER SampleSuppReq AS LONGCHAR NO-UNDO.
DEFINE OUTPUT PARAMETER SampleSuppOutput AS LONGCHAR NO-UNDO.
END PROCEDURE.
Example
DEFINE VARIABLE SampleSuppReq AS LONGCHAR NO-UNDO.
DEFINE VARIABLE SampleSuppOutput AS LONGCHAR NO-UNDO.
RUN TestSupplier IN hPortType(INPUT SampleSuppReq, OUTPUT SampleSuppOutput).
Parameters
SampleSuppReq
This value is defined as a SampleSupplier element in the http://xyz.org/ namespace.
Example
<ns0:SampleSupplier xmlns:ns0="http://xyz.org/">
<!-- The following element may have the 'xsi:nil="true"` attribute (it is nillable). -->
<ns0:SupplierID>string-value</ns0:SupplierID>
<!-- The following element may have the 'xsi:nil="true"` attribute (it is nillable). -->
<ns0:Code>string-value</ns0:Code>
<!-- The following element may have the 'xsi:nil="true"` attribute (it is nillable). -->
<ns0:Email>string-value</ns0:Email>
<!-- The following element may have the 'xsi:nil="true"` attribute (it is nillable). -->
<ns0:Address>string-value</ns0:Address>
</ns0:SampleSupplier>