Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

interoperatibility problem : .net c# soap client and Axis soap server

 
mahesh h bhat
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Axis soap server which works perfectly fine with apache soap2.2 client.
I did following to create a .net C# client.
1. Generated proxy stub .cs file using .Nets wsdl utility.
2.Wrote console application that uses proxy class.
Axis Soap accepts the .net soap client request alright.The .net soap client gets a response which it parses and converts it into
object[].From the debugger I see that object[] is filled with System.xml.attributes which has the soap response.But the problem is proxy class tries to typecast this object[] to the response class (which it generated thru wsdl utitilty )and gives a invalidcastexception.
Note: The response class is a complex data type and uses soap :rpc
Any suggestions?
Thanks
 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why dont u use xml serializer class to serialize the object into the xml formated object so that it can be passed to server in xml responses.
if the datatype is more complex u can use binery serializer also to convert it into binery fromatted stream..
http://www.c-sharpcorner.com/SOAP/WSBNJNCT.asp
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic