Hello, I deployed a small test service on my home computer. The server side was built from wsdl 1.1 file using wsdl2c converter. When accessed from web server with URL?wsdl suffix I get wsdl file in my browser window. When I try to invoke simple hello (sayHello) service, it gives me 404 URL Not Found error. I attached the wsdl file here. I use Axis2c 1.6 built in web server. Maybe I am trying to invoke the service in a wrong way? What is the right way to invoke this or any other service? I looked on the internet, and did as the tutorials say, but still it is the same.
Any help would be greatly appreciated. Thank you in advance, Best regards, Nemanja Ilic
<?xml version="1.0" encoding="UTF-8" ?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://roseindia.net" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://roseindia.net"> <wsdl:types> <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://roseindia.net"> <xs:element name="sayHello"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="args0" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="sayHelloResponse"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="sayHelloRequest"> <wsdl:part name="parameters" element="ns:sayHello" /> </wsdl:message> <wsdl:message name="sayHelloResponse"> <wsdl:part name="parameters" element="ns:sayHelloResponse" /> </wsdl:message> <wsdl:portType name="HelloWorldServicePortType"> <wsdl:operation name="sayHello"> <wsdl:input message="ns:sayHelloRequest" wsaw:Action="urn:sayHello" /> <wsdl:output message="ns:sayHelloResponse" wsaw:Action="urn:sayHelloResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="HelloWorldServiceSoap11Binding" type="ns:HelloWorldServicePortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <wsdl:operation name="sayHello"> <soap:operation soapAction="urn:sayHello" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="HelloWorldServiceSoap12Binding" type="ns:HelloWorldServicePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <wsdl:operation name="sayHello"> <soap12:operation soapAction="urn:sayHello" style="document" /> <wsdl:input> <soap12:body use="literal" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="HelloWorldServiceHttpBinding" type="ns:HelloWorldServicePortType"> <http:binding verb="POST" /> <wsdl:operation name="sayHello"> <http:operation location="HelloWorldService/sayHello" /> <wsdl:input> <mime:content type="text/xml" part="sayHello" /> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="sayHello" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="HelloWorldService"> <wsdl:port name="HelloWorldServiceHttpSoap11Endpoint" binding="ns:HelloWorldServiceSoap11Binding"> <soap:address location="http://localhost:8080/axis2/services/HelloWorldService .HelloWorldServiceHttpSoap11Endpoint/" /> </wsdl:port> <wsdl:port name="HelloWorldServiceHttpSoap12Endpoint" binding="ns:HelloWorldServiceSoap12Binding"> <soap12:address location="http://localhost:8080/axis2/services/HelloWorldService .HelloWorldServiceHttpSoap12Endpoint/" /> </wsdl:port> <wsdl:port name="HelloWorldServiceHttpEndpoint" binding="ns:HelloWorldServiceHttpBinding"> <http:address location="http://localhost:8080/axis2/services/HelloWorldService .HelloWorldServiceHttpEndpoint/" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
