axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eran Chinthaka" <eran.chinth...@gmail.com>
Subject Re: Identified AXIS2 Unexpected Element issue but how do I get this to work with stubs
Date Thu, 21 Aug 2008 00:41:46 GMT
Can you share the types section of your WSDL file?

On Wed, Aug 20, 2008 at 1:42 AM, Andrew Zielinski <andrew.zielinski.is@
gmail.com> wrote:

>
> Hi,
>
> Like many users I was having issues with 'unexpected element'. With the
> help
> of TCPMon I was able to resolve the issue. Instead of the soap request
> being
> formed like this:
>
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> ">
> <soapenv:Body>
> <SummaryRequest xmlns="http://online.nielsen.com/ca/api/">
> <accountId>55</accountId>
> <dateRange type="to_end_date">
> <start>2008-11-01T00:00:00.000+10:00</start>
> <end>2008-11-01T00:00:00.000+10:00</end>
> </dateRange>
> </SummaryRequest>
> </soapenv:Body>
> </soapenv:Envelope>
>
> I would need to specify the namespace and prefix in soapenv:Envelope like
> this:
>
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "
> xmlns:q0="http://online.nielsen.com/ca/api/">
> <soapenv:Body>
> <q0:SummaryRequest>
> <accountId>55</accountId>
> <dateRange type="to_end_date">
> <start>2008-11-01T00:00:00.000+10:00</start>
> <end>2008-11-01T00:00:00.000+10:00</end>
> </dateRange>
> </q0:SummaryRequest>
> </soapenv:Body>
> </soapenv:Envelope>
>
> My question is, is there anyway to modify the stub request so it is like
> the
> second example or is there anything that I would I have to do to my WSDL
> for
> the first request to be valid.
>
> Cheers,
>
> Andrew
>
>
> --
> View this message in context:
> http://www.nabble.com/Identified-AXIS2-Unexpected-Element-issue-but-how-do-I-get-this-to-work-with-stubs-tp19063214p19063214.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
With Mettha,
Eran Chinthaka

--------------------------------------------------------------------
Health is the greatest gift; contentment is the greatest wealth; trusting is
the best relationship; nirvana is the highest joy. - Dhammapada

Mime
View raw message