Re: Consuming a Web Service with CF8

2008-07-30 Thread Tom Chiverton
On Wednesday 30 Jul 2008, Steve Sequenzia wrote:
> And I get this error here - http://dev.thinksys.com/zurich/ws1.cfm

Have you deleted the webservice from the list in the CF admin between each 
test ?
Can you make a HTTP POST with (say) telnet and get an answer back ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309952
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Consuming a Web Service with CF8

2008-07-30 Thread Steve Sequenzia
> Just to get this out of the way. I am pretty much brand new to web 
> services so please excuse my lack of knowledge.
> 
> I have been working on a real small web app that allows the customer 
> to input an invoice then it kicks out a csv of the invoices. My 
> problem is that the vendor just added an additional step that requires 
> that I check the invoice against a web service that will tell me if it 
> is valid.
> 
> The vendor gave me a basic document that lays out the web services. 
> There are 2 web services one is just a ping and the other actually 
> checks the invoice. I cannot get either of them to work and I am not 
> sure why. Here is the info for the ping web service that they sent:
> 
> ZNAPing
> 
> Purpose:This web service was created to give an external customer an 
> opportunity to verify availability of the ZNA Claims Web Services 
> before calling in with actual request.
> 
> Signature:string ZNAPing( void );
> 
> Input:NONE
> 
> Result:string.
> 
> Note:Successful return will contain an XML fragment with the following 
> information
> 
> 
> 9/24/2004 8:24:58 AM
> 0.61
> 
> 
> Client can parse this string to extract some information -  
> element contains date and time of the call,  element – 
> contains the version of the web services.
> 
> 
> I have been trying to consume it using cfinvoke like this:
> 
> https://devurl.asmx"; 
>   method = "ZNAPing"
 
>   returnVariable = "getBack"
  
>   username="username"
  
>   password="password">
> 
> #getBack#
> 
> I am getting this error when I run it:
> 
 
> Unable to parse WSDL as an XML document.
> Parsing error: Fatal Error: URI=null Line=69: The element type "p" 
> must be terminated by the matching end-tag "
> 
> Again, I am very new to web services so I am sure I am doing something 
> wrong. If anyone could help point me in the right direction that would 
> be very helpful.
> 
> Thanks in advance for any help.


Thanks for all the help with this but I am still having issues. I am just not 
sure if  it is something I am doing wrong or if there is something wrong with 
the web service. That is because I am just simply not that knowledgeable with 
web services.

Here is where I am:

I have tried it using cfinvoke, cfhttp, and cfscript. They are pretty much give 
me the same results.

I tried it this way:

https://dev.claimsws.zurichna.com/ERCClaims/ZNAERCClaims.asmx?wsdl"; 
method="ZNAping"
username="FirstChoice"
password="Vend0r04">

And I get this error here - http://dev.thinksys.com/zurich/ws1.cfm

I also tried it this way (without the ?wsdl):

https://dev.claimsws.zurichna.com/ERCClaims/ZNAERCClaims.asmx"; 
method="ZNAping"
username="FirstChoice"
password="Vend0r04">

And I get this error here - http://dev.thinksys.com/zurich/ws2.cfm

I am just not sure what I am doing wrong. The document that the vendor provided 
says that it has to be done using HTTP SOAP method invocation. I am not sure 
how to do that.

Any more help on this would be great.

Thanks!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309946
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Consuming a Web Service with CF8

2008-07-23 Thread Yuliang Ruan
since the webservice is thru SSL, make sure the SSL certificate is valid and 
from a trusted CA.  if it's not from a trusted CA, you'll have to import the 
cert into your CF server's trusted store.  

see http://www.coldfusionmuse.com/index.cfm/2005/01/29/keystore 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309547
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Consuming a Web Service with CF8

2008-07-23 Thread Brad Wood
You probably need to add ?wsdl onto the end of your webservice URL.  If you 
hit the URL you are passing in a browser, you are probably getting an error 
message.

Try https://devurl.asmx?wsdl in your browser and see if you get the WSDL. 
That is what CF needs.

~Brad


- Original Message - 
From: "Steve Sequenzia" <[EMAIL PROTECTED]>> I have been trying to consume it 
using cfinvoke like this:
>
> https://devurl.asmx";
> method = "ZNAPing"
>  returnVariable = "getBack"
>  username="username"
>  password="password">
>
> #getBack#
>
> I am getting this error when I run it:
>
> Unable to parse WSDL as an XML document.
> Parsing error: Fatal Error: URI=null Line=69: The element type "p" must be 
> terminated by the matching end-tag "
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309545
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Consuming a Web Service with CF8

2008-07-23 Thread Experienced CF Developer
Steve,

Try hitting it with CFHTTP and see what you get:

https://devurl.asmx?method=ZNAPing";>


See what you get.  Maybe it's not written as a 'real' web service and simply 
just returns xml?

Dave
-Original Message-
From: Steve Sequenzia [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 23, 2008 1:41 PM
To: CF-Talk
Subject: Consuming a Web Service with CF8

Just to get this out of the way. I am pretty much brand new to web services so 
please excuse my lack of knowledge.

I have been working on a real small web app that allows the customer to input 
an invoice then it kicks out a csv of the invoices. My problem is that the 
vendor just added an additional step that requires that I check the invoice 
against a web service that will tell me if it is valid.

The vendor gave me a basic document that lays out the web services. There are 2 
web services one is just a ping and the other actually checks the invoice. I 
cannot get either of them to work and I am not sure why. Here is the info for 
the ping web service that they sent:

ZNAPing

Purpose:This web service was created to give an external customer an 
opportunity to verify availability of the ZNA Claims Web Services before 
calling in with actual request.

Signature:string ZNAPing( void );

Input:NONE

Result:string.

Note:Successful return will contain an XML fragment with the following 
information


9/24/2004 8:24:58 AM
0.61


Client can parse this string to extract some information -  element 
contains date and time of the call,  element – contains the 
version of the web services.


I have been trying to consume it using cfinvoke like this:

https://devurl.asmx"; 
method = "ZNAPing"
returnVariable = "getBack"
username="username"
password="password">

#getBack#

I am getting this error when I run it:

 Unable to parse WSDL as an XML document.
Parsing error: Fatal Error: URI=null Line=69: The element type "p" must be 
terminated by the matching end-tag "

Again, I am very new to web services so I am sure I am doing something wrong. 
If anyone could help point me in the right direction that would be very helpful.

Thanks in advance for any help.




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309540
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4