You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "McCullough, Ryan" <rm...@rightnow.com> on 2008/04/07 22:44:18 UTC

xml:id does not want to work

In my wsdl, I am importing an xsd schema file. That xsd file has an import:

 

<xs:schema elementFormDefault="qualified"

                 xmlns:xs="http://www.w3.org/2001/XMLSchema"

                 xmlns="urn:<sanitized>"

                 xmlns:rnt="urn:<sanitized>"

           targetNamespace="urn:<sanitized>">

 

  <xs:import namespace="http://www.w3.org/XML/1998/namespace"

                  schemaLocation="xml.xsd" />

 

xml.xsd comes from http://www.w3.org/2001/xml.xsd.

 

I then declare a base object that several other objects extend.

 

    <xs:complexType name="api_base">

        <xs:attribute ref="xml:id" />

        <xs:attribute ref="attr2" />

        <xs:attribute ref="attr3" />

        <xs:attribute name="attr4" type="xs:base64Binary" />

    </xs:complexType>

 

 

    <xs:complexType name="contact" >

        <xs:complexContent>

            <xs:extension base="api_base">

                <xs:sequence>

                    <!-Attributes go here-->

                </xs:sequence>

            </xs:extension>

        </xs:complexContent>

    </xs:complexType>

 

 

The problem is that Axis does not seem to like the xml:id. The xml:id
attribute is not declared in objects.

 

Ideas?

 

Ryan McCullough | RightNow Technologies | Integration Tools Engineer

406-556-3162 office | Bozeman, MT |  <ma...@rightnow.com>
rmccullough@rightnow.com |  <http://www.rightnow.com/>
http://www.rightnow.com

 


RE: xml:id does not want to work

Posted by "McCullough, Ryan" <rm...@rightnow.com>.
Written up as AXIS-2735.

https://issues.apache.org/jira/browse/AXIS-2735

-----Original Message-----
From: Anne Thomas Manes [mailto:atmanes@gmail.com] 
Sent: Thursday, April 10, 2008 2:52 PM
To: axis-user@ws.apache.org
Subject: Re: xml:id does not want to work

Please file a JIRA.

On Tue, Apr 8, 2008 at 12:31 PM, McCullough, Ryan
<rm...@rightnow.com> wrote:
> Anne,
>
>  Thank you for looking at my issue.
>
>  I added that namespace (I tried both the <xs:schema> and <xs:import>) and
it
>  still does not generate the xml:id attribute in the objects.
>
>  -Ryan
>
>
>
>  -----Original Message-----
>  From: Anne Thomas Manes [mailto:atmanes@gmail.com]
>  Sent: Tuesday, April 08, 2008 8:33 AM
>  To: axis-user@ws.apache.org
>  Subject: Re: xml:id does not want to work
>
>  You need to also declare the "xml" namespace prefix:
>
>  xmlns:xml="http://www.w3.org/XML/1998/namespace"
>
>  Anne
>
>  On Mon, Apr 7, 2008 at 1:44 PM, McCullough, Ryan
>  <rm...@rightnow.com> wrote:
>  >
>  >
>  >
>  >
>  > In my wsdl, I am importing an xsd schema file. That xsd file has an
>  import:
>  >
>  >
>  >
>  > <xs:schema elementFormDefault="qualified"
>  >
>  >                  xmlns:xs="http://www.w3.org/2001/XMLSchema"
>  >
>  >                  xmlns="urn:<sanitized>"
>  >
>  >                  xmlns:rnt="urn:<sanitized>"
>  >
>  >            targetNamespace="urn:<sanitized>">
>  >
>  >
>  >
>  >   <xs:import namespace="http://www.w3.org/XML/1998/namespace"
>  >
>  >                   schemaLocation="xml.xsd" />
>  >
>  >
>  >
>  > xml.xsd comes from http://www.w3.org/2001/xml.xsd.
>  >
>  >
>  >
>  > I then declare a base object that several other objects extend.
>  >
>  >
>  >
>  >     <xs:complexType name="api_base">
>  >
>  >         <xs:attribute ref="xml:id" />
>  >
>  >         <xs:attribute ref="attr2" />
>  >
>  >         <xs:attribute ref="attr3" />
>  >
>  >         <xs:attribute name="attr4" type="xs:base64Binary" />
>  >
>  >     </xs:complexType>
>  >
>  >
>  >
>  >
>  >
>  >     <xs:complexType name="contact" >
>  >
>  >         <xs:complexContent>
>  >
>  >             <xs:extension base="api_base">
>  >
>  >                 <xs:sequence>
>  >
>  >                     <!-Attributes go here-->
>  >
>  >                 </xs:sequence>
>  >
>  >             </xs:extension>
>  >
>  >         </xs:complexContent>
>  >
>  >     </xs:complexType>
>  >
>  >
>  >
>  >
>  >
>  > The problem is that Axis does not seem to like the xml:id. The xml:id
>  > attribute is not declared in objects.
>  >
>  >
>  >
>  > Ideas?
>  >
>  >
>  >
>  > Ryan McCullough | RightNow Technologies | Integration Tools Engineer
>  >
>  > 406-556-3162 office | Bozeman, MT | rmccullough@rightnow.com |
>  > http://www.rightnow.com
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>  For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: xml:id does not want to work

Posted by Anne Thomas Manes <at...@gmail.com>.
Please file a JIRA.

On Tue, Apr 8, 2008 at 12:31 PM, McCullough, Ryan
<rm...@rightnow.com> wrote:
> Anne,
>
>  Thank you for looking at my issue.
>
>  I added that namespace (I tried both the <xs:schema> and <xs:import>) and it
>  still does not generate the xml:id attribute in the objects.
>
>  -Ryan
>
>
>
>  -----Original Message-----
>  From: Anne Thomas Manes [mailto:atmanes@gmail.com]
>  Sent: Tuesday, April 08, 2008 8:33 AM
>  To: axis-user@ws.apache.org
>  Subject: Re: xml:id does not want to work
>
>  You need to also declare the "xml" namespace prefix:
>
>  xmlns:xml="http://www.w3.org/XML/1998/namespace"
>
>  Anne
>
>  On Mon, Apr 7, 2008 at 1:44 PM, McCullough, Ryan
>  <rm...@rightnow.com> wrote:
>  >
>  >
>  >
>  >
>  > In my wsdl, I am importing an xsd schema file. That xsd file has an
>  import:
>  >
>  >
>  >
>  > <xs:schema elementFormDefault="qualified"
>  >
>  >                  xmlns:xs="http://www.w3.org/2001/XMLSchema"
>  >
>  >                  xmlns="urn:<sanitized>"
>  >
>  >                  xmlns:rnt="urn:<sanitized>"
>  >
>  >            targetNamespace="urn:<sanitized>">
>  >
>  >
>  >
>  >   <xs:import namespace="http://www.w3.org/XML/1998/namespace"
>  >
>  >                   schemaLocation="xml.xsd" />
>  >
>  >
>  >
>  > xml.xsd comes from http://www.w3.org/2001/xml.xsd.
>  >
>  >
>  >
>  > I then declare a base object that several other objects extend.
>  >
>  >
>  >
>  >     <xs:complexType name="api_base">
>  >
>  >         <xs:attribute ref="xml:id" />
>  >
>  >         <xs:attribute ref="attr2" />
>  >
>  >         <xs:attribute ref="attr3" />
>  >
>  >         <xs:attribute name="attr4" type="xs:base64Binary" />
>  >
>  >     </xs:complexType>
>  >
>  >
>  >
>  >
>  >
>  >     <xs:complexType name="contact" >
>  >
>  >         <xs:complexContent>
>  >
>  >             <xs:extension base="api_base">
>  >
>  >                 <xs:sequence>
>  >
>  >                     <!-Attributes go here-->
>  >
>  >                 </xs:sequence>
>  >
>  >             </xs:extension>
>  >
>  >         </xs:complexContent>
>  >
>  >     </xs:complexType>
>  >
>  >
>  >
>  >
>  >
>  > The problem is that Axis does not seem to like the xml:id. The xml:id
>  > attribute is not declared in objects.
>  >
>  >
>  >
>  > Ideas?
>  >
>  >
>  >
>  > Ryan McCullough | RightNow Technologies | Integration Tools Engineer
>  >
>  > 406-556-3162 office | Bozeman, MT | rmccullough@rightnow.com |
>  > http://www.rightnow.com
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>  For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: xml:id does not want to work

Posted by "McCullough, Ryan" <rm...@rightnow.com>.
Anne,

Thank you for looking at my issue.

I added that namespace (I tried both the <xs:schema> and <xs:import>) and it
still does not generate the xml:id attribute in the objects.

-Ryan

-----Original Message-----
From: Anne Thomas Manes [mailto:atmanes@gmail.com] 
Sent: Tuesday, April 08, 2008 8:33 AM
To: axis-user@ws.apache.org
Subject: Re: xml:id does not want to work

You need to also declare the "xml" namespace prefix:

xmlns:xml="http://www.w3.org/XML/1998/namespace"

Anne

On Mon, Apr 7, 2008 at 1:44 PM, McCullough, Ryan
<rm...@rightnow.com> wrote:
>
>
>
>
> In my wsdl, I am importing an xsd schema file. That xsd file has an
import:
>
>
>
> <xs:schema elementFormDefault="qualified"
>
>                  xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
>                  xmlns="urn:<sanitized>"
>
>                  xmlns:rnt="urn:<sanitized>"
>
>            targetNamespace="urn:<sanitized>">
>
>
>
>   <xs:import namespace="http://www.w3.org/XML/1998/namespace"
>
>                   schemaLocation="xml.xsd" />
>
>
>
> xml.xsd comes from http://www.w3.org/2001/xml.xsd.
>
>
>
> I then declare a base object that several other objects extend.
>
>
>
>     <xs:complexType name="api_base">
>
>         <xs:attribute ref="xml:id" />
>
>         <xs:attribute ref="attr2" />
>
>         <xs:attribute ref="attr3" />
>
>         <xs:attribute name="attr4" type="xs:base64Binary" />
>
>     </xs:complexType>
>
>
>
>
>
>     <xs:complexType name="contact" >
>
>         <xs:complexContent>
>
>             <xs:extension base="api_base">
>
>                 <xs:sequence>
>
>                     <!-Attributes go here-->
>
>                 </xs:sequence>
>
>             </xs:extension>
>
>         </xs:complexContent>
>
>     </xs:complexType>
>
>
>
>
>
> The problem is that Axis does not seem to like the xml:id. The xml:id
> attribute is not declared in objects.
>
>
>
> Ideas?
>
>
>
> Ryan McCullough | RightNow Technologies | Integration Tools Engineer
>
> 406-556-3162 office | Bozeman, MT | rmccullough@rightnow.com |
> http://www.rightnow.com
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: xml:id does not want to work

Posted by Anne Thomas Manes <at...@gmail.com>.
You need to also declare the "xml" namespace prefix:

xmlns:xml="http://www.w3.org/XML/1998/namespace"

Anne

On Mon, Apr 7, 2008 at 1:44 PM, McCullough, Ryan
<rm...@rightnow.com> wrote:
>
>
>
>
> In my wsdl, I am importing an xsd schema file. That xsd file has an import:
>
>
>
> <xs:schema elementFormDefault="qualified"
>
>                  xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
>                  xmlns="urn:<sanitized>"
>
>                  xmlns:rnt="urn:<sanitized>"
>
>            targetNamespace="urn:<sanitized>">
>
>
>
>   <xs:import namespace="http://www.w3.org/XML/1998/namespace"
>
>                   schemaLocation="xml.xsd" />
>
>
>
> xml.xsd comes from http://www.w3.org/2001/xml.xsd.
>
>
>
> I then declare a base object that several other objects extend.
>
>
>
>     <xs:complexType name="api_base">
>
>         <xs:attribute ref="xml:id" />
>
>         <xs:attribute ref="attr2" />
>
>         <xs:attribute ref="attr3" />
>
>         <xs:attribute name="attr4" type="xs:base64Binary" />
>
>     </xs:complexType>
>
>
>
>
>
>     <xs:complexType name="contact" >
>
>         <xs:complexContent>
>
>             <xs:extension base="api_base">
>
>                 <xs:sequence>
>
>                     <!—Attributes go here-->
>
>                 </xs:sequence>
>
>             </xs:extension>
>
>         </xs:complexContent>
>
>     </xs:complexType>
>
>
>
>
>
> The problem is that Axis does not seem to like the xml:id. The xml:id
> attribute is not declared in objects.
>
>
>
> Ideas?
>
>
>
> Ryan McCullough | RightNow Technologies | Integration Tools Engineer
>
> 406-556-3162 office | Bozeman, MT | rmccullough@rightnow.com |
> http://www.rightnow.com
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org