Re: FW: [Fwd: more fun with web services]

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: FW: [Fwd: more fun with web services]

shakeshuck
Hi Tamara,

I just responded to Holger saying that neither returnStatus nor
timestamp is null, they both contain a value.

I used the VW wizard to create the classes, so the types should be OK.
Timestamp in the wsdl is defined as dateTime from the XML schema.

I just discovered that when generating the classes, there is an error
that mentions a duplicate 'pattern'. This meant nothing to me until I
looked in the schema document; pattern is a facet of dateTime. I don't
know if this is related.

Unfortunately, other than using wsdl->class generation tools in other
languages, I'm not well versed in wsdl. As this document was provided by
a working service, I expect it to be OK.

Thanks for any input you can give.

Graham.

Kogan, Tamara wrote:

> Hi Graham,
>
> Sorry, it looks like I missed your mail.
>
>
> Unhandled exception: Complex type:
> {ListTopLevelEventsResponse} is missing mandatory node: <returnStatus>
>
> The equivalent message is also returned for timestamp.
>
>
> Is there a problem with the web service access routines, whereby they
> don't recognise inherited characteristics, or am I possibly doing
> something stupid?
>
>
> We do recognize the inherited inst. vars. Check how you prepared
> parameters for the service. If this complain happens to be while
> marshaling the request it means the object (ListTopLevelEventsResponse)
> you provided as parameter doesn't have #returnStatus/#timestamp values.
> The values were defined by the XML schema types as mandatory and the
> marshaler wants them in the object.
> Make sure that the #returnStatus/#timestamp have correct types.
>
>
> Tamara Kogan
> Smalltalk development,
> Cincom Systems
>
> -------- Original Message --------
> Subject: more fun with web services
> Resent-Date: 5 Oct 2007 16:32:05 -0000
> Resent-From: [hidden email]
> Resent-CC: recipient list not shown: ;
> Date: Fri, 05 Oct 2007 17:42:14 +0100
> From: Graham Stephens <[hidden email]>
> To: [hidden email]
>
>
> I've used the wsdl-to-class generator to create a client for the BetDaq
> site. Two of the classes look like this:
>
>
> Smalltalk.BetDaqWSClient defineClass: #BaseResponse
> superclass: #{Core.Object}
> indexedType: #none
> private: false
> instanceVariableNames: 'returnStatus timestamp '
> classInstanceVariableNames: ''
> imports: ''
> category: 'Web Services'
>
>
> Smalltalk.BetDaqWSClient defineClass: #ListTopLevelEventsResponse
> superclass: #{BetDaqWSClient.BaseResponse}
> indexedType: #none
> private: false
> instanceVariableNames: 'eventClassifiers '
> classInstanceVariableNames: ''
> imports: ''
> category: 'Web Services'
>
>
> The problem I have is that when I inspect my code to access the service,
> I get:
>
> Unhandled exception: Complex type:
> {ListTopLevelEventsResponse} is missing mandatory node: <returnStatus>
>
> The equivalent message is also returned for timestamp.
>
>
> Is there a problem with the web service access routines, whereby they
> don't recognise inherited characteristics, or am I possibly doing
> something stupid?
>
> Graham.
>
>
>