axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From VinceK <ckang...@hotmail.com>
Subject Unexpected subelement while Axis2 Client -> Axis1 server
Date Wed, 21 Feb 2007 00:07:34 GMT

I'm getting and error Unexpected subelement.

I have a Axis1 service and deployed with server-config.wsdd on Tomcat 5.5

<?xml version="1.0" encoding="UTF-8"?>
<deployment
  xmlns="http://xml.apache.org/axis/wsdd/"
  xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

  <!-- define the authentication handler configuration -->
  <handler name="auth" type="java:com.starws.webservice.AuthHandler">
   <parameter name="timeout" value="500"/>
  </handler>

  <service name="TestWebService" provider="java:RPC" use="literal">
	<requestFlow>
    	<handler type="auth"/>
   	</requestFlow>
	<namespace>http://webservice.ran.com/generated</namespace>
   	<parameter name="className"
value="com.webservice.server.TestWebService"/>
   	<parameter name="allowedMethods" value="getTest"/>     		   	
  </service>

  <!-- auto generate wsdl -->
  <transport name="http">
    <requestFlow>
      <handler type="java:org.apache.axis.handlers.http.URLMapper"/>
    </requestFlow>
  </transport>
</deployment>


I retrieved the wsdl file from
http://localhost:8080/service/TestWebService?wsdl

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://webservice.ran.com/generated"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://webservice.ran.com/generated"
xmlns:intf="http://webservice.ran.com/generated"
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.3
Built on Oct 05, 2005 (05:23:37 EDT)-->

   <wsdl:message name="getTestResponse">

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

   </wsdl:message>

   <wsdl:message name="getTestRequest">

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

   </wsdl:message>

   <wsdl:portType name="TestWebService">

      <wsdl:operation name="getTest" parameterOrder="in">

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

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

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="TestWebServiceSoapBinding"
type="impl:TestWebService">

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

      <wsdl:operation name="getTest">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getTestRequest">

            <wsdlsoap:body namespace="http://webservice.ran.com/generated"
use="literal"/>

         </wsdl:input>

         <wsdl:output name="getTestResponse">

            <wsdlsoap:body namespace="http://webservice.ran.com/generated"
use="literal"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="TestWebServiceService">

      <wsdl:port binding="impl:TestWebServiceSoapBinding"
name="TestWebService">

         <wsdlsoap:address
location="http://localhost:8080/starws/services/TestWebService"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>


I am able to generate the java file by using wsdl2java.
But when I call the method i get  java.lang.RuntimeException: Unexpected
subelement getTestReturn
I must be doing something wrong. Can someone point me to the right
direction?


-- 
View this message in context: http://www.nabble.com/Unexpected-subelement--while-Axis2-Client--%3E-Axis1-server-tf3264117.html#a9073201
Sent from the Axis - User mailing list archive at Nabble.com.


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


Mime
View raw message