aspose file tools*
The moose likes Web Services and the fly likes soap web service (Java&C#) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "soap web service (Java&C#)" Watch "soap web service (Java&C#)" New topic
Author

soap web service (Java&C#)

Dmitry Duginov
Greenhorn

Joined: Mar 23, 2004
Posts: 2
Java service(axis) method looks like:
-------------------------------------------------
public void uploadFile(String sessionId, String taskId, String fileName, DataHandler data) {
-------------------------------------------------
I want make C# soap client.
$ wsdl.exe http://localhost/services/Uploads.wsdl
uploadFile method in proxy class is:
-------------------------------------------------
public void uploadFile(string sessionId, string taskId, string fileName, object data) {
this.Invoke("uploadFile", new object[] {
sessionId,
taskId,
fileName,
data});
}
-------------------------------------------------
what type variable "data" must have in C# ?
Tedd Alevo
Greenhorn

Joined: Mar 18, 2004
Posts: 4
What is DataHandler? Is it a class which origins your mind - or is it something you use just for convenience, because it was there?
Whenever you're challenged with interop questions, it is good to stick with what web-services really ment to offer: Transporting data from one end of the wire to the other end.
So maybe DataHandler has a member that represents the connection to a database - you cannot serialize things like that.
Identify the parts your really need, write your own, custom class - the bean-style way, then there should be no problems with axis and .net.
If this post didn't help, please be a bit more specific.
Dmitry Duginov
Greenhorn

Joined: Mar 23, 2004
Posts: 2
---------------
public void uploadFile(String sessionId, String taskId, String fileName, DataHandler data)
---------------
In JAVA I use DataHandler for file uploading (DataHandler descrides file).
It is not bean-style class.
May be fo file transmission I must use SOAP Messages with Attachments?
 
wood burning stoves
 
subject: soap web service (Java&C#)