• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in returning data through axis2

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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]
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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


How you access the web service?
 
manju bharathi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic