axis-java-dev mailing list archives

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


Amila Chinthaka Suriarachchi commented on AXIS2-3252:

look at you wsdl. in that wsdl sehma is defined like this
<xsd:schema xmlns:xsd="" targetNamespace="urn:TESTWS">
here it does not have elementFormDefault="qualified" that means it is elementFormDefault="unqualified".

This means, child elements does not belongs to he schema target namesapce. Lets take the two
send by the Axis2 and perl
1. Axis2.
<ns1:createsessionResponse xmlns:ns1="urn:TESTWS">

here child elements does not have a namespace.

2. perl response.
<createsessionResponse xmlns="urn:TESTWS">
                <result_namespace xsi:type="xsd:string">soap</result_namespace>
                <sessionid xsi:type="xsd:string">KFR2A5JH3JZC6LDTVO7L</sessionid>
                <result xsi:type="xsd:int">0</result>

here child elements also belongs to the same namesapce as top element. which is wrong.

Here if you take the very basic idea of the web services is that the implementation should
send the 
response as given in the wsdl.

> 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