This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
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
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Reply 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: 70

Can you share the WSDL contents ?

Regards
Santhosh
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 357
    
    1
>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
Ranch Hand

Joined: Nov 09, 2011
Posts: 657
    
    2

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.



 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Java client consuming SOAP web service using Dynamic interface Invocation
 
Similar Threads
Unabel to hit the webservice usind DII approach
Exception BasicCall.java:505 with invoke method
javax.rpc.call problem
Running a DII client through JSP
Problem in passing parameters through java client to .Net WS