Where should I place a SWC file that describes a complex structure for a web service?

Hello!

I am creating a web service in ColdFusion 9, which returns a complex structure or has a complex argument.  I'm placing the .cfc file that describes the structure in the same directory as the .cfc which uses the structure.  Right now just trying to get a wsdl.

I have currently two functions in my .cfc, first returns a string.  The other ideally returns an array of strings.  Saying returntype = "String()" gives an error that ColdFusion could analyze no chain

So I tried to make a type defined by the individual item being a string:

< cfproperty >
< cfcomponent name = "Info source" type = "string" >
< cfproperty >

------------------------------------
Is my code that uses this cfc:

< cfproperty >
< cffunction name = "getzips" returntype = "remote access" = "string" >
< cfset #resultsCommaDelimtedZips # = "this is the result" >
< cfreturn CommaDelimitedZips >
< / cffunction >

< cffunction name = "getInfoSources" access returntype = "at distance" = "InfoSources []" >
< / cffunction >
< / cfproperty >

The error I get is:

AXIS error

Sorry, something seems to have gone wrong... Here are the details:

Error - error trying to create the skeleton of Java for web service CFC. ; nested exception is:
coldfusion.xml.rpc.CFCInvocationException: [coldfusion.compiler.ParseException: invalid CFML construct found on line 3 in column 1.] ColdFusion was looking at the following: < p > & lt; < /p > < p > the CFML compiler treated: < ul > & lt; marks the beginning of a ColdFusion tag. Did you mean LT or LTE? < /ul >]

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.generalException
faultSubcode:
faultString: error trying to create the skeleton of Java for web service CFC. ; nested exception is:
coldfusion.xml.rpc.CFCInvocationException: [coldfusion.compiler.ParseException: invalid CFML construct found on line 3 in column 1.] ColdFusion was looking at the following: < p > & lt; < /p > < p > the CFML compiler treated: < ul > & lt; marks the beginning of a ColdFusion tag. Did you mean LT or LTE? < /ul >]
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/} hostname:ntc15

----------------------------
I have a similar problem if I use cfcomponent:

< cfproperty >
< cfcomponent name = "approved" type = "string" >
< cfcomponent name = "total_charged" type = "string" >
< cfcomponent name = "charge_error" type = "string" >
< cfcomponent name = "renewed_until" type = "string" >
< cfcomponent name = "reason" type = "string" >
< cfproperty >

http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=webservices_20.html said
Note: If the files of the components are not in a directory under the web root, you must create a server web mapping to the directory that contains them. You cannot use ColdFusion mappings to access web services.

So I tried putting the .cfc file in a directory under my folder wwwroot rather than inside.  That did not help.

Any suggestions?  I feel that I did exactly what all the documents I can find tells me to do!

Thank you!

-Mabel :-)

We work collaboratively with another company that makes the front-end server, by using the web service, so I need the wsdl show the kind of real data, not just "any", that is using what is 'array'.

If I use your code (add a name for the echoStatus argument), I get

How can I tell it a table of _strings_ specifically?

ColdFusion is loosely typed, so I wonder if we can be so specific in the type of data, without resorting to Java for example. But then again, you will meet soon all sorts of complications. A ColdFusion array and an array of java are 2 totally different things. Run the following code and you'll see why


#testArray.getClass () .getName () #.

in any case, because the strings are is a subset of the type 'all', your service includes also the case where an array of strings is returned.

Tags: ColdFusion

Similar Questions

  • I'm having a problem with the FireFox browser. I have attached two files that describe the problem. I have marked their A &amp; B. A is the way it should lo

    I'm having a problem with the FireFox browser. I have attached two files that describe the problem. I have marked their A & B. A is how it should look like and B what happens once I have, I opened several tabs. I can get it back to normal if I click VIEW, click Customize. When the window customize appears that Firefox returns to its normal state. I have to click on the done button and go back to what I did. I tried to reset FireFox back to the default settings, but that has not fixed the problem.
    It started happening a month. Is there a way I can fix this? Thanks for your help. I don't know how to fix my 2 attachments that shows the problem I'm having.
    [email address removed to protect your privacy and security]

    Try disabling hardware acceleration in Firefox.

  • Which product should I create a PDF file that I can put on my website for people to sign?

    Which product should I create a PDF file that I can put on my website for people to sign?

    Hi pattiw97437213,

    You can create interactive PDF forms using Acrobat DC & then post it on the Web site.

    See Help below links for reference: -.

    Kind regards
    Nicos

  • Where should I put a batch file which should go when starting?

    I have a small batch file that I want to run automatically during system startup.  I knew where put it to XP but 7 me baffled.  I am the user or owner.

    Thanks for your help.

    Tips from Microsoft http://windows.microsoft.com/en-us/windows/run-program-automatically-windows-starts#1TC=windows-7

    or

    For the current user:

    C:\Users\username\AppData\Roaming\Microsoft\Window s\Start Menu\Programs\Startup

    For all users:
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

    If the above doesn't help, you can create a scheduled task in market 'start up' or a 'connection '? http://www.thewindowsclub.com/how-to-schedule-batch-file-run-automatically-Windows-7 gives the general idea.

  • where should I place Facebook ad code

    where should I put the announcement of Facebook tracking code, I I don't know what to do with it

    In general, you can post code directly in the Muse as a built-in code - in your case, try copying the code segment you want to incorporate and paste it into the head section of your Web site. In addition, you can try the method of copy and paste in the metadata section of muse, as described here:

    Add code in muse adobe facebook conversion tracking?

  • problems with the XML that is returned when you call a web service with CF11

    Hi, I ran into an unusual behavior when calling web services.

    I call a web service that returns an XML like this:

    < children >

    < child >

    John < firstname > < / name >

    DOE < name > < / lastname >

    < / child >

    < / children >

    during the call to the web service of CF10, it works fine. However, when the CF11, I don't get this:

    < child >

    John < firstname > < / name >

    DOE < name > < / lastname >

    < / child >


    no < child >? for some reason, CF11 ignores / hides the highest level XML. This does not happen on previous versions. Why? the server that hosts the web service's CF11 too.

    Report it as a bug in Coldfusion. In any case, I recommend making sure your web service returns a string, not an XML object.

    This is because a web service must be universal. Appellants to .NET, Java, PHP, ASP and so on, will interpret a chain exactly the same way. Whereas an object XML Coldfusion is a construction that is heard only in CFML.

    Your return string should also start with the XML declaration, like this

    John

    DOE

    So it is clear to the appellant in which brought the cat.

  • where should I place a. APK files on my windows 8.0

    I want to get a couple of emulators on my phone but I don't have internet or service on my phone so im trying to put them on through my cromebook is there a way I can do it if it will work?

    Hello

    Welcome to the Microsoft community.

    You cannot open a file with extension .apk directly in windows unless you use an emulator. the .apk files are designed to run on the Android operating system, which is used on smartphones and tablets.

    It will be useful.

  • Where should I place my actions?

    Since the transition to AS3, I'm totally confused on the placement of the shares on the timeline?

    My confusion is with the placement of the event listener and the function of each button.

    It seems to me that the button should be on the stage BEFORE the measures are defined, this means that action must always be set out in a framework once the button appeared?

    This seems to be quite dirty and not as sensitive as previous versions where listeners events etc. where just NEGLIGIBLE in box no. 1 and I have no idea how this could work with dynamic execution buttons.

    Or... am I missing something very obvious (which is much more likely)?

    Concerning

    Dave

    As usual, there are several ways to fix what you do. I prefer to put all my listeners the first image and show and hide things, but this isn't always the best solution. In any case, here's an example of how you could do.

  • Where should I copy my personal files temporarily before you run the HP Recovery Manager?

    Hi to everyone at HP!

    Recently, I am experiencing problems with my HP Pavilion dv6, so in order to solve these problems, I have decided to use the HP Recovery Manager to restore the factory specifications it is. I was committed to do when I realized that I didn't have a way to back up my personal files (I don't own an external hard drive, nor enough empty disks).

    After reading this post , I learned that I can save my files to a partition in the HARD drive.

    (Hope I'm clearly so far)

    It turns out that I have 3 drivers of partition (C :), (d) and (e).)

    My question is; If I temporally copy my personal files (d :) or readers (E :), they will always be there after that I completed the recovery operation?))

    Thanks for your time.

    D: is your recovery partition, and no file should be backed up/saved there. Saving files it can cause the recovery fails.

    E is probably the small partition system used by Win 7 to start. Not a good idea to save it & probably not enough space anyway.

    Better to wait until you have an external source to backup the files.

    BTW, if using recovery disks for HP reinstall will erase all partitions and restore to the factory plug. Only recovery F11 or Recovery Manager in the menu start leash added partition intact.

  • How and where should I send the log file in the crash Muse?

    What muse crash - I see the message something like that... muse crash - send the log file for developers. and the ok"" button.

    Hmm... strange - after google search as send muse log - I can't find solutions! I think that I find good plase to shere my question!

    So... Developers - I can send you will break the log files to better muse! Tell me where to send!

    See the answer of Zak in this post on the forum. Let us know if this helped.

    Muse: error 1009: site does not open

    Adobe Muse CC error 1009. Need help!

    Thank you

    Preran

  • Where should I put the edge files when the publication of Muse in British Colombia?

    The only thing that I could find on this is older versions of the song and the Muse.

    What I've read suggests that we must put all the edge.html and edge.js files in the root with other html pages. This leaves the edge includes in their own separate folder.

    I WAS NOT ABLE TO DO THIS WORK.

    I am able to double-click on the edge. HTML read file in a browser, but when I try to play after the publication of Muse - no luck.

    I also wonder what happens when I want to put animations of edge on several pages in a site of Muse. It seems with the root level would become cluttered with so many files Edge. And how all of these files "Edge includes" get renamed?

    I would love to see tighter integration between Edge and Muse. But for now, I would be very happy just being able to play my animations of edge in the Muse websites published. As much as I would use it, I can't use Edge if I can't get the animations to play in the Muse.

    Thanks for any help...

    Hello

    You may have not found this article at the right time, but there are Ko an article explaining how to insert the contents of edge in a site of Muse.
    Basically, what you have to do is, after you publish the Edge project, to take the exported folder or just the files, (but I'm quite to take measures into the whole folder) and download them to your FTP where the Muse website is published. After that, simply use the option "object > insert HTML...". "muse and paste the code from

  • Where should I place main.asc?

    Hi ~ all.

    I placed the main.asc in /FMS/webroot/main.asc

    It does not work.

    so I put here.

    / FMS/Webroot/MyApplication/hand. CSA

    This also does not work.

    The path is correct?

    How FMS can recognize main.asc file?

    Thanks in advance.

    To connect to an application, the server must know that there is a demand. This process is called registration request to the server. To register an application with the server, create a folder of application in the applications folder. For example, create the following folder to save an application called "MyApplication":

    RootInstall/applications/myApplication

  • What should I do with a file that cannot be destroyed or moved?

    It is labeled Acr872290399916... 0.tmp @.

    Ignore it or restart the system.

  • Where can I download the sample files LCA described in the documentation?

    For example, http://help.adobe.com/en_US/livecycle/9.0/samples/ServiceUsageSampleFormsInvokeWebServiceF romPDFForm.html made reference to the file in archive Adobe-samples-Service - Forms.lca, but this file is not on my system or on the server.  Where can I get?  Thank you.

    You can download the samples to http://help.adobe.com/en_US/livecycle/9.0/samples/lc_sample_service.html.

    Click 'Download' for the service you want. For example, to the forms service, click 'Download' next to the heading service of forms.

    Hope that helps!

    ... Gil

  • Where can I download an installation file of Acrobat Pro version 9 for Mac

    I had Acrobat Pro 9 version works fine under Snow Leopard, but since the upgrade to the first Mavericks then Yosemite there problems. I ran it under Snow leopard Server and parallels but after some problems, you have to reinstall and I can't find an appropriate installation file.

    I searched the Adobe web site and came up with the Windows version, but my serial number for Mac version isn't good for it. Any ideas where I could find the file?

    Hi Tony,.

    You can also try to download from this page: products download Acrobat | 9: 8

    Best,

    Sara

Maybe you are looking for

  • Update/save a profile?

    An hour ago, I myself did a huge favour and accidentally reset firefox, lose all my extensions, open tabs and web history. However, I found my 'old data firefox' and copied the information that I needed on my new profile (using the guide found here:

  • HP dv6 single fan.

    The laptop is an hp dv6-3143us and I for about 2 years. Fan problems began a year ago, where the fan would be hard but virtually no air out the vents. I sent twice and was set twice, but the problem would come back later. I can't get the laptop fixed

  • MSN Web site

    Is someone can you please tell me why my PC keeps freezing up on top of me whenever I go on MSN? And then, how can I fix this nuisance? For the last month or two, I sometimes have to restart 4-5 times within a period of 2 hours.

  • R720 SERVER DISCO

    Hello to all, ROM acquistare disco Dell 8WP8W 600 GB SAS 10 K 6 GB/s 2.5 "disk 0B 25656 HUC106060CSS600. You can indicarmi Dove o se e possibile sul portale Dell, link it postandomi? Grazie

  • I received an email about the unusual activities Microsoft Account, is phishing?

    I just received the following email. Is it authentic? Microsoft account Any activity unusual connection We have detected something unusual on a recent sign-in for the Microsoft account (I deleted the email address). To help ensure your safety, we req