05-04-2017 08:27 PM
Hi guys,
Using the Softwarekey protection system.
Now need to communicate with their web service at the following location: https://secure.softwarekey.com/solo/webservices/XmlLicenseService.asmx
I want to send commands there and receive data back from within my built application exe to check licence status.
I have no idea where to start. Please help.
Solved! Go to Solution.
05-05-2017 03:50 AM
As you're making a web-request (HTTP POST), you should use the HTTP Client VIs.
Here's a VI Snippet that should get you started:
I used the SOAP 1.1 version as an example, in the first two VIs I set a couple of the custom headers that it uses and then finally make the HTTP POST request in the last VI.
05-06-2017 08:30 PM - edited 05-06-2017 08:32 PM
Thank you Sam. I have a few questions.
I wasn't or haven't been able to receive a valid response as yet.
Header:
1. The add header VI requires the "client handle" input. I don't think this http request requires login/authentication. So if I use the Open Handle VI initially (missing from your snippet , what does it actually do?
2. How do I exactly set up the below SOAP 1.1 header from their sample? What is "SOAPAction" and what is "Request Type"? I don't see that in the below sample but understand it's some mandatory field? How do I find out more?
3. Your Content-Type header field seems to match the sample above. What about Host: secure.softwarekey.com?
4. Is your Header in the correct order or missing something?
XML message content:
1. Do I need to set up or define Envelope or Body components of the message below the header?
2. How do I ensure the HTTP Post VI sends the message in the required SOAP 1.1 format above?
The SoftwareKey reference states the XML input which replaces the blue text in the image above is formatted as follows:
Finally is there a webserver or some other source I can test all this? I need to get a proper server response.
Thanks very much for your help 🙂
05-06-2017 08:56 PM
Also, how do I set up the very first line? As follows:
POST /solo/webservices/XmlLicenseService.asmx HTTP/1.1
05-06-2017 09:53 PM
The following code NOT WORKING. VI attached.
05-08-2017 05:39 AM
05-09-2017 02:32 AM
Thank you Sam.
I've had some success with the following code below. This is because you told me about including all the text from the example in the body of the message and getting it exactly correct. I now have a response from their service.
05-09-2017 02:45 AM - edited 05-09-2017 02:46 AM
Instead try:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<InfoCheck xmlns="http://secure.softwarekey.com/solo/webservices/">
<xml><LicenseInfoCheck xmlns="">
<LicenseID></LicenseID>
<Password></Password>
<ProductID></ProductID>
</LicenseInfoCheck></xml>
</InfoCheck>
</soap:Body>
</soap:Envelope>
08-24-2018 07:32 AM - edited 08-24-2018 07:41 AM
Hello,
I two day read about communicate two softwer over web service.
One software is Labview (software A) and second is software B. Labview software A is slave and need to accept order from software B and after finish order software A need return resutls to sofware B.
I read this topic but this is case when Labview software send xml message and recived respons. I have successfully created a client which call some web service, but I have oposite situation. How I can make web service server which will respons on example this message from some web service client (software B):
This message is example requst to my web services:
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header/>
<env:Body>
<bookStatusEvent xmlns="http://www.booksstatus.com/bookeventservice">
<iditem>125</iditem>
<book>107</book>
<status>available</status>
</bookStatusEvent>
</env:Body>
</env:Envelope>
For example I need (Labview web service) need to generate this respons (after check and finsih operation inside LabViewMainVI):
**// iditem, book and status is variable inside Labview code which value return to master software which initiates request //**
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns: SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<bookStatusEventResponse xmlns="http://www.booksstatus.com/bookeventservice"">
<bookStatusEventResult>
<iditem>125</iditem>
<book>107</book>
<status>OK</status>
</bookStatusEventResult>
</bookStatusEventResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Please, If you can help me with some example or some idea how I can resolve this problem?
Thank you.
07-01-2019 04:34 AM - edited 07-01-2019 04:35 AM
Hi,
I'm working an requirement for Production line. Need to update the data for every product we testing to an HTTPS server.
I have followed an HTTP communication VI available with us, I didn't get any response from the server. Later i come to know we need to authenticate the certificate before establish the communication. The same is working in Curl tool.
If anyone can help me on how to authenticate the certificate using LabVIEW and what functions to use for the same..
Thanks in advance