c# - Soap Request in Compact Framework is ignoring the attribute XmlSchemaForm.Qualified -


i have imported wsdl visual studio 2008 , being built against compact framework 3.5

if run executable on windows xp (full framework) machine soap request serializes differently when run on windows ce machine (compact framework).

examples below: have not included full request section different.

windows ce - compact framework

   <soap:header>       <servicebusmessage xmlns="http://www.tibco.com/xmlschemas/canonicals/esb/2009/07/servicebusmessage1.xsd"  businesstransactionid="ed406189-df38-4060-99ed-471e239ad140" correlationid="898f1c66-85fd-48f6-9b4e-6b2e13da7d92" routeinfo="62"  messageid="1d0bfbb0-f6e2-4302-bb29-6397fed144b2" messagetype="request"  timestamp="2015-06-19t12:24:55.292+01:00">          <metadata>             <meta name="role" value="tiball" />          </metadata>       </servicebusmessage>    </soap:header> 

xp - full framework soap

   <soap:header>       <servicebusmessage xmlns="http://www.tibco.com/xmlschemas/canonicals/esb/2009/07/servicebusmessage1.xsd"  xmlns:d3p1="http://www.tibco.com/xmlschemas/canonicals/esb/2009/07/servicebusmessage1.xsd"  businesstransactionid="85ed64b2-fa86-4a22-8029-137b9bf7918e"  correlationid="d621244d-9b4f-4235-82e7-2331d3ab6da0" routeinfo="62"  d3p1:messageid="d032324c-d986-491e-ae5e-a690fd876949"  d3p1:messagetype="request" d3p1:timestamp="2015-06-19t11:58:06.88575+01:00">              <d3p1:metadata>             <d3p1:meta name="role" value="tiball" />          </d3p1:metadata>       </servicebusmessage>    </soap:header> 

as can see in full framework servicebusmessage contains namespace called d3p1 , few of variables use this. service picky , requires formatting.

the compact framework doesnt , causes request fail.

any reason , how can fix it?

edit

the 3 elements in question prefixed d3p1 have attribute attached them in reference.cs indicates should belong own namespace.

[system.xml.serialization.xmlattributeattribute(form=system.xml.schema.xmlschemaform.qualified)] 

the compact framework doesnt seem doing this.

/// <remarks/> [system.xml.serialization.xmlattributeattribute(form=system.xml.schema.xmlschemaform.qualified)] public string messageid {     {         return this.messageidfield;     }     set {         this.messageidfield = value;     } }  /// <remarks/> [system.xml.serialization.xmlattributeattribute(form=system.xml.schema.xmlschemaform.qualified)] public tmessagetype messagetype {     {         return this.messagetypefield;     }     set {         this.messagetypefield = value;     } }  /// <remarks/> [system.xml.serialization.xmlattributeattribute(form=system.xml.schema.xmlschemaform.qualified)] public system.datetime timestamp {     {         return this.timestampfield;     }     set {         this.timestampfield = value;     } } 


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -