Re: Consuming webservices using CF8

2010-09-17 Thread Olav Andreas Antonsen

ecoaa.cfc
=
cfcomponentoutput  =   false 

cffunction name=getBingo access=remote output=false 
returntype=string
cfargument name=eCID type=String required=true /
cfargument name=appIDtype=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:stringsd/eCID
  appID xsi:type=xsd:stringsd/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:stringBINGO/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


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:

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


On Thu, Sep 16, 2010 at 9:10 AM, OLav Andreas Antonsen o...@ansit.nowrote:


 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:

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

 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

 cfhttp method=get url=
 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


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.

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:stringsd/eCID
  appID xsi:type=xsd:stringsd/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:stringBINGO/getOaaReturn
/ns1:getOaaResponse
  /soapenv:Body
/soapenv:Envelope


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

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


On Thu, Sep 16, 2010 at 9:10 AM, OLav Andreas Antonsen o...@ansit.nowrote:

 

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

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 o...@ansit.nowrote:


 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:stringsd/eCID
  appID xsi:type=xsd:stringsd/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:stringBINGO/getOaaReturn
/ns1:getOaaResponse
  /soapenv:Body
 /soapenv:Envelope


 I'm thinking it must be the proxy because this works fine for me:
 
 cfscript
 wsargs = structnew();
 ws = createObject(webservice,
 http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl,wsargs);
 /cfscript
 
 
 On Thu, Sep 16, 2010 at 9:10 AM, OLav Andreas Antonsen o...@ansit.no
 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

2005-01-17 Thread Adrian Lynch
If using CF Admin is a bind, take a look at this page
http://www.bpurcell.org/blog/index.cfm?mode=entryentry=965

Ade

-Original Message-
From: Matthew Small [mailto:[EMAIL PROTECTED]
Sent: 14 January 2005 15:00
To: CF-Talk
Subject: RE: consuming webservices


Thanks Tim, that's much better.
- Matt Small
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 12/01/2005


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190677
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: consuming webservices

2005-01-14 Thread Tim Blair
Matthew,

   I've built a webservice in .Net that I intend to 
 consume from CF. As I'm building it, I've noticed that the 
 .NET Web service's arguments are cached by CF - that is, if I 
 make a change to the .NET WS, then CF doesn't
 realize it.   

CF does indeed cache the webservice stub -- to clear this you can (as
you've noticed) restart CF, but the much more user-friendly way is to
use the CF Admin.

Under the Data  Services section there's a Web Services section.  Go
into here, find the appropriate service and click the delete icon (red
cross) next to it.  When you next call the web service it'll be
refreshed.  A PITA, but not as bad as restarting CF every time!

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
We are big, we are funny and we are clever!
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
--- 


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190440
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: consuming webservices

2005-01-14 Thread Matthew Small
Thanks Tim, that's much better.
- Matt Small

-Original Message-
From: Tim Blair [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 14, 2005 9:52 AM
To: CF-Talk
Subject: RE: consuming webservices

Matthew,

   I've built a webservice in .Net that I intend to 
 consume from CF. As I'm building it, I've noticed that the 
 .NET Web service's arguments are cached by CF - that is, if I 
 make a change to the .NET WS, then CF doesn't
 realize it.   

CF does indeed cache the webservice stub -- to clear this you can (as
you've noticed) restart CF, but the much more user-friendly way is to
use the CF Admin.

Under the Data  Services section there's a Web Services section.  Go
into here, find the appropriate service and click the delete icon (red
cross) next to it.  When you next call the web service it'll be
refreshed.  A PITA, but not as bad as restarting CF every time!

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
We are big, we are funny and we are clever!
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190442
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54