cancel
Showing results for 
Search instead for 
Did you mean: 

How to add WS-A Headers to teststep from java code

SOLVED
Highlighted
Contributor

How to add WS-A Headers to teststep from java code

Hello,

 

In SoapUI you can add WS-A headers by clicking with your right mouse on the request (xml-screen).

 

How can I do this from Java code?

Screenshot 2019-08-28 at 12.10.56.png

3 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Moderator

Re: How to add WS-A Headers to teststep from java code

Thanks for creating the topic, @CrazyFrog.

 

Community, can we provide any comments regarding this question?


Olga Terentieva
SmartBear Assistant Community Manager

View solution in original post

Highlighted
Contributor

Re: How to add WS-A Headers to teststep from java code

@Olga_T 

My questions are probably too difficult for the community. We are in the process of automatically generating all our tests from Java.


We are confronted with a few technical challenges in which we think we can use support from Smartbear.
In the past Ole Matzura used to post the technical solutions, is he still working at Smartbear.

For the question that I asked in this post, I have found the solution by scouring the open source code of SoapUI.

I use the following code:

 

WsdlRequest request = ((WsdlTestRequestStep) testStep).getHttpRequest();
AddWsaHeadersToRequestAction wsaToRequest = new AddWsaHeadersToRequestAction(request);
wsaToRequest.actionPerformed(null);

 

View solution in original post

Highlighted
Moderator

Re: How to add WS-A Headers to teststep from java code

Hi @CrazyFrog,

 

Ole was a super contributor in our Community indeed. Now, the Community has Community Leaders and Community Heroes who actively help people with their questions. Also, our SmartBear support engineers regularly review questions on the forums and provide technical solutions.

Contacting the Support team is a great way to have any situation investigated deeply and properly, so I hope your collaboration with them will provide you with the answers to all your questions!

And thank you for sharing the solution you are using! Let me mark it as a Solution to this topic.

Have a great day!

  


Olga Terentieva
SmartBear Assistant Community Manager

View solution in original post

3 REPLIES 3
Highlighted
Moderator

Re: How to add WS-A Headers to teststep from java code

Thanks for creating the topic, @CrazyFrog.

 

Community, can we provide any comments regarding this question?


Olga Terentieva
SmartBear Assistant Community Manager

View solution in original post

Highlighted
Contributor

Re: How to add WS-A Headers to teststep from java code

@Olga_T 

My questions are probably too difficult for the community. We are in the process of automatically generating all our tests from Java.


We are confronted with a few technical challenges in which we think we can use support from Smartbear.
In the past Ole Matzura used to post the technical solutions, is he still working at Smartbear.

For the question that I asked in this post, I have found the solution by scouring the open source code of SoapUI.

I use the following code:

 

WsdlRequest request = ((WsdlTestRequestStep) testStep).getHttpRequest();
AddWsaHeadersToRequestAction wsaToRequest = new AddWsaHeadersToRequestAction(request);
wsaToRequest.actionPerformed(null);

 

View solution in original post

Highlighted
Moderator

Re: How to add WS-A Headers to teststep from java code

Hi @CrazyFrog,

 

Ole was a super contributor in our Community indeed. Now, the Community has Community Leaders and Community Heroes who actively help people with their questions. Also, our SmartBear support engineers regularly review questions on the forums and provide technical solutions.

Contacting the Support team is a great way to have any situation investigated deeply and properly, so I hope your collaboration with them will provide you with the answers to all your questions!

And thank you for sharing the solution you are using! Let me mark it as a Solution to this topic.

Have a great day!

  


Olga Terentieva
SmartBear Assistant Community Manager

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 12
2 nmrao 8
3 HimanshuTayal 3
Top Kudoed Authors