> Anyone got some good resources for consuming web services
> with CFMX?? Google hasn't turned up much, but then I'm probably
> using the wrong search terms.

There isn't very much out there, actually, as far as I can tell. Usually,
things aren't very complicated, with the exception of dealing with complex
data types, especially .NET datasets.

> Other question - how can I send NULL through to a web service??
>
> I've got :
> enetws = CreateObject("WebService",wsURL);
> response = enetws.Login(userName="stephen", password="foo");
> LPResponse = enetws.ListProducts(permission=#null#, dateRange=#null#,
> postCodeArea=#null#, rtb=#null#, hasRatings="Either",
> productType=#null#);
>
> where null is set to chr(0), but I'm getting an argument type
> mismatch from the web service.

When you consume a web service, your client is sending a string of XML
(SOAP, specifically) to the web service. Any methods that accept null for an
argument can be sent that directly, as a string, in the few cases I've
encountered. I really don't know what you do if you have to send a specific
data type other than a string, but want to send null as a value.

In the generated SOAP envelope, though, you'd want to end up with something
like this:

<myargument xsi:type="xsd:string">NULL</myargument>

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to