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] 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 10:10:04 GMT

    [ 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


Mime
View raw message