What are you actually doing? ASP.NET web service, or remoting with SOAP formatter?
Atsushi Eno Jerry Haltom wrote: > Having a problem using a XSP2 web service from a Mono client on the same > machine. Simply trying a very simple test case. Building a .asmx file, using > Activator.GetObject(Type, string) on the client. Single method on the server > `int Foo(int i)`. > > I receive an exception about being unable to deserialize an Int32. Here is > the top of the exception: > > Unhandled Exception: System.FormatException: Input string was not in the > correct format > at System.Int32.Parse (System.String s, NumberStyles style, IFormatProvider > fp) [0x00016] in > /build/buildd/mono-1.2.3.1/mcs/class/corlib/System/Int32.cs:562 > at System.Int32.Parse (System.String s, IFormatProvider fp) [0x00000] in > /build/buildd/mono-1.2.3.1/mcs/class/corlib/System/Int32.cs:181 > at System.Convert.ToInt32 (System.String value, IFormatProvider provider) > [0x00008] in > /build/buildd/mono-1.2.3.1/mcs/class/corlib/System/Convert.cs:1227 > at System.String.System.IConvertible.ToInt32 (IFormatProvider provider) > [0x00000] in > /build/buildd/mono-1.2.3.1/mcs/class/corlib/System/String.cs:1872 > at System.Convert.ToType (System.Object value, System.Type conversionType, > IFormatProvider provider) [0x0013b] in > /build/buildd/mono-1.2.3.1/mcs/class/corlib/System/Convert.cs:2849 > at System.Convert.ChangeType (System.Object value, System.Type > conversionType, IFormatProvider provider) [0x00018] in > /build/buildd/mono-1.2.3.1/mcs/class/corlib/System/Convert.cs:2461 > at > System.Runtime.Serialization.Formatters.Soap.SoapTypeMapper.ParseXsdValue > (System.String value, System.Type type) [0x000ae] in > /build/buildd/mono-1.2.3.1/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs:435 > > ... > > Watching the network traffic shows a POST to ClientService.asmx. SOAP body, > and a HTTP header `SOAPAction: > "http://schemas.microsoft.com/clr/nsassem/MaemoMono.Shared.IClientService/Shared#SayHello"`. > > The server returns a SOAP envelope, with a body: > > <soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Server > did not recognize the value of HTTP header SOAPAction: > "http://schemas.microsoft.com/clr/nsassem/MaemoMono.Shared.IClientService/Shared#SayHello"</faultstring></soap:Fault></soap:Body>. > > I'm not fluent enough in Soap yet to know what all this means. > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list