• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java client consuming SOAP web service using Dynamic interface Invocation

 
Anuja Upreti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 80
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you share the WSDL contents ?

Regards
Santhosh
 
g tsuji
Ranch Hand
Posts: 656
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>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
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see where you are setting the values for input parameters x and y.
 
Anuja Upreti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic