axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesper Peterson (JIRA)" <>
Subject [jira] Commented: (AXIS2-3252) Unexpected subelement
Date Mon, 03 Dec 2007 00:33:43 GMT


Jesper Peterson commented on AXIS2-3252:

More "unexpected subelement" namespace madness. Same basic issue as Olivier descibes.

My setup is: Axis2-1.3 generated stub talking to perl SOAP server under apache.  The wsdl
(generated by perl), stub source, response xml and exception are attached as is the xml response
from an axis2 server skeleton generated from the same WSDL (which allows the client to work).
The attachments are bundled in 

Is there/should there be a way to make the generated stub less picky about namespace prefixes?
In my case reader.getName() (line 2697 of returns "{urn:TESTWS}createsessionReturn"
while the temporary QName is just "createsessionReturn" as is reader.getLocalName(). 

As far as I can tell the --suppress-prefixes option only applies to the writer.

I've reverted to using the Axis1 generated stub, which works with the perl-based server, where
the operation setup looks like this:

        oper = new org.apache.axis.description.OperationDesc();
        oper.setReturnType(new javax.xml.namespace.QName("urn:TESTWS", "createsessionResponseType"));
        oper.setReturnQName(new javax.xml.namespace.QName("", "createsessionReturn"));
        _operations[2] = oper;

It doesn't seem to expect createsessionReturn to be qualified with the namespace either so
the issue seems to be either why the axis2 stub uses reader.getName() rather than getLocalName(),
or why do the two methods differ for this WSDL/response.

Hopefully this helps make axis2 deal with a less than ideal world :).

> Unexpected subelement 
> ----------------------
>                 Key: AXIS2-3252
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: adam
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: classes.rar,, the classes.rar
> Hi, 
> I try to make web service with eclipse and axis2 .. and i recieve the following exception
and i don't know what is the casue : 
> Exception *****************: 
> Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected
subelement medicineId
> 	at
> 	at
> 	at
> Caused by: java.lang.RuntimeException: Unexpected subelement medicineId
> 	at$MedicineWVO$Factory.parse(
> 	at$SendMedicenObjetctResponse$Factory.parse(
> 	at
> 	... 2 more
> The class that i make from it the web service is : "MainClassForWS"  
> and my client test is : "WSClient" 
> All the class relative to this exception in the attachment file 
> i need to know from where this exception come and what causes it and what is the solution
for it .
> Thanks.
> M.adam

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message