Hi, you could try to use the corresponding document class for parsing the document instead of ReqPayLoadType. Something like this:
ReqPayLoadDocument doc = ReqPayLoadDocument.Factory.parse(payload); DecisionServiceReqType decReq = doc.getReqPayLoad().getDecisionServiceRq(); The exact class name depends on you schema. Kind regards Christian On Tuesday 19 May 2009 11:29:50 pattabi wrote: > I found that get_store().find_element_user is returning null. > I even tried setLoadSubstituteNamespaces but with no luck. > > pattabi wrote: > > Hi, > > I am populating my Xmlbean as follows: > > > > ReqPayLoadType pyload = ReqPayLoadType.Factory.parse(payload); > > > > When I save the bean to the outputstream, I am able to see the XML but > > when I access, > > pyload.getDecisionServiceRq(), I am getting Nullpointer Exception. Guess > > it is not a unique problem. Could anyone help me solve this? Thanks > > > > <ds1:payLoadRq xsi:schemaLocation="http://decisionserviceapp > > DecisionServices.xsd" xmlns:ds1="http://decisionserviceapp" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > <ds1:DecisionServiceRq> > > <ds1:Addr> > > <ds1:LocationID>String</ds1:LocationID> > > <ds1:Addr1>String</ds1:Addr1> > > <ds1:Addr2>String</ds1:Addr2> > > <ds1:Addr3>String</ds1:Addr3> > > <ds1:Addr4>String</ds1:Addr4> > > <ds1:City>String</ds1:City> > > <ds1:StateProvCd>String</ds1:StateProvCd> > > <ds1:PostalCode>String</ds1:PostalCode> > > </ds1:Addr> > > <ds1:effectiveDate>2001-12-17T09:30:47.0Z</ds1:effectiveDate> > > <ds1:action>list</ds1:action> > > </ds1:DecisionServiceRq> > > </ds1:payLoadRq> -- Christian Kaltepoth Blog: http://chkal.blogspot.com/ Twitter: http://twitter.com/chkal --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

