Thanks for the suggestions. I searched down a similar path - perhaps just
converting the XML schemas to JSON or something would avoid the typing.

But I heartily disagree with you about the WSDL being in XML and the service
itself dealing in JSON being common. I would expect the service to
be described using "JSON Schema" instead of a soap-style XML WSDL - that is
just odd ball.  With the JSON schema you could at least use something from
DOJO to easily create the example data packets given the service
description.





On Fri, Jul 29, 2011 at 4:56 PM, Bryan Stevenson <
[email protected]> wrote:

>
> Not odd at all....WSDLs are in XML, but don't confuse WSDL format with
> input/output formats
>
> It's like saying because CF is Java that it must output Java....which of
> course is not true ;-)
>
> So any webservice will be in XML and it's inputs could be queries/XML
> strings/JSON strings/structures/strings/numbers/etc.
>
> Not sure if that helps you with your test packet issue....but hopefully
> it helps regardless ;-)
>
> Any chance serializeJSON() would help you make those test packets
> without typing it out the hard way?
>
> Cheers
>
>
>
> On Fri, 2011-07-29 at 16:12 -0600, Dan Baughman wrote:
>
> > Well its kind of an odd scenario.
> >
> > I've been given a schema and WSDL for a web service, but the schema and
> WSDL
> > are in XML, but the web service is expecting to receive request in JSON.
> >
> > So, given a more typical web service, you'd get a WSDL and then a tool,
> like
> > Altove XMLspy (or an Eclipse plugin) could generate example soap packets
> for
> > each of the interactions the web service provides, albeit with
> place-holder
> > variables where your data would actually go.
> >
> > In this scenario, I'll have to look at the WSDL on the left monitor and
> > manually type in JSON code into the editor on the right, versus having
> the
> > tool create example data packets.
> >
> > On Fri, Jul 29, 2011 at 2:47 PM, Raymond Camden <[email protected]
> >wrote:
> >
> > >
> > > Are you asking for a tool to _format_ JSON? Not quite sure what you
> mean
> > > here.
> > >
> > >
> > > On Fri, Jul 29, 2011 at 3:24 PM, Dan Baughman <[email protected]>
> > > wrote:
> > > >
> > > > Hi List,
> > > >
> > > > I know there are tons of tools out there that will take a WSDL and
> spit
> > > out
> > > > soap packets that you can simply plug your actual variable values
> into,
> > > but
> > > > doesnt anyone know of anything like that for JSON?
> > > >
> > > > I've got a handlful of schema XML's which are part of a WSDL for a
> JSON
> > > web
> > > > service and am loathing the idea of manually typing out JSON objects
> for
> > > > each complex type.
> > > >
> > > > Suggestions appreciated,
> > > >
> > > > Thanks,
> > > > Dan
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346406
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to