axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Naecker (JIRA)" <>
Subject [jira] Commented: (AXIS2-2971) Client and Service were build (adb) with the same wsdl / xsd, but the elements created by the service were invalid (required attribute name is missing)
Date Wed, 18 Jul 2007 06:47:04 GMT


Thomas Naecker commented on AXIS2-2971:

Files xmime.xsd and MessageReceiver attached, the Skeleton class is only extended by my Service
class and this one calls another MessageProcessing class on which i haven´t the permission
to attach, sorry. A line with the build call i have not found in my MessageReceiver. The problem
in my opinion is the part when i want to add the source element in my response (or the part
where axis2 is creating the response for that element). I tried several methods, like only

SourceType source = new SourceType();
source = myServiceRequest.getSource();

for setting the whole source tree,

or i tried to get all of the child elements first and set them to my new source element. The
result was the same. When i print out the values of the elements in the paramType Element,
the string part is valid like: 'only_a_string', when axis2 creates the message it will apear
with a <string> element with the value 'only_a_string'!

> Client and Service were build (adb) with the same wsdl / xsd, but the elements created
by the service were invalid (required attribute name is missing)
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>                 Key: AXIS2-2971
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb, wsdl
>    Affects Versions: 1.2
>         Environment: Windows XP, Eclipse WTP, Axis2 1.2
>            Reporter: Thomas Naecker
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments:, MyService.wsdl, MyServiceSchema.xsd,
> I created a Client and a Service with the same wsdl / xsd files. The messages which creates
the client are valid, the response of the service is invalid. They use the same element <source>
in the message.
> The Client Message looks like:
> ...
> <source xmlns="">
>    <system>TraCE</system>
>    <parameter name="test">list_of_traceids</parameter>
> </source>
> ...
> (Don´t know why there is an empty ns attribute?)
> The Response of the Service is:
> ...
> <source>
>   <system>TraCE</system>
>   <parameter name="test">
>     <string xmlns="">list_of_traceids</string>
>   </parameter>
> </source>
> ...
> The exception:
> Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Required
attribute name is missing
> 	at localhost.webservice.CarsysServiceSOAP12Stub.fromOM(
> 	at localhost.webservice.CarsysServiceSOAP12Stub.sendCarsysRequest(
> 	at localhost.webservice.CarsysClient.main(
> Caused by: java.lang.RuntimeException: Required attribute name is missing
> 	at localhost.webservice.CarsysServiceSOAP12Stub$ParamType$Factory.parse(
> 	at localhost.webservice.CarsysServiceSOAP12Stub$SourceType$Factory.parse(
> 	at localhost.webservice.CarsysServiceSOAP12Stub$CarsysServiceResponse$Factory.parse(
> 	at localhost.webservice.CarsysServiceSOAP12Stub.fromOM(
> 	... 2 more
> The required element name is set by the client and the service, but the service adds
also an additional <string> element. 
> For the codegen was used ADB Databinding.
> Thanks & Regards,
> Thomas Naecker

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