Thank you for your prompt reply. If I add map-abstract="true" in custom.xml to the package containing the class ConsumptionPoint, there will be no errors while running the jibx2wsdl tool. The generated binding looks like the following:
customerBinding.xml: ************************************************************************************ <binding xmlns:tns="http://test.com/ep/web/types"...> ... <mapping abstract="true" type-name="tns:ConsumptionPoint" class="ConsumptionPoint"> <value style="element" name="id" get-method="getId" set-method="setId" usage="optional"/> <value style="element" name="address" get-method="getAddress" set-method="setAddress" usage="optional"/> </mapping> <mapping class="Customer" name="customer"> ... <structure map-as="tns:ConsumptionPoint" get-method="getConsumptionPoint" set-method="setConsumptionPoint" usage="optional" name="consumptionPoint"/> ... </mapping> </binding> *********************************************************************************** But later on, if I run the client application there will be thrown an exception: Expected "{http://test.com/ep/web/types/customer}consumptionPoint" end tag, found "{http://test.com/ep/web/manager/CustomerManager}id" start tag (line -1, col -1, in SOAP-message) <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/" standalone="no"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <Response xmlns="http://test.com/ep/web/manager/CustomerManager" xmlns:ns1="http://test.com/ep/web/types/customer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> ... <ns1:consumptionPoint> <id>4569828</id> <address>Teststraße 1, 0000 Test</address> </ns1:consumptionPoint> ... </Response> </soapenv:Body> </soapenv:Envelope> Do you know what to do to generate soap response messages with correct namespaces? thanks for your help, br maria Guido Wischrop schrieb: > hello, > IMHO this should work. As a workaround you could make the > ConsumptionPoint mapping abstract and use a name attribute on the > structure element, e.g. > > <mapping class="ConsumptionPoint" type-name="consumptionPointAbstract"> > [...] > <structure name="consumptionPoint" map-as="consumptionPointAbstract" > get-method="getConsumptionPoint" set-method="setConsumptionPoint" > usage="optional"/> > > Good luck, > Guido > > > On 10/11/07, Maria Aschauer <[EMAIL PROTECTED]> wrote: > >> hello, >> >> does anybody know, how i can avoid the following error generated while >> running the jibx2wsdl tool? >> >> Error: No handling defined for name on concrete mapping reference; on >> structure element at (line 32, col 156, in customerBinding.xml) >> >> customerBinding.xml: >> ----------------------------------------------------------- >> <binding ...> >> ... >> <mapping class="ConsumptionPoint" name="consumptionPoint"> >> <value style="element" name="id" get-method="getId" >> set-method="setId" usage="optional"/> >> <value style="element" name="address" get-method="getAddress" >> set-method="setAddress" usage="optional"/> >> </mapping> >> <mapping class="Customer" name="customer"> >> ... >> <!-- line 32 --><structure map-as="ConsumptionPoint" >> get-method="getConsumptionPoint" set-method="setConsumptionPoint" >> usage="optional"/> >> ... >> </mapping> >> </binding> >> >> i have tried some customizations in custom.xml but i haven't found a >> solution yet. >> >> thanks in advance, >> br maria >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> jibx-users mailing list >> jibx-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jibx-users >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users