Hi,
I have a webservice(eg.IStringServicePort) running on Axis, iam able to
create a java client for the same and invoke the service and obtain the
result.
I wanted to create a .Net client(C#) for the same..For that I did the
following thing
I added a web reference for the service thru "Add Web Reference", It got
added successfully,
But iam unable to find the web reference in my c# class. Because of that
iam not able to invoke the service ..
Iam trying to do the below mentioned task..
NetClient.IStringServicePort s1 = new NetClient.IStringServicePort();
//Where NetClient is the web reference and NetClient.Employee is the service.
But what happens in NetClient is not visibile in the C# class.
Foll. is the wsdl file for the service running in Axis.
<definitions xmlns:tns="urn:StringService2"
xmlns=" <http://schemas.xmlsoap.org/wsdl/>"
xmlns:ns2="urn:StringService2"
xmlns:xsd=" <http://www.w3.org/2001/XMLSchema>"
xmlns:soap=" <http://schemas.xmlsoap.org/wsdl/soap/>"
targetNamespace="urn:StringService2"
name="XMLStringService">
<types>
<schema targetNamespace="urn:StringService2" xmlns:tns="urn:StringService2"
xmlns:xsi=" <http://www.w3.org/2001/XMLSchema-instance>"
xmlns:wsdl=" <http://schemas.xmlsoap.org/wsdl/>"
xmlns=" <http://www.w3.org/2001/XMLSchema>">
<complexType name="sayXMLHello">
<sequence>
<element name="String_1" type="string" nillable="true"/>
</sequence>
</complexType>
<complexType name="sayXMLHelloResponse">
<sequence>
<element name="result" type="string" nillable="true"/>
</sequence>
</complexType>
<element name="sayXMLHello" type="tns:sayXMLHello"/>
<element name="sayXMLHelloResponse" type="tns:sayXMLHelloResponse"/>
</schema>
</types>
<message name="IStringService_sayXMLHello">
<part name="parameters" element="ns2:sayXMLHello"/>
</message>
<message name="IStringService_sayXMLHelloResponse">
<part name="parameters" element="ns2:sayXMLHelloResponse"/>
</message>
<portType name="IStringService">
<operation name="sayXMLHello">
<input message="tns:IStringService_sayXMLHello"/>
<output message="tns:IStringService_sayXMLHelloResponse"/>
</operation>
</portType>
<binding name="IStringServiceBinding" type="tns:IStringService">
<soap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/ <http://schemas.xmlsoap.org/soap/http>>
<operation name="sayXMLHello">
<soap:operation/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="XMLStringService">
<port name="IStringServicePort" binding="tns:IStringServiceBinding">
<soap:address location="
http://localhost:8080/axis/services/IStringServicePort">
</port>
</service>
</definitions>
Can anyone help please...thanks in advance..