I used wscompile ... -mapping to generate automatically the mapping.xml for my 
webservice under jboss4.0.

My wsdl-file:
<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <definitions name="ToDoDelegateService" targetNamespace="http://www.abc.de/wsdl"; 
xmlns:tns="http://www.abc.de/wsdl"; xmlns="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:ns2="http://www.abc.de";>
  |   <types>
  |     <schema targetNamespace="http://www.abc.de"; xmlns:tns="http://www.abc.de"; 
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns="http://www.w3.org/2001/XMLSchema";>
  |       <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
  |       <complexType name="ArrayOfSessionCategories">
  |         <complexContent>
  |           <restriction base="soap11-enc:Array">
  |             <attribute ref="soap11-enc:arrayType" 
wsdl:arrayType="tns:SessionCategories[]"/></restriction></complexContent></complexType>
  |       <complexType name="SessionCategories">
  |         <sequence>
  |           <element name="categoryId" type="soap11-enc:int"/>
  |           <element name="categoryName" type="string"/>
  |           <element name="itemCount" type="soap11-enc:int"/>
  |           <element name="sessionCount" type="soap11-enc:int"/>
  |           <element name="sortOrder" 
type="soap11-enc:int"/></sequence></complexType></schema></types>
  |   <message name="ToDoDelegateEndpoint_getSessionCategoriesArray">
  |     <part name="String_1" type="xsd:string"/></message>
  |   <message name="ToDoDelegateEndpoint_getSessionCategoriesArrayResponse">
  |     <part name="result" type="ns2:ArrayOfSessionCategories"/></message>
  |   <portType name="ToDoDelegateEndpoint">
  |     <operation name="getSessionCategoriesArray" parameterOrder="String_1">
  |       <input message="tns:ToDoDelegateEndpoint_getSessionCategoriesArray"/>
  |       <output 
message="tns:ToDoDelegateEndpoint_getSessionCategoriesArrayResponse"/></operation></portType>
  |   <binding name="ToDoDelegateEndpointBinding" type="tns:ToDoDelegateEndpoint">
  |     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; style="rpc"/>
  |     <operation name="getSessionCategoriesArray">
  |       <soap:operation soapAction=""/>
  |       <input>
  |         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
use="encoded" namespace="http://www.abc.de/wsdl"/></input>
  |       <output>
  |         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
use="encoded" namespace="http://www.abc.de/wsdl"/></output></operation></binding>
  |   <service name="ToDoDelegateService">
  |     <port name="ToDoDelegateEndpointPort" 
binding="tns:ToDoDelegateEndpointBinding">
  |       <soap:address 
location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>

If I try to access the Webservice I got following Warning/Error
WARN org.jboss.webservice.deployment.TypeMappingDescription[main] - Class not found: 
de.abc.www.ArrayOfSessionCategories

I don't know how to handle, because the mapping.xml was generate automatically!  
[others file I have: config.xml, ejb-jar.xml, webservices.xml (and also generate 
*.wsdl)]
The webservice should return a Array of "non normal Type", but as said the mapping 
doesn't work.

Does anybody have codesamples/advice (step by step would be best :) to help me?

ADICKO  

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851398#3851398

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851398


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to