Hi,
I am looking to upgrade my environment to PB 2019 from PB 10.5 and i have to migrate some third party product that is currently integrated into the applications. The new environment will use SOAP calls a few functions. Currently I can use 2 web service datawindows for a couple of the SOAP calls and they are working fine. For a third call the parameters are complex so I cant use a datawindow (i get "An invalid resultset parameter type was detected" error if I try to use a datawindow).
Reading some articles online many suggest using a Web Service Proxy Object or a .NET Web Service object - but these are obsolete in PB 2019 so it seems my only option is Httpclient.
I have the following code to use the Httpclient. I am trying a very simple call first before I tackle the more complex call. I get an OK status code (200) back but when the GetResponseBody call is returning the contents of the WSDL file in the ls_data variable. It should be returning a list of client (as the datawindow does).
I can t see what I am doing wrong here. I tested the calls out in SOAPUI and the work fine there. I copied the ls_body part from the SOAP UI app and that seems to match what is expected. Any help greatly appreciated.
Integer li_ret , li_StatusCode
String ls_data
String ls_body
String ls_ret
is_URL = 'http://appsncs1:1670/?csr_search.wsdl'
ls_body = ''+&
'
'
'
'
'
'
'
'
'
ihc_iir.sendrequest('POST',is_url,ls_body)
li_StatusCode = ihc_iir.GetResponseStatusCode()
ls_ret = ihc_iir.GetResponseStatusText( )
li_ret = ihc_iir.GetResponseBody(ls_data)
Return li_ret