You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Th...@Cordial.de on 2007/05/09 23:46:35 UTC

[Axis2] POJO Service: Missing Parent in WSDL-Schema

Hi,
I have a problem with the following situation: A service class like that:

class MyService{
  public String service(A param){
    return "finished";
  }
}

class B{
  private String paramB;

  // Getter & Setter 
}

class A extends B{
  //properties, getter & setter
}

Using this scenario with Axis2 1.1.1 results (using http://...MyService?wsdl) in a wsdl with schema
<complexType name="A">
  <!-- elements of A and B-->
</complexType>

Axis2 1.2 generates
<comlpexType name="A">
  <xs:complexContent>
    <xs:extension base="ax21:B">
      <!-- ... -->
    </xs:extension>
  </xs:complexContent>
</complexType>

Services.xml is the same for both situations with only one parameter <parameter name="ServiceClass">MyService</parameter>

Everything would be ok if there were a definition for "B" as a complex type but there isn't. The question is now: Is this a kind of user-mistake (do I have to add/change some parameters in services.xml or axis2.xml?) or is this a bug in the new release?

BTW: Axis2 1.2 ignores the <description> in services.xml whereas 1.1.1 does not. 

Any Idea?

Thanks in advance

Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] POJO Service: Missing Parent in WSDL-Schema

Posted by Deepal Jayasinghe <de...@opensource.lk>.
> Hi,
> I have a problem with the following situation: A service class like that:
>
> class MyService{
>   public String service(A param){
>     return "finished";
>   }
> }
>
> class B{
>   private String paramB;
>
>   // Getter & Setter 
> }
>
> class A extends B{
>   //properties, getter & setter
> }
>
> Using this scenario with Axis2 1.1.1 results (using http://...MyService?wsdl) in a wsdl with schema
> <complexType name="A">
>   <!-- elements of A and B-->
> </complexType>
>
> Axis2 1.2 generates
> <comlpexType name="A">
>   <xs:complexContent>
>     <xs:extension base="ax21:B">
>       <!-- ... -->
>     </xs:extension>
>   </xs:complexContent>
> </complexType>
>
> Services.xml is the same for both situations with only one parameter <parameter name="ServiceClass">MyService</parameter>
>
> Everything would be ok if there were a definition for "B" as a complex type but there isn't. The question is now: Is this a kind of user-mistake (do I have to add/change some parameters in services.xml or axis2.xml?) or is this a bug in the new release?
>   
Please open a JIRA issue for this.
> BTW: Axis2 1.2 ignores the <description> in services.xml whereas 1.1.1 does not. 
>   
Yes there was a small change you need to have that as

<Description>

Thanks
Deepal




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org