Simran Singh

Greenhorn
+ Follow
since Feb 04, 2013
Simran likes ...
Oracle Java
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Simran Singh

Hi,
I am working on a web service client using Axis2 1.6version, I am able to generate the client stubs and even some operations are working fine.

I got stuck with a Submit operation of webservice where i have send an object with all the data to be saved on server side. When i start the execution of program I am getting the following error:

org.apache.axis2.AxisFault: java.lang.IllegalArgumentException: java.lang.ClassCastException@d1e43d
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

and on further diagnosing the issue I found that execution stops at line:
//execute the operation client
_operationClient.execute(true);

Currently I am testing this through a simple java class and the operations with _operationClient.execute(false) are working fine (like getStatistics, getSavedForms).

Thanks
S

11 years ago
Ulf Dittmer is correct, TCPmon won't be able to originate request, I want something which can originate xml request and get back the xml response from the WS.

Actually we want to have a module, which can be integrated into other applications (without code modification, just specifying the wsdl link/security credentials) in order to call external web services, we just have to provide the required soap request xml and receive the xml response. Same as we do in soapui.

I am also thinking of to start with soapui... but before that I would like to discuss your valuable response, from you guys, with my team to reconsider their decision of moving ahead on this task...
11 years ago
Ya it seems like a big task, but I just want a way to start with. Do you any link from where i can get some help for this?

You are right, writing WS Client code won't be a big task but thinking of it as a product may be we can try something...
11 years ago
I was wondering if we can write our own code for a web service client, which can call to any web service (same as we do in SOAP-ui).

I was told to develop a soap-ui type tool which can be embedded in any of our java based project which need a webservice client call. So that we do not have to write separate client code for every wsdl link (or every webservice), or we can say a generic java web service client??

Does any body have any idea on this or can guide me to some examples/path?
11 years ago