Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Failed to contol SOAP encoding

Reply
Thread Tools

Failed to contol SOAP encoding

 
 
Omri
Guest
Posts: n/a
 
      07-24-2003
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 xmlnssd="http://www.w3.org/2001/XMLSchema"
xmlnssi="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>
 
Reply With Quote
 
 
 
 
Omri
Guest
Posts: n/a
 
      08-03-2003
For the benefit of others who encoutner this behaviour:
It seems that when accessing the service using "GET" the XML returned
is LITERAL, regardless of the attributes.
This means that the default web pages that allow testing simple web
services will not suffice - they use GET and will fail on circular
references and such.
Don't fret - accessing the service in SOAP _does_ return ENCODED
format.

> 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 xmlnssd="http://www.w3.org/2001/XMLSchema"
> xmlnssi="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>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting handle on contol programatically Sosh123 ASP .Net 1 05-20-2005 02:59 PM
How to refer a contol in userControl ad ASP .Net 3 04-28-2005 01:08 PM
how to add a contol after datagrid that changes size? Dee ASP .Net 2 04-25-2005 08:34 PM
Contol Location on Webform Jeff Gaines ASP .Net 4 11-27-2004 09:10 PM
Button Contol =?Utf-8?B?TW9lSm9l?= ASP .Net 3 05-30-2004 12:58 PM



Advertisments