0
votes

I am a beginner programmer, and it's the first time to work with SOAP web services and WSDL files.

I am given a task to consume a SOAP web services provided by another company. However, we need to test internally first, then we consume from the service provider (hosted on their remote server).

My question is. How to host this SOAP web service wsdl in localhost? As I have only the WSDL file.

In the WSDL file, these are the locations. So I need to host the service locally so that I can test and get it work.

  <wsdl:service name="ABC_Out_AsycService">
      <wsdl:port name="HTTP_Port" binding="p1:ABC_Out_AsycBinding">
         <soap:address location="http://localhost" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      </wsdl:port>
      <wsdl:port name="HTTPS_Port" binding="p1:ABC_Out_AsycBinding">
         <soap:address location="https://localhost" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      </wsdl:port>
   </wsdl:service>
1

1 Answers

0
votes

We use soapui for import and mock web services.

Basically, you import the wsdl into the soapui and then create a mock service. You could also import and create the mock in one step.

After this, you have a functional web service based on your wsdl that you can work with.