how to pass headers while using guidelib.wsdlUtils.invokeWebService API or guidelib.wsdlUtils.invokeWebService API

Avatar

Avatar
Validate 10
Level 3
rohitn62196663
Level 3

Likes

12 likes

Total Posts

66 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
rohitn62196663
Level 3

Likes

12 likes

Total Posts

66 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
rohitn62196663
Level 3

29-04-2018

I have a couple of questions regarding invoking rest api's in AEM forms.

  1. I am trying to invoke a rest api within a form which is built using AEM forms. As per Adobe docs I have read about guidelib.wsdlUtils.invokeWebService API to invoke a form data model service. Within the rules editor when I select a formdata model service to be invoked it gives me an option to select the form fields/objects to be mapped with input and output. However I dont see any option to pass header information. I need to send some access/security tokens as part of the header. Below is the api function which I tried to use:
    guidelib.dataIntegrationUtils.executeOperation(operationInfo, inputs, outputs);
    I dont see any method arguments to pass the headers. Is there a way to pass header information to the execute operation function ?
  2. Also I see another guidelib api which can be used to call webservices i.e.guidelib.wsdlUtils.invokeWebService (wsdlPath, invokeData, successHandler, errorHandler, myData). But I dont see any way to pass headers even with this function. Is there any difference between these two guidelib api's ?

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

30-04-2018

We have asked the team to look here.

Avatar

Avatar
Validate 1
Level 1
rajan_chidambar
Level 1

Like

1 like

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
rajan_chidambar
Level 1

Like

1 like

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
rajan_chidambar
Level 1

01-05-2018

Scott,

Is there any documentation available for guidelib and wsdlUtils?

TIA

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

01-05-2018

I have followed up again.