Questions Tagged With soaphttps://answers.axonivy.com/tags/soap/?type=rssquestions tagged <span class="tag">soap</span>enWed, 30 May 2018 09:37:52 -0400Can I avoid 'Unexpected subelement' errors when the service-provider introduces new properties?https://answers.axonivy.com/questions/3294/can-i-avoid-unexpected-subelement-errors-when-the-service-provider-introduces-new-properties<p>I have a soap client call that invokes a remote service. Unfortunately the service provider is updating the service definition frequently and introduces new properties or changes the property order. Therefore I can no longer call it, the mapping of the response fails with:</p> <pre><code>ADBException: Unexpected subelement theID Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement theID AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement theID BpmError: ivy:error:webservice:exception RequestException: ivy:error:webservice:exception Problem while processing request 'http://127.0.0.1:8081/ivy/pro/designer/finElcaUser/163B11CD193F9801/start.ivp' </code></pre> <p>I've also tried the new Webservice stack of Axon.ivy 7.1 based on CXF. But it fails with a similar issue:</p> <pre><code>UnmarshalException: unexpected element (uri:"", local:"theID"). Expected elements are &lt;{}firstname&gt;,&lt;{}lastname&gt; SAXParseException2: unexpected element (uri:"", local:"theID"). Expected elements are &lt;{}firstname&gt;,&lt;{}lastname&gt; javax.xml.bind.UnmarshalException - with linked exception: [com.sun.istack.internal.SAXParseException2; lineNumber: 1; columnNumber: 218; unexpected element (uri:"", local:"theID"). Expected elements are &lt;{}firstname&gt;,&lt;{}lastname&gt;] Fault: Unmarshalling Error: unexpected element (uri:"", local:"theID"). Expected elements are &lt;{}firstname&gt;,&lt;{}lastname&gt; Web Service Element: Call to <a href="http://localhost:8082/ivy/ws/designer/elcaMock/163B11ABE3388EE4">http://localhost:8082/ivy/ws/designer/elcaMock/163B11ABE3388EE4</a> (Operation[name=getPersons,port=DocServicePort,parameters=[]]) failed! </code></pre> <p><strong>Is there any way to read the response in a compliant way and ignore new properties introduced by the provider?</strong> the roundtrip is huge if I have to re-generate the client stack every-time when the provider makes changes.</p>SupportIvyTeamWed, 30 May 2018 09:37:52 -0400https://answers.axonivy.com/questions/3294/can-i-avoid-unexpected-subelement-errors-when-the-service-provider-introduces-new-propertiessoapHow to avoid policy error when calling SOAP Webserviceshttps://answers.axonivy.com/questions/3185/how-to-avoid-policy-error-when-calling-soap-webservices<p>I'm integrating data from a remote SAP system over SOAP services. The SAP services WSDL contains <code>Policy</code> elements. At runtime the remote call fails with <code>PolicyException: None of the policy alternatives can be satisfied.</code> Does anybody know how to call such a service?</p> <p><img alt="bpmError" src="https://answers.axonivy.com/upfiles/webserviceExceptionPolicy.png"> <img alt="policyWsdl" src="https://answers.axonivy.com/upfiles/wsdlWithOptionalPolicies.png"></p>SupportIvyTeamWed, 11 Apr 2018 05:44:49 -0400https://answers.axonivy.com/questions/3185/how-to-avoid-policy-error-when-calling-soap-webservicespolicywebservicesoapHow to use WS-Addressing in a webservice call?https://answers.axonivy.com/questions/3106/how-to-use-ws-addressing-in-a-webservice-call<p>I need to use web service standard WS-Addressing to call a web service. How can I use it?</p>Alex SuterWed, 21 Feb 2018 10:36:38 -0500https://answers.axonivy.com/questions/3106/how-to-use-ws-addressing-in-a-webservice-callwebservicecxfsoapSOAP Webservice in Ivy using Javahttps://answers.axonivy.com/questions/2956/soap-webservice-in-ivy-using-java<p>I tried to publish a web service similar to the one described in the tutorial below. I did not use the out-of-the-box Ivy WS process as each of the WS have many methods (and decided to build them in Java instead). </p> <p><a href="https://www.journaldev.com/9123/jax-ws-tutorial">Example</a></p> <p>Using Endpoint.publish() I specified the location for the WS. However, this requires me to run the class containing this method in the java console, and then run Ivy. I tried tying Endpoint.publish() to a "Start Process" in Ivy but it did not work. </p> <pre><code>public class SOAPPublisher { public static void main(String[] args) { Endpoint.publish("http://localhost:8888/ws/depotWS99", new WSDepotShopImpl()); } </code></pre> <p>Is there a "best practices" method to building a SOAP WS via Java in Ivy, and how do I get the WS published in Ivy? Thanks!</p>Walter WeissFri, 03 Nov 2017 11:36:49 -0400https://answers.axonivy.com/questions/2956/soap-webservice-in-ivy-using-javaivyjavasoapwebserviceProblem with German Umlaut in a Web Service wsdlhttps://answers.axonivy.com/questions/2707/problem-with-german-umlaut-in-a-web-service-wsdl<p>Hi all</p> <p>I have to call a SOAP WebService provided by SAP Business Objects that contains a complex type definition with Germain Umlaut in the wsdl. If I try to generate the webservice client configuration in ivy I get: Error decoding WSDL: java.lang.Exception: Compile error...</p> <p>It is obvious, that the generated Java code containing the Umlaut characters can not be compiled.</p> <p>I know the workaround to call a WebService using Java with tools like SoapUI, but I wonder if there is a way to do it with standard ivy means.</p> <p>Any hints are welcome.</p>SupportIvyTeamMon, 19 Jun 2017 06:27:50 -0400https://answers.axonivy.com/questions/2707/problem-with-german-umlaut-in-a-web-service-wsdlwebservicesoapUnable to install a custom Tomcat filterhttps://answers.axonivy.com/questions/2617/unable-to-install-a-custom-tomcat-filter<p>Hello, I have tried to add a filter in web.xml in designer but it did not work. Here is my web.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee <a href="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"</a> version="3.0" metadata-complete="false"&gt; &lt;session-config&gt; &lt;session-timeout&gt;30&lt;/session-timeout&gt; &lt;/session-config&gt; &lt;filter&gt; &lt;filter-name&gt;CspFilter&lt;/filter-name&gt; &lt;filter-class&gt;ch.axonivy.fintech.acrevis.CspFilter&lt;/filter-class&gt; &lt;init-param&gt; &lt;param-name&gt;value&lt;/param-name&gt; &lt;param-value&gt;default-src 'self';report-uri <a href="http://cspreport.csnc.ch/collector.cgi</param-value>">http://cspreport.csnc.ch/collector.cgi&lt;/param-value&gt;</a> &lt;/init-param&gt; &lt;/filter&gt; &lt;filter-mapping&gt; &lt;filter-name&gt;CspFilter&lt;/filter-name&gt; &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt; &lt;/filter-mapping&gt; &lt;/web-app&gt; </code></pre> <p>I got this from error log <img alt="alt text" src="http://answers.axonivy.com/upfiles/Untitled_P35w3wj.png"></p>Bang NgoFri, 12 May 2017 00:02:30 -0400https://answers.axonivy.com/questions/2617/unable-to-install-a-custom-tomcat-filtersoaptomcatCan I use GIT as Team-Providerhttps://answers.axonivy.com/questions/2610/can-i-use-git-as-team-provider<p>We're shifting our source version control system from SVN to GIT. Now I'm trying to clone ivy projects into my workspace, but it seems like there is no GIT team-provider. Only SVN is provided out of the box. Is there any way to use GIT anyways?</p>SupportIvyTeamWed, 10 May 2017 03:08:31 -0400https://answers.axonivy.com/questions/2610/can-i-use-git-as-team-providerscmgitloggingsoapGet IHttpRequest for SOAP web servicehttps://answers.axonivy.com/questions/1594/get-ihttprequest-for-soap-web-service<p>Hello everyone!</p> <p>I would like to get an object that implements ch.ivyteam.ivy.request.IHttpRequest in order to extract the remote client's hostname. </p> <p>A great solution for this problem has already been described here: <a href="http://answers.axonivy.com/questions/1055/access-ihttprequest-object">http://answers.axonivy.com/questions/1055/access-ihttprequest-object</a></p> <p>It works well when the type is set to "Business Process". However, I cannot cast the ivy.request to an IHttpRequest because it's always a ch.ivyteam.ivy.request.impl.ProcessRequest (since I'm using a different process type called "Web Service Process").</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Process.png"></p> <p>I have also tried to modify the generated JAX-WS class to achieve the same result (with no success so far).</p> <p>What is the right way of doing this under Ivy 5.1?</p> <p>Thank you in advance!</p>ivyUserWed, 16 Dec 2015 12:37:37 -0500https://answers.axonivy.com/questions/1594/get-ihttprequest-for-soap-web-servicewebserviceivysoap