Forum tags


Top Posters

Last 30 days

  • Antoine (92)
  • talita.pezzi (22)
  • eduardo.lawisch (14)
  • sundaravadivel.n (14)
  • alfons.bataller.diaz (14)
  • ravinderjit.singh (13)
  • hellonico (9)
  • jose.mendoza (8)
  • marcia.martins (7)
  • dmitriy.fundak (6)

All time

  • Antoine (1407)
  • Shivanand (1189)
  • cshekhar (921)
  • psq (795)
  • jag (391)
  • metabyte (370)
  • arnaud (327)
  • jalateras (325)
  • dfrench (263)
  • venkaiah.k (198)

Show last 4 hrs - 12 hrs - 24 hrs

POLL

We are looking for more information to tailor our training to better meet the needs of our customers. Please indicate all options that apply.

I would like to attend specialized training from Intalio on BPM as it relates to my application area:


I would like to attend specialized training from Intalio on BPM as it relates to my job function:


I would like to attend specialized training from Intalio on BPM as it relates to my industry:

Login

MAIN arrow FORUMS
webservice (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: webservice
#15618
maximilian.faupel (User)
Junior Boarder
User Offline Click here to see the profile of this user
webservice 3 Months ago Karma: 0  
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:
File Attachment:
File Name: Addition-e87e6fe2d889325899a2abac6eaa096c.zip
File Size: 57891


Thanks Maxi
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#15636
ihabo01 (Admin)
Admin
User Offline Click here to see the profile of this user
Re:webservice 3 Months ago Karma: 5  
Hi,
I am pretty sure that the engine is calling your webservice correctly. The problem is thrown by your webservices as apparently it is receiving an extra element in the body.
To be sure that the source of the error is the service,use SOAPUI ( a soap client) to test the addtion operation.

Let me know how that works for you

Ihab
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#15768
maximilian.faupel (User)
Junior Boarder
User Offline Click here to see the profile of this user
Re:webservice 2 Months, 4 Weeks ago Karma: 0  
Hi Ihab,
it worked after I restarted the server.
Maxi
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop