- Andres Slachevsky
- PowerBuilder
- Tuesday, 11 December 2018 01:42 PM UTC
Hello All.
i need to call the SOAP WS that use reflection so it can no be handle by tb WS Proxy Object
i manage to send the request using postdata with return 1 with this code:
httpClient lo_client
Constant Integer SECURE_PROTOCOL_TLS12 = 5
integer li_ret , i
String lo_xml_request
string ls_url
string ls_soap_action
string arguments[]
string ls_body
string ls_ret
ls_url =sle_url.text //(https://efxpywsdev.informconf.com.py/Services/Personas.svc)
ls_soap_action =sle_action.text //(http://tempuri.org/IPersonas/DatosPersonales)
lo_xml_request = 'http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/
MARCELO_CLEMOTTE2_5053
Marcle0918!
20.000.000B
0
'
lo_client = Create httpClient
lo_client.SetRequestHeader("Content-Type", "text/xml; charset=utf-8")
lo_client.SetRequestHeader("SOAPAction", ls_soap_action)
lo_client.SetRequestHeader("Content-Length",string(len(lo_xml_request)*2))
li_ret = lo_client.PostDataStart(ls_url)
li_ret = lo_client.PostData(blob(lo_xml_request),len(lo_xml_request)* 2 )
li_ret = lo_client.postdataend()
li_ret = lo_client.GetResponseStatusCode()
ls_ret = lo_client.GetResponseStatusText( )
i have the return 400 bad request
i have try
also like this:
MARCELO_CLEMOTTE2_5053
Marcle0918!
20.000.000B
0
and
MARCELO_CLEMOTTE2_5053
Marcle0918!
20.000.000B
0
in the IIS log i can it returns 400
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.