| 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
|
|
>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
|
|
|
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.
|
 |
 |
|
|
subject: Java client consuming SOAP web service using Dynamic interface Invocation
|
|
|