The xsd tells me :
        <xsd:complexType name="QueryParam">

                <xsd:sequence>

                        <xsd:element name="name" type="xsd:string"/>

                        <!-- See note in EPCIS spec text regarding the value 
for this element -->

                        <xsd:element name="value" type="xsd:anyType" />

                </xsd:sequence>

        </xsd:complexType>

What I send with axis2 generated code :

<param><name>eventType</name>

<value xmlns:s23="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:s24="http://www.w3.org/2001/XMLSchema"; 
s23:type="s24:string">ObjectEvent</value>

</param>

What I want to send to note make the server down :
<param><name>eventType</name>

<value><string>ObjectEvent</string></value>

</param>


Is there a difference between xsd:AnyType and xs:AnyType ?

Can't I modify the xsd to fit my needs ? (like saying that value contains a 
<string> or a <datetime> or ... ?, as the possibilities are limitatted. I have 
no problem with modifiying the schema definition) Do you know how can I do that 
?


----- "Amila Suriarachchi" <[email protected]> a écrit :

> How your value element looks like
> 
> <element name="value" type="xs:anyType/>
> 
> if so what you send is not according to the schema. Then I think there
> is not proper solution
> 
> thanks,
> Amila.
> 
> 
> 
> On Thu, Aug 27, 2009 at 1:37 PM, < [email protected] > wrote:
> 
> 
> No one ?
> ----- [email protected] a écrit :
> 
> 
> 
> 
> > >
> > > This is why the client should send the type. Server has said it is
> > > anyType so client has to send the type as the xsi type.
> > > As you have told your server does not process the runtime type,
> > then
> > > it may have assume it as string.
> > >
> > > thanks,
> > > Amila.
> >
> > Well, Amila,
> >
> > the server process the runtime time like this :
> > if it's string, the client send
> > <value><string>thestringvalue</string></value>
> > it it's dateTime, the client send
> > <value><datetime>thedatetime</datetime></value>
> >
> > There's no need of having fully qualified namespace.
> > What makes the server send me an error is that <string> is fully
> > qualified : <string xmlns:xi=http://....>
> > without this, it works (I've tried with SOAPUI)
> >
> > What do you think ? Any possibilities to remove these fully
> qualified
> > namespace attribute ?
> >
> > Cheers, and thanks again
> >
> > --
> > Martin
> 
> 
> 
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/

Reply via email to