Hi Amila,
Actually, I manually create the .AAR file from my code (using zip
compression feature of JDK).
It was successfully deployed to the Axis2 server, the WSDL is recognized.
and the schema has been validated successfully.

When I try to use wsdl2java the generate client stub, (eg:
http://localhost:8080/axis2/services/TMCreateApplication?wsdl), some schema
imported by WSDL can not be accessed.

The example of WSDL is attached with this email.

Regards,
Sukma



On Mon, Jun 16, 2008 at 5:20 PM, Amila Suriarachchi <
[EMAIL PROTECTED]> wrote:

> How you generate the .aar file. did you use the wsdl2java tool? Can you
> send your wsdl?
>
> thanks
> Amila.
>
>
> On Fri, Jun 13, 2008 at 8:22 AM, Sukma Agung Verdianto <[EMAIL PROTECTED]>
> wrote:
>
>> Hi,
>> Can anybody help me out of this?
>> I can see from the internet there is some problem with nested import of
>> schema?
>>
>> I can;t attach the sample AAR file, I think this mailing list does not
>> allow binary attachment?
>>
>> Regards,
>> Sukma
>>
>> On Wed, Jun 11, 2008 at 12:08 PM, Sukma Agung Verdianto <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Hi All,
>>> I have a question regarding WSDL published by a service packaged in AAR.
>>> I have a service class, WSDL and all it references (imported WSDL's and
>>> schema's) structured like this inside an aar:
>>>
>>> java
>>> -- package
>>> ---- ServiceClass.class
>>> META-INF
>>> -- services.xml
>>> -- ExampleService.wsdl
>>> -- _
>>> ---- schema1.xsd   (this import schema2, <xsd:import
>>> namespace="namespace" schemaLocation="schema2.xsd"/>)
>>> ---- schema2.xsd   (let say this schema import schema3 using <xsd:import
>>> namespace="namespace" schemaLocation="_/schema3.xsd"/>)
>>> ---- _
>>> ------ schema3.xsd (this import schema 4)
>>> ------ _
>>> -------- schema4.xsd
>>>
>>> I can get ExampleService deployed successfully, and it is exposing the
>>> right WSDL (using originalWsdl set to true).
>>> However, when I try to access the WSDL and get all references, it failed
>>> because it cannot find some references...
>>>
>>> I've digging more, and found out that Axis2 using replacing some relative
>>> URL to be something like this format - [ServiceName]?xsd=path/to/xsd
>>> This is fine for the XSD that directly imported by WSDL, but not for the
>>> XSD imported by ther XSD.
>>> Axis2 does not change import definition to <xsd:import
>>> namespace="namespace" schemaLocation="ServiceName?xsd=_/_/schema3.xsd"/> to
>>> import schema3.
>>>
>>> Is this the right behavior of Axis2? Does't it support nested import?
>>> Please give me some insight.
>>>
>>> Regards,
>>> Sukma
>>>
>>
>>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:bs="urn:xml-gov-au:draft:sig:BusinessSignal:0.1" xmlns:bt="urn:xeda-org:draft:bt:CreateApplicationCommercialTransaction:2.0.0" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"; xmlns:sbd="urn:xml-gov-au:draft:data:messagingAggregates:1.1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tm="urn:xml-gov-au:draft:tm:TransactionModule:0.1" xmlns:tns="urn:xeda-org:draft:tm:CreateApplicationCommercialTransaction:2.0.0" xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; name="TMCreateApplication" targetNamespace="urn:xeda-org:draft:tm:CreateApplicationCommercialTransaction:2.0.0">  
  <plnk:partnerLinkType name="RequestingTMCreateApplicationTransaction"> 
    <plnk:role name="TMInitiatorCreateApplicationTransaction" portType="tns:TMInitiatorCreateApplicationTransaction"/>  
    <plnk:role name="BAInitiatorCreateApplicationTransaction" portType="tns:BAInitiatorCreateApplicationTransaction"/> 
  </plnk:partnerLinkType>  
  <plnk:partnerLinkType name="CreateApplicationTransaction"> 
    <plnk:role name="ResponderCreateApplicationTransaction" portType="tns:ResponderCreateApplicationTransaction"/>  
    <plnk:role name="InitiatorCreateApplicationTransaction" portType="tns:InitiatorCreateApplicationTransaction"/> 
  </plnk:partnerLinkType>  
  <plnk:partnerLinkType name="RespondingTMCreateApplicationTransaction"> 
    <plnk:role name="TMResponderCreateApplicationTransaction" portType="tns:TMResponderCreateApplicationTransaction"/>  
    <plnk:role name="BAResponderCreateApplicationTransaction" portType="tns:BAResponderCreateApplicationTransaction"/> 
  </plnk:partnerLinkType>  
  <vprop:property name="messageID" type="xs:string"/>  
  <vprop:propertyAlias messageType="tns:RequestMsg" part="ProposeCreateApplicationTransaction" propertyName="tns:messageID"> 
    <vprop:query>bt:StandardBusinessMessageHeader/sbd:BusinessScope/sbd:InstanceIdentifier</vprop:query> 
  </vprop:propertyAlias>  
  <vprop:propertyAlias messageType="tns:PositiveResponseMsg" part="AcceptCreateApplicationTransaction" propertyName="tns:messageID"> 
    <vprop:query>bt:StandardBusinessMessageHeader/sbd:BusinessScope/sbd:InstanceIdentifier</vprop:query> 
  </vprop:propertyAlias>  
  <vprop:propertyAlias messageType="tns:NegativeResponseMsg" part="RejectCreateApplicationTransaction" propertyName="tns:messageID"> 
    <vprop:query>bt:StandardBusinessMessageHeader/sbd:BusinessScope/sbd:InstanceIdentifier</vprop:query> 
  </vprop:propertyAlias>  
  <vprop:propertyAlias messageType="tns:TransactionProtocolFailureMsg" part="TransactionProtocolFailure" propertyName="tns:messageID"> 
    <vprop:query>tm:StandardBusinessMessageHeader/sbd:BusinessScope/sbd:InstanceIdentifier</vprop:query> 
  </vprop:propertyAlias>  
  <vprop:propertyAlias messageType="tns:TransactionProtocolSuccessMsg" part="TransactionProtocolSuccess" propertyName="tns:messageID"> 
    <vprop:query>tm:StandardBusinessMessageHeader/sbd:BusinessScope/sbd:InstanceIdentifier</vprop:query> 
  </vprop:propertyAlias>  
  <vprop:propertyAlias messageType="tns:GeneralExceptionSignal" part="GeneralException" propertyName="tns:messageID"> 
    <vprop:query>bs:StandardBusinessMessageHeader/sbd:BusinessScope/sbd:InstanceIdentifier</vprop:query> 
  </vprop:propertyAlias>  
  <vprop:propertyAlias messageType="tns:ReceiptAcknowledgementSignal" part="ReceiptAcknowledgement" propertyName="tns:messageID"> 
    <vprop:query>bs:StandardBusinessMessageHeader/sbd:BusinessScope/sbd:InstanceIdentifier</vprop:query> 
  </vprop:propertyAlias>  
  <vprop:propertyAlias messageType="tns:ReceiptExceptionSignal" part="ReceiptException" propertyName="tns:messageID"> 
    <vprop:query>bs:StandardBusinessMessageHeader/sbd:BusinessScope/sbd:InstanceIdentifier</vprop:query> 
  </vprop:propertyAlias>  
  <wsdl:types> 
    <xs:schema elementFormDefault="qualified" targetNamespace="urn:xeda-org:draft:tm:CreateApplicationCommercialTransaction:2.0.0"> 
      <xs:import namespace="urn:xeda-org:draft:bt:CreateApplicationCommercialTransaction:2.0.0" schemaLocation="_/catalog/project_-c-_/20080603/ProposeCreateApplicationTransaction.xsd"/>  
      <xs:import namespace="urn:xeda-org:draft:bt:CreateApplicationCommercialTransaction:2.0.0" schemaLocation="_/catalog/project_-c-_/20080603/AcceptCreateApplicationTransaction.xsd"/>  
      <xs:import namespace="urn:xeda-org:draft:bt:CreateApplicationCommercialTransaction:2.0.0" schemaLocation="_/catalog/project_-c-_/20080603/RejectCreateApplicationTransaction.xsd"/>  
      <xs:import namespace="urn:xml-gov-au:draft:sig:BusinessSignal:0.1" schemaLocation="_/catalog/project_-c-_/20080603/ReceiptAcknowledgement.xsd"/>  
      <xs:import namespace="urn:xml-gov-au:draft:sig:BusinessSignal:0.1" schemaLocation="_/catalog/project_-c-_/20080603/GeneralException.xsd"/>  
      <xs:import namespace="urn:xml-gov-au:draft:sig:BusinessSignal:0.1" schemaLocation="_/catalog/project_-c-_/20080603/ReceiptException.xsd"/>  
      <xs:import namespace="urn:xml-gov-au:draft:tm:TransactionModule:0.1" schemaLocation="_/catalog/project_-c-_/20080603/TechnicalReceiptAcknowledgement.xsd"/>  
      <xs:import namespace="urn:xml-gov-au:draft:tm:TransactionModule:0.1" schemaLocation="_/catalog/project_-c-_/20080603/TechnicalReceiptFailure.xsd"/>  
      <xs:import namespace="urn:xml-gov-au:draft:tm:TransactionModule:0.1" schemaLocation="_/catalog/project_-c-_/20080603/TransactionProtocolFailure.xsd"/>  
      <xs:import namespace="urn:xml-gov-au:draft:tm:TransactionModule:0.1" schemaLocation="_/catalog/project_-c-_/20080603/TransactionProtocolSuccess.xsd"/> 
    </xs:schema> 
  </wsdl:types>  
  <wsdl:message name="TechnicalReceiptFailureMsg"> 
    <wsdl:part element="tm:TechnicalReceiptFailure" name="TechncialReceiptFailure"/> 
  </wsdl:message>  
  <wsdl:message name="PositiveResponseMsg"> 
    <wsdl:part element="bt:AcceptCreateApplicationTransaction" name="AcceptCreateApplicationTransaction"/> 
  </wsdl:message>  
  <wsdl:message name="TransactionProtocolSuccessMsg"> 
    <wsdl:part element="tm:TransactionProtocolSuccess" name="TransactionProtocolSuccess"/> 
  </wsdl:message>  
  <wsdl:message name="ReceiptExceptionSignal"> 
    <wsdl:part element="bs:Receipt_Exception" name="ReceiptException"/> 
  </wsdl:message>  
  <wsdl:message name="NegativeResponseMsg"> 
    <wsdl:part element="bt:RejectCreateApplicationTransaction" name="RejectCreateApplicationTransaction"/> 
  </wsdl:message>  
  <wsdl:message name="RequestMsg"> 
    <wsdl:part element="bt:ProposeCreateApplicationTransaction" name="ProposeCreateApplicationTransaction"/> 
  </wsdl:message>  
  <wsdl:message name="GeneralExceptionSignal"> 
    <wsdl:part element="bs:General_Exception" name="GeneralException"/> 
  </wsdl:message>  
  <wsdl:message name="TransactionProtocolFailureMsg"> 
    <wsdl:part element="tm:TransactionProtocolFailure" name="TransactionProtocolFailure"/> 
  </wsdl:message>  
  <wsdl:message name="TechnicalReceiptAcknowledgementMsg"> 
    <wsdl:part element="tm:TechnicalReceiptAcknowledgement" name="TechnicalReceiptAcknowledgement"/> 
  </wsdl:message>  
  <wsdl:message name="ReceiptAcknowledgementSignal"> 
    <wsdl:part element="bs:Receipt_Acknowledgement" name="ReceiptAcknowledgement"/> 
  </wsdl:message>  
  <wsdl:portType name="BAResponderCreateApplicationTransaction"> 
    <wsdl:operation name="Propose"> 
      <wsdl:input message="tns:RequestMsg"/>  
      <wsdl:output message="tns:TechnicalReceiptAcknowledgementMsg"/>  
      <wsdl:fault message="tns:TechnicalReceiptFailureMsg" name="ExceptionResponse"/> 
    </wsdl:operation>  
    <wsdl:operation name="TransactionProtocolSuccess"> 
      <wsdl:input message="tns:TransactionProtocolSuccessMsg"/>  
      <wsdl:output message="tns:TechnicalReceiptAcknowledgementMsg"/>  
      <wsdl:fault message="tns:TechnicalReceiptFailureMsg" name="ExceptionResponse"/> 
    </wsdl:operation>  
    <wsdl:operation name="TransactionProtocolFailure"> 
      <wsdl:input message="tns:TransactionProtocolFailureMsg"/>  
      <wsdl:output message="tns:TechnicalReceiptAcknowledgementMsg"/>  
      <wsdl:fault message="tns:TechnicalReceiptFailureMsg" name="ExceptionResponse"/> 
    </wsdl:operation> 
  </wsdl:portType>  
  <wsdl:portType name="TMInitiatorCreateApplicationTransaction"> 
    <wsdl:operation name="Propose"> 
      <wsdl:input message="tns:RequestMsg"/>  
      <wsdl:output message="tns:TechnicalReceiptAcknowledgementMsg"/>  
      <wsdl:fault message="tns:TechnicalReceiptFailureMsg" name="ExceptionResponse"/> 
    </wsdl:operation> 
  </wsdl:portType>  
  <wsdl:portType name="TMResponderCreateApplicationTransaction"> 
    <wsdl:operation name="Accept"> 
      <wsdl:input message="tns:PositiveResponseMsg"/>  
      <wsdl:output message="tns:TechnicalReceiptAcknowledgementMsg"/>  
      <wsdl:fault message="tns:TechnicalReceiptFailureMsg" name="ExceptionResponse"/> 
    </wsdl:operation>  
    <wsdl:operation name="Reject"> 
      <wsdl:input message="tns:NegativeResponseMsg"/>  
      <wsdl:output message="tns:TechnicalReceiptAcknowledgementMsg"/>  
      <wsdl:fault message="tns:TechnicalReceiptFailureMsg" name="ExceptionResponse"/> 
    </wsdl:operation> 
  </wsdl:portType>  
  <wsdl:portType name="BAInitiatorCreateApplicationTransaction"> 
    <wsdl:operation name="Accept"> 
      <wsdl:input message="tns:PositiveResponseMsg"/>  
      <wsdl:output message="tns:TechnicalReceiptAcknowledgementMsg"/>  
      <wsdl:fault message="tns:TechnicalReceiptFailureMsg" name="ExceptionResponse"/> 
    </wsdl:operation>  
    <wsdl:operation name="Reject"> 
      <wsdl:input message="tns:NegativeResponseMsg"/>  
      <wsdl:output message="tns:TechnicalReceiptAcknowledgementMsg"/>  
      <wsdl:fault message="tns:TechnicalReceiptFailureMsg" name="ExceptionResponse"/> 
    </wsdl:operation>  
    <wsdl:operation name="TransactionProtocolSuccess"> 
      <wsdl:input message="tns:TransactionProtocolSuccessMsg"/>  
      <wsdl:output message="tns:TechnicalReceiptAcknowledgementMsg"/>  
      <wsdl:fault message="tns:TechnicalReceiptFailureMsg" name="ExceptionResponse"/> 
    </wsdl:operation>  
    <wsdl:operation name="TransactionProtocolFailure"> 
      <wsdl:input message="tns:TransactionProtocolFailureMsg"/>  
      <wsdl:output message="tns:TechnicalReceiptAcknowledgementMsg"/>  
      <wsdl:fault message="tns:TechnicalReceiptFailureMsg" name="ExceptionResponse"/> 
    </wsdl:operation> 
  </wsdl:portType>  
  <wsdl:portType name="InitiatorCreateApplicationTransaction"> 
    <wsdl:operation name="Accept"> 
      <wsdl:input message="tns:PositiveResponseMsg"/> 
    </wsdl:operation>  
    <wsdl:operation name="Reject"> 
      <wsdl:input message="tns:NegativeResponseMsg"/> 
    </wsdl:operation>  
    <wsdl:operation name="ReceiptAcknowledgement"> 
      <wsdl:input message="tns:ReceiptAcknowledgementSignal"/> 
    </wsdl:operation>  
    <wsdl:operation name="ReceiptException"> 
      <wsdl:input message="tns:ReceiptExceptionSignal"/> 
    </wsdl:operation>  
    <wsdl:operation name="GeneralException"> 
      <wsdl:input message="tns:GeneralExceptionSignal"/> 
    </wsdl:operation> 
  </wsdl:portType>  
  <wsdl:portType name="ResponderCreateApplicationTransaction"> 
    <wsdl:operation name="Propose"> 
      <wsdl:input message="tns:RequestMsg"/> 
    </wsdl:operation>  
    <wsdl:operation name="ReceiptAcknowledgement"> 
      <wsdl:input message="tns:ReceiptAcknowledgementSignal"/> 
    </wsdl:operation>  
    <wsdl:operation name="ReceiptException"> 
      <wsdl:input message="tns:ReceiptExceptionSignal"/> 
    </wsdl:operation>  
    <wsdl:operation name="GeneralException"> 
      <wsdl:input message="tns:GeneralExceptionSignal"/> 
    </wsdl:operation> 
  </wsdl:portType>  
  <wsdl:binding name="TMInitiatorCreateApplicationTransactionBinding" type="tns:TMInitiatorCreateApplicationTransaction"> 
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>  
    <wsdl:operation name="Propose"> 
      <soap:operation soapAction="" style="document"/>  
      <wsdl:input> 
        <soap:body use="literal"/> 
      </wsdl:input>  
      <wsdl:output> 
        <soap:body use="literal"/> 
      </wsdl:output>  
      <wsdl:fault name="ExceptionResponse"> 
        <soap:fault name="ExceptionResponse" use="literal"/> 
      </wsdl:fault> 
    </wsdl:operation> 
  </wsdl:binding>  
  <wsdl:service name="TMInitiatorCreateApplicationTransaction"> 
    <wsdl:port binding="tns:TMInitiatorCreateApplicationTransactionBinding" name="TMInitiatorCreateApplicationTransactionPort"> 
      <soap:address location="http://lab2.redwahoo.com:9090/active-bpel/services/TMInitiatorCreateApplicationTransaction"/> 
    </wsdl:port> 
  </wsdl:service> 
</wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to