Re: [ACFUG Discuss] Web Service Problem
A little clarification of my initial description: I had indicated that the SOAP envelope was formed wrong...but it turns out that this was the tool that I was using to generate the SOAP request that was malforming the outbound request. Presumably it is because of something in the WSDL. But I'm investigating another tool. - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
RE: [ACFUG Discuss] Web Service Problem
So are you saying that in fact things are ok, if you don't use that tool? And as far as tools to analyze web services, there are those built into Dreamweaver and Eclipse (with the Adobe CF Extensions). Have you tried either of those? Each of these can explore any web service URL you provide, and show you its methods, arguments, etc. There are also free web-based tools that can explore any web service. These will help you confirm if a problem is in your client or tool, or if in fact the web service can be consumed just fine. See the section of my CF411 site: Web Services Browsing/Testing Tools http://www.cf411.com/#websvc which includes specific pointers for where to find the web service testing features in DW and Eclipse. Those tools can also build CFINVOKE or createobject calls to invoke such web services, though I realize in your case, Gerry, you're not likely interested in that feature. Still, for just confirming that a web service can be browsed at all, they're useful for you. /charlie -Original Message- From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Gerry Gurevich Sent: Wednesday, May 27, 2009 12:24 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] Web Service Problem A little clarification of my initial description: I had indicated that the SOAP envelope was formed wrong...but it turns out that this was the tool that I was using to generate the SOAP request that was malforming the outbound request. Presumably it is because of something in the WSDL. But I'm investigating another tool. - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
RE: [ACFUG Discuss] Web Service Problem
I have used SoupUI (http://www.soapui.org/), which is in on the CF411 list. You give your WSDL address and it allows you to make requests. As Charlie mentioned, this will confirm if the problem is with the web service itself. The other reason this was a big deal for me is that it shows you what the soap request should look like. Whenever I have had problems with a web service, my soap request was wrong. Hope it helps, Ruben -Original Message- From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Charlie Arehart Sent: Wednesday, May 27, 2009 12:46 PM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] Web Service Problem So are you saying that in fact things are ok, if you don't use that tool? And as far as tools to analyze web services, there are those built into Dreamweaver and Eclipse (with the Adobe CF Extensions). Have you tried either of those? Each of these can explore any web service URL you provide, and show you its methods, arguments, etc. There are also free web-based tools that can explore any web service. These will help you confirm if a problem is in your client or tool, or if in fact the web service can be consumed just fine. See the section of my CF411 site: Web Services Browsing/Testing Tools http://www.cf411.com/#websvc which includes specific pointers for where to find the web service testing features in DW and Eclipse. Those tools can also build CFINVOKE or createobject calls to invoke such web services, though I realize in your case, Gerry, you're not likely interested in that feature. Still, for just confirming that a web service can be browsed at all, they're useful for you. /charlie -Original Message- From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Gerry Gurevich Sent: Wednesday, May 27, 2009 12:24 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] Web Service Problem A little clarification of my initial description: I had indicated that the SOAP envelope was formed wrong...but it turns out that this was the tool that I was using to generate the SOAP request that was malforming the outbound request. Presumably it is because of something in the WSDL. But I'm investigating another tool. - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
Re: [ACFUG Discuss] Web Service Problem
Thanks Ruben. I had already downloaded SOAPUI, but was using a different tool on the recommendation of a colleague. Turns out it was the tool. Thanks also to Charlie for your suggestions. Sorry to bother the list with this non-issue. On Wed, May 27, 2009 at 12:59 PM, Ramirez, Ruben - Curtis 1000 rrami...@curtis1000.com wrote: I have used SoupUI (http://www.soapui.org/), which is in on the CF411 list. You give your WSDL address and it allows you to make requests. As Charlie mentioned, this will confirm if the problem is with the web service itself. The other reason this was a big deal for me is that it shows you what the soap request should look like. Whenever I have had problems with a web service, my soap request was wrong. Hope it helps, Ruben - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
RE: [ACFUG Discuss] Web Service Problem
Well, there's one other difference: both the CFARGUMENT's have required and default. If you think about it, these are mutually exclusive. If you must specify an arg, then there's no need for a default. Of course, it's CF that shouldn't allow them, and I don't know that they should result in the behavior you've seen (the duplicate xsd), but why not at least try removing the default attribute? (I seem to recall some other issue with these attributes being used together, in the past, but don't recall the details.) You might want to also declare the type for the cfargs, since it appears both should be numeric. No sense letting mistakes in the input hurt you. But do add that only after you remove the default. Let's see (And let us know) which, if any, work. If not, you might try adding a cfargument to the working methods, with the attributes like the others, to see if they fail. That would at least confirm that it's the CFARGUMENT. /charlie -Original Message- From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Gerry Gurevich Sent: Tuesday, May 26, 2009 9:39 PM To: discussion@acfug.org Subject: [ACFUG Discuss] Web Service Problem I'm trying to publish a web service for other users to consume. I'm running into a problem with the returned soap envelope. Please note that I can consume these services with CFINVOKE. That is not the problem. I'm trying to consume them on another platform. Any help would be greatly appreciated. Here are more details and the cfc is listed below. The WSDL definition comes out just fine. And the two hello calls work out just as expected. However when I try to call the add or echo functions, I get the following error: -- Attribute xsd bound to namespace http://www.w3.org/2000/xmlns/; was already specified for element soap:Envelope The only difference that I can determine is that the add and echo functions have parameters while the hello methods do not. Here is a sample SOAP message with the error: ?xml version=1.0 encoding=utf-8?soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:enc=http://schemas.xmlsoap.org/soap/encoding; soap:Body soap:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;SI:echo xmlns:SI=http://ws.hero.ncea;in xsi:type=xsd:anyType123/in/SI:echo/soap:Body/soap:Envelope Note that there is a duplicate entry for xmlns:xsd in the soap envelope. Here is a listing for my web service: simple.cfc cfcomponent output=false cffunction name = hello output=no returntype=string access=remote cfreturn 'Hello World' /cffunction cffunction name = hello2 output=no returntype=string access=remote cfset strOut=Hello World cfreturn strOut /cffunction cffunction name = add output=no returntype=numeric access=remote cfargument name=add1 required=yes default=0 hint= / cfargument name=add2 required=yes default=0 hint= / cfset var sum = cfset sum=arguments.add1+arguments.add2 cfreturn sum /cffunction cffunction name = echo output=no returntype=string access=remote cfargument name=in required=yes default=0 hint= / cfreturn '#arguments.in#' /cffunction /cfcomponent - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=gin.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -