You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a soap service that needs RPC encoded messages as input.
The generated reference.cs class correctly added the following attribute to definition [XmlSerializerFormatAttribute(Style=OperationFormatStyle.Rpc, SupportFaults=true, Use=OperationFormatUse.Encoded)]
BUT generated SOAP message does not contain the required s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" attribute.
This is the generated message body. <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <q1:eServContactQueryById xmlns:q1="http://siebel.com/asi/"> <PrimaryRowId xsi:type="xsd:string">1-14UFS15</PrimaryRowId> </q1:eServContactQueryById> </s:Body>
For testing, I changed the XmlSerializerFormatAttribute to [XmlSerializerFormatAttribute(SupportFaults=true )] and this is what I got in body
Searching in source code, I did find a method GetEncoding in class XmlSerializerOperationFormatter that should give the correct value for the attribute, but this method is not being called from anywhere.
@maheshnlrb thanks for reporting this.
Looks like we are missing some lines of code, it should be a fairly simple fix.
Adding to our next release milestone.
I have a soap service that needs RPC encoded messages as input.
The generated reference.cs class correctly added the following attribute to definition
[XmlSerializerFormatAttribute(Style=OperationFormatStyle.Rpc, SupportFaults=true, Use=OperationFormatUse.Encoded)]
BUT generated SOAP message does not contain the required
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
attribute.This is the generated message body.
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <q1:eServContactQueryById xmlns:q1="http://siebel.com/asi/"> <PrimaryRowId xsi:type="xsd:string">1-14UFS15</PrimaryRowId> </q1:eServContactQueryById> </s:Body>
For testing, I changed the XmlSerializerFormatAttribute to
[XmlSerializerFormatAttribute(SupportFaults=true )]
and this is what I got in body<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <eServContactQueryById xmlns="http://siebel.com/asi/"> <PrimaryRowId>1-14UFS15</PrimaryRowId> </eServContactQueryById> </s:Body>
Searching in source code, I did find a method
GetEncoding
in classXmlSerializerOperationFormatter
that should give the correct value for the attribute, but this method is not being called from anywhere.NOTE: This seems to be related to bug #2359
M
The text was updated successfully, but these errors were encountered: