wsdl is attached herewith....i get exception on calling getStudent() method.

on following link you can see the exact scenario of webservice setup.
http://old.nabble.com/Axis1.4-webservice-with-Axis2-wsdl2java-ts28956251.html

Thanks.

On Tue, Jun 22, 2010 at 6:13 PM, Nan Null <[email protected]> wrote:

> Can you attach the WSDL?  Inside the WSDL, there is a binding section
> that indicates which one to bind too.  Once you configure that, then
> it'll work for you.
>
> On Mon, Jun 21, 2010 at 2:13 AM, rahulYadav <[email protected]>
> wrote:
> >
> > That gives me compile time error in generated code. Also i do not think
> that
> > would be a solution...my guess is i have to find a way to make Axis2
> > wsdl2java generate code that communicates strictly using SOAP1.1 if it is
> > supported by webservice.
> >
> >
> >
> > ceri tandogan wrote:
> >>
> >> Hello,
> >>
> >> Have  you ever tried "-b" parameter for "wsdl2java" when generating
> >> classes?
> >>
> >> Ceri
> >>
> >>
> >>
> >>
> >> ----- Original Message ----
> >> From: rahulYadav <[email protected]>
> >> To: [email protected]
> >> Sent: Thu, June 17, 2010 1:05:33 PM
> >> Subject: Axis2 support for SOAP1.1
> >>
> >>
> >> Hi All,
> >> I am in strange problem.I have a webservice written with Axis1.4 and
> >> supports only SOAP1.1 over http, i use its wsdl to generate java using
> >> wsdl2java Axis2 APIs i.e. stub created by Axis2. Using the stub class to
> >> call webservice throws exception complaining of Unexpected subelement in
> >> SOAP response. I have tried this with other Axis1.4 webservices and it
> >> runs
> >> fine. The diffrence here is the packages in webservice source code
> >> bringing
> >> up multiple namespaces in SOAP msg from webservice.
> >>
> >> As per my understanding the problem is that Axis2 generates Stub that
> can
> >> parse SOAP msgs following SOAP1.2 entirely and some types of SOAP1.1
> msgs
> >> .
> >> Is this a known issue? Is there any way to generate Stub particularly
> for
> >> SOAP1.1?
> >>
> >> Thanks all in advance.
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Axis2-support-for-SOAP1.1-tp28912581p28912581.html
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >>
> >
> > --
> > View this message in context:
> http://old.nabble.com/Axis2-support-for-SOAP1.1-tp28912581p28945358.html
> > Sent from the Axis - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://impl.emp.axis.com"; xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:impl="http://impl.emp.axis.com"; xmlns:intf="http://impl.emp.axis.com"; xmlns:tns1="http://bean.emp.axis.com"; 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.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" targetNamespace="http://impl.emp.axis.com"; xmlns="http://www.w3.org/2001/XMLSchema";>
   <import namespace="http://bean.emp.axis.com"/>
   <element name="getStudentName">
    <complexType/>
   </element>
   <element name="getStudentNameResponse">
    <complexType>
     <sequence>
      <element name="getStudentNameReturn" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="getStudentAge">
    <complexType/>
   </element>
   <element name="getStudentAgeResponse">
    <complexType>
     <sequence>
      <element name="getStudentAgeReturn" type="xsd:int"/>
     </sequence>
    </complexType>
   </element>
   <element name="getStudent">
    <complexType/>
   </element>
   <element name="getStudentResponse">
    <complexType>
     <sequence>
      <element name="getStudentReturn" type="tns1:Employee"/>
     </sequence>
    </complexType>
   </element>
  </schema>
  <schema elementFormDefault="qualified" targetNamespace="http://bean.emp.axis.com"; xmlns="http://www.w3.org/2001/XMLSchema";>
   <complexType name="Employee">
    <sequence>
     <element name="age" type="xsd:int"/>
     <element name="name" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>

   <wsdl:message name="getStudentResponse">

      <wsdl:part element="impl:getStudentResponse" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getStudentNameResponse">

      <wsdl:part element="impl:getStudentNameResponse" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getStudentNameRequest">

      <wsdl:part element="impl:getStudentName" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getStudentAgeRequest">

      <wsdl:part element="impl:getStudentAge" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getStudentAgeResponse">

      <wsdl:part element="impl:getStudentAgeResponse" name="parameters"/>

   </wsdl:message>

   <wsdl:message name="getStudentRequest">

      <wsdl:part element="impl:getStudent" name="parameters"/>

   </wsdl:message>

   <wsdl:portType name="EmpServiceImpl">

      <wsdl:operation name="getStudentName">

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

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

      </wsdl:operation>

      <wsdl:operation name="getStudentAge">

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

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

      </wsdl:operation>

      <wsdl:operation name="getStudent">

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

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

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="EmpServiceImplSoapBinding" type="impl:EmpServiceImpl">

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

      <wsdl:operation name="getStudentName">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getStudentNameRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="getStudentNameResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="getStudentAge">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getStudentAgeRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="getStudentAgeResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="getStudent">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getStudentRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="getStudentResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="EmpServiceImplService">

      <wsdl:port binding="impl:EmpServiceImplSoapBinding" name="EmpServiceImpl">

         <wsdlsoap:address location="http://localhost:6060/EmpWSAxis1/services/EmpServiceImpl"/>

      </wsdl:port>

   </wsdl:service>

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

Reply via email to