It works ..

Thank you Stefano and Abhinav for your time
srini

Stefano Sambi wrote:

I changed my wsdl like Abhinav said, and it works.
I also used ".Net web service studio"
(http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=65a1
d4ea-0f7a-41bd-8494-e916ebc4159c)
to verify my wsdl. If something is wrong in your wsdl file, this product
will tell you it.
Anyway here is my wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
xmlns:impl="http://localhost/axis/services/SessionService4bis";
xmlns:intf="http://localhost/axis/services/SessionService4bis";
xmlns:apachesoap="http://xml.apache.org/xml-soap";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:tns1="http://www.w3.org/1999/XMLSchema";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:session="http://foundationip.com/services";
targetNamespace="http://localhost/axis/services/SessionService4bis";>
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema";
targetNamespace="http://foundationip.com/services";>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"; />
<complexType name="SessionID">
<sequence>
<element name="ID" minOccurs="1" maxOccurs="1" type="xsd:string" />
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="soapHeader">
<wsdl:part name="sessionID" type="session:SessionID"/>
</wsdl:message>
<wsdl:message name="sommaAlTotaleResponse">
<wsdl:part name="sommaAlTotaleReturn" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="adessoTogliResponse">
<wsdl:part name="adessoTogliReturn" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="sommaAlTotaleRequest">
<wsdl:part name="a" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="adessoTogliRequest">
<wsdl:part name="a" type="xsd:int"/>
</wsdl:message>
<wsdl:portType name="SessionService4">
<wsdl:operation name="sommaAlTotale" parameterOrder="a">
<wsdl:input name="sommaAlTotaleRequest"
message="impl:sommaAlTotaleRequest"/>
<wsdl:output name="sommaAlTotaleResponse"
message="impl:sommaAlTotaleResponse"/>
</wsdl:operation>
<wsdl:operation name="adessoTogli" parameterOrder="a">
<wsdl:input name="adessoTogliRequest" message="impl:adessoTogliRequest"/>
<wsdl:output name="adessoTogliResponse" message="impl:adessoTogliResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SessionService4bisSoapBinding"
type="impl:SessionService4">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="sommaAlTotale">
<wsdlsoap:operation/>
<wsdl:input>
<wsdlsoap:header message="impl:soapHeader" part="sessionID" use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<wsdlsoap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://axis4bis"/>
</wsdl:input>
<wsdl:output>
<wsdlsoap:header message="impl:soapHeader" part="sessionID" use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<wsdlsoap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost/axis/services/SessionService4bis"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="adessoTogli">
<wsdlsoap:operation/>
<wsdl:input>
<wsdlsoap:header message="impl:soapHeader" part="sessionID" use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<wsdlsoap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://axis4bis"/>
</wsdl:input>
<wsdl:output>
<wsdlsoap:header message="impl:soapHeader" part="sessionID" use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<wsdlsoap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost/axis/services/SessionService4bis"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SessionService4Service">
<wsdl:port name="SessionService4bis"
binding="impl:SessionService4bisSoapBinding">
<wsdlsoap:address
location="http://localhost:9000/axis/services/SessionService4bis"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

----- Original Message -----
From: Srinivas Vemula
To: [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 6:58 AM
Subject: Re: C# Cllient , Axis Server, Session Management


Hi, Unfortunately we are having problems getting it to work. After we add the header, C# hasnt been able to recognize SessionID as an element. service.sessionID doesnt come up.

   Could you please share ur experience in a lil more detail? Or could you
post the changed wsdl ??
srini





--
Srinivas Vemula +91 40 23547826- Ext 201
Associate Consultant +91 40 23541447 (Fax)
Mensamind +91 98497-42720 (Mobile) Hyderabad
India
http://www.mensamind.com


DISCLAIMER
The information contained in this e-mail is confidential and intended for the named 
recipient(s) only. If you are not an intended recipient of this email you must not 
copy, distribute or take any further action in reliance on it. You should delete it 
and notify the sender immediately.





Reply via email to