xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Fernández (JIRA) <xmlbeans-...@xml.apache.org>
Subject [jira] Commented: (XMLBEANS-329) Problems with ADB Client and XMLBeans Service
Date Sun, 06 May 2007 11:50:15 GMT

    [ https://issues.apache.org/jira/browse/XMLBEANS-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493923
] 

Jorge Fernández commented on XMLBEANS-329:
------------------------------------------

The strange thing is that I tried the code Jacob wrote and it worked out perfectly. 

I don't know if you had a look at it but it has a main function and the getDetailedMonitoringStages
that I had in my service as a static method. When I run that client, the main method invokes
the service (without axis) and validates it. 

So that worked out and I was using the classes generated by the Axis2 Code Generate Eclipse
Plugin for xmlbeans. 

But when the getDetailedMonitoringStages operation is in an Axis2 server, it doesn't generate
the message correctly (always using the same code generated classes from xmlbeans). I didn't
use scomp at all.

I just realized that the xmlbeans client doesn't get the parameterDependencies from parsing.
It detects that there are some dependencies but it thinks that it's a Parameter instance and
not PrimitiveParameter neither AbstractParameter.

> Problems with ADB Client and XMLBeans Service
> ---------------------------------------------
>
>                 Key: XMLBEANS-329
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-329
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Binding
>    Affects Versions: Version 2.2
>         Environment: Windows XP SP2, Axis 2 1.2, Java 1.6
>            Reporter: Jorge Fernández
>         Attachments: API.wsdl, ClientXmlBeans.java, CodeGenerationUtility.java
>
>
> This JIRA is related with the message from the axis-user mailing list "Issue with ADB
and parsing a response message (namespaces)"
> I couldn't reproduce the problem I described in that email but when I fixed that problem
I found another one and this is which I'm reporting.
> First, some introduction.
> In my response message there is an array of  Stages which have one or more Configurations.
Each Configuration has AbstractParameters and PrimitiveParameters (that inherit from Parameter).
Also each Parameter may depend on other so the class Parameter has an array of Parameter called
dependencies.
> My problem happens only if I have ADB at client side and XMLBeans at service side. Any
other combination works perfectly. (I attach the wsdl and client and service for both databindings).
> When my ADB client parses the response message, it enters Stage.Factory.parse method,
then it enters, Configuration.Factory.parse method. Next, AbstractParameter.Factory.parse
method (because the first parameter is abstract) and later it want to parse the dependencies
of this parameter so it enters Parameter.Factory.parse method. Here, there is a PrimitiveParameter
with no dependencies on oher parameters so it enters Signal.Factory.parse method for getting
signal dependencies. It returns ok
> Finally, the problem comes out when after getting SignalDependencies from this PrimitiveParameter,
it gets the Type element which is in the Parameter class and now there is the gain element
that is part of PrimitiveParameter and not of his parent. so it throws an exception because
it didn't expect it.
> Hope this explanation could be useful but if not, the wsdl could be.
> I refer you to JIRA: https://issues.apache.org/jira/browse/AXIS2-2578 
> That JIRA is the same as this one. I reported it as an ADB bug but as you can see there,
finally the problem seems to be xmlbeans. You can also find there the files to reproduce the
JIRA.

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


Mime
View raw message