https://bugzilla.novell.com/show_bug.cgi?id=343252

           Summary: Mono Remoting SOAP Deserialisation differs to .Net
           Product: Mono: Class Libraries
           Version: 1.2.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: Development


Created an attachment (id=184185)
 --> (https://bugzilla.novell.com/attachment.cgi?id=184185)
Visual Studio Solution for Test

Mono Remoting SOAP Deserialisation differs to .Net

Attached is a .Net solution containing a web service and a remoting service
that implements the same methods for SOAP.

In testing with SoapUI I found that whilst .Net can deserialise requests from
SoapUI (www.soapui.org), Mono cannot and generates an exception.

Using .Net under WinXP Pro, Mono under Suse 10.3, SoapUI running on MacOSX 10.4

SoapUI generated stub requests by using the WSDL provided by the Web Service
(Service.asmx)

Method tested was EchoString

Using SOAPUI generated request ....

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:tem="http://tempuri.org/";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tns="http://tempuri.org/"; xmlns:types="http://tempuri.org/encodedTypes";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soapenv:Header/>
   <soapenv:Body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
    <tem:EchoString
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
      <a xsi:type="xsd:string">string</a>
      </tem:EchoString>
   </soapenv:Body>
</soapenv:Envelope>



Gives the following result on .Net

<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0";>
   <SOAP-ENV:Body>
      <i2:EchoString id="ref-1" xmlns:i2="http://tempuri.org/";>
         <EchoStringResult id="ref-3">string</EchoStringResult>
      </i2:EchoString>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Gives the following result on Mono

<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:clr="http://schemas.microsoft.com/clr/";>
   <SOAP-ENV:Body>
      <a1:SoapFault id="ref-1" xmlns:a1="http://tempuri.org/";>
         <faultcode id="ref-2">Server</faultcode>
         <faultstring id="ref-3">****
System.Runtime.Serialization.SerializationException - Parse Error, no assembly
associated with XML key Body
http://schemas.xmlsoap.org/soap/envelope/</faultstring>
         <detail href="#ref-4"/>
      </a1:SoapFault>
      <a1:ServerFault id="ref-4" xmlns:a1="http://tempuri.org/";>
         <exceptionType xsi:null="1"/>
         <message xsi:null="1"/>
         <stackTrace xsi:null="1"/>
         <exception href="#ref-5"/>
      </a1:ServerFault>
      <a1:SerializationException id="ref-5" xmlns:a1="http://tempuri.org/";>
         <ClassName
id="ref-6">System.Runtime.Serialization.SerializationException</ClassName>
         <Message id="ref-7">Parse Error, no assembly associated with XML key
Body http://schemas.xmlsoap.org/soap/envelope/</Message>
         <InnerException xsi:null="1"/>
         <HelpURL xsi:null="1"/>
         <StackTraceString id="ref-8">at
System.Runtime.Serialization.Formatters.Soap.SoapTypeMapper.GetType
(System.String xmlName, System.String xmlNamespace) [0x00000] 
  at System.Runtime.Serialization.Formatters.Soap.SoapReader.Deserialize ()
[0x00000] 
  at System.Runtime.Serialization.Formatters.Soap.SoapReader.DeserializeHeaders
(System.Collections.ArrayList headers) [0x00000] 
  at System.Runtime.Serialization.Formatters.Soap.SoapReader.Deserialize
(System.IO.Stream inStream, ISoapMessage soapMessage) [0x00000] 
  at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] 
  at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize
(System.IO.Stream serializationStream) [0x00000] 
  at System.Runtime.Remoting.Channels.SoapServerFormatterSink.ProcessMessage
(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, System.IO.Stream requestStream, IMessage&amp; responseMsg,
ITransportHeaders&amp; responseHeaders, System.IO.Stream&amp; responseStream)
[0x00000]</StackTraceString>
         <RemoteStackTraceString xsi:null="1"/>
         <RemoteStackIndex>0</RemoteStackIndex>
         <HResult>-2146233087</HResult>
         <Source
id="ref-9">System.Runtime.Serialization.Formatters.Soap</Source>
         <ExceptionMethod xsi:null="1"/>
      </a1:SerializationException>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to