Yes, Axis version 1.2 beta is deployed on port 8080 in my Tomcat 5.0
It is very strange :(
Thank you !
Ricardo DE LA ROSA Laboratoire LSR IMAG - Grenoble - France
Mark Leone a �crit:
Is Axis deployed on port 8080 in your web container?
From: Ricardo De la Rosa <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Problem with the example axis\samples\jaxrpc\address of the distribution of AXIS 1.1
Date: Wed, 07 Apr 2004 16:41:00 +0200
Hi ,
I am trying to execute the example ( \axis\samples\jaxrpc\address ) of AXIS 1.1 distribution. But , it fails when the client call the webservice.
The code of the client is:
___________________________________
public class AddressClient {
public static void main(String[] args) throws Exception {
try {
URL urlWsdl = new URL("http://localhost:8080/axis/services/Address?wsdl");
String nameSpaceUri = "http://address.jaxrpc.samples";
String serviceName = "AddressServiceService";
String portName = "Address";
ServiceFactory serviceFactory = ServiceFactory.newInstance();
Service service = serviceFactory.createService(urlWsdl, new
QName(nameSpaceUri, serviceName));
AddressService myProxy = (AddressService) service.getPort(new
QName(nameSpaceUri, portName), AddressService.class);
AddressBean addressBean = new AddressBean();
addressBean.setStreet("55, rue des Lilas");
System.out.println(myProxy.updateAddress(addressBean, 75005));
}
catch (Exception exc) {
System.out.println( "\nMensaje >>" + exc.getMessage() + "<<" ) ;
System.out.println( "\nClass >>" + exc.getClass().getName() + "<<" ) ;
exc.printStackTrace(); }
}
}
_______________________
And , when the program samples.jaxrpc.address.AddressClient execute the instruction
serviceFactory.createService(... ) the error is :
Mensaje >>Error processing WSDL document:
javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Cannot find service: {http://address.jaxrpc.sam
ples}AddressServiceService<<
Class >>javax.xml.rpc.ServiceException<<
javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Cannot find service: {http://address.jaxrpc.sam
ples}AddressServiceService
at org.apache.axis.client.Service.initService(Service.java:278)
at org.apache.axis.client.Service.<init>(Service.java:193)
at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.ja
va:232)
at samples.jaxrpc.address.AddressClient.main(AddressClient.java:17)
_________________________________
The WSDL File is:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://address.jaxrpc.samples" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://address.jaxrpc.samples" xmlns:intf="http://address.jaxrpc.samples" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema targetNamespace="http://address.jaxrpc.samples" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="AddressBean">
<sequence>
<element name="street" nillable="true" type="xsd:string"/>
<element name="postcode" type="xsd:int"/>
</sequence>
</complexType>
<element name="AddressBean" nillable="true" type="impl:AddressBean"/>
</schema>
<schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<element name="int" type="xsd:int"/>
<element name="string" type="xsd:string"/>
</schema>
</wsdl:types>
<wsdl:message name="updateAddressRequest">
<wsdl:part name="in0" type="intf:AddressBean"/>
<wsdl:part name="in1" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="updateAddressResponse">
<wsdl:part name="return" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="AddressService">
<wsdl:operation name="updateAddress" parameterOrder="in0 in1">
<wsdl:input message="intf:updateAddressRequest" name="updateAddressRequest"/>
<wsdl:output message="intf:updateAddressResponse" name="updateAddressResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="AddressSoapBinding" type="intf:AddressService">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="updateAddress">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="updateAddressRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://address.jaxrpc.samples" use="encoded"/>
</wsdl:input>
<wsdl:output name="updateAddressResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://address.jaxrpc.samples" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="AddressServiceService">
<wsdl:port binding="intf:AddressSoapBinding" name="Address">
<wsdlsoap:address location="http://localhost:8080/axis/services/Address"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions> ___________________________________
Any help is appreciated ... In advance thanks,
Ricardo DE LA ROSA Laboratoire LSR IMAG - Grenoble - France
_________________________________________________________________
Persistent heartburn? Check out Digestive Health & Wellness for information and advice. http://gerd.msn.com/default.asp
