axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Naecker (JIRA)" <j...@apache.org>
Subject [jira] Created: (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 Mon, 16 Jul 2007 10:26:04 GMT
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


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


Mime
View raw message