Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
shoalwater #1
Web Service - Document root element is missing.
Hello,
I'm building a super simple web service and am getting the following error:
"Could not perform web service invocation "getRandomFact" because AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: Document root element is
missing....."
So what's my problem?? I've seen dozens of examples just like the one
attached. Any help would be MUCH MUCH appreciated.
CF Version: 6,1,0,63958
Here's my super simple component:
<cfcomponent displayname="randomfact" hints="returns update version for lacie
software">
<cffunction name="getRandomFact" returnType="string" access="remote"
output="no">
<cfset theFact = "A ducks quack doesnt echo.">
<cfreturn theFact>
</cffunction>
</cfcomponent>
Here's my super simple consumer:
<body>
<cfinvoke
webservice="http://*mydomainishere*/testservice/randomfact.cfc?wsdl"
method="getRandomFact" returnvariable="thefact">
</cfinvoke>
<cfoutput>#theFact#</cfoutput>
</body>
shoalwater Guest
-
web services - Document root element is missing error
Hello, I'm building a super simple web service and am getting the following error: "Could not perform web service invocation "getRandomFact"... -
...Root Element is missing Error!
Hi, I am using webservice.htc to call a asp.net web service. The web service works find for the first...when i call it second time i am gettting... -
The root element is missing and soapExtension
Hi I'm using the example posted on Ron Howard's site for encryting the body of an xml file located at http://www.gotdotnet.com/team/rhoward/ I'm... -
Document root not website root
Could someone please help me with this. I want to use PHP in my website; but run into a snag, the recommended method of calling an include is:... -
Adding attributes to xml root element.
Namaskara! Can anybody suggest a simple way to add or remove an attribute to the root element in an xml file ?



Reply With Quote

