Sorry to keep posting short emails to the thread here, I keep coming
up with new ideas... :)

The XSD namespace in your snippet reflects the format of an XML
Schema... something that demands compliance to an XML Schema is
looking for XML text in a very particular format. I didn't realize
that until I saw page 64 in this PDF:
http://www.xfront.com/ExtensibleContentModels.pdf

It's an excerpt from a longer work, so page 64 is right at the front.

But if you look at the Schema at the top of the page, and then at the
document (toward the bottom of page 64) which is goverend by the
Schema, you'll see that your code snippet is a validator for a
particular collection of XML tags in a particular order. Consequently,
I am assuming that your webservice is looking for the XML TEXT, not a
struct OR an XML object like xmlParse would create.

Looking those docs over, I don't know how you could create a struct
element with text and attributes... it boggles. I suppose you'd have
to start at the inside and work your way out.

I'll give it another look later... gotta run for now.

Laterz,
J


On Thu, 10 Feb 2005 17:02:48 -0600, Jared Rypka-Hauer - CMG, LLC
<[EMAIL PROTECTED]> wrote:
> Doug...
> 
> Based on your snippet... the object being passed into the webservice
> has to be validated. That's what XML Schema does, apparently. So it's
> GOT to be looking for find_business.name.xmlText ="ABC Co." or my name
> ain't Fred.
> 
> (Covered myself there, eh? hehe)
> 
> But, if it's in XML, then it oughta follow the rules. So, passing it
> either the string is what I would expect it requires... thus:
> 
> <find_business generic=""yes"" maxRows=""10"">
>         <name lang=""English"">ABC Co.</name>
>         <name lang=""English"">Fred Co.</name>
>         <name lang=""English"">Eddie Co.</name>
>         <name lang=""English"">Rabbit Co.</name>
>         <name lang=""English"">Lichtenstein Co.</name>
> </find_business>
> 
> I doubled up the quotes because CF will require you to wrap the
> document in quotes to assign it to a variable... so you'll have to
> have your internal double quotes escaped or CF will error out.
> 
> I used this to create an XML document object that xmlParse() would read:
> <cfset xmlStuff = "<?xml version=""1.0"" encoding=""UTF-8""?>
> <find_business generic=""yes"" maxRows=""10"">
>         <name lang=""English"">ABC Co.</name>
>         <name lang=""English"">Fred Co.</name>
>         <name lang=""English"">Eddie Co.</name>
>         <name lang=""English"">Rabbit Co.</name>
>         <name lang=""English"">Lichtenstein Co.</name>
> </find_business>">
> 
> I suspect that if you pass that into your web service it'll work.
> 
> Just a thought, give it a try and let me know.
> 
> Laterz,
> J
> 
> PS - the document dump can be viewed here:
> http://w2ksrv1.neo.servequake.com/tmp/
> 
> On Thu, 10 Feb 2005 15:52:08 -0500, Doug James <[EMAIL PROTECTED]> wrote:
> > Jared and Matt,
> >
> > Thank you very much for your help.
> >
> > Jared, the link to livedocs has been poured over but without success.
> >
> > Matt, The xml in question is below. The problem is <find_business> is a 
> > complete type and then
> > <name> is complex as well. I have successfully passed <find_business> and 
> > received output but
> > without <name> I cannot actually search for an organization.
> >
> > Thanks!
> >
> > Doug
> >
> >
> 
> --
> Continuum Media Group LLC
> Burnsville, MN 55337
> http://www.web-relevant.com
> http://cfobjective.blogspot.com
> 


-- 
Continuum Media Group LLC
Burnsville, MN 55337
http://www.web-relevant.com
http://cfobjective.blogspot.com

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

Reply via email to