Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Francisco Mancardi #1
Web Services that returns XML - SAX Issue!
From my CFMX7 application, I make a call to a Java Web service that returns me
the following SOAP message:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:as="http://localhost:8080/ServerASAP/schemas/asap.wsdl"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<as:Response>
<as:SenderKey>
http://localhost:8080/ServerASAP/services/si</as:SenderKey>
<as:ReceiverKey>
FF</as:ReceiverKey>
<as:RequestID>
FF</as:RequestID>
</as:Response>
</env:Header>
<env:Body>
<as:CreateInstanceRs>
<as:InstanceKey>
http://localhost:8080/ServerASAP/services/instances/ik=47</as:InstanceKey>
</as:CreateInstanceRs>
</env:Body>
</env:Envelope>
This is a valid XML document, but CF gives me the following error message:
AxisFault faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:
faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to deserialize.
faultActor: faultNode: faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
SimpleDeserializer encountered a child element, which is NOT expected, in
something it was trying to deserialize. at
org.apache.axis.encoding.ser.SimpleDeserializer.on StartChild(SimpleDeserializer.
java:144) at ......
The VERY STRANGE THING is that I made the webservice call from within a
<cftry> block like this:
<cftry>
<cfset my_result = ws.createInstance(param)>
<cfcatch>
<cfdump var="#getSOAPResponse(ws)#">
</cfcatch>
</cftry>
The CFDUMP of the getSOAPResponse() in <cfcatch> block displays the
correctly-parsed version of the returned SOAP message!!
Am I doing anything wrong?
Is a CF BUG???
Please help me
Thanks in advance
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:as="http://localhost:8080/ServerASAP/schemas/asap.wsdl"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<as:Response>
<as:SenderKey>
http://localhost:8080/ServerASAP/services/si</as:SenderKey>
<as:ReceiverKey>
FF</as:ReceiverKey>
<as:RequestID>
FF</as:RequestID>
</as:Response>
</env:Header>
<env:Body>
<as:CreateInstanceRs>
<as:InstanceKey>
http://localhost:8080/ServerASAP/services/instances/ik=47</as:InstanceKey>
</as:CreateInstanceRs>
</env:Body>
</env:Envelope>
Francisco Mancardi Guest
-
weird issue with web services
hello one of our clients reported the following error when attempting to use our service component in some asp page. the component connects to... -
Web Services: SAX Parser Issue
Hello, I am having an issue instantiating a component as a web service. The component contains one function (to return a copy of itself) and 27... -
Terminal Services Issue
Hi, Im running Windows 2003 Server whit Terminal Services in Remote Administration Mode. Since a few days when I'try to connect with Remote... -
ASP.NET Web Services. Web Method CacheDuration Issue.
Hello All. Can someone tell me quickly whether web method level caching is effective for both internal calls AND calls via HTTP/SOAP. I am... -
ASP.Net with Indexing Services returns zero results
I am new to Indexing Services, have been researching the MS Site as well as web articles on DevHood, etc. I have set up a seperate catalog...



Reply With Quote

