no I don't think (I'm not very used to read xsd, but it seems that no).

I've just understand that I've probably made a mistake.
<xsd:element name="value" type="xsd:anyType"> can contains (according to the 
specs)
xsd:integer, xsd:double, xsd:dateTime, xsd:string, epcisq:ArrayOfString, 
epcisq:VoidHolder

When the server wants
<value><string>oneValue</string></value>

It's not a xsd:string value, but probably a epcisq:ArrayOfString of one element.
epcisq:ArrayOfString is defined as :
<xsd:complexType name="ArrayOfString">
   <xsd:sequence>
        <xsd:element name="string" type="xsd:string" minOccurs="0" 
maxOccurs="unbounded"/>
   </xsd:sequence>
</xsd:complexType>

All I want is to remove the "xmlns:...." inside the value tag :-/

Perhaps I should try to modifiy the <xsd:element name="value" ...> to be a 
epcisq:ArrayOfString type... I'm not sure the server knows how to handle other 
types (bad IBM implementation ???). 
I will try that.

thank you very much ! You help me understand how this works...


----- "Andreas Veithen" <[email protected]> a écrit :

> Is the <string> element defined in the schema?
> 
> Andreas
> 
> On Thu, Aug 27, 2009 at 11:23, <[email protected]> wrote:
> > 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