IMHO, the return type of the function should be a string. JSON and
XML, they're both just strings.

On Dec 10, 8:57 pm, jtaylor <jtay...@lorencook.com> wrote:
> #1:
>     <WebMethod()>
>     <ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _
>     Public Function myWsFunction(ByVal parms As String) As DataTable
>
>         Return CreateDataTable(parms)
>     End Function
>
> #2.  I'm just testing it in VS.
>
> On Dec 5, 7:42 am, Cerebrus <zorg...@sify.com> wrote:
>
>
>
> > 1. Show us the entire WebMethod.
>
> > 2. Tell us the content type header being sent by the requesting
> > client.
>
> > On Dec 3, 8:40 am, jtaylor <jtay...@lorencook.com> wrote:
>
> > > I have a ASP.NET webservice written in VB using VS2010.  I need it to
> > > return JSON but it insists on returning XML.  I set
> > > "<ScriptMethod(ResponseFormat:=ResponseFormat.Json)>" on the function,
> > > but it still returns XML.
>
> > > Any suggestions on where to start looking?- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetdevelopment@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopment+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to