This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

soap web service (Java&C#)

 
Dmitry Duginov
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
---------------
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic