users@jaxb.java.net

Re: namspace in Jaxb2

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Wed, 16 Jun 2010 10:29:53 +0200

Remove the namespace definition from the XML Schema,
probably s.th. like xmlns:bs="http://www.bellsouth.com/IDM"
and targetNamespace="http://www.bellsouth.com/IDM".

You can set the package name with an xjc option.

-W



On 16 June 2010 09:51, Rochak Gupta <rochak005_at_gmail.com> wrote:
> HI ALl,
>
> we have following xml response generated.
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <ns2:message timeToLive="30" clientID="EREPAIR40FZX2EIDNZW7XLKWMKK94J0UBT"
> messageID="" cuid="pjrghmn" systemInstance="region" system="erepair"
> xmlns:ns2="http://www.bellsouth.com/IDM">
> <responsePayload>
> <returnStatus>Success</returnStatus>
> <returnText>Port is now locked</returnText>
> <respData>
> <lockPortResp>
> <portID>SANITY78H01-1-1-1-1</portID>
> <dslTN>1002003004</dslTN>
> </lockPortResp>
> </respData>t
> </responsePayload>
> </ns2:message>
>
> i donot want namespace ns2. What should i do?
>
> Thanks and regards,
> Rochak