[jboss-user] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService

xiangyingbing do-not-reply at jboss.com
Wed Nov 4 05:00:30 EST 2009


I compiled those code and run in eclipse:
     run as --> run on server[jboss 5.1]

Now, i can see that the web service is deployed successfully and i can visit http://127.0.0.1:8080/PolymorphismEJBWebService/EJBWebServiceBean?wsdl

I got the wsdl:

- <definitions name="EJBWebServiceBeanService" targetNamespace="http://ejbws.ybxiang.com/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ejbws.ybxiang.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- 
- <xs:schema targetNamespace="http://ejbws.ybxiang.com/" version="1.0" xmlns:tns="http://ejbws.ybxiang.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="passParameter1" type="tns:passParameter1" /> 
  <xs:element name="passParameter1Response" type="tns:passParameter1Response" /> 
  <xs:element name="passParameter2" type="tns:passParameter2" /> 
  <xs:element name="passParameter2Response" type="tns:passParameter2Response" /> 
  <xs:element name="passParameter3" type="tns:passParameter3" /> 
  <xs:element name="passParameter3Response" type="tns:passParameter3Response" /> 
  <xs:element name="passParameter4" type="tns:passParameter4" /> 
  <xs:element name="passParameter4Response" type="tns:passParameter4Response" /> 
  <xs:element name="returnSomething1" type="tns:returnSomething1" /> 
  <xs:element name="returnSomething1Response" type="tns:returnSomething1Response" /> 
- <xs:complexType name="passParameter1">
- <xs:sequence>
  <xs:element minOccurs="0" name="arg0" type="xs:string" /> 
  </xs:sequence>
  </xs:complexType>
- <xs:complexType name="passParameter1Response">
  <xs:sequence /> 
  </xs:complexType>
- <xs:complexType name="passParameter2">
- <xs:sequence>
  <xs:element minOccurs="0" name="arg0" type="tns:animal" /> 
  </xs:sequence>
  </xs:complexType>
- <xs:complexType name="animal">
- <xs:sequence>
  <xs:element minOccurs="0" name="age" type="xs:long" /> 
  <xs:element minOccurs="0" name="name" type="xs:string" /> 
  </xs:sequence>
  </xs:complexType>
- <xs:complexType name="human">
- <xs:complexContent>
- <xs:extension base="tns:animal">
- <xs:sequence>
  <xs:element minOccurs="0" name="email" type="xs:string" /> 
  </xs:sequence>
  </xs:extension>
  </xs:complexContent>
  </xs:complexType>
- <xs:complexType name="passParameter2Response">
  <xs:sequence /> 
  </xs:complexType>
- <xs:complexType name="passParameter3">
- <xs:sequence>
  <xs:element minOccurs="0" name="arg0" type="tns:human" /> 
  </xs:sequence>
  </xs:complexType>
- <xs:complexType name="passParameter3Response">
  <xs:sequence /> 
  </xs:complexType>
- <xs:complexType name="passParameter4">
- <xs:sequence>
  <xs:element maxOccurs="unbounded" minOccurs="0" name="arg0" type="tns:animal" /> 
  </xs:sequence>
  </xs:complexType>
- <xs:complexType name="passParameter4Response">
  <xs:sequence /> 
  </xs:complexType>
- <xs:complexType name="returnSomething1">
- <xs:sequence>
  <xs:element name="arg0" type="xs:int" /> 
  </xs:sequence>
  </xs:complexType>
- <xs:complexType name="returnSomething1Response">
- <xs:sequence>
  <xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="tns:animal" /> 
  </xs:sequence>
  </xs:complexType>
  </xs:schema>
  
- 
   
  
- 
   
  
- 
   
  
- 
   
  
- 
   
  
- 
   
  
- 
   
  
- 
   
  
- 
   
  
- 
   
  
- 
- 
   
   
  
- 
   
   
  
- 
   
   
  
- 
   
   
  
- 
   
   
  
  
- 
  <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> 
- 
  <soap:operation soapAction="" /> 
- 
  <soap:body use="literal" /> 
  
- 
  <soap:body use="literal" /> 
  
  
- 
  <soap:operation soapAction="" /> 
- 
  <soap:body use="literal" /> 
  
- 
  <soap:body use="literal" /> 
  
  
- 
  <soap:operation soapAction="" /> 
- 
  <soap:body use="literal" /> 
  
- 
  <soap:body use="literal" /> 
  
  
- 
  <soap:operation soapAction="" /> 
- 
  <soap:body use="literal" /> 
  
- 
  <soap:body use="literal" /> 
  
  
- 
  <soap:operation soapAction="" /> 
- 
  <soap:body use="literal" /> 
  
- 
  <soap:body use="literal" /> 
  
  
  
- 
- 
  <soap:address location="http://127.0.0.1:8080/PolymorphismEJBWebService/EJBWebServiceBean" /> 
  
  
  

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

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



More information about the jboss-user mailing list