Guys,
I'm generating a wsdl out of java code and from the wsdl
generating client stubs and server code.However when i make calls to the
method which takes a single param it gives me "No such operation 'in0'".
Any ideas greatly appreciated guys
My wsdl file and part of server-config are :
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:member" xmlns
="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap
="http://xml.apache.org/xml-soap" xmlns:impl="urn:member" xmlns:intf
="urn:member" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns2="http://castor" 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="http://castor" xmlns
="http://www.w3.org/2001/XMLSchema">
<complexType abstract="true" name="AttributesType">
<sequence>
<element name="director" nillable="true" type
="xsd:string"/>
<element name="genre" nillable="true" type
="xsd:string"/>
<element name="producer" nillable="true" type
="xsd:string"/>
<element name="boxofficeStatus" nillable
="true" type="xsd:string"/>
<element name="repeataudience" nillable
="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="Attributes">
<complexContent>
<extension base="tns2:AttributesType">
<sequence/>
</extension>
</complexContent>
</complexType>
<complexType name="Movie">
<sequence>
<element name="attributes" nillable="true"
type="tns2:Attributes"/>
<element name="moviename" nillable="true"
type="xsd:string"/>
</sequence>
</complexType>
</schema>
<schema targetNamespace="urn:member" xmlns
="http://www.w3.org/2001/XMLSchema">
<element name="getMovieReturn" type="tns2:Movie"/>
<element name="in0" type="xsd:string"/>
</schema>
</wsdl:types>
<wsdl:message name="getMovieResponse1">
<wsdl:part element="impl:getMovieReturn" name
="getMovieReturn"/>
</wsdl:message>
<wsdl:message name="getMovieRequest1">
<wsdl:part element="impl:in0" name="in0"/>
</wsdl:message>
<wsdl:message name="getMovieResponse">
<wsdl:part element="impl:getMovieReturn" name
="getMovieReturn"/>
</wsdl:message>
<wsdl:message name="getMovieRequest">
</wsdl:message>
<wsdl:portType name="AddMember">
<wsdl:operation name="getMovie">
<wsdl:input message="impl:getMovieRequest" name
="getMovieRequest"/>
<wsdl:output message="impl:getMovieResponse" name
="getMovieResponse"/>
</wsdl:operation>
<wsdl:operation name="getMovie" parameterOrder="in0">
<wsdl:input message="impl:getMovieRequest1" name
="getMovieRequest1"/>
<wsdl:output message="impl:getMovieResponse1" name
="getMovieResponse1"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="AddMemberServiceSoapBinding" type
="impl:AddMember">
<wsdlsoap:binding style="document" transport
="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getMovie">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getMovieRequest">
<wsdlsoap:body namespace="urn:member" use
="literal"/>
</wsdl:input>
<wsdl:output name="getMovieResponse">
<wsdlsoap:body namespace="urn:member" use
="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getMovie">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getMovieRequest1">
<wsdlsoap:body namespace="urn:member" use
="literal"/>
</wsdl:input>
<wsdl:output name="getMovieResponse1">
<wsdlsoap:body namespace="urn:member" use
="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="AddMemberService">
<wsdl:port binding="impl:AddMemberServiceSoapBinding" name
="AddMemberService">
<wsdlsoap:address location
="http://localhost:9080/callEjbs/services/AddMemberService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Part of server config:
-----------------------------------------------------------------------------------------------------------------------------------------
<service name="AddMemberService" provider="java:EJB" style="wrapped" use
="literal">
<requestFlow>
<handler type="soapmonitor"/>
</requestFlow>
<responseFlow>
<handler type="soapmonitor"/>
</responseFlow>
<operation name="getMovie" qname="ns1:getMovie" returnQName
="ns1:getMovieReturn" returnType="ns2:Movie" xmlns:ns1="urn:member"
xmlns:ns2="http://castor"/>
<operation name="getMovie" qname="ns3:getMovie" returnQName
="ns3:getMovieReturn" returnType="ns4:Movie" xmlns:ns3="urn:member"
xmlns:ns4="http://castor">
<parameter qname="ns3:in0" type="xsd:string" xmlns:xsd
="http://www.w3.org/2001/XMLSchema"/>
</operation>
<parameter name="allowedMethods" value="getMovie"/>
<parameter name="jndiURL" value="iiop://localhost:2809"/>
<parameter name="jndiContextClass" value
="com.ibm.websphere.naming.WsnInitialContextFactory"/>
<parameter name="remoteInterfaceName" value="com.AddMember"/>
<parameter name="beanJndiName" value="ejb/com/AddMemberHome"/>
<parameter name="homeInterfaceName" value="com.AddMemberHome"/>
<typeMapping deserializer
="org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
encodingStyle="" qname="ns5:Movie" serializer
="org.apache.axis.encoding.ser.castor.CastorSerializerFactory" type
="java:castor.Movie" xmlns:ns5="http://castor"/>
<typeMapping deserializer
="org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
encodingStyle="" qname="ns6:Attributes" serializer
="org.apache.axis.encoding.ser.castor.CastorSerializerFactory" type
="java:castor.Attributes" xmlns:ns6="http://castor"/>
<typeMapping deserializer
="org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
encodingStyle="" qname="ns7:AttributesType" serializer
="org.apache.axis.encoding.ser.castor.CastorSerializerFactory" type
="java:castor.AttributesType" xmlns:ns7="http://castor"/>
</service>
---------------------------------------------------------
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------