ecoaa.cfc
=========
<cfcomponent output = "false" >
<cffunction name="getBingo" access="remote" output="false"
returntype="string">
<cfargument name="eCID" type="String" required="true" />
<cfargument name="appID" type="String" required="true" />
<cfreturn "BINGO"/>
</cffunction>
</cfcomponent>
>I don't think the problem is related to the proxy, because I get the same
>problem
>when I try to consume a simple (local) test ws.
>
><cfscript>
>wsargs = structnew();
>wsargs.refreshwsdl="yes";
>wsargs.savejava="yes";
>//wsargs.proxyServer = "proxy";
>//wsargs.proxyPort = "8080";
>//wsargs.wsdl2JavaArgs = "-D -v -w -W";
>ws =
>createObject("webservice","http://localhost:8500/eCID/ecws/ecoaa.cfc?wsdl",wsargs);
></cfscript>
>
>
>org.apache.axis.ConfigurationException: org.xml.sax.SAXException: Fatal Error:
>URI=null Line=40: The string "--" is not permitted within comments.
>org.xml.sax.SAXException: Fatal Error: URI=null Line=40: The string "--" is not
>permitted within comments. at
>org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:723)
> at
>org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at
>org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at
>org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) a
>
>The "sad" part is that I'm not having any problems consuming the same ws using
>C# ;-(
>
>Debugging my C# testapp reveals that this is the request I'm sending:
>
><?xml version="1.0" encoding="utf-16"?>
><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>xmlns:tns="http://ecws.ecid" xmlns:types="http://ecws.ecid/encodedTypes"
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> <tns:getOaa>
> <eCID xsi:type="xsd:string">sd</eCID>
> <appID xsi:type="xsd:string">sd</appID>
> </tns:getOaa>
> </soap:Body>
></soap:Envelope>
>
>And this is the response I'm getting:
>
>ResponseCode: 200 (OK)
>Connection:close
>Content-Type:text/xml; charset=utf-8
>Date:Thu, 16 Sep 2010 14:27:48 GMT
>Server:JRun Web Server
>
><?xml version="1.0" encoding="utf-16"?>
><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <ns1:getOaaResponse
>soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>xmlns:ns1="http://ecws.ecid">
> <getOaaReturn xsi:type="xsd:string">BINGO</getOaaReturn>
> </ns1:getOaaResponse>
> </soapenv:Body>
></soapenv:Envelope>
>
>
>>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337170
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm