Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

soap header generation issue

$
0
0

Hi Team,

 

I'm trying to use SOAP 1.0.1 plugin within vCO. To help debug a few issues, I'm constructing the soap header programatically and trying to invoke the operation. When I generate the SOAP header, I find that the plugin omits a header value, eventhough I've supplied it as below.

 

Script code:

var request = operation.createSOAPRequest();

request.setInHeader("Security.UsernameToken.Username", "Username");

request.setInHeader("Security.UsernameToken.Password", "Password");

request.setInHeader("grid-name", "GRID01");

var response = operation.invoke(request);

 

Result:

<faultstring>  Summary: An unsupported request was received.

  Detail: The request received is:

Headers:

<grid-name xmlns="urn:realops.com:amp:workflow" />

<Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

<UsernameToken>

<Username>TESTWSDL</Username>

<Password>password</Password>

</UsernameToken>

</Security>, Body Content: <Process__Response-Request xmlns="SA-VMware_Vcloud:Utilities" />

</faultstring>

 

Shouldn't the string in bold header contain "GRID01" ?

 

Mp


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>