Defining an endpoint from a WSDL file

I am new to web services, and I have been instructed to write some packages in PL / SQL that make requests to an external web service to allow customers to view their current support tickets and the status of where we are in the ticket support conditions. I was provided with the WSDL location for the service I'm trying to use, and I used SOAPUI to check the WSDL to form some requests. However, when I try to run a login request, it always fails (I think because the endpoint defined in the SOAP UI is incorrect.

Here is the WSDL file I'm trying to use: http://www.visionproject.se/api/docs/service.wsdl

And an API for the service: http://www.visionproject.se/api/docs/soap_service_VisionProjectWebServiceService.html#login2

And here is the query I'm trying to generate (shown below). Can someone point me in the right direction why this fails? I believe this may be due to the endpoint at the top, but I'm not sure.

As I said, I'm new to web services and really PL / SQL (I'm from a PHP background and have never done this before), so I apologize if I haven't included enough information.

WSDL Usage

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:vis="http://www.visionproject.se/service/VisionProjectService-v2"> <soapenv:Header/> <soapenv:Body> <vis:login2> <!--Optional:--> <username>?</username> <!--Optional:--> <password>?</password> <!--Optional:--> <visionProjectVersion>?</visionProjectVersion> </vis:login2> </soapenv:Body> </soapenv:Envelope> 
+4
source share
2 answers

There are several test clients in the documentation for the API documentation. They use the following endpoint URL:

http://www.visionproject.se/service/VisionProject-v2/VisionProjectWebServiceService

When pasting this into the browser, it returns an “Invalid SOAP request”, so it seems that there is a service at that URL.

Give it a try.

+2
source

The endpoint looks probably right. A WSDL may have a “suggested” endpoint, but is not guaranteed to be an actual endpoint. that is, at the bottom of your WSDL there is an entry for: (StackOverflow I didn’t like to post the actual URL, since it contains localhost and is obviously dummy.)

Your request is most likely not suitable because you did not replace? placeholders with actual values. Replace them and send again.

+2
source

All Articles