Return-Path: Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 82255 invoked by uid 500); 28 Jul 2003 10:57:00 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 82206 invoked from network); 28 Jul 2003 10:57:00 -0000 Date: 28 Jul 2003 10:59:34 -0000 Message-ID: <20030728105934.16926.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: axis-dev@ws.apache.org Cc: Subject: DO NOT REPLY [Bug 21930] New: - .Net not able to serialize data with doc/literal style. X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21930 .Net not able to serialize data with doc/literal style. Summary: .Net not able to serialize data with doc/literal style. Product: Axis Version: 1.1 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: Serialization/Deserialization AssignedTo: axis-dev@ws.apache.org ReportedBy: angupta@informatica.com .Net client was not able to properly reconstruct data from XML message passed by axis server. It wasn't able to reconstuct the string s below and passes null. this problem also occurs with complex types such as beans in place of string. The service class is public class stringtest { public String sayhello(String message1,String message2) { return message1; } } The deploy.wsdd file is I used .net�s wsdl.exe to generate the stub classes the client class code is also very simple Client.cs class client { public static void Main(string[] args) { CookieContainer cookieJar=new CookieContainer(); stringtestService service1=new stringtestService(); service1.CookieContainer = cookieJar; string s="initial value"; Console.WriteLine("initially s has "+s); s=service1.sayhello("hello","hi"); Console.WriteLine("serive returns: "+s); if(s==null)Console.WriteLine("deserialization not proper"); } } Some interesting points about this issue are If using tcpmon you see the actual soap message being passed back and forth. The response from the server indeed contains the correct return string which is �hello� in this case but somehow .net is not able to read it and return the string properly. Ankit Gupta