axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From IKEDA TOMOKAZU <tom...@live.jp>
Subject example JAXWS Web service does not work, which shows how to expose the methods of a class as a JAXWS Web service using Axis2.
Date Mon, 09 Apr 2012 15:39:07 GMT

I am testing sample samples\jaxws-calculator contained in axis2-1.6.1 and following README.txt,
doing bellows step
1.Build :mvn clean install2.Copy jaxws-calculator-1.6.1.jar to C:\axis2-1.6.1\repository\servicejars3.Start
the Axis2 server by running either axis2server.batand4.README.txt saies 
The WSDL for this service should be viewable at:http://<yourhost>:<yourport>/axis2/services/CalculatorService.CalculatorServicePort?wsdl(http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl)
So I try http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl
But result is -----------------------------------------------------------------------------------------------------------------------This
XML file does not appear to have any style information associated with it. The document tree
is shown below.<faultstring>The endpoint reference (EPR) for the Operation not found
is /axis2/services/CalculatorService.CalculatorServicePort?wsdl and the WSA Action = null.
If this EPR was previously reachable, please contact the server administrator.</faultstring>-----------------------------------------------------------------------------------------------------------------------
also Running the Client
1. Set up a CLASSPATH SET CLASSPATH=.;C:\axis2-1.6.1\lib;C:\axis2-1.6.1\samples\jaxws-calculator\target\jaxws-calculator-1.6.1-client.jar;C:\axis2-1.6.1\repository\modules\addressing-1.6.1.mar
2. Run the client java -classpath %CLASSPATH% org.apache.axis2.jaxws.calculator.client.AddSEIClient
3 33
But same as javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl.


What should I do another  ?

--C:\axis2-1.6.1\samples\jaxws-calculator\target\classes>java -classpath %CLASSPATH% org.apache.axis2.jaxws.calculator.client.AddSEIClient
3 33javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl.
It failed with:        Server returned HTTP response code: 500 for URL: http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl.
       at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(Unknown Source)
       at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)    
   at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source)        at
com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)        at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown
Source)        at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown Source)
       at javax.xml.ws.Service.<init>(
 Unknown Source)        at org.apache.axis2.jaxws.calculator.client.CalculatorService.<init>(CalculatorService.java:53)
       at org.apache.axis2.jaxws.calculator.client.AddSEIClient.main(AddSEIClient.java:41)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)     
  at java.net.URL.openStream(Unknown Source)        at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(Unknown
Source)        at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(Unknown
Source)--



 		 	   		  
Mime
View raw message