axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Greene (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3037) 'RuntimeException: Unexpected subelement' when wsdl adds a new property
Date Mon, 01 Mar 2010 15:41:05 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-3037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839716#action_12839716
] 

Vincent Greene commented on AXIS2-3037:
---------------------------------------

As far as I know, my patch has not been committed to the base code, so there
is no binary with the fix.  The problem is assigned to  Amila Chinthaka
Suriarachchi<https://issues.apache.org/jira/secure/ViewProfile.jspa?name=amilachinthaka>,
but there has been no response to my posts to the bug, or my patch.

If you need the function provided by the patch, you can get the source and
apply the patch, then use it to do your code generation.  This is a patch to
the generation of the code, so once you build the code with that version,
you can use the base binaries at runtime.


On Mon, Mar 1, 2010 at 12:56 AM, Satish Tottempudi (JIRA)



> 'RuntimeException: Unexpected subelement' when wsdl adds a new property
> -----------------------------------------------------------------------
>
>                 Key: AXIS2-3037
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3037
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.2
>         Environment: Win2k3, Java 6.0, Axis2 1.2
>            Reporter: Chris B
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: futures_new.wsdl, futures_old.wsdl, iu.patch, TestRunner.java
>
>
> I have an client app that was created and had been working, it makes a call to one webservice.
> The webservice was upgraded, it added some new methods and it also added a new property
(Type) to one of the return types I was using.
> Now my app will no longer work, i get a runtime error,  java.lang.RuntimeException: Unexpected
subelement Type, when the results are returned to my service.
> If i rebuilt the client stub code using wsdl2java with the new wsdl my app will work
again.
> As I understand it, adding fields to a object should not break any existing code. Any
Xml elements returned that are not known elements should be ignored and not cause exceptions
in the client code.
> I have tested my assumption with Visual Studio 2005, if i genereate web service client
code using the old wsdl I can still call the new service without an exception being thrown
because of the new Xml element being returned.
> Is there some option that I don't know of that will allow for new elements to be returned
without exceptions being throw?

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message