1

Resolved

post to mdo:service?

description

Anton,
 
thanks for the answer on portal-image-size, I was trying an hard way when it was so simple!
 
I've got a new question: is it possible to make POST calls to an mdo:service?
 
I'm doing some tests with ajaxForm, and have a simple xml mdo:service I wish to call to submit a form. If I use $.get() it all works, but I see errors if I try $.post():
 
 
 
System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space) at System.Xml.XPath.XPathDocument..ctor(XmlReader reader, XmlSpace space) at System.Xml.Xsl.Runtime.XmlQueryContext.ConstructDocument(Object dataSource, String uriRelative, Uri uriResolved) at System.Xml.Xsl.Runtime.XmlQueryContext..ctor(XmlQueryRuntime runtime, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, WhitespaceRuleLookup wsRules) at System.Xml.Xsl.Runtime.XmlQueryRuntime..ctor(XmlQueryStaticData data, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, XmlSequenceWriter seqWrt) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter) at System.Xml.Xsl.XmlILCommand.Execute(XmlReader contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results) at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver) at Findy.XsltDb.Transformer.DoTransform(XslCompiledTransform t, XmlReader xr, XsltArgumentList xslArg, StringWriter sw) in d:\inetpub\wwwroot\albe.ihnet.it.dnn\App_Code\XsltDb\XsltDbUtils.cs:line 1232 at Findy.XsltDb.Transformer.TransformRelease(String xml, String xsl, Helper h, String html, Boolean IsSuper) in d:\inetpub\wwwroot\albe.ihnet.it.dnn\App_Code\XsltDb\XsltDbUtils.cs:line 1010 at Findy.XsltDb.Transformer.JustTransform(String xsl, String xml, Boolean debug, Boolean IsSuper) in d:\inetpub\wwwroot\albe.ihnet.it.dnn\App_Code\XsltDb\XsltDbUtils.cs:line 638 at Findy.XsltDb.Transformer.ExecuteService(String xsl, String xml, String serviceName, Boolean IsSuper) in d:\inetpub\wwwroot\albe.ihnet.it.dnn\App_Code\XsltDb\XsltDbUtils.cs:line 619 at ASP.desktopmodules_xsltdb_ws_aspx.Execute() in d:\inetpub\wwwroot\albe.ihnet.it.dnn\DesktopModules\XsltDb\ws.aspx:line 114 at ASP.desktopmodules_xsltdb_ws_aspx.Page_Load(Object sender, EventArgs e) in d:\inetpub\wwwroot\albe.ihnet.it.dnn\DesktopModules\XsltDb\ws.aspx:line 38
 
 
Cannot understand what is causing this error: needed parameters (mod and service) are passed.
 
I'm using 02.00.20.

comments