[jboss-user] [JBossWS] - wstools exception in jboss4.2

johnefranklin@yahoo.com do-not-reply at jboss.com
Fri Jun 8 11:23:21 EDT 2007


Hi,
I am attaching a wsdl that used to work nicely with JBoss 4.0.5. But when I try to generate the java files from the wsdl using the wstools shipped along with JBoss 4.2, it keeps giving me this error.

Exception in thread "main" org.jboss.ws.WSException: [JAX-RPC 2.3.1.2] Unable to unwrap model group with multiple particles.
at org.jboss.ws.tools.helpers.ReturnTypeUnwrapper.unwrapModelGroup(ReturnTypeUnwrapper.java:120)
at org.jboss.ws.tools.helpers.ReturnTypeUnwrapper.unwrap(ReturnTypeUnwrapper.java:87)
at org.jboss.ws.tools.WSDLToJava.getReturnType(WSDLToJava.java:632)
at org.jboss.ws.tools.WSDLToJava.appendDocParameters(WSDLToJava.java:395)
at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:290)
at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:588)
at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:618)
at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:186)
at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:303)
at org.jboss.ws.tools.WSTools.process(WSTools.java:137)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:69)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
at org.jboss.ws.tools.WSTools.main(WSTools.java:58)

Can someone please look at the wsdl and point me the problem in the wsdl?

regards,
johnf

  | <definitions name="EventMonitoringService" targetNamespace="http://com.ws.test/sample"
  |     xmlns="http://schemas.xmlsoap.org/wsdl/"
  |     xmlns:ns2="http://com.ws.test/sample"
  |     xmlns:tns="http://com.ws.test/sample/types"
  |     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  |     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  |     xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
  |     xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/">
  |     <types>
  |         <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  |             targetNamespace="http://com.ws.test/sample/types"
  |             xmlns:tns="http://com.ws.test/sample/types">
  | 
  |             <xsd:simpleType name="DeviceID">
  |                 <xsd:restriction base="xsd:string">
  |                     <xsd:minLength value="0"/>
  |                 </xsd:restriction>
  |             </xsd:simpleType>
  | 
  |             <xsd:complexType name="LogicalEvents">
  |                 <xsd:sequence>
  |                     <xsd:element name="logicalVar1" type="xsd:boolean" minOccurs="0"/>
  |                     <xsd:element name="logicalVar2" type="xsd:boolean" minOccurs="0"/>
  |                 </xsd:sequence>
  |             </xsd:complexType>
  | 
  |             <xsd:complexType name="PhysicalEvents">
  |                 <xsd:sequence>
  |                     <xsd:element name="physicalVar1" type="xsd:boolean" minOccurs="0"/>
  |                     <xsd:element name="physicalVar2" type="xsd:boolean" minOccurs="0"/>
  |                 </xsd:sequence>
  |             </xsd:complexType>
  | 
  |             <xsd:complexType name="FilterEvents">
  |                 <xsd:sequence>
  |                     <xsd:element name="physical" type="tns:PhysicalEvents" minOccurs="0"/>
  |                     <xsd:element name="logical" type="tns:LogicalEvents" minOccurs="0"/>
  |                 </xsd:sequence>
  |             </xsd:complexType>
  | 
  |             <xsd:simpleType name="ErrorValue">
  |                 <xsd:restriction base="xsd:string">
  |                     <xsd:minLength value="0"/>
  |                 </xsd:restriction>
  |             </xsd:simpleType>
  | 
  |             <xsd:complexType name="TestException">
  |                 <xsd:sequence>
  |                     <xsd:element name="errorValue" type="tns:ErrorValue"/>
  |                     <xsd:element name="errorMessage" type="xsd:string" nillable="true"/>
  |                 </xsd:sequence>
  |             </xsd:complexType>
  | 
  |             <xsd:element name="ErrorValue" type="tns:ErrorValue"/>
  |             <xsd:element name="TestException" type="tns:TestException"/>
  | 
  |             <xsd:element name="MonitorEventsRequest">
  |                 <xsd:complexType>
  |                     <xsd:sequence>
  |                         <xsd:element name="deviceID" type="tns:DeviceID"/>
  |                         <xsd:element name="requestFilter" type="tns:FilterEvents" minOccurs="0"/>
  |                     </xsd:sequence>
  |                 </xsd:complexType>
  |             </xsd:element>
  | 
  |             <xsd:element name="MonitorEventsResponse">
  |                 <xsd:complexType>
  |                     <xsd:sequence>
  |                         <xsd:element name="deviceID" type="tns:DeviceID"/>
  |                         <xsd:element name="allotedFilter" type="tns:FilterEvents" minOccurs="0"/>
  |                     </xsd:sequence>
  |                 </xsd:complexType>
  |             </xsd:element>
  |         </xsd:schema>
  |     </types>
  | 
  |     <message name="MonitorEventsRequest">
  |         <part name="parameters" element="tns:MonitorEventsRequest"/>
  |     </message>
  | 
  |     <message name="MonitorEventsResponse">
  |         <part name="result" element="tns:MonitorEventsResponse"/>
  |     </message>
  | 
  |     <message name="TestException">
  |         <part name="exception" element="tns:TestException"/>
  |     </message>
  | 
  |     <portType name="EventMonitoringService">
  |         <operation name="MonitorEventsRequest">
  |             <input message="ns2:MonitorEventsRequest"/>
  |             <output message="ns2:MonitorEventsResponse"/>
  |             <fault name="FaultName" message="ns2:TestException"/>
  |         </operation>
  |     </portType>
  | 
  | 
  |     <binding name="EventMonitoringServiceBinding" type="ns2:EventMonitoringService">
  |         <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
  |         <operation name="MonitorEventsRequest">
  |             <soap:operation soapAction=""/>
  |             <input>
  |                 <soap:body use="literal"/>
  |             </input>
  |             <output>
  |                 <soap:body use="literal"/>
  |             </output>
  |             <fault name="FaultName">
  |                 <soap:fault name="FaultName" use="literal"/>
  |             </fault>
  |         </operation>
  | 
  |     </binding>
  |     <service name="EventMonitoringService">
  |         <port name="EventMonitoringServicePort" binding="ns2:EventMonitoringServiceBinding">
  |             <soap:address location="http://localhost/test/EventMonitoringService"/>
  |         </port>
  |     </service>
  | 
  | </definitions>
  | 

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

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



More information about the jboss-user mailing list