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

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

I tested with mymachine and it worked fine. the problem I see here is some how 
it has called the envelop.build(). have you engaged rampart?
Any way try a latest nighly build. I fixed that bug too.

> 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: https://issues.apache.org/jira/browse/AXIS2-2971
>             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: CarsysServiceMessageReceiverInOut.java, MyClient.java, 
> MyService.wsdl, MyServiceSchema.xsd, MyServiceSkeleton.java, xmime.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="http://www.w3.org/2001/XMLSchema";>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(CarsysServiceSOAP12Stub.java:13330)
>       at 
> localhost.webservice.CarsysServiceSOAP12Stub.sendCarsysRequest(CarsysServiceSOAP12Stub.java:165)
>       at localhost.webservice.CarsysClient.main(CarsysClient.java:38)
> Caused by: java.lang.RuntimeException: Required attribute name is missing
>       at 
> localhost.webservice.CarsysServiceSOAP12Stub$ParamType$Factory.parse(CarsysServiceSOAP12Stub.java:3500)
>       at 
> localhost.webservice.CarsysServiceSOAP12Stub$SourceType$Factory.parse(CarsysServiceSOAP12Stub.java:8458)
>       at 
> localhost.webservice.CarsysServiceSOAP12Stub$CarsysServiceResponse$Factory.parse(CarsysServiceSOAP12Stub.java:7893)
>       at 
> localhost.webservice.CarsysServiceSOAP12Stub.fromOM(CarsysServiceSOAP12Stub.java:13317)
>       ... 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to