<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Add authentication attributes to soap-header</title><link>https://answers.axonivy.com/questions/516/add-authentication-attributes-to-soap-header</link><description>&lt;p&gt;Hello ivyTeam&lt;/p&gt;
&lt;p&gt;Authentication information (Web Service Call Step) have to be sent in a SOAP-request.
WS-Nonce, WS-Created and WS-Time-to-Live are mandatory attributes.&lt;/p&gt;
&lt;p&gt;Has Xpert.ivy Designer a configuration option or maybe exists a workaround for such purpose?&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;
&lt;p&gt;Sergej&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/516/add-authentication-attributes-to-soap-header" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 14 Feb 2014 11:10:50 -0500</lastBuildDate><item><title>Answer by Sergej</title><link>https://answers.axonivy.com/questions/516/add-authentication-attributes-to-soap-header/522</link><description>&lt;p&gt;Hello Tamas&lt;/p&gt;
&lt;p&gt;thank you for reply. &lt;/p&gt;
&lt;p&gt;It looks good! I'll give a try and correspond the results here.&lt;/p&gt;
&lt;p&gt;@why and what - there are project requirements and data import goes over WS with following authentication. Not more or less. Another alternative was to set up an independent triggered tomcat instance to solve this task. But yours suggestion opens new perspectives in this case.&lt;/p&gt;
&lt;p&gt;Regards &lt;/p&gt;
&lt;p&gt;Sergej&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sergej</dc:creator><pubDate>Fri, 14 Feb 2014 11:10:50 -0500</pubDate><guid>https://answers.axonivy.com/questions/516/add-authentication-attributes-to-soap-header/522</guid></item><item><title>Answer by Tamas KIS</title><link>https://answers.axonivy.com/questions/516/add-authentication-attributes-to-soap-header/520</link><description>&lt;p&gt;Hello Sergej&lt;/p&gt;
&lt;p&gt;in fact it's a high level XIVY extension. Be careful when performing, and do it only if you really know why &amp;amp; what you do.&lt;br&gt;
There is no such feature in IVY to set these special properties, but there is a workaround. 
First of all you have to know that whenever you generate Axis 1 / 2 client classes for a WS configuration, then Java stub class files are newly created (.java), compiled, and packed to a jar file. Next to the jar file you always find its counter part WSDL file. These files are located in the YOUR_PROJECT_DIR/lib_ws/client folder.&lt;br&gt;&lt;/p&gt;
&lt;p&gt;You can do the following:&lt;br&gt;&lt;/p&gt;
&lt;p&gt;1, configure and generate your Axis client classes&lt;br&gt;
2, locate the jar file in lib_ws/client folder, which contains stub classes for your WS&lt;br&gt;
3, backup it&lt;br&gt;
4, extract it &lt;br&gt;
5, open the YourWebServiceABC_Stub.java file (e.g. CONTACTPERSON_READ_INStub.java)&lt;br&gt;
6, extend it's only method which has got similar name to its Stub class. It has got an input parameter like XYRequest and a return type YZResponse&lt;br&gt;
This method is invoked, whenever XIVY invokes this Web Service. Therefore in this method you may set up any Axis parameter you like (e.g. TTL, etc.)&lt;br&gt;
7, save, recompile this class&lt;br&gt;
8, pack your WS client jar file, and place it to its original location&lt;br&gt;
9, Restart XIVY designer.&lt;br&gt;
10, Enjoy!&lt;br&gt;&lt;/p&gt;
&lt;p&gt;Cheers&lt;br&gt;
Tamas&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tamas KIS</dc:creator><pubDate>Wed, 12 Feb 2014 23:50:23 -0500</pubDate><guid>https://answers.axonivy.com/questions/516/add-authentication-attributes-to-soap-header/520</guid></item></channel></rss>