It's not a secret anymore!*
The moose likes Web Services and the fly likes problem in returning data through axis2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "problem in returning data through axis2" Watch "problem in returning data through axis2" New topic
Author

problem in returning data through axis2

manju bharathi
Greenhorn

Joined: Nov 27, 2011
Posts: 3
Hi,
i wrote a simple method that return a string in java. In .net client when i try to call the method instead of string it is returning callResponse object where call is method name. can you please tell me where the things are going wrong.

Here is my java code and i am using eclipse indigo and axis1.4.1 for generating web service


http://localhost:8080/tstws/services/Call?wsdl is generated without any problem
Thank you in advance.

[VK: Added code tags]
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3817

In .net client when i try to call the method instead of string...

How you access the web service?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
manju bharathi
Greenhorn

Joined: Nov 27, 2011
Posts: 3
Hi,
In .net i created webreference with the name call
created Object as
call.Call obj = new tst1.call.Call();

then using obj try to call my method
obj.test();
then its showing me the error as follows

Error 1 Cannot implicitly convert type 'tst1.call.testResponse' to 'string' C:\Documents and Settings\user\My Documents\Visual Studio 2008\Projects\tst1\tst1\Form1.cs 24 23 tst1
manju bharathi
Greenhorn

Joined: Nov 27, 2011
Posts: 3
I can Convert the above to string easily but my actual requirement is to read a byte Array.
so please tell me how to convert response object to a byte array.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3817

tell me how to convert response object to a byte array.

So is this a problem in your .NET client?

And welcome to the CodeRanch!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in returning data through axis2
 
Similar Threads
Binary to decimal converter
what can i do to make my code right???
How to avoid new objects
Spring and Ajax
Missing return statement