ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | celtix List | July 2006 Index

<--  Date Index  --> <--  Thread Index  -->

My request is alway forwarded to one operation...


Hello,

I have been testing out Celtix and faced problem about remote invocation with my WSDL file.

I created simple wsdl file attached in this email. It had two simple operations, login and logoff. Each has IN/OUT/FAULT messages. Simply, I generated stub/skelton and client/server codes by the wsdl2java command. The command seemed to make a little mistake during generation of the client implementation, it's easy to fix it by myself.

I get the client to invoke two operation by turn after booting up the server. However two invocation (call login and logoff) from the client are always forwarded to only login() operation. I'm wondering if my WSDL definition is something wrong...

Could you please help me in this regards?

Patience, persistence, truth,
Yugos
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:y="http://new.webservice.namespace"; targetNamespace="http://new.webservice.namespace";>
	<types>
		<xs:schema targetNamespace="http://new.webservice.namespace"; attributeFormDefault="qualified">
			<xs:element name="MyAccountType" type="y:MyAccount"/>
			<xs:complexType name="MyAccount">
				<xs:sequence>
					<xs:element name="account" type="xs:string"/>
					<xs:element name="password" type="xs:string"/>
				</xs:sequence>
			</xs:complexType>
			<xs:element name="MyFaultType" type="y:MyFault"/>
			<xs:complexType name="MyFault">
				<xs:sequence>
					<xs:element name="major" type="xs:int"/>
					<xs:element name="minor" type="xs:int"/>
					<xs:element name="description" type="xs:string"/>
				</xs:sequence>
			</xs:complexType>
			<xs:element name="MyResultType" type="y:MyResult"/>
			<xs:complexType name="MyResult">
				<xs:sequence>
					<xs:element name="result" type="xs:string"/>
				</xs:sequence>
			</xs:complexType>
		</xs:schema>
	</types>
	<message name="LoginRequestMessage">
		<part name="parameter" element="y:MyAccountType"/>
	</message>
	<message name="LoginResponseMessage">
		<part name="parameter" element="y:MyResultType"/>
	</message>
	<message name="LoginFaultMessage">
		<part name="parameter" element="y:MyFaultType"/>
	</message>
	<message name="LogoffRequestMessage">
		<part name="parameter" element="y:MyAccountType"/>
	</message>
	<message name="LogoffResponseMessage">
		<part name="parameter" element="y:MyResultType"/>
	</message>
	<message name="LogoffFaultMessage">
		<part name="parameter" element="y:MyFaultType"/>
	</message>
	<portType name="MySOAPPort">
		<operation name="Login">
			<input message="y:LoginRequestMessage"/>
			<output message="y:LoginResponseMessage"/>
			<fault name="FaultName" message="y:LoginFaultMessage"/>
		</operation>
		<operation name="Logoff">
			<input message="y:LogoffRequestMessage"/>
			<output message="y:LogoffResponseMessage"/>
			<fault name="FaultName" message="y:LogoffFaultMessage"/>
		</operation>
	</portType>
	<binding name="MySOAPBinding" type="y:MySOAPPort">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
		<operation name="Login">
			<soap:operation soapAction="urn:#Login" style="document"/>
			<input>
				<soap:body use="literal"/>
			</input>
			<output>
				<soap:body use="literal"/>
			</output>
			<fault name="FaultName"/>
		</operation>
		<operation name="Logoff">
			<soap:operation soapAction="urn:#Logoff" style="document"/>
			<input>
				<soap:body use="literal"/>
			</input>
			<output>
				<soap:body use="literal"/>
			</output>
			<fault name="FaultName"/>
		</operation>
	</binding>
	<service name="MyAccountService">
		<port name="MyAccountSOAPPort" binding="y:MySOAPBinding">
			<soap:address location="http://localhost:9011/"/>
		</port>
	</service>
</definitions>


<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.