wood burning stoves 2.0*
The moose likes Web Services and the fly likes Java client consuming SOAP web service using Dynamic interface Invocation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Java client consuming SOAP web service using Dynamic interface Invocation " Watch "Java client consuming SOAP web service using Dynamic interface Invocation " New topic
Author

Java client consuming SOAP web service using Dynamic interface Invocation

Anuja Upreti
Greenhorn

Joined: Mar 02, 2012
Posts: 2
Hi ,

I am trying to consume web service via java client. But it returns missing float value.
Some one please help me!!!

Java Client accessing "http://soaptest.parasoft.com/calculator.wsdl

Steps Follwed:
1) Eclipse -> create java project
2) Add libs axis-1.2.1, axis-jaxrpc etc
3) create java client

RESPONSE: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: java.io.IOException: java.lang.NumberFormatException: missing float value
faultActor:
faultNode:
faultDetail:

Java Client
Santhosh ayiappan
Ranch Hand

Joined: Jan 30, 2007
Posts: 80

Can you share the WSDL contents ?

Regards
Santhosh
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 499
    
    3
>Can you share the WSDL contents ?
That is what it means: this line by the op:
>Java Client accessing "http://soaptest.parasoft.com/calculator.wsdl
in other words, here:
http://soaptest.parasoft.com/calculator.wsdl
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1012
    
    5

I don't see where you are setting the values for input parameters x and y.
Anuja Upreti
Greenhorn

Joined: Mar 02, 2012
Posts: 2
@James Boswell ... First of all thanks for showing interest in Topic.

I want to tell you that I am a newbie in Web services consumption. Through many days research, I came to know how to consume SOAP web services using Java client with DII (Dynamic Interface invocation).

>I don't see where you are setting the values for input parameters x and y.

If you will see my code there are few lines which according to me setting x and y variable value

call.addParameter( "x", XMLType.XSD_FLOAT, ParameterMode.IN);
call.addParameter( "Y", XMLType.XSD_FLOAT, ParameterMode.IN);

Float[] actualArgs = {(float)8, (float)9};

Float responseObj = (Float)call.invoke(actualArgs);



Please let me know If I really missed something.



 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java client consuming SOAP web service using Dynamic interface Invocation
 
Similar Threads
Problem in passing parameters through java client to .Net WS
javax.rpc.call problem
Unabel to hit the webservice usind DII approach
Exception BasicCall.java:505 with invoke method
Running a DII client through JSP