Hi,
first I wrote a simple java-program:
package com.example;
public class Addition {
public int add(int summand1, int summand2) {
return summand1 + summand2;
}
}
Then I generated a wsdl-file with the command "java2wsdl -o C:\Java\webservices\wsdl\Addition -of Addition.wsdl -tn
http://example.com/ -cn com.example.Addition".
After that I generated the stubs with the command "wsdl2java -uri C:\Java\webservices\wsdl\Addition\Addition.wsdl -ss -sd services.xml -ssi -p com.example" and edited the AdditionSkeleton-file:
/**
* AdditionSkeleton java skeleton for the axisService
*/
public class AdditionSkeleton implements AdditionSkeletonInterface {
/**
* Auto generated method signature
* @param add0
*/
public com.example.AddResponse add(com.example.Add add0) {
AddResponse response = new AddResponse();
response.set_return(add0.getSummand1() + add0.getSummand2());
System.out.println(response.get_return());
return response;
}
}
Then I ran ant, uploaded the aar-file on the server, copied the src-folder and the wsdl-file in my Intalio-project. After I modeled a simple pipa-process I deployed everything on the server. When I try to start the process I always get the following error in the server console:
11:29:45,031 WARN [SoapExternalService] Fault response: faultType=(unkown)
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://s
hemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressi
g"><soapenv:Header><wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault<
wsa:Action><wsa:RelatesTo>uuid:6fb6b75e-30eb-42cf-af94-4a8cb7b38bb5-4</wsa:Rela
esTo></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</f
ultcode><faultstring>org.apache.axis2.databinding.ADBException: Unexpected sube
ement summand1</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:
nvelope>
11:29:45,125 ERROR [INVOKE] Failure during invoke:
Thanks Maxi