axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3252) Unexpected subelement
Date Wed, 05 Dec 2007 04:42:43 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-3252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548534
] 

Amila Chinthaka Suriarachchi commented on AXIS2-3252:
-----------------------------------------------------

check the parse methods.

for each child elements it should have something like this,

if (reader.isStartElement() && new javax.xml.namespace.QName("http//tempuri.org/sample4/types",
"param").equals(reader.getName()))
                {

                    java.lang.String content = reader.getElementText();

                    object.setParam(
                            org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));

                    reader.next();

                }  // End of if for expected property start element

here this javax.xml.namespace.QName doesn't have a namespace if the schema is given as unqualified
and
will have a one if it qualified.
Please check whether you point to the changed wsdl or not.  

> Unexpected subelement 
> ----------------------
>
>                 Key: AXIS2-3252
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3252
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: adam
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: classes.rar, jesperp.zip, src.zip, 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 com.cliniccruise.ws.MainClassForWSMainClassForWSSOAP11Port_httpStub.fromOM(MainClassForWSMainClassForWSSOAP11Port_httpStub.java:19136)
> 	at com.cliniccruise.ws.MainClassForWSMainClassForWSSOAP11Port_httpStub.sendMedicenObjetct(MainClassForWSMainClassForWSSOAP11Port_httpStub.java:159)
> 	at com.cliniccruise.ws.WSClient.main(WSClient.java:20)
> Caused by: java.lang.RuntimeException: Unexpected subelement medicineId
> 	at com.cliniccruise.ws.MainClassForWSMainClassForWSSOAP11Port_httpStub$MedicineWVO$Factory.parse(MainClassForWSMainClassForWSSOAP11Port_httpStub.java:14748)
> 	at com.cliniccruise.ws.MainClassForWSMainClassForWSSOAP11Port_httpStub$SendMedicenObjetctResponse$Factory.parse(MainClassForWSMainClassForWSSOAP11Port_httpStub.java:988)
> 	at com.cliniccruise.ws.MainClassForWSMainClassForWSSOAP11Port_httpStub.fromOM(MainClassForWSMainClassForWSSOAP11Port_httpStub.java:19130)
> 	... 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message