O
Omri
Hi All,
I have a webservice which I want to return messages in the encoded
style.
I used both
SoapDocumentService(Use:=SoapBindingUse.Encoded)
and
SoapDocumentMethod(use:=SoapBindingUse.Encoded)
but still it won't. What can I be missing?
Here is my function signature:
[WebMethod()]
[SoapDocumentMethod(use:=SoapBindingUse.Encoded,
ParameterStyle:=SoapParameterStyle.Default)]
Public Node getLine()
(Node is a simple linked list node)
Here is the output XML (which is evidently not encoded)
<?xml version="1.0" encoding="utf-8"?>
<Node xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tempuri.org/literalTypes">
<nxt>
<nxt>
<name>C</name>
</nxt>
<name>B</name>
</nxt>
<name>A</name>
</Node>
I have a webservice which I want to return messages in the encoded
style.
I used both
SoapDocumentService(Use:=SoapBindingUse.Encoded)
and
SoapDocumentMethod(use:=SoapBindingUse.Encoded)
but still it won't. What can I be missing?
Here is my function signature:
[WebMethod()]
[SoapDocumentMethod(use:=SoapBindingUse.Encoded,
ParameterStyle:=SoapParameterStyle.Default)]
Public Node getLine()
(Node is a simple linked list node)
Here is the output XML (which is evidently not encoded)
<?xml version="1.0" encoding="utf-8"?>
<Node xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tempuri.org/literalTypes">
<nxt>
<nxt>
<name>C</name>
</nxt>
<name>B</name>
</nxt>
<name>A</name>
</Node>