axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel Valdavia <mvalda...@hotmail.com>
Subject Error building a Web Service
Date Sat, 23 Jun 2007 19:51:20 GMT

I don't know what else can I do.
I'm following the book "Developing Web Services with Apache Axis" from Tong
Ka Iok, and I'm stuck trying to generate the java classes.
It appears allways the same error: unknown protocol: c.
I've searched in internet, and the problem is not unique.
I've wrote down the .wsdl file, and the build.xml file.
Can someone help me?

thanks in advance

<?xml version="1.0" encoding="UTF-8"?>
<project name="SimpleService">
	<property name="axis.home" value="c:/axis"/>
	<property name="javamail.home" value="c:/Archivos de
programa/javamail-1.3.3_01"/>
	<property name="jaf.home" value="c:/Archivos de programa/jaf-1.0.2"/>
	<path id="axis.classpath">
		<fileset dir="${axis.home}/lib">
			<include name="**/*.jar"/>
		</fileset>
		<fileset dir="${javamail.home}">
			<include name="**/*.jar"/>
		</fileset>
		<fileset dir="${jaf.home}">
			<include name="**/*.jar"/>
		</fileset>
	</path>
	<taskdef
		resource="axis-tasks.properties"
		classpathref="axis.classpath"/>
	<target name="generate-service-stub">
		<axis-wsdl2java
			serverside="true"
			url="SimpleService.wsdl">
		</axis-wsdl2java>
	</target>
</project>


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:tns="http://ttdev.com/ss" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SimpleService" 
targetNamespace="http://ttdev.com/ss" 
  <wsdl:types>
    <xsd:schema targetNamespace="http://ttdev.com/ss">
      <xsd:element name="concatRequest">
        <xsd:complexType>
        	<xsd:sequence>
        		<xsd:element name="s1" type="xsd:string" />
        		<xsd:element name="s2" type="xsd:string"></xsd:element>
        	</xsd:sequence>
        </xsd:complexType>
      </xsd:element>

    
        </xsd:schema>
</wsdl:types>
  <wsdl:message name="concatRequest">
    <wsdl:part element="tns:concatRequest" name="concatRequest" />
  </wsdl:message>
  <wsdl:message name="concatResponse">
    <wsdl:part name="concatResponse" type="xsd:string"/>
  </wsdl:message>
  <wsdl:portType name="SimpleService">
    <wsdl:operation name="concat">
      <wsdl:input message="tns:concatRequest" name="input"/>
      <wsdl:output message="tns:concatResponse" name="output"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="SimpleServiceSOAP" type="tns:SimpleService">
  	<soap:binding style="document"
  		transport="http://schemas.xmlsoap.org/soap/http" />
  	<wsdl:operation name="concat">
  		<soap:operation soapAction="http://ttdev.com/ss/concat" />
  		<wsdl:input name="input">
  			<soap:body use="literal" />
  		</wsdl:input>
  		<wsdl:output name="output">
  			<soap:body use="literal" />
  		</wsdl:output>
  	</wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="SimpleService">
    <wsdl:port binding="tns:SimpleServiceSOAP" name="SimpleServiceSOAP">
      <soap:address
location="http://localhost:8080/Axis/services/SimpleServiceSOAP"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

-- 
View this message in context: http://www.nabble.com/Error-building-a-Web-Service-tf3970323.html#a11269655
Sent from the Axis - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message