Hello,
 
I generated code for the attached wsdl using wsdl2java and XmlBeans binding. Here is my code that is trying to invoke the webservice -
 

File f =

new File("D:\\dev\\ibs.trunk\\common\\tomcat5.5.17\\bpr-backup\\GetPropertiesFlow- works.bpr");

AeDeployBPRSkeletonServiceStub serviceStub =

new AeDeployBPRSkeletonServiceStub();

DeployBpr deployBpr = DeployBpr.Factory.newInstance();

deployBpr.setABprFilename( "GetPropertiesFlow.bpr");

Base64 base64File = Base64.Factory.parse( f);

deployBpr.setABase64File( base64File.getStringValue() );

DeployBprDocument deployBprDocument = DeployBprDocument.Factory.parse( f); serviceStub.deployBpr( deployBprDocument );

 

I always get ClassCastException on Factory.newInstance(). Why is that? Please help me here. I have been searching for answer on both XmlBeans and Axis lists with little luck.

Thank you,

Meghana

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://localhost:8080/active-bpel/services/DeployBPRService"; xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:impl="http://localhost:8080/active-bpel/services/DeployBPRService"; xmlns:intf="http://localhost:8080/active-bpel/services/DeployBPRService"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns1="http://bpel.rt.activebpel.org"; xmlns:tns2="http://rt.activebpel.org"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<!--WSDL created by Apache Axis version: 1.2.1
Built on Apr 17, 2006 (04:00:53 EDT)-->
 <wsdl:types>
  <schema targetNamespace="http://rt.activebpel.org"; xmlns="http://www.w3.org/2001/XMLSchema";>
   <import namespace="http://bpel.rt.activebpel.org"/>
   <import namespace="http://lang.java"/>
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="AeException">
    <sequence>
     <element name="info" nillable="true" type="soapenc:string"/>
     <element name="rootCause" nillable="true" type="xsd:anyType"/>
     <!--<element name="rootRootCause" nillable="true" type="tns3:Throwable"/>-->
    </sequence>
   </complexType>
  </schema>
  <schema targetNamespace="http://bpel.rt.activebpel.org"; xmlns="http://www.w3.org/2001/XMLSchema";>
   <import namespace="http://rt.activebpel.org"/>
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <element name="AeBusinessProcessException">
   <complexType>			
    <complexContent>
     <extension base="tns2:AeException">
      <sequence/>
     </extension>
    </complexContent>
    </complexType>
   </element>
  </schema>
 </wsdl:types>

   <wsdl:message name="deployBprRequest">

      <wsdl:part name="aBprFilename" type="xsd:string"/>

      <wsdl:part name="aBase64File" type="xsd:string"/>

   </wsdl:message>

   <wsdl:message name="AeBusinessProcessException">

      <wsdl:part name="fault" element="tns1:AeBusinessProcessException"/>

   </wsdl:message>

   <wsdl:message name="deployBprResponse">

      <wsdl:part name="deployBprReturn" type="xsd:string"/>

   </wsdl:message>

   <wsdl:portType name="AeDeployBPRSkeleton">

      <wsdl:operation name="deployBpr" parameterOrder="aBprFilename aBase64File">

         <wsdl:input message="impl:deployBprRequest" name="deployBprRequest"/>

         <wsdl:output message="impl:deployBprResponse" name="deployBprResponse"/>

         <wsdl:fault message="impl:AeBusinessProcessException" name="AeBusinessProcessException"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="DeployBPRServiceSoapBinding" type="impl:AeDeployBPRSkeleton">

      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="deployBpr">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="deployBprRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:AeEngineServices" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="deployBprResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://localhost:8080/active-bpel/services/DeployBPRService"; use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="AeBusinessProcessException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://localhost:8080/active-bpel/services/DeployBPRService"; use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="AeDeployBPRSkeletonService">

      <wsdl:port binding="impl:DeployBPRServiceSoapBinding" name="DeployBPRService">

         <wsdlsoap:address location="http://localhost:8080/active-bpel/services/DeployBPRService"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to