Webservice output as Service Description

Hi,

I am trying to execute a soap request webservice call in UiPath. Firstly, when I execute in soap ui application, I am able to get the required response. But however, when I try in UiPath with both Soap request and HTTP request activity, below are the scenarios I am facing:

Soap request activity - Error message - the data at the root level is invalid. line 1, position 1
HTTP request activity - No errors. Status code output is 200 which is correct. But the status content output is not the response but it gives me service description.

Attached is the xml content.
Sample.txt (225 Bytes)

I am wondering why I am receiving the service description instead of the response through http activity. Kindly advise.

@soorya_prasad

Did you try with this

Cheers

Yes. But I face an error stating that β€œthe data at the root level is invalid. line 1, position 1”. But the same request is executing properly with Soap UI application and getting the exact response.

@soorya_prasad

This you are getting on the activity? Or the next acticity …

Can you please clarify with some screenshots

Cheers

The error is due to the body content type which we send in for request. I changed it to application/soap+xml and I can get the output as required through http request.

1 Like

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