Skip to main content

As part of my project requirement I have to read data from SOAPUI and I tried implementing it using http client but not able to fetch data. 

Steps Followed.

  1. Http client is source component
  2. WSDL details are provided in reource url path
  3. HTTP method is POST
  4. SOAP request is provided in Request body. 5.Soap Action details are provided header tab. Error message is "HTTP_01 - Error fetching resource. HTTP-Status: 415 Reason: Unsupported Media Type :"

@Anusha Sunkavalli :

 

can you try below steps:

1. create a pipeline (sample pipeline)

 

Configurations in HTTP Client:

Resource URL: <your soap url>

output Field : /output

configure header: SOAPAction: ""

content type: text/xml;charset=UTF-8

HTTP Method : POST

BODY:  (sample body below, you need to pass in xml body)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hel="http://learnwebservices.com/services/hello">

   <soapenv:Header/>

   <soapenv:Body>

      <hel:SayHello>

         <hel:HelloRequest>

            <hel:Name>test</hel:Name>

         </hel:HelloRequest>

      </hel:SayHello>

   </soapenv:Body>

</soapenv:Envelope>

 

And in the Data Format Tab set the data format as XML


Reply