Axis2 does not support rpc/encoded. Convert your service to either rpc/literal or document/literal.

Anne

On 6/15/06, kavithaa Rajavenkateshwaran < [EMAIL PROTECTED]> wrote:
Hi,


please find my wsdl below. Also i noticed that the MessageReceiverInOut used in one of the axis2 samples(doclitservice) had  some jar files within it's package and was refering to the parse method in that and  not to the  org.apache.axiom.om.OMElement.Factory.parse(as the one in generated file).I copied that particular jar from the sample  and changed the method in my code,then it works.But this is not the right way.pl. let me know how to get the correct files generated from wsdl.


wsdl

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:fibonacci" xmlns:apachesoap=" http://xml.apache.org/xml-soap" xmlns:impl="urn:fibonacci" xmlns:intf="urn:fibonacci" xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema">
<wsdl:types>
  <schema targetNamespace="urn:fibonacci" xmlns=" http://www.w3.org/2001/XMLSchema">
   <complexType name="ArrayOf_xsd_int">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:int[]"/>
     </restriction>
    </complexContent>
   </complexType>
  </schema>
</wsdl:types>

   <wsdl:message name="calculateFibonacciRangeResponse">

      <wsdl:part name="calculateFibonacciRangeReturn" type="impl:ArrayOf_xsd_int"/>

   </wsdl:message>

   <wsdl:message name="calculateFibonacciRequest">

      <wsdl:part name="in0" type="xsd:int"/>

   </wsdl:message>

   <wsdl:message name="calculateFibonacciRangeRequest">

      <wsdl:part name="in0" type="xsd:int"/>

      <wsdl:part name="in1" type="xsd:int"/>

   </wsdl:message>

   <wsdl:message name="calculateFibonacciResponse">

      <wsdl:part name="calculateFibonacciReturn" type="xsd:int"/>

   </wsdl:message>

   <wsdl:portType name="Fibonacci">

      <wsdl:operation name="calculateFibonacci" parameterOrder="in0">

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

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

      </wsdl:operation>

      <wsdl:operation name="calculateFibonacciRange" parameterOrder="in0 in1">

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

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

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="fibonacciSoapBinding" type="impl:Fibonacci">

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

      <wsdl:operation name="calculateFibonacci">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="calculateFibonacciRequest">

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

         </wsdl:input>

         <wsdl:output name="calculateFibonacciResponse">

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

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="calculateFibonacciRange">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="calculateFibonacciRangeRequest">

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

         </wsdl:input>

         <wsdl:output name="calculateFibonacciRangeResponse">

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

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="FibonacciService">

      <wsdl:port binding="impl:fibonacciSoapBinding" name="fibonacci">

         <wsdlsoap:address location=" http://localhost:8080/axis2/services/fibonacci"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>




On Jun 14, 2006, at 11:57 PM, Ajith Ranabahu wrote:

Hi, Can you post your WSDL please

Ajith

On 6/15/06, kavithaa Rajavenkateshwaran <[EMAIL PROTECTED] > wrote:
Hi,


I  files created using wsdl2java give compilation error.It seems like
some incompatibility in the MessageReceiverInOut code. Pl.  suggest
how to resolve this.


symbol  : method newXMLStreamReader ()
     [javac] location: interface org.apache.axiom.om.OMElement
     [javac]
(org.apache.axiom.om.OMAbstractFactory.getOMFactory(),new
org.apache.axis2.util.StreamWrapper(param.newXMLStreamReader())) ;

[javac]
                                                    ^
     [javac] /Users/kavithaarajavenkateshwaran/software/axis2/fib/src/
trial/Fibonnaci/FibonacciServiceMessageReceiverInOut.java:125: cannot
resolve symbol
     [javac] symbol  : variable Factory
     [javac] location: interface org.apache.axiom.om.OMElement
     [javac]                  return
org.apache.axiom.om.OMElement.Factory.parse(
     [javac]                                                      ^
     [javac] /Users/kavithaarajavenkateshwaran/software/axis2/fib/src/
trial/Fibonnaci/FibonacciServiceMessageReceiverInOut.java:129: cannot
resolve symbol
     [javac] symbol  : variable Factory
     [javac] location: interface org.apache.axiom.om.OMElement
     [javac]                  return
org.apache.axiom.om.OMElement.Factory.parse (
     [javac]                                                      ^
     [javac] 3 errors

BUILD FAILED


Thanks,
kavithaa

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Ajith Ranabahu

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to