You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Thomas Naecker (JIRA)" <ji...@apache.org> on 2007/07/16 12:26:04 UTC

[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)

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


[jira] Resolved: (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)

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-2971.
-------------------------------------------------

    Resolution: Fixed

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


[jira] Updated: (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)

Posted by "Thomas Naecker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Naecker updated AXIS2-2971:
----------------------------------

    Attachment: CarsysServiceMessageReceiverInOut.java

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


[jira] Updated: (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)

Posted by "Thomas Naecker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Naecker updated AXIS2-2971:
----------------------------------

    Attachment: MyClient.java

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


[jira] Updated: (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)

Posted by "Thomas Naecker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Naecker updated AXIS2-2971:
----------------------------------

    Attachment: xmime.xsd

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


[jira] Updated: (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)

Posted by "Thomas Naecker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Naecker updated AXIS2-2971:
----------------------------------

    Attachment: MyServiceSkeleton.java

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


[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)

Posted by "Thomas Naecker (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513519 ] 

Thomas Naecker commented on AXIS2-2971:
---------------------------------------

new files attached. My skeleton only returns the needed elements, so also the source element. The result was:

Request:
<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Body>
         <ns1:MyServiceRequest xmlns:ns1="http://localhost:8080/webservice/MyServiceSchema">
            <source xmlns="">
               <system>SystemName</system>
               <parameter name="test">string_something</parameter>
            </source>
...

Response:
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Body>
         <ns1:MyServiceResponse xmlns:ns1="http://localhost:8080/webservice/MyServiceSchema">
            <source>
               <system>SystemName</system>
               <parameter name="test">
--->                <string xmlns="http://www.w3.org/2001/XMLSchema">string_something</string>
               </parameter>
            </source>
            <resultNumber>1</resultNumber>
         </ns1:MyServiceResponse>
      </soapenv:Body>
   </soapenv:Envelope>

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


[jira] Updated: (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)

Posted by "Thomas Naecker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Naecker updated AXIS2-2971:
----------------------------------

    Attachment: MyServiceSchema.xsd

> 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
>         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="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


[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)

Posted by "Thomas Naecker (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514161 ] 

Thomas Naecker commented on AXIS2-2971:
---------------------------------------

No, i don´t have engaged rampart, but when i use the nightly build everything works fine on my machine, too!! Thanks, Amila!

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


[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)

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513437 ] 

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

can you attach the xmime.xsd file, MessageReceiver and Skelton as well?
if there any line in your message receiver it calls for soapEnvelop.build() ?


> 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: 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="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


[jira] Updated: (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)

Posted by "Thomas Naecker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Naecker updated AXIS2-2971:
----------------------------------

    Attachment: MyService.wsdl

> 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
>         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="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


[jira] Updated: (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)

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-2971:
------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> 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: 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="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


[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)

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[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)

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513493 ] 

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

in adb you can use the setter method to set the values as in normal java beans.

so this should work.
SourceType source = new SourceType();
serviceResponseData.setSource(source); 

always you have to create a new object and set its properties.

if your actuall skelton can not be send then can you generate the code for this wsdl and write a test skelton (implement sendCarsysRequest) and a client (to call for that method)  and check for the error. 

And attach that skelton and the client code. then I can reproduce your problem and debug.



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


[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)

Posted by "Thomas Naecker (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513451 ] 

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();
serviceResponseData.setSource(source);

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