Maybe this example was just runing through an edit/compile pass but has never passed a real test/run/debugg pass.
I was googling for org\apache\axis2\jaxws\calculator\client\CalculatorService.java And found http://www.opensourcejavaphp.net/java/axis/org/apache/axis2/jaxws/calculator/client/CalculatorService.java.html and looking at this page I found as well /** * @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values. * @return returns Calculator */ @WebEndpoint(name = "CalculatorServicePort") public Calculator getCalculatorServicePort(WebServiceFeature... features) { return super.getPort(new QName("http://calculator.jaxws.axis2.apache.org", "CalculatorServicePort"), Calculator.class, features); } Have you ever seen public Calculator getCalculatorServicePort(WebServiceFeature... features) { ***************************** In a life tested runing example? I did not see anything like that running. In my mind: the question is not: Is the URL correct, the URL looks correct for sure; but what is the expected URL? So the question should be: What does the API in our case: #import javax.xml.ws.Service ask for when I call super ()? http://download.oracle.com/javase/6/docs/api/javax/xml/ws/class-use/Service.html shows Service looks for the WSDL-document-location. WSDL describes a total view of the service, hence I would setup i.e. my URL as http://integ1:8080/axis2/services/Version?wsdl while a URL of content http://integ1:8080/axis2/services/Version.VersionPortType?wsdl asks only for a part of the WSDL, the interface, and hence it can not stand in for the total-WSDL-Location as such. But the WSDL location is asked for the super class Service.create() What I just did: I take the version example of Axis2 I call http://integ1:8080/axis2/services/Version?wsdl and I get the WSDL describing all of my Service I call http://integ1:8080/axis2/services/Version.VersionPortType?wsdl No services found in this location I call http://integ1:8080/axis2/services/Version.getVersion?wsdl No services found in this location I call http://integ1:8080/axis2/services/Version/getVersion?wsdl No services found in this location Maybe Understanding WSDL helps as well http://msdn.microsoft.com/en-us/library/ms996486.aspx Josef - and forget examples running through an editor and then perhaps through a compiler, also sometimes an API changes from version to version (it should not as this is bad habit too) but it happens sometimes? So what if your interface changes expecting a different parameter while your example still would run well with the old-world-API-signature? -----Ursprüngliche Nachricht----- Von: Ognjen Blagojevic [mailto:ognjen.d.blagoje...@gmail.com] Gesendet: Mittwoch, 3. August 2011 17:33 An: java-user@axis.apache.org Betreff: Re: AW: Stuck with basic jaxws example Hi Josef, Mentioned syntax (ServiceName.PortName?wsdl) is strange for me also, but example org\apache\axis2\jaxws\calculator\client\CalculatorService.java, uses exactly that: url = new URL("http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl"); ... CALCULATORSERVICE_WSDL_LOCATION = url; ... super(CALCULATORSERVICE_WSDL_LOCATION, new QName("http://calculator.jaxws.axis2.apache.org", "CalculatorService")); Where super calls new Service(URL wsdlDocumentLocation, QName serviceName). So, the question is: is URL for WSDL in jaxws-calculator example right, or not? -Ognjen On 3.8.2011 17:07, Stadelmann Josef wrote: > What do you expect from ?wsdl to come back? > a) only information about the CalculatorServicePort OR > b) only information about the CalculatorService where > CalculatorServicePort is only a fragment of information? > Josef > > -----Ursprüngliche Nachricht----- > Von: Ognjen Blagojevic [mailto:ognjen.d.blagoje...@gmail.com] > Gesendet: Mittwoch, 3. August 2011 17:01 > An: axis-u...@ws.apache.org > Betreff: Stuck with basic jaxws example > > Hi, > > I am trying to deploy very basic jaxws-calculator example. After > succsessful deployment I try to access WSDL as described in README: > > > http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl > > but I get "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." > > However, http://localhost:8080/axis2/services/CalculatorService?wsdl > works fine, but that is not the URL used in the client class exmaple. > > Which one of those two URLs is right? > > -Ognjen > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org