Error on auto-generated wsdl using JAXWSDeployer...
Hi guys, I've been looking at a standard way to develop web services that could potentially be slightly more portable across multiple servers, and the best way I've seen so far is to use JAX-WS annotations. I created a simple java program in eclipse. After that I export the project as a jar file and deploy that jar to Axis2 1.4. First I create the servicejars folder in Axis2. When I run Axis2 as a standalone server (AXIS2_HOME/bin/Axis2Server.bat) it deploys and runs fine. http://localhost:8080/axis2/services/CalculatorService.CalculatorPort?wsdl However when I create the war file off the binary distribution, deploy that to Tomcat 5.5 and export Calculator.jar to the servicejars folder i get an error. However if I issue the command: http://localhost:8080/axis2/services/CalculatorService.CalculatorPort?wsdl2 It works fine on both the standalone axis2-1.4 as well as the deployed webapp to tomcat 5.5. Here's the Code: package ca.math.calculator; import javax.jws.WebMethod; import javax.jws.WebService; /** * Calculator service class. * */ @WebService( name=Calculator, serviceName=CalculatorService, targetNamespace=http://ca/math/Calculator1; ) public class Calculator { /** * Adds two integers. * @param x first integer. * @param y second integer. * @return the sum of two integers. */ @WebMethod(operationName=add, action=urn:Add) public int add(int x, int y) { return x+y; } /** * Subtracts two integers. * @param x first integer. * @param y second integer. * @return the subtraction of two integers. */ @WebMethod(operationName=subtract, action=urn:Substract) public int subtract(int x, int y) { return x-y; } } Here's the error: error descriptionUnable to generate WSDL 1.1 for this service/description reason If you wish Axis2 to automatically generate the WSDL 1.1, then please +set useOriginalwsdl as false in your services.xml /reason javax.xml.ws.WebServiceException: Error occurred generating WSDL file for Web service implementation class {ca.gc.agr.math.calculator.Calculator}: {java.lang.ClassNotFoundException: com.sun.tools.ws.spi.WSToolsObjectFactory} at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:187) at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:371) at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:364) at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1322) at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:287) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:242) at javax.servlet.http.HttpServlet.service(HttpServlet.java:627) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.ClassNotFoundException: com.sun.tools.ws.spi.WSToolsObjectFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:166) ... 21 more /error Cheers, Bill --
useOriginalWsdl generates error when set to true.
Hi guys, I've been working on an Axis2 service and keep getting the same error. What I WANT to do is use the original wsdl but modify the soap address and I can't seem to do that. When I access the wsdl I would like to set the original wsdl to true and access the service at: http://server.com/axis2/services/service?wsdl but I get the error: error descriptionUnable to generate WSDL 1.1 for this service/description reason If you wish Axis2 to automatically generate the WSDL 1.1, then please +set useOriginalwsdl as false in your services.xml /reason /error As a result I am forced the use the address with a .wsdl suffix when referencing my service via clients. It works, but since it doesn't modify the wsdl port address I must manually modify the URL on the client side, which is needless work. I'm currently using Axis2.1.3 on OAS. My service.xml ?xml version=1.0 encoding=UTF-8? serviceGroup service name=ExtractAAFCProfile messageReceivers messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=ca.gc.agr.services.extractaafcprofile.ExtractAAFCProfileMessageReceiverInOut/ /messageReceivers parameter name=ServiceClassca.gc.agr.services.extractaafcprofile.ExtractAAFCProfileSkeleton/parameter parameter name=useOriginalwsdltrue/parameter parameter name=modifyUserWSDLPortAddresstrue/parameter operation name=ExtractAAFCProfile mep=http://www.w3.org/ns/wsdl/in-out; actionMappingExtractAAFCProfile/actionMapping outputActionMapping//schemas.xmlsoap.org/wsdl/ExtractAAFCProfile_portType/ExtractAAFCProfileResponse/outputActionMapping faultActionMapping faultName=TranslatorFaultTranslatorException/faultActionMapping /operation /service /serviceGroup My wsdl service name: wsdl:service name=ExtractAAFCProfile wsdl:port name=ExtractAAFCProfileSOAP12port_http binding=nlwis:ExtractAAFCProfile_SOAP12Binding soap12:address location=http://localhost:8080/axis2/services/ExtractAAFCProfile; / /wsdl:port wsdl:port name=ExtractAAFCProfileSOAP11port_http binding=nlwis:ExtractAAFCProfile_SOAP11Binding soap:address location=http://localhost:8080/axis2/services/ExtractAAFCProfile; / /wsdl:port /wsdl:service -- View this message in context: http://www.nabble.com/useOriginalWsdl-generates-error-when-set-to-true.-tp16834658p16834658.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: useOriginalWsdl generates error when set to true.
I've uploaded the WSDL. On inspection of the console window for OC4J I also found this error: Could not create URL from 'META-INF/ExtractAAFCProfile.wsdl' and 'http://www.w3.org/2005/05/xmlmime; This seems like a major issue. silver17 wrote: Hi guys, I've been working on an Axis2 service and keep getting the same error. What I WANT to do is use the original wsdl but modify the soap address and I can't seem to do that. When I access the wsdl I would like to set the original wsdl to true and access the service at: http://server.com/axis2/services/service?wsdl but I get the error: error descriptionUnable to generate WSDL 1.1 for this service/description reason If you wish Axis2 to automatically generate the WSDL 1.1, then please +set useOriginalwsdl as false in your services.xml /reason /error As a result I am forced the use the address with a .wsdl suffix when referencing my service via clients. It works, but since it doesn't modify the wsdl port address I must manually modify the URL on the client side, which is needless work. I'm currently using Axis2.1.3 on OAS. My service.xml ?xml version=1.0 encoding=UTF-8? serviceGroup service name=ExtractAAFCProfile messageReceivers messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=ca.gc.agr.services.extractaafcprofile.ExtractAAFCProfileMessageReceiverInOut/ /messageReceivers parameter name=ServiceClassca.gc.agr.services.extractaafcprofile.ExtractAAFCProfileSkeleton/parameter parameter name=useOriginalwsdltrue/parameter parameter name=modifyUserWSDLPortAddresstrue/parameter operation name=ExtractAAFCProfile mep=http://www.w3.org/ns/wsdl/in-out; actionMappingExtractAAFCProfile/actionMapping outputActionMapping//schemas.xmlsoap.org/wsdl/ExtractAAFCProfile_portType/ExtractAAFCProfileResponse/outputActionMapping faultActionMapping faultName=TranslatorFaultTranslatorException/faultActionMapping /operation /service /serviceGroup My wsdl service name: wsdl:service name=ExtractAAFCProfile wsdl:port name=ExtractAAFCProfileSOAP12port_http binding=nlwis:ExtractAAFCProfile_SOAP12Binding soap12:address location=http://localhost:8080/axis2/services/ExtractAAFCProfile; / /wsdl:port wsdl:port name=ExtractAAFCProfileSOAP11port_http binding=nlwis:ExtractAAFCProfile_SOAP11Binding soap:address location=http://localhost:8080/axis2/services/ExtractAAFCProfile; / /wsdl:port /wsdl:service http://www.nabble.com/file/p16834721/ExtractAAFCProfile.wsdl ExtractAAFCProfile.wsdl -- View this message in context: http://www.nabble.com/useOriginalWsdl-generates-error-when-set-to-true.-tp16834658p16834721.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Which Annotations work in Axis 2.1.3?
Hi guys, I've been experimenting with annotations and axis2 web services, and have some degree of success, but would like some help. Some things i've noticed: 1. @WebResult has seems to have no affect when you load the services auto-generated ?WSDL 2. the targetNamespace functionality in both the @WebResult and @WebParam don't seem to work when trying to access the services wsdl via ?WSDL. Is there something i'm missing? My development setting is Eclipse Europa with the Axis2-1.3 service archiver and code-gen plugins. I build a java project and develop a service like this: import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.soap.SOAPBinding; /** * Implementation of a calculator web service. * @author Bill * */ @WebService( serviceName=CalculatorService, targetNamespace=http://services.agr.gc.ca/CalculatorService; ) @SOAPBinding( style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL, parameterStyle=SOAPBinding.ParameterStyle.BARE ) public class CalculatorService { /** * Adds two numbers. * @param a * @param b * @return the addition of two numbers. */ @WebMethod ( action=action:Add, operationName=Add ) public @WebResult(name=Add) int add( @WebParam (mode=WebParam.Mode.IN, name=param1) int a, @WebParam (mode=WebParam.Mode.IN, name=param2) int b) { return a + b; } } Everything seems to be hit and miss with the annotations. For the @WebMethod the targetNamespace and operationName seems to have no effect. The @WebResult has no effect. So if I want to have a document literal web service with a response parameter as addResult instead of addResponse I can't seem to do that. Is there something i'm missing? -- View this message in context: http://www.nabble.com/Which-Annotations-work-in-Axis-2.1.3--tp16694164p16694164.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL XSD Schema Importing...
To answer your first question, yes it was a typo. I can also validate the wsdl and xsd's fine in eclipse, and when i set up the web service I can hit it and return a response using SOAPUI. Mauro Molinari wrote: silver17 ha scritto: http://localhost:8080/app/services'.: java.io.FileNotFoundException: This file was not found: http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2; schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/ http://www.nabble.com/file/p14722764/csw-Publication.xsd csw-Publication.xsd Is the first a copy 'n' paste problem or does Axis2 really says it can't find http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd? Because your file name seems to start with csw-, not cs-... Anyway, I can make Axis2 1.3 work with schema imports, except when trying to do some more complex things like sharing a schema between multiple services (please see https://issues.apache.org/jira/browse/AXIS2-3354). Does Eclipse give you any validation error on your WSDL and/or XSDs? (try right-click = Validate)? -- Mauro Molinari Software Developer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14734904.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL XSD Schema Importing...
As an addition to this discussion, if instead of trying to reference the http://localhost/app/services/RegistryPublish.wsdl i get the following error: http://www.nabble.com/file/p14736457/serviceError.jpg silver17 wrote: Hi Guys, I've searched a lot of these forum posts and haven't been able to find a resolution to my problem. Currently I am using Axis 2.1.3 and Eclipse Europa with the Apache Codegen wizard plugins. I created a WSDL that imports a couple of schemas and I'm having problems. When I attempt to use the wizards to generate the client stubs using a URL like: http://localhost:8080/app/services/RegistryPublish?wsdl I get the following error: An error occured while completing process - java.lang.InterruptedException: WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: An error occurred while trying to resolve schema referenced at 'RegistryPublish?xsd=csw-Publication.xsd, relative to http://localhost:8080/app/services'.: java.io.FileNotFoundException: This file was not found: http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd And I don't know why it's doing that. Here's a sample of that wsdl: wsdl:definitions name=RegistryPublish targetNamespace=http://services.registry.company.com/publish/; wsdl:documentation WSDL Description for the Registry Publishing Service. /wsdl:documentation wsdl:types xsd:schema xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2; schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/ xsd:import namespace=http://www.opengis.net/ows/1.1; schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/ /xsd:schema /wsdl:types ... My web app directory structure is: app-web-inf-services-RegistryPublish-META-INF ... csw-Publication.xsd owsExceptionReport.xsd RegistryPublish.wsdl services.xml I tried using a program called SOAPUI to run a test request to that same url as above and it returned a successful result. Any thoughts? I've attached the files. http://www.nabble.com/file/p14722764/RegistryPublish.wsdl RegistryPublish.wsdl http://www.nabble.com/file/p14722764/services.xml services.xml http://www.nabble.com/file/p14722764/owsExceptionReport.xsd owsExceptionReport.xsd http://www.nabble.com/file/p14722764/csw-Publication.xsd csw-Publication.xsd -- View this message in context: http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14736457.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL XSD Schema Importing...
Hi Amila, Your solution was correct; I replaced the Axis2 v1.3 libs with the nightly build (snapshot) libs and everything works fine. The Eclipse plugins don't work, but if I use the WSDL2Java in the nightly build it works as I expected it to. Amila Suriarachchi wrote: can you please try with a nightly build? If you still getting the problem please send your wsdl. thanks, Amila. On Jan 10, 2008 3:33 AM, silver17 [EMAIL PROTECTED] wrote: Hi Guys, I've searched a lot of these forum posts and haven't been able to find a resolution to my problem. Currently I am using Axis 2.1.3 and Eclipse Europa with the Apache Codegen wizard plugins. I created a WSDL that imports a couple of schemas and I'm having problems. When I attempt to use the wizards to generate the client stubs using a URL like: http://localhost:8080/app/services/RegistryPublish?wsdl I get the following error: An error occured while completing process - java.lang.InterruptedException : WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: An error occurred while trying to resolve schema referenced at 'RegistryPublish?xsd=csw-Publication.xsd, relative to http://localhost:8080/app/services'http://localhost:8080/app/services%27.: java.io.FileNotFoundException: This file was not found: http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd And I don't know why it's doing that. Here's a sample of that wsdl: wsdl:definitions name=RegistryPublish targetNamespace=http://services.registry.company.com/publish/; wsdl:documentation WSDL Description for the Registry Publishing Service. /wsdl:documentation wsdl:types xsd:schema xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2; schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/ xsd:import namespace=http://www.opengis.net/ows/1.1; schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/ /xsd:schema /wsdl:types ... My web app directory structure is: app-web-inf-services-RegistryPublish-META-INF ... csw-Publication.xsd owsExceptionReport.xsd RegistryPublish.wsdl services.xml I tried using a program called SOAPUI to run a test request to that same url as above and it returned a successful result. Any thoughts? I've attached the files. http://www.nabble.com/file/p14722764/RegistryPublish.wsdl RegistryPublish.wsdl http://www.nabble.com/file/p14722764/services.xml services.xml http://www.nabble.com/file/p14722764/owsExceptionReport.xsd owsExceptionReport.xsd http://www.nabble.com/file/p14722764/csw-Publication.xsd csw-Publication.xsd -- View this message in context: http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14722764.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi, WSO2 Inc. -- View this message in context: http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14744671.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WSDL XSD Schema Importing...
Hi Guys, I've searched a lot of these forum posts and haven't been able to find a resolution to my problem. Currently I am using Axis 2.1.3 and Eclipse Europa with the Apache Codegen wizard plugins. I created a WSDL that imports a couple of schemas and I'm having problems. When I attempt to use the wizards to generate the client stubs using a URL like: http://localhost:8080/app/services/RegistryPublish?wsdl I get the following error: An error occured while completing process - java.lang.InterruptedException: WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: An error occurred while trying to resolve schema referenced at 'RegistryPublish?xsd=csw-Publication.xsd, relative to http://localhost:8080/app/services'.: java.io.FileNotFoundException: This file was not found: http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd And I don't know why it's doing that. Here's a sample of that wsdl: wsdl:definitions name=RegistryPublish targetNamespace=http://services.registry.company.com/publish/; wsdl:documentation WSDL Description for the Registry Publishing Service. /wsdl:documentation wsdl:types xsd:schema xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2; schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/ xsd:import namespace=http://www.opengis.net/ows/1.1; schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/ /xsd:schema /wsdl:types ... My web app directory structure is: app-web-inf-services-RegistryPublish-META-INF ... csw-Publication.xsd owsExceptionReport.xsd RegistryPublish.wsdl services.xml I tried using a program called SOAPUI to run a test request to that same url as above and it returned a successful result. Any thoughts? I've attached the files. http://www.nabble.com/file/p14722764/RegistryPublish.wsdl RegistryPublish.wsdl http://www.nabble.com/file/p14722764/services.xml services.xml http://www.nabble.com/file/p14722764/owsExceptionReport.xsd owsExceptionReport.xsd http://www.nabble.com/file/p14722764/csw-Publication.xsd csw-Publication.xsd -- View this message in context: http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14722764.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL XSD Schema Importing...
At the moment all I can find for the nightly builds is the Axis2/C version. Also I included the RegistryPublish.wsdl file in the previous message. What I think it's doing is replacing when I want to use http://url/path/service?wsdl instead of service.wsdl. But when I try to link directly to http://url/path/service.wsdl it gives me a similar error as well. xsd:import namespace=http://www.opengis.net/ows/1.1; schemaLocation=owsExceptionReport.xsd/ with: xsd:import namespace=http://www.opengis.net/ows/1.1; schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/ Amila Suriarachchi wrote: can you please try with a nightly build? If you still getting the problem please send your wsdl. thanks, Amila. On Jan 10, 2008 3:33 AM, silver17 [EMAIL PROTECTED] wrote: Hi Guys, I've searched a lot of these forum posts and haven't been able to find a resolution to my problem. Currently I am using Axis 2.1.3 and Eclipse Europa with the Apache Codegen wizard plugins. I created a WSDL that imports a couple of schemas and I'm having problems. When I attempt to use the wizards to generate the client stubs using a URL like: http://localhost:8080/app/services/RegistryPublish?wsdl I get the following error: An error occured while completing process - java.lang.InterruptedException : WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: An error occurred while trying to resolve schema referenced at 'RegistryPublish?xsd=csw-Publication.xsd, relative to http://localhost:8080/app/services'http://localhost:8080/app/services%27.: java.io.FileNotFoundException: This file was not found: http://localhost:8080/app/RegistryPublish?xsd=cs-Publication.xsd And I don't know why it's doing that. Here's a sample of that wsdl: wsdl:definitions name=RegistryPublish targetNamespace=http://services.registry.company.com/publish/; wsdl:documentation WSDL Description for the Registry Publishing Service. /wsdl:documentation wsdl:types xsd:schema xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2; schemaLocation=RegistryPublish?xsd=csw-Publication.xsd/ xsd:import namespace=http://www.opengis.net/ows/1.1; schemaLocation=RegistryPublish?xsd=owsExceptionReport.xsd/ /xsd:schema /wsdl:types ... My web app directory structure is: app-web-inf-services-RegistryPublish-META-INF ... csw-Publication.xsd owsExceptionReport.xsd RegistryPublish.wsdl services.xml I tried using a program called SOAPUI to run a test request to that same url as above and it returned a successful result. Any thoughts? I've attached the files. http://www.nabble.com/file/p14722764/RegistryPublish.wsdl RegistryPublish.wsdl http://www.nabble.com/file/p14722764/services.xml services.xml http://www.nabble.com/file/p14722764/owsExceptionReport.xsd owsExceptionReport.xsd http://www.nabble.com/file/p14722764/csw-Publication.xsd csw-Publication.xsd -- View this message in context: http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14722764.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi, WSO2 Inc. -- View this message in context: http://www.nabble.com/WSDL-XSD-Schema-Importing...-tp14722764p14727914.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WSA Action = null for endpoint...
Hi guys, I'm relatively newb to the world of web services and i've come accross something else. I built a web service and put it in it's own war file, and it works, sort of. When I use my java client to hit the endpoint (eg: http://server/path/services/publish) it works great, but when i load my browser with that same URL I get an error indicating there is no Endpoint because WSA Action is null, can someone explain this to me? Here is my wsdl. ?xml version=1.0 encoding=UTF-8? wsdl:definitions name=RegistryPublish targetNamespace=http://services.registry.agr.gc.ca/publish/; xmlns:tns=http://services.registry.agr.gc.ca/publish/; xmlns:axis2=http://services.registry.agr.gc.ca/publish/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:ows=http://www.opengis.net/ows/1.1; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:csw=http://www.opengis.net/cat/csw/2.0.2; wsdl:documentation WSDL Description for the Registry Publishing Service. /wsdl:documentation wsdl:types xsd:schema xsd:import namespace=http://www.opengis.net/cat/csw/2.0.2; schemaLocation=csw-Publication.xsd/ xsd:import namespace=http://www.opengis.net/ows/1.1; schemaLocation=owsExceptionReport.xsd/ /xsd:schema /wsdl:types wsdl:message name=msgTransactionFailedFault wsdl:part name=fault element=ows:ExceptionReport /wsdl:part /wsdl:message wsdl:message name=msgTransaction wsdl:part name=part1 element=csw:Transaction /wsdl:part /wsdl:message wsdl:message name=msgTransactionResponse wsdl:part name=part1 element=csw:TransactionResponse /wsdl:part /wsdl:message wsdl:message name=msgInvalidRequestFault wsdl:part name=fault element=ows:ExceptionReport /wsdl:part /wsdl:message wsdl:portType name=RegistryPublish_portType wsdl:operation name=Transaction wsdl:input message=tns:msgTransaction /wsdl:input wsdl:output message=tns:msgTransactionResponse /wsdl:output wsdl:fault name=InvalidRequestFault message=tns:msgInvalidRequestFault /wsdl:fault wsdl:fault name=TransactionFailedFault message=tns:msgTransactionFailedFault /wsdl:fault /wsdl:operation /wsdl:portType wsdl:binding name=RegistryPublishSOAP11_binding type=tns:RegistryPublish_portType soap:binding style=document transport=http://schemas.xmlsoap.org/soap/http/ wsdl:operation name=Transaction soap:operation soapAction=urn:Transaction style=document/ wsdl:input soap:body use=literal/ /wsdl:input wsdl:output soap:body use=literal/ /wsdl:output wsdl:fault name=InvalidRequestFault soap:fault name=InvalidRequestFault use=literal/ /wsdl:fault wsdl:fault name=TransactionFailedFault soap:fault name=TransactionFailedFault use=literal/ /wsdl:fault /wsdl:operation /wsdl:binding wsdl:service name=RegistryPublish wsdl:port name=RegistryPublishSOAP11port_http binding=tns:RegistryPublishSOAP11_binding soap:address location=http://localhost:8080/RegistryPublishServiceHibernate/services/RegistryPublish/ /wsdl:port /wsdl:service /wsdl:definitions -- View this message in context: http://www.nabble.com/WSA-Action-%3D-null-for-endpoint...-tp14727915p14727915.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Axis 2.x and deployment...
So in this case now i'm going to have to put 19+ files in the application classpath now instead of the 2 i did for Axis 1.x? That seems counter-intuitive and cumbersome Matthias Wermund wrote: Hello, I'm currently doing the same thing: using embedded Axis2 webservices in my application WAR. This quick tutorial is a good point to start from: http://wso2.org/library/90 Regards, Matthias -Ursprüngliche Nachricht- Von: silver17 [mailto:[EMAIL PROTECTED] Gesendet: Montag, 3. Dezember 2007 23:41 An: axis-user@ws.apache.org Betreff: Axis 2.x and deployment... Hi all, I'm wondering if there is any literature on, or if anything can answer for me, if Axis2 supports deployment of services as separate web applications? Meaning I don't want to aar my services and put them in one container. What I want to do is add web service functionality to an existing application, and I don't want to separate off this service from the data model. Can I put my web service within another application using Axis2? If so, how? I can do this using JAX-WS 2.0 quite easily but haven't found anything on how Axis2 does it. -- View this message in context: http://www.nabble.com/Axis-2.x-and-deployment...-tf4939712.html#a14140279 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis-2.x-and-deployment...-tf4939712.html#a14155506 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]