maqsood1 Absent Member.
Absent Member.
335 views

NetIQ SOAP Driver - Post application/x-www-form-urlencode

Hello

IDM 4.5 AE


I want to post some data to a https URL with content type "Content-Type: application/x-www-form-urlencoded" with some data, using NetIQ SOAP driver. The post data is not a puerly "SOAP" data, but I want to use NetIQ SOAP driver to do this
avoiding writing own code,

what i find in documentation is to use operation-data to override SOAP driver behavior,

This is what i am generating to shim


<nds dtdversion="4.0">
<source>
<product version="4.5.6.0">Identity Manager</product>
<contact>NetIQ Corporation</contact>
</source>
<input>
<operation-data command="token-refresh" url="https://developer-do-crazy-token-endpoints-implementations-omg"/>
<driver-operation-data command="token-refresh">
<request-headers remove-existing="true">
<request-header name="Content-Type">application/x-www-form-urlencoded</request-header>
<request-header name="Accept">application/json</request-header>
<request-header name="X-Requested-By">AppD</request-header>
</request-headers>
</driver-operation-data>
</input>
</nds>


But how to add Body to this operation-data with some content ?


Regards,
Maqsood.
Labels (1)
0 Likes
4 Replies
Knowledge Partner
Knowledge Partner

Re: NetIQ SOAP Driver - Post application/x-www-form-urlencode

On 3/28/2019 4:24 PM, maqsood wrote:
>
> Hello
>
> IDM 4.5 AE
>
>
> I want to post some data to a https URL with content type
> "Content-Type: application/x-www-form-urlencoded" with some data, using
> NetIQ SOAP driver. The post data is not a puerly "SOAP" data, but I
> want to use NetIQ SOAP driver to do this
> avoiding writing own code,
>
> what i find in documentation is to use operation-data to override SOAP
> driver behavior,
>
> This is what i am generating to shim
>
>
> <nds dtdversion="4.0">
> <source>
> <product version="4.5.6.0">Identity Manager</product>
> <contact>NetIQ Corporation</contact>
> </source>
> <input>
> <operation-data command="token-refresh"
> url="https://developer-do-crazy-token-endpoints-implementations-omg"/>
> <driver-operation-data command="token-refresh">
> <request-headers remove-existing="true">
> <request-header
> name="Content-Type">application/x-www-form-urlencoded</request-header>
> <request-header name="Accept">application/json</request-header>
> <request-header name="X-Requested-By">AppD</request-header>
> </request-headers>
> </driver-operation-data>
> </input>
> </nds>
>
>
> But how to add Body to this operation-data with some content ?


So one way...
Append XML element to .. (Node parent of current context, which is
operation-data in this case).

Then build your XML token by token.

Or store the bulk of the XML in a GCV or variable, XML Parse it into a
nodeset variable, then use XPATH to fill in values via the Append XML
Element, set XML attribute, append XML Text.

Or before you Parse XML it, use the Replace token to insert your custom
text.

Then Clone by XPATH your variable into ../

Or do it all in XSLT.


0 Likes
maqsood1 Absent Member.
Absent Member.

Re: NetIQ SOAP Driver - Post application/x-www-form-urlencod

Hello

There is no XML content which I need to post, its simple text data.

Regards
Maqsood.



geoffc;2497525 wrote:
On 3/28/2019 4:24 PM, maqsood wrote:
>
> Hello
>
> IDM 4.5 AE
>
>
> I want to post some data to a https URL with content type
> "Content-Type: application/x-www-form-urlencoded" with some data, using
> NetIQ SOAP driver. The post data is not a puerly "SOAP" data, but I
> want to use NetIQ SOAP driver to do this
> avoiding writing own code,
>
> what i find in documentation is to use operation-data to override SOAP
> driver behavior,
>
> This is what i am generating to shim
>
>
> <nds dtdversion="4.0">
> <source>
> <product version="4.5.6.0">Identity Manager</product>
> <contact>NetIQ Corporation</contact>
> </source>
> <input>
> <operation-data command="token-refresh"
> url="https://developer-do-crazy-token-endpoints-implementations-omg"/>
> <driver-operation-data command="token-refresh">
> <request-headers remove-existing="true">
> <request-header
> name="Content-Type">application/x-www-form-urlencoded</request-header>
> <request-header name="Accept">application/json</request-header>
> <request-header name="X-Requested-By">AppD</request-header>
> </request-headers>
> </driver-operation-data>
> </input>
> </nds>
>
>
> But how to add Body to this operation-data with some content ?


So one way...
Append XML element to .. (Node parent of current context, which is
operation-data in this case).

Then build your XML token by token.

Or store the bulk of the XML in a GCV or variable, XML Parse it into a
nodeset variable, then use XPATH to fill in values via the Append XML
Element, set XML attribute, append XML Text.

Or before you Parse XML it, use the Replace token to insert your custom
text.

Then Clone by XPATH your variable into ../

Or do it all in XSLT.
0 Likes
Knowledge Partner
Knowledge Partner

Re: NetIQ SOAP Driver - Post application/x-www-form-urlencod

maqsood;2497549 wrote:
Hello

There is no XML content which I need to post, its simple text data.

Regards
Maqsood.


A sample of what you want it to look like would be helpful here.
0 Likes
Knowledge Partner
Knowledge Partner

Re: NetIQ SOAP Driver - Post application/x-www-form-urlencode

On 3/29/2019 4:54 PM, dgersic wrote:
>
> maqsood;2497549 Wrote:
>> Hello
>>
>> There is no XML content which I need to post, its simple text data.
>>
>> Regards
>> Maqsood.

>
> A sample of what you want it to look like would be helpful here.
>


I lost my response, but since you want non-XML the SOAP shim will reject
it. I wrote a Java extension to handle REST like payloads in the SOAP
shim before the RESt driver came out but you will probably find it
easier in teh REST driver, and then use XSLT to transform the message
from XML to the final text.

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.