Re: Consuming webservices using CF8

2010-09-16 Thread Olav Andreas Antonsen

ecoaa.cfc
=












>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.
>
>
>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);
>
>
>
>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:
>
>
>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";>
>  http://schemas.xmlsoap.org/soap/encoding/";>
>
>  sd
>  sd
>
>  
>
>
>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
>
>
>http://schemas.xmlsoap.org/soap/envelope/";
>xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  
>soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
>xmlns:ns1="http://ecws.ecid";>
>  BINGO
>
>  
>
>
>
>>> 

~|
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


Re: Consuming webservices using CF8

2010-09-16 Thread John M Bliss

If you care to provide a copy of ecoaa.cfc, I'll be happy to test it from
here...

On Thu, Sep 16, 2010 at 5:14 PM, Olav Andreas Antonsen wrote:

>
> 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.
>
> 
> 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);
> 
>
>
> 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:
>
> 
> 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";>
>  http://schemas.xmlsoap.org/soap/encoding/
> ">
>
>  sd
>  sd
>
>  
> 
>
> 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
>
> 
> http://schemas.xmlsoap.org/soap/envelope/
> "
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:ns1="http://ecws.ecid";>
>  BINGO
>
>  
> 
>
>
> >I'm thinking it must be the proxy because this works fine for me:
> >
> >
> >wsargs = structnew();
> >ws = createObject("webservice","
> >http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl",wsargs);
> >
> >
> >
> >On Thu, Sep 16, 2010 at 9:10 AM, OLav Andreas Antonsen  >wrote:
> >
> >>
>
> 

~|
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:337167
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Consuming webservices using CF8

2010-09-16 Thread Olav Andreas Antonsen

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.


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);



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:


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";>
  http://schemas.xmlsoap.org/soap/encoding/";>

  sd
  sd

  


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


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ns1="http://ecws.ecid";>
  BINGO

  



>I'm thinking it must be the proxy because this works fine for me:
>
>
>wsargs = structnew();
>ws = createObject("webservice","
>http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl",wsargs);
>
>
>
>On Thu, Sep 16, 2010 at 9:10 AM, OLav Andreas Antonsen wrote:
>
>> 

~|
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:337157
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Consuming webservices using CF8

2010-09-16 Thread John M Bliss

I'm thinking it must be the proxy because this works fine for me:


wsargs = structnew();
ws = createObject("webservice","
http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl",wsargs);



On Thu, Sep 16, 2010 at 9:10 AM, OLav Andreas Antonsen wrote:

>
> I recently upgraded to CF8 and I’m not able to consume webservices from my
> dev edition on my personal PC.
>
> I have tried making my own simple test webservice, but I’m not able to
> consume them using CF. (I’m able to consume the ws using .Net or Java, but
> not from CF itself).
>
> I always get the following error:
>
> org.apache.axis.ConfigurationException: org.xml.sax.SAXException: Fatal
> Error: URI=null Line=40: The string "--" is not permitted within comments.
>
> This is the code I’m using:
>
> 
> wsargs = structnew();
> wsargs.proxyServer = "proxy";
> wsargs.proxyPort = "8080";
> ws = createObject("webservice","
> http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl",wsargs);
> 
>
> I know that the WSDL is ok since the WS works in .Net and Java. I also know
> that I can retrieve the wsdl using
>
> http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl";
> result="myRes" proxyserver="proxy" proxyport="8080"/>
>
> So why do I get the “The string "--" is not permitted within comments.”
> error?
>
> I know that
> 1.  I get the same error for all ws I try to consume from CF, even
> simple test ws made using CF.
> 2.  The ws work, because I can consume them using .Net and Java.
> 3.  CFINVOKE gives me the same error
>
> Thanks,
> Olav, Oslo, Norway
>
>
> 

~|
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:337122
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Consuming webservices using CF8

2010-09-16 Thread OLav Andreas Antonsen

I recently upgraded to CF8 and I’m not able to consume webservices from my 
dev edition on my personal PC.

I have tried making my own simple test webservice, but I’m not able to 
consume them using CF. (I’m able to consume the ws using .Net or Java, but 
not from CF itself).

I always get the following error:

org.apache.axis.ConfigurationException: org.xml.sax.SAXException: Fatal Error: 
URI=null Line=40: The string "--" is not permitted within comments.

This is the code I’m using:


wsargs = structnew();
wsargs.proxyServer = "proxy";
wsargs.proxyPort = "8080";
ws = 
createObject("webservice","http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl",wsargs);


I know that the WSDL is ok since the WS works in .Net and Java. I also know 
that I can retrieve the wsdl using

http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl"; 
result="myRes" proxyserver="proxy" proxyport="8080"/>

So why do I get the “The string "--" is not permitted within comments.” 
error?

I know that 
1.  I get the same error for all ws I try to consume from CF, even simple 
test ws made using CF.
2.  The ws work, because I can consume them using .Net and Java.
3.  CFINVOKE gives me the same error

Thanks,
Olav, Oslo, Norway


~|
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:337121
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm