Captain
Captain
415 views

Invoke webservice in script editor on HP ALM 12

Jump to solution

Hi,

have you any excperience with webservices and vb script? I need some extra logic in HP ALM 12, so I have to write script in which I would like to call webservice (writen in java).  Everything works fine with MS WS, but not with soap WS writen in java.

 

Tnx

0 Likes
1 Solution

Accepted Solutions
Captain
Captain

I found a solution and it works for me.

xxx is WS endpoint (not wsdl).

yyy is xml request

 

      dim restService
      set restService=createObject("Microsoft.XMLHTTP")
      query = "xxx"
      restService.Open "POST", query, False
      restService.setRequestHeader "Content-Type", "text/xml"

 

      DataToSend = "yyy"

      restService.Send DataToSend
      respXml = restService.responseText
      MsgBox respXml

View solution in original post

0 Likes
1 Reply
Captain
Captain

I found a solution and it works for me.

xxx is WS endpoint (not wsdl).

yyy is xml request

 

      dim restService
      set restService=createObject("Microsoft.XMLHTTP")
      query = "xxx"
      restService.Open "POST", query, False
      restService.setRequestHeader "Content-Type", "text/xml"

 

      DataToSend = "yyy"

      restService.Send DataToSend
      respXml = restService.responseText
      MsgBox respXml

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.