RE: What is the projected release date for Axis2C?
Still haven't heard back on this. I need to know if it will be in the next month or two or how long. This affects whether I can commit my current project to switch from gSoap to Axis2C. -Dave. -Original Message- From: Dave Meier [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 08, 2006 10:58 AM To: Apache AXIS C User List Subject: What is the projected release date for Axis2C? When is the Axis2C 1.0 release anticipated? I'm assuming the generally available release will be 1.0. Thanks, -Dave. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - 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]
Re: Plans for Axis2 release 1.1 ?
Expect the 1.1 release by next week.. Hope we will not come across any unexpected surprises... Thilina On 11/9/06, Gul Onural [EMAIL PROTECTED] wrote: What is the latest plan for the Axis2 1.1 release ? Can somebody comment on this ? Cheers, Gul -- http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[AXIS2] how to stop autogenerating wsdl for webservices?
In Axis1 document there is someway to stop auto generating wsdl for web services,But I can't find any document in Axis2 about howto secure the webservcie,like stop the list servcie or stop autogenerating wsdl for web services,Can any guru give me some clue about it?Thanks in advance!Holy
[WSDL2Java] False Codegenration for all
Hi, I have followed the AIXS2 version 1.0 userguide to generate code from WSDL file, and I have detected that the code to parsing the incomming message of type all is false. According to the W3C standard, the order of elements within all is not identical. However, the generated code treats only one identical order as correct, all others as false. Considering the data type SOAPStruct in example $AXIS2_HOME/samples/wsdl/Axis2SampleDocLit.wsdl: complexType name=SOAPStruct all element name=varFloat type=xsd:float/ element name=varInt type=xsd:int/ element name=varString type=xsd:string/ /all /complexType According to the generated code, only element with the subelements in the order varFloar - varString - varInt is correct. The abbr. generated code is in the following. P.S.: Could anyone to enhance the layout of the generated codes? Thanks, Lijun Liao Abbr. generated Code: public static SOAPStruct parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{ try { while (!reader.isStartElement() !reader.isEndElement()) reader.next(); reader.next(); while (!reader.isStartElement() !reader.isEndElement()) reader.next(); if (reader.isStartElement() new javax.xml.namespace.QName(http://userguide.axis2.apache.org/xsd,varFloat;).equals(reader.getName())){ ... reader.next(); } // End of if for expected property start element else{ throw new java.lang.RuntimeException(...); } while (!reader.isStartElement() !reader.isEndElement()) reader.next(); if (reader.isStartElement() new javax.xml.namespace.QName(http://userguide.axis2.apache.org/xsd,varString;).equals(reader.getName())){ ... reader.next(); } // End of if for expected property start element else{ throw new java.lang.RuntimeException(...); } while (!reader.isStartElement() !reader.isEndElement()) reader.next(); if (reader.isStartElement() new javax.xml.namespace.QName(http://userguide.axis2.apache.org/xsd,varInt;).equals(reader.getName())){ ... reader.next(); } // End of if for expected property start element else{ // A start element we are not expecting indicates an invalid parameter was passed throw new java.lang.RuntimeException(...); } } catch (javax.xml.stream.XMLStreamException e) { throw new java.lang.Exception(e); } return object; } -- Dipl.-Ing. Lijun Liao Chair for Network and Data Security Ruhr-Universitaet Bochum D- 44780 Bochum Dept. of Electr. Eng. Information Sciences Building IC, Level 4, Room 147 Universitaetsstr. 150 Phone: (+49) (0)234 / 32 - 25199 Fax: (+49) (0)234 / 32 - 14347 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please give link to good tutorials for AXIS2
try [1]. WSO2.net contains lot of articles and links relating to Axis2 and surrounding projects.. Have a look at this too [2].. ~Thilina [1] http://www.wso2.net/projects/axis2/java [2] http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/articles.html On 11/9/06, oslezka [EMAIL PROTECTED] wrote: Please give link to good tutorials for AXIS2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Schema validation Axis 1.3
Hi I am using Axis 1.3, I wanted to know if there is a way to validate request and response SOAP messages against schemas. I've googled for quite a bit, but couldn't come out with a satisfactory solution. So far I've investigated the Castor option, I think it is a kludge at best. The other option that I am looking at is to use a custom handler to perform the validation. I just wanted to know if users have found this a problem and is there a solution. Thanks in advance, Rishi This message is intended for the addressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently.
Re: webservice over https - No trusted certificate found
What providers have you listed in the java.security file ?On 11/10/06, Philippe Vandenhove [EMAIL PROTECTED] wrote:Hello,I have to develop a webservice (Axis) over https. Unfortunatelly, i have a problem during the deployment of the webservice. Here is the command followed by the stack trace:java -Djavax.net.ssl.keyStore=/home /sincrho/server.keystore -Djavax.net.ssl.keyStorePassword=changeit -cp ./lib/axis.jar:./lib/wsdl4j-1.5.1.jar:./lib/jaxrpc.jar:./lib/saaj.jar:./lib/commons-logging-1.0.4.jar:./lib/commons-discovery-0.2.jar:./lib/activation.jar:./lib/mail.jar org.apache.axis.client.AdminClient -l https://sincrho-staging.irisnet.be/sincrho/services/AdminService ./classes/webservices/cees/deploy.wsdd Processing file ./classes/webservices/cees/deploy.wsddException: AxisFaultfaultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate foundfaultActor: faultNode: faultDetail: { http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j (DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA12275) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186) at org.apache.axis.transport.http.HTTPSender.getSocket (HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit (InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke (AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:1792) at org.apache.axis.client.AdminClient.process(AdminClient.java:439) at org.apache.axis.client.AdminClient.process(AdminClient.java:404) at org.apache.axis.client.AdminClient.process(AdminClient.java :410) at org.apache.axis.client.AdminClient.process(AdminClient.java:320) at org.apache.axis.client.AdminClient.main(AdminClient.java:463)Caused by: sun.security.validator.ValidatorException: No trusted certificate found at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:304) at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:107) at sun.security.validator.Validator.validate (Validator.java:202) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(DashoA12275) at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(DashoA12275) ... 22 more {http://xml.apache.org/axis/}hostname:SincrhoSta.irisnet.be I have create my self signed certificate like this : //create certificate and also the .keystore file keytool -genkey -storepass changeit -keyalg DSA -alias tomcat -dname CN= mindprod.com, OU=Java Code, O=Canadian Mind Products, L=Victoria, ST=British Columbia, C=CA, EMAILADDRESS= [EMAIL PROTECTED] DC=mindprod, DC=com -validity 999 keytool -selfcert -storepass changeit -alias tomcat -validity 999 keytool -export -storepass changeit -alias tomcat -rfc -file /home/sincrho/myCertificate.cer //import in cacerts file keytool -import -keystore /usr/j2re1.4.2_09/lib/security/cacerts -storepass changeit -alias tomcat -file /home/sincrho/myCertificate.cer keytool -import -keystore /usr/j2re1.4.2_09/javaws/cacerts -storepass changeit -alias tomcat -file /home/sincrho/myCertificate.cer keytool -import -keystore /usr/j2sdk1.4.2_09/jre/lib/security/cacerts -storepass changeit -alias tomcat -file /home/sincrho/myCertificate.cer keytool -import -keystore /usr/j2sdk1.4.2_09/jre/javaws/cacerts -storepass changeit -alias tomcat -file /home/sincrho/myCertificate.cer At this point,i don't know what i'm doing wrong. Any help would be appreciate.thanks in advance,philippe
RE: webservice over https - No trusted certificate found
Hi, You imported your server certificates to /usr/j2sdk1.4.2_09/jre/lib/security/cacerts and have given some other keystore path while deploying your webservice in -Djavax.net.ssl.keyStore=/home/sincrho/server.keystore. Could this be the problem? I hope you understand that importing your self-signed certificate to java keystore is to make it a trusted one. Regards, Subir S From: Carl Gustaf Hjelt Liebe [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 5:51 PM To: axis-user@ws.apache.org; [EMAIL PROTECTED] Subject: Re: webservice over https - No trusted certificate found What providers have you listed in the java.security file ? On 11/10/06, Philippe Vandenhove [EMAIL PROTECTED] wrote: Hello, I have to develop a webservice (Axis) over https. Unfortunatelly, i have a problem during the deployment of the webservice. Here is the command followed by the stack trace: java -Djavax.net.ssl.keyStore=/home /sincrho/server.keystore -Djavax.net.ssl.keyStorePassword=changeit -cp ./lib/axis.jar:./lib/wsdl4j-1.5.1.jar:./lib/jaxrpc.jar:./lib/saaj.jar:./lib/commons-logging-1.0.4.jar: ./lib/commons-discovery-0.2.jar:./lib/activation.jar:./lib/mail.jar org.apache.axis.client.AdminClient -l https://sincrho-staging.irisnet.be/sincrho/services/AdminService ./classes/webservices/cees/deploy.wsdd Processing file ./classes/webservices/cees/deploy.wsdd Exception: AxisFault faultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found faultActor: faultNode: faultDetail: { http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j (DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA12275) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186) at org.apache.axis.transport.http.HTTPSender.getSocket (HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit (InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke (AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:1792) at org.apache.axis.client.AdminClient.process(AdminClient.java:439) at org.apache.axis.client.AdminClient.process(AdminClient.java:404) at org.apache.axis.client.AdminClient.process(AdminClient.java :410) at org.apache.axis.client.AdminClient.process(AdminClient.java:320) at org.apache.axis.client.AdminClient.main(AdminClient.java:463) Caused by: sun.security.validator.ValidatorException: No trusted certificate found at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:304) at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:107) at sun.security.validator.Validator.validate (Validator.java:202) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(DashoA12275) at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(DashoA12275) ... 22 more {http://xml.apache.org/axis/}hostname:SincrhoSta.irisnet.be I have create my self signed certificate like this : //create certificate and also the .keystore file keytool -genkey -storepass changeit -keyalg DSA -alias tomcat -dname CN= mindprod.com, OU=Java Code, O=Canadian Mind Products, L=Victoria, ST=British Columbia, C=CA, EMAILADDRESS= [EMAIL PROTECTED] DC=mindprod, DC=com -validity 999 keytool -selfcert -storepass changeit -alias tomcat -validity 999 keytool -export -storepass changeit -alias tomcat -rfc -file /home/sincrho/myCertificate.cer //import in cacerts file keytool -import -keystore /usr/j2re1.4.2_09/lib/security/cacerts -storepass changeit -alias tomcat -file /home/sincrho/myCertificate.cer keytool -import -keystore /usr/j2re1.4.2_09/javaws/cacerts -storepass changeit -alias tomcat -file /home/sincrho/myCertificate.cer keytool -import -keystore /usr/j2sdk1.4.2_09/jre/lib/security/cacerts -storepass changeit -alias
[Axis2] NullPointerException WSDL11ToAxisServiceBuilder
Hi, I get a NullPointerException in the WSDL11ToAxisServiceBuilder. This is due to the fact that the documentation element is empty, firstChild is null. =CODE= // copy the documentation element content to the description Element documentationElement = wsdl4jDefinition.getDocumentationElement(); if (documentationElement != null) { Node firstChild = documentationElement.getFirstChild(); String serviceDes; if (firstChild.getNodeType() == Node.TEXT_NODE) { serviceDes = firstChild.getNodeValue(); } else { serviceDes = DOM2Writer.nodeToString(firstChild); } axisService.setServiceDescription(serviceDes); } =CODE= For this wsdl-fragment =WSDL= definitions xmlns:tns=http://www.vanos.be/webservices/iseries/isbeurscentrum; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:import0=vanos:iseries:beurscentra name=isbeurscentrum targetNamespace=http://www.vanos.be/webservices/iseries/isbeurscentrum; xmlns=http://schemas.xmlsoap.org/wsdl/; wsdl:documentation xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; / types [...] =WSDL= A bug, or is an empty documentation element invalid? Thanks, Brecht Invenso is Ready! Are you? Visit us in the application village area! Invenso - The Integration Software specialists. Brecht Yperman Development Team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com VAT BE 0477.834.668 RPR Sint-Niklaas E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to generate WSDL for this service
Hi, I have tried deploying a webservice with axis 2 but i keep getting the error - error descriptionUnable to generate WSDL for this service/description reasonEither user has not dropped the wsdl into META-INF or operations use message receivers other than RPC./reason /error I read all the previous posts and my services.xml does use org.apache.axis2.rpc.receivers.RPCMessageReceiver. I also checked the .java class and each public method is defined in the services.xml. I also tried using both axis2.war (version 1.0) and the nightly build and the error was the same. Also I am getting the same error when trying to deploy using the sample of version 1.0 (e.g. SGCCalculator.aar). I need the wsdl to generate the client stubs. I amusing tocat version 5. Please help
Re: Signature verification fails when used with Encryption
Hi, Looking at the msg you sent ... the signature seems to be referring to the cert using the subject key identifier. In this case you MUST have the service's cert in the client's keystore and your signaturePropertyFile has to point to that. Also since there are two timestamp headers ... your action items will have to be as : Timestamp Signature Encrypt Timestamp to be able to successfully process the message. Thanks, Ruchith On 11/10/06, Sriram Vaidyanathan [EMAIL PROTECTED] wrote: Hello, I am using a Web service-testing tool, which is based on .NET to talk to a Web service in Axis2 The web service implements WS-Security using Rampart. When I set the service side actions to Signature Timestamp or Encrypt Timestamp and have my .NET tool send a message with the corresponding security actions, I get a successful response. No problems there… But when I set the service side actions to Signature Encrypt Timestamp and then have the .NET tool to send a message with the same corresponding actions, I get a Signature verification failed message. rg.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed; nested exception is: org.apache.ws.security.WSSecurityException: The signature verification failed Could it be possible that there is a bug in the .NET based testing tool which when using Encryption along with Signature is messing up the signed content. Also I see that the tool is adding two Timestamp Headers. Could that be an issue? Below is the request message from the .NET based testing tool that fails. Any help on this would be appreciated. Thanks Sriram ?xml version=1.0 encoding=utf-8? soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:tns=http://ws.test.com/test/; soap:Header wsse:Security soap:mustUnderstand=1 xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd; wsu:Timestamp wsu:Id=Timestamp-cbc739c1-2813-4b07-8588-4b10b6193c85 xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; wsu:Created2006-11-10T08:11:53Z/wsu:Created wsu:Expires2006-11-10T08:16:53Z/wsu:Expires /wsu:Timestamp wsse:BinarySecurityToken ValueType=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3; EncodingType=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary; xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; wsu:Id=SecurityToken-f98f02e3-53cb-4e03-9f80-4685fa96ff4fMIIDgTCCAuqgAwIBAgIBAjANBgkqhkiG9w0BAQQFADCBlDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRIwEAYDVQQHEwlGYWlyZmllbGQxEzARBgNVBAoTCkNvcGFydCxJbmMxDDAKBgNVBAsTA01JUzESMBAGA1UEAxMJQ29wYXJ0IElUMS0wKwYJKoZIhvcNAQkBFh53ZWJzZXJ2aWNlc2phdmF0ZWFtQGNvcGFydC5jb20wHhcNMDYwOTI5MTU1MzQ2WhcNMDcwOTI5MTU1MzQ2WjBUMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExEzARBgNVBAoTCkNvcGFydCxJbmMxDDAKBgNVBAsTA01JUzEVMBMGA1UEAxMMQVBTIFByb2R1Y2VyMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDgoCNz31aHmXscbh3NACbtIbXmipQ4rF1s4X1fgMe4eSOlpuqa2L0P9IdfJQ7NzhDNqLpfUMlyDf0WFNplxKLTk4URWC1IaW3eOKIeJr5E8hJM5UlEqjkxstdMC5Mye/asfi5x+dV0oSLwBO5NLmz4kIJmsSo7w60gVusA5lIBeQIDAQABo4IBIDCCARwwCQYDVR0TBAIwADAsBglghkgBhvhCAQ0EHxYdT3BlblNTTCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFOvkxv6oyMF4GOjwtLgfTxFfgxHxMIHBBgNVHSMEgbkwgbaAFG/XrNLKNVaMoEImPQLiQ8T/r0GloYGapIGXMIGUMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExEjAQBgNVBAcTCUZhaXJmaWVsZDETMBEGA1UEChMKQ29wYXJ0LEluYzEMMAoGA1UECxMDTUlTMRIwEAYDVQQDEwlDb3BhcnQgSVQxLTArBgkqhkiG9w0BCQEWHndlYnNlcnZpY2VzamF2YXRlYW1AY29wYXJ0LmNvbYIBADANBgkqhkiG9w0BAQQFAAOBgQCh3nAvrbniJsIVh5YTCdLyjp06ycnKw+tATqP4DYDV9mzikZ4NTROfWNOfeFUxj0Osp/GxVo0l63hcw+enqlYi26ClHTUn5U3209Z4ssa0neVlcMxyX3POY/Xy0a4W+/mqaIN+VK2bJkgukWB6bVgM4YnIkJduYHM4myuejJ0FoQ==/wsse:BinarySecurityToken xenc:EncryptedKey xmlns:xenc=http://www.w3.org/2001/04/xmlenc#; xenc:EncryptionMethod Algorithm=http://www.w3.org/2001/04/xmlenc#rsa-1_5; / KeyInfo xmlns=http://www.w3.org/2000/09/xmldsig#; wsse:SecurityTokenReference wsse:Reference URI=#SecurityToken-f98f02e3-53cb-4e03-9f80-4685fa96ff4f ValueType=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3; / /wsse:SecurityTokenReference /KeyInfo xenc:CipherData xenc:CipherValueX4olpsRrvcvOxlJCDNJjDhPvu5mK25zl18d/bcfmYA9pPxDo1WtyckMU4vf0ba/Gf53UDp2FjzY5gl54d3/jduPQ1gt8W/kEVwnL16zg/ucv1M0gaChxXwd/v3bO3Dqhrs0M2wojmbBTx0yJqvqkvkK+oCx/LB6O7OfZCRDPNuI=/xenc:CipherValue /xenc:CipherData xenc:ReferenceList xenc:DataReference URI=#EncryptedContent-9aa6c893-1f20-4294-a6a2-a871561f4447 / /xenc:ReferenceList /xenc:EncryptedKey wsu:Timestamp wsu:Id=Timestamp-eb4fd688-f815-4b8f-9505-5c6a9a1bb610
Re: webservice over https - No trusted certificate found
1. Use a browser to access the https:// url and check if it presents the correct certificate. 2. Don't confuse your trust store, typically your .../lib/security/cacerts file, with your key store. The trust store contains the certificates of of Certification Authorities the client side of a HTTPS connection 'trusts' and on your client side should contain the self signed certificate of your server. The key store contains the private key(s) and should only reside with the owner of the key, typically the server. Therefore you don't need a key store on the client side (and no trust store on the server side). Of course if the client is expected to authenticate to the server the client needs a keystore with its private key and the server has to have in its trust store the certificate of the CA that signed the clients certificate. Manuel On Friday 10 November 2006 20:35, [EMAIL PROTECTED] wrote: Hi, You imported your server certificates to /usr/j2sdk1.4.2_09/jre/lib/security/cacerts and have given some other keystore path while deploying your webservice in -Djavax.net.ssl.keyStore=/home/sincrho/server.keystore. Could this be the problem? I hope you understand that importing your self-signed certificate to java keystore is to make it a trusted one. Regards, Subir S _ From: Carl Gustaf Hjelt Liebe [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 5:51 PM To: axis-user@ws.apache.org; [EMAIL PROTECTED] Subject: Re: webservice over https - No trusted certificate found What providers have you listed in the java.security file ? On 11/10/06, Philippe Vandenhove [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, I have to develop a webservice (Axis) over https. Unfortunatelly, i have a problem during the deployment of the webservice. Here is the command followed by the stack trace: java -Djavax.net.ssl.keyStore=/home /sincrho/server.keystore -Djavax.net.ssl.keyStorePassword=changeit -cp ./lib/axis.jar:./lib/wsdl4j-1.5.1.jar:./lib/jaxrpc.jar:./lib/saaj.jar :./ lib/commons-logging-1.0.4.jar: ./lib/commons-discovery-0.2.jar:./lib/activation.jar:./lib/mail.jar org.apache.axis.client.AdminClient -l https://sincrho-staging.irisnet.be/sincrho/services/AdminService https://sincrho-staging.irisnet.be/sincrho/services/AdminService ./classes/webservices/cees/deploy.wsdd Processing file ./classes/webservices/cees/deploy.wsdd Exception: AxisFault faultCode: { http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found faultActor: faultNode: faultDetail: { http://xml.apache.org/axis/%7DstackTrace:javax.net.ssl.SSLHandshakeE xce ption http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeExce pti on: sun.security.validator.ValidatorException: No trusted certificate found at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j (DashoA12275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA12275 ) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFac tor y.java:186) at org.apache.axis.transport.http.HTTPSender.getSocket (HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja va: 404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit (InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke (AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:1792) at org.apache.axis.client.AdminClient.process(AdminClient.java:439) at org.apache.axis.client.AdminClient.process(AdminClient.java:404) at org.apache.axis.client.AdminClient.process(AdminClient.java :410) at org.apache.axis.client.AdminClient.process(AdminClient.java:320) at org.apache.axis.client.AdminClient.main(AdminClient.java:463) Caused by: sun.security.validator.ValidatorException: No trusted certificate found
Re: [Axis2] NullPointerException WSDL11ToAxisServiceBuilder
Hi Brecht ; Its bug please report a jira. Thanks Deepal Hi, I get a NullPointerException in the WSDL11ToAxisServiceBuilder. This is due to the fact that the documentation element is empty, firstChild is null. =CODE= // copy the documentation element content to the description Element documentationElement = wsdl4jDefinition.getDocumentationElement(); if (documentationElement != null) { Node firstChild = documentationElement.getFirstChild(); String serviceDes; if (firstChild.getNodeType() == Node.TEXT_NODE) { serviceDes = firstChild.getNodeValue(); } else { serviceDes = DOM2Writer.nodeToString(firstChild); } axisService.setServiceDescription(serviceDes); } =CODE= For this wsdl-fragment =WSDL= definitions xmlns:tns=http://www.vanos.be/webservices/iseries/isbeurscentrum; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:import0=vanos:iseries:beurscentra name=isbeurscentrum targetNamespace=http://www.vanos.be/webservices/iseries/isbeurscentrum; xmlns=http://schemas.xmlsoap.org/wsdl/; wsdl:documentation xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; / types [...] =WSDL= A bug, or is an empty documentation element invalid? Thanks, Brecht Invenso is Ready! Are you? Visit us in the application village area! Invenso - The Integration Software specialists. Brecht Yperman Development Team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com VAT BE 0477.834.668 RPR Sint-Niklaas E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal The highest tower is built one brick at a time - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to generate WSDL for this service
Hi Caroline; Can you please post the services.xml that will help me to find the bug. Thanks Deepal Hi, I have tried deploying a webservice with axis 2 but i keep getting the error *-* http://localhost:8080/axis2/services/CPSGateway?wsdl# error * * description*Unable to generate WSDL for this service*/description * * reason*Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC.*/reason * * /error I read all the previous posts and my services.xml does use org.apache.axis2.rpc.receivers.RPCMessageReceiver. I also checked the .java class and each public method is defined in the services.xml. I also tried using both axis2.war (version 1.0) and the nightly build and the error was the same. Also I am getting the same error when trying to deploy using the sample of version 1.0 (e.g. SGCCalculator.aar). I need the wsdl to generate the client stubs. I amusing tocat version 5. Please help -- Thanks, Deepal The highest tower is built one brick at a time - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to generate WSDL for this service
service parameter name=ServiceClass locked=falsemt.webservice.client.MyService /parameter operation name=mth1 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth2 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth3 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth4 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth5 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth6 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth7 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth8 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth9 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth10 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth11 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation /service
Re: Unable to generate WSDL for this service
Hi Caroline; Actually You can improve your services.xml a bit as shown below; serive name=Foo messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-only; class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver/ messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /messageReceivers parameter name=ServiceClass locked=falsemt.webservice.client.MyService /parameter /service Note : You do not need to specify all the methods that you want to expose, Axis2 deployment will automatically expose all the publics methods. Thanks Deepal service parameter name=ServiceClass locked=falsemt.webservice.client.MyService /parameter operation name=mth1 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth2 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth3 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth4 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth5 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth6 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth7 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth8 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth9 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth10 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation operation name=mth11 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation /service -- Thanks, Deepal The highest tower is built one brick at a time - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2] NullPointerException WSDL11ToAxisServiceBuilder
https://issues.apache.org/jira/browse/AXIS2-1669 Thanks, Brecht -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: vrijdag 10 november 2006 13:58 To: axis-user@ws.apache.org Subject: Re: [Axis2] NullPointerException WSDL11ToAxisServiceBuilder Hi Brecht ; Its bug please report a jira. Thanks Deepal Hi, I get a NullPointerException in the WSDL11ToAxisServiceBuilder. This is due to the fact that the documentation element is empty, firstChild is null. =CODE= // copy the documentation element content to the description Element documentationElement = wsdl4jDefinition.getDocumentationElement(); if (documentationElement != null) { Node firstChild = documentationElement.getFirstChild(); String serviceDes; if (firstChild.getNodeType() == Node.TEXT_NODE) { serviceDes = firstChild.getNodeValue(); } else { serviceDes = DOM2Writer.nodeToString(firstChild); } axisService.setServiceDescription(serviceDes); } =CODE= For this wsdl-fragment =WSDL= definitions xmlns:tns=http://www.vanos.be/webservices/iseries/isbeurscentrum; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:import0=vanos:iseries:beurscentra name=isbeurscentrum targetNamespace=http://www.vanos.be/webservices/iseries/isbeurscentrum; xmlns=http://schemas.xmlsoap.org/wsdl/; wsdl:documentation xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; / types [...] =WSDL= A bug, or is an empty documentation element invalid? Thanks, Brecht Invenso is Ready! Are you? Visit us in the application village area! Invenso - The Integration Software specialists. Brecht Yperman Development Team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com VAT BE 0477.834.668 RPR Sint-Niklaas E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal The highest tower is built one brick at a time - 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]
RE: Schema validation Axis 1.3
Title: RE: Schema validation Axis 1.3 Good luck with this one. I have posted several times about schema validation in axis2 and it looks like you have to do it yourself. I wrote a servlet filter that sits in front of the axis servlet and validates the request against a given xsd. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Fri 11/10/2006 6:47 AM To: axis-user@ws.apache.org Subject: Schema validation Axis 1.3 Hi I am using Axis 1.3, I wanted to know if there is a way to validate request and response SOAP messages against schemas. I've googled for quite a bit, but couldn't come out with a satisfactory solution. So far I've investigated the Castor option, I think it is a kludge at best. The other option that I am looking at is to use a custom handler to perform the validation. I just wanted to know if users have found this a problem and is there a solution. Thanks in advance, Rishi This message is intended for the addressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently.
Re: [WSDL2Java] False Codegenration for all
Please try the 1.1 RC2 or the nightly. thanks, dims On 11/10/06, Lijun Liao [EMAIL PROTECTED] wrote: Hi, I have followed the AIXS2 version 1.0 userguide to generate code from WSDL file, and I have detected that the code to parsing the incomming message of type all is false. According to the W3C standard, the order of elements within all is not identical. However, the generated code treats only one identical order as correct, all others as false. Considering the data type SOAPStruct in example $AXIS2_HOME/samples/wsdl/Axis2SampleDocLit.wsdl: complexType name=SOAPStruct all element name=varFloat type=xsd:float/ element name=varInt type=xsd:int/ element name=varString type=xsd:string/ /all /complexType According to the generated code, only element with the subelements in the order varFloar - varString - varInt is correct. The abbr. generated code is in the following. P.S.: Could anyone to enhance the layout of the generated codes? Thanks, Lijun Liao Abbr. generated Code: public static SOAPStruct parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{ try { while (!reader.isStartElement() !reader.isEndElement()) reader.next(); reader.next(); while (!reader.isStartElement() !reader.isEndElement()) reader.next(); if (reader.isStartElement() new javax.xml.namespace.QName(http://userguide.axis2.apache.org/xsd,varFloat;).equals(reader.getName())){ ... reader.next(); } // End of if for expected property start element else{ throw new java.lang.RuntimeException(...); } while (!reader.isStartElement() !reader.isEndElement()) reader.next(); if (reader.isStartElement() new javax.xml.namespace.QName(http://userguide.axis2.apache.org/xsd,varString;).equals(reader.getName())){ ... reader.next(); } // End of if for expected property start element else{ throw new java.lang.RuntimeException(...); } while (!reader.isStartElement() !reader.isEndElement()) reader.next(); if (reader.isStartElement() new javax.xml.namespace.QName(http://userguide.axis2.apache.org/xsd,varInt;).equals(reader.getName())){ ... reader.next(); } // End of if for expected property start element else{ // A start element we are not expecting indicates an invalid parameter was passed throw new java.lang.RuntimeException(...); } } catch (javax.xml.stream.XMLStreamException e) { throw new java.lang.Exception(e); } return object; } -- Dipl.-Ing. Lijun Liao Chair for Network and Data Security Ruhr-Universitaet Bochum D- 44780 Bochum Dept. of Electr. Eng. Information Sciences Building IC, Level 4, Room 147 Universitaetsstr. 150 Phone: (+49) (0)234 / 32 - 25199 Fax: (+49) (0)234 / 32 - 14347 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
axis2 - rampart1.1 problems
Hi, I'm using axis2 1.0 with 1.1 rc2 release libs on a tomcat 5.x servlet container. When I run the tomcat with j2sdk1.4.2 everything is working properly and i can do everything the axis2.war file provides. When I want to load the rampart 1.1 snapshot I always get an error message: org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:73) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *root cause* java.lang.NullPointerException org.apache.jsp.axis2_002dweb.include.httpbase_jsp.jspInit(httpbase_jsp.java:22) org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:75) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:73) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) If i use jre1.5.0 I get the following error message when I type http://localhost:8080/axis2 (including rampart 1.1): org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: D:\Jakarta\Tomcat 5.0\work\Catalina\localhost\axis2\org\apache\jsp\axis2_002dweb\index_jsp.java:7: cannot access java.lang.Object Generated servlet error: bad class file: C:\Programme\Java\jre1.5.0_06\lib\rt.jar(java/lang/Object.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Has anyone had this error already? what can I do? kind regards Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Schema validation Axis 1.3
Hi John, how complex is your filter code? It would be a great entry in the Axis wiki ;-) Regards, Rodrigo Ruiz John Pfeifer wrote: Good luck with this one. I have posted several times about schema validation in axis2 and it looks like you have to do it yourself. I wrote a servlet filter that sits in front of the axis servlet and validates the request against a given xsd. -- --- GRIDSYSTEMS S.A. Rodrigo Ruiz Parc Bit - Son EspanyolR D 07120 Palma de Mallorcarruiz at gridsystems dot com Baleares - España Tel: +34 971 435 085 http://www.gridsystems.com/Fax: +34 971 435 082 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 - rampart1.1 problems
Hi Philipp; It wont work there were API changes in Handler interface , so please use 1.1 rc2 with rampart nightly builds. Thanks Deepal Hi, I'm using axis2 1.0 with 1.1 rc2 release libs on a tomcat 5.x servlet container. When I run the tomcat with j2sdk1.4.2 everything is working properly and i can do everything the axis2.war file provides. When I want to load the rampart 1.1 snapshot I always get an error message: org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:73) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *root cause* java.lang.NullPointerException org.apache.jsp.axis2_002dweb.include.httpbase_jsp.jspInit(httpbase_jsp.java:22) org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:75) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:73) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) If i use jre1.5.0 I get the following error message when I type http://localhost:8080/axis2 (including rampart 1.1): org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: D:\Jakarta\Tomcat 5.0\work\Catalina\localhost\axis2\org\apache\jsp\axis2_002dweb\index_jsp.java:7: cannot access java.lang.Object Generated servlet error: bad class file: C:\Programme\Java\jre1.5.0_06\lib\rt.jar(java/lang/Object.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase ^ 1 error org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Has anyone had this error already? what can I do? kind regards Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal The highest tower is built one brick at a time - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Schema validation Axis 1.3
Title: RE: Schema validation Axis 1.3 Here is the filter... The trick with this is that you have to wrap the HttpServletRequest so that you can send the request on to filters down stream once you have read the input stream. You can do this using HttpServletRequestWrapper. I will be happy to post this somewhere, but I am not sure where to post it. public class XMLValidationFilter extends GenericFilterBean { /** * The object that is used for logging. */ private static Log log = LogFactory.getLog(XMLValidationFilter.class); /** * schemaMap */ private Map schemaMap = null; /** (non-Javadoc) * @see javax.servlet.Filter#destroy() */ public void destroy() { super.destroy(); } /** * Initialize schemaMap from Spring Context */ private void initSchemaMap() { if (schemaMap == null) { schemaMap = (Map) WebApplicationContextUtils.getWebApplicationContext(getServletContext()).getBean(schemaToURIMap); } } /** (non-Javadoc) * @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest, * javax.servlet.ServletResponse, javax.servlet.FilterChain) */ public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { final String methodName = doFilter(); if (log.isTraceEnabled()) { log.trace(methodName + : Entry); } HttpServletRequest httpRequest = ((HttpServletRequest) request); if (log.isDebugEnabled()) { log.debug(XMLValidationFilter: doFilter); log.debug(Schema Map Entries + schemaMap); } // set the schemaMap from the spring context, the // context is loaded after the filter is initialized but // before the first request can be handled initSchemaMap(); if (schemaMap.get(httpRequest.getRequestURI()) == null) { if (log.isDebugEnabled()) { log.debug(No schema found for RequestURI + httpRequest.getRequestURI()); } // continue with rest of the filter chain as no further processing is required chain.doFilter(request, response); return; } else { if (log.isDebugEnabled()) { log.debug(Schema found for RequestURI + httpRequest.getRequestURI()); } } XMLValidationRequestWrapper requestWrapper = new XMLValidationRequestWrapper((HttpServletRequest) request); String queryString = httpRequest.getQueryString(); if (log.isDebugEnabled()) { log.debug(queryString = + queryString); } boolean isValid = true; if (!StringUtils.equalsIgnoreCase(queryString, wsdl)) { isValid = validateIncomingXML(httpRequest, requestWrapper); } else { if (log.isInfoEnabled()) { log.info(Skipping XML Schema validation.); } } if (isValid) { if (log.isDebugEnabled()) { log.debug(Continue processing filter chain); } chain.doFilter(requestWrapper, response); } else { log.error(Schema validation failed); generateSOAPFault(response.getOutputStream()); } if (log.isTraceEnabled()) { log.trace(methodName + : Exit); } } /** * validateIncomingXML * @param request * @param httpRequest * @param buffer * @param requestWrapper * @return */ private boolean validateIncomingXML(HttpServletRequest httpRequest, XMLValidationRequestWrapper requestWrapper) { boolean isValid = false; StringBuffer buffer = new StringBuffer(); InputStream xmlIn; String soapRequest; String xmlBody; try { xmlIn = httpRequest.getInputStream(); int x = 0; while ((xmlIn != null) ((x = xmlIn.read()) = 0)) { buffer.append((char) x); } soapRequest = buffer.toString(); if (log.isDebugEnabled()) { log.debug(Original SOAP Request = + soapRequest); } xmlBody = SOAPUtils.getSOAPBody(buffer.toString()); if (log.isDebugEnabled()) { log.debug(XML to be validated = + xmlBody); } XMLSchemaValidator validator = new XMLSchemaValidator(); URL url = "" schemaMap.get(httpRequest.getRequestURI())); if (log.isDebugEnabled()) { log.debug(XSD Url = "" + url); } isValid = validator.validateDocument(xmlBody, url); if (log.isDebugEnabled()) { log.debug(Schema validation isValid = + isValid); } requestWrapper.setBodyText(soapRequest); // Don't parse the request again, set it as a request attribute to be // used by ServiceRequestProxyServlet down stream requestWrapper.setAttribute(ServiceRequestProxyServlet.SOAP_REQUEST_ATTRIBUTE, soapRequest); } catch (Throwable t) { log.error(Error validating xml, t); } return isValid; } private void generateSOAPFault(OutputStream out) { String soapFault = SOAPUtils.generateSOAPFault( Server, Invalid XML, Test Actor, . Details ); try { if (log.isDebugEnabled()) { log.debug(SOAP Fault = + soapFault); } out.write(soapFault.getBytes()); out.flush(); } catch (Throwable t) { log.error(Error Generating SOAP Fault, t); } finally { try { out.close(); } catch (Throwable t) {} } } Here is the schema validator class === public class XMLSchemaValidator { /** * logger */ private static Logger logger = Logger.getLogger(XMLSchemaValidator.class.getName()); /** * JAXP_SCHEMA_LANGUAGE */ public static
Re: Schema validation Axis 1.3
Our Wiki: http://wiki.apache.org/ws/FrontPage/Axis -- dims On 11/10/06, John Pfeifer [EMAIL PROTECTED] wrote: Here is the filter... The trick with this is that you have to wrap the HttpServletRequest so that you can send the request on to filters down stream once you have read the input stream. You can do this using HttpServletRequestWrapper. I will be happy to post this somewhere, but I am not sure where to post it. public class XMLValidationFilter extends GenericFilterBean { /** * The object that is used for logging. */ private static Log log = LogFactory.getLog(XMLValidationFilter.class); /** * schemaMap */ private Map schemaMap = null; /** (non-Javadoc) * @see javax.servlet.Filter#destroy() */ public void destroy() { super.destroy(); } /** * Initialize schemaMap from Spring Context */ private void initSchemaMap() { if (schemaMap == null) { schemaMap = (Map) WebApplicationContextUtils.getWebApplicationContext(getServletContext()).getBean(schemaToURIMap); } } /** (non-Javadoc) * @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest, * javax.servlet.ServletResponse, javax.servlet.FilterChain) */ public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { final String methodName = doFilter(); if (log.isTraceEnabled()) { log.trace(methodName + : Entry); } HttpServletRequest httpRequest = ((HttpServletRequest) request); if (log.isDebugEnabled()) { log.debug(XMLValidationFilter: doFilter); log.debug(Schema Map Entries + schemaMap); } // set the schemaMap from the spring context, the // context is loaded after the filter is initialized but // before the first request can be handled initSchemaMap(); if (schemaMap.get(httpRequest.getRequestURI()) == null) { if (log.isDebugEnabled()) { log.debug(No schema found for RequestURI + httpRequest.getRequestURI()); } // continue with rest of the filter chain as no further processing is required chain.doFilter(request, response); return; } else { if (log.isDebugEnabled()) { log.debug(Schema found for RequestURI + httpRequest.getRequestURI()); } } XMLValidationRequestWrapper requestWrapper = new XMLValidationRequestWrapper((HttpServletRequest) request); String queryString = httpRequest.getQueryString(); if (log.isDebugEnabled()) { log.debug(queryString = + queryString); } boolean isValid = true; if (!StringUtils.equalsIgnoreCase(queryString, wsdl)) { isValid = validateIncomingXML(httpRequest, requestWrapper); } else { if (log.isInfoEnabled()) { log.info(Skipping XML Schema validation.); } } if (isValid) { if (log.isDebugEnabled()) { log.debug(Continue processing filter chain); } chain.doFilter(requestWrapper, response); } else { log.error(Schema validation failed); generateSOAPFault(response.getOutputStream()); } if (log.isTraceEnabled()) { log.trace(methodName + : Exit); } } /** * validateIncomingXML * @param request * @param httpRequest * @param buffer * @param requestWrapper * @return */ private boolean validateIncomingXML(HttpServletRequest httpRequest, XMLValidationRequestWrapper requestWrapper) { boolean isValid = false; StringBuffer buffer = new StringBuffer(); InputStream xmlIn; String soapRequest; String xmlBody; try { xmlIn = httpRequest.getInputStream(); int x = 0; while ((xmlIn != null) ((x = xmlIn.read()) = 0)) { buffer.append((char) x); } soapRequest = buffer.toString(); if (log.isDebugEnabled()) { log.debug(Original SOAP Request = + soapRequest); } xmlBody = SOAPUtils.getSOAPBody(buffer.toString()); if (log.isDebugEnabled()) { log.debug(XML to be validated = + xmlBody); } XMLSchemaValidator validator = new XMLSchemaValidator(); URL url = this.getClass().getResource((String) schemaMap.get(httpRequest.getRequestURI())); if (log.isDebugEnabled()) { log.debug(XSD Url = + url); } isValid =
RE: Java2WSDL can't expand other interfaces referenced from an interface?
I'm using the following Java2WSDLoptions: java org.apache.axis.wsdl.Java2WSDL -o MgmtAPI.wsdl -w Interface -n "http://www.sonicsw.com/bpel/runtime/mgmtapi" -p"com.sonicsw.bpel.service.mgmtapi.runtime" "http://www.sonicsw.com/bpel/runtime/mgmtapi" -y DOCUMENT com.sonicsw.bpel.service.mgmtapi.runtime.IBPELServiceOperations -Sonali - From [EMAIL PROTECTED] Subject RE: Java2WSDL can't expand other interfaces referenced from an interface? Date Fri, 10 Nov 2006 05:03:20 GMT Can you post your java2wsdl task and let us know what options you are using?
RE: Extending class to write new listener throws NoClassDefFoundError
This is what I see: Nov 10, 2006 11:15:39 AM org.apache.axis2.deployment.AxisConfigBuilder processTransportReceivers INFO: Class Not found : org.apache.axis2.transport.tcp.TIAF2AXIS2Listener Nov 10, 2006 11:15:39 AM org.apache.axis2.transport.tcp.AXIS2TIAFBootstrap main SEVERE: Error bootstraping org.apache.axis2.deployment.DeploymentException: Transport Receiver can not be null for the transport TIAF; nested exception is: org.apache.axis2.AxisFault: Transport Receiver can not be null for the transport TIAF at org.apache.axis2.deployment.AxisConfigBuilder.processTransportReceivers( AxisConfigBuilder.java:355) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigB uilder.java:93) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(D eploymentEngine.java:690) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration( FileSystemConfigurator.java:109) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration Context(ConfigurationContextFactory.java:61) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration ContextFromFileSystem(ConfigurationContextFactory.java:180) at org.apache.axis2.transport.tcp.AXIS2TIAFBootstrap.main(AXIS2TIAFBootstra p.java:34) Caused by: org.apache.axis2.AxisFault: Transport Receiver can not be null for the transport TIAF at org.apache.axis2.engine.AxisConfiguration.addTransportIn(AxisConfigurati on.java:319) at org.apache.axis2.deployment.AxisConfigBuilder.processTransportReceivers( AxisConfigBuilder.java:353) ... 6 more Stepping thru debugger reveals this: 1. exception comes from AxisConfigBuilder 2. this line does not throw error receiverClass = Loader.loadClass(clasName); 3. error comes from this line (TransportListener) receiverClass.newInstance(); = the point when it breaks class stack looks like this AxisCOnfigBuilder.processTransportReceivers:337-ClassT.newInstance:30 3-ClassT.newInstance0:321-ClassT.getCOnstructor0:2640-ClassT.pr ivateGetDeclaredCOnstructors:2328-ClassT.getDeclaredCOnstructors0-La uncher$AppClassLoader.loadClassINternal:319-Launcher$AppClassLoader.loa dClass:251-Launcher$AppClassLoader.loadClass:261 -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 8:51 PM To: axis-user@ws.apache.org Subject: Re: Extending class to write new listener throws NoClassDefFoundError Please throw the debug on in the log4j.properties and commons-logging.properties and post the stack trace. thanks, dims On 11/9/06, Yadav, Yogendra (IT) [EMAIL PROTECTED] wrote: Hi, I am writing a new transport listener. The listener extends my framework class and implements TransportListener interface like this... public class TIAF2AXIS2Listener extends TIAFDefaultDriver implements TransportListener Then I declared it in axis2.xml file like this... transportReceiver name=TIAF class=org.apache.axis2.transport.tcp.TIAF2AXIS2Listener parameter name=port locked=false6062/parameter !--If you want to give your own host address for EPR generation-- !--uncommet following paramter , and set as you required.-- !--parameter name=hostname locked=falsetcp://myApp.com/ws/parameter-- /transportReceiver When I start SimpleAxis2Server it fails to start the transports and throws NoClassDefFoundError for class org.apache.axis2.transport.tcp.TIAF2AXIS2Listener. Any ideas on how to resolve this ? -yogen NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]unsubscribe
i've tried many time to unsubscrive, but nothing.. how can i do?
WSDL2Java SOAPHeader mapping problems
Hey All I'm trying to set implicit SOAP headers within my wsdl file by declaring one schema element and a message node for my header section. basically, Im trying to add a username and password section to those operations within my binding that require these headers. I keep getting the following error, however: Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name bamAuthHeaders with namespace http://services.bamnetworks.com/identity/types/1.0 [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name bamAuthHeaders with namespace http://services.bamnetworks.com/identity/types/1.0 [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:863) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:206) [java] ... 2 more [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name bamAuthHeaders with namespace http://services.bamnetworks.com/identity/types/1.0 [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:73) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getParameterElementList(AxisServiceBasedMultiLanguageEmitter.java:2214) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:1838) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:1598) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1520) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:1483) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:1412) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:824) Has anyone else experienced this, or is my wsdl just hosed? any help would be appreciated. my wsdl and jibx mapping files are attached. [java] ... 3 more Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com?xml version=1.0 encoding=UTF-8? binding namespace uri=http://services.bamnetworks.com/identity/types/1.0; default=elements / mapping class=com.bamnetworks.registration.AccountContext name=bamAuthHeaders value sytle=attribute name=accountName field=accountPassword/ /mapping mapping class=com.bamnetworks.registration.ext.identitypoint.definition.EmailPasswordIdentityPoint name=emailPasswordIdentifyRequest structure field=email usage=required value style=element name=emailAddress field=address usage=optional/ /structure structure field=password usage=required value style=element name=password field=password usage=optional/ /structure /mapping mapping class=com.bamnetworks.registration.identitypoint.VerifiedIdentityPoint name=emailPasswordIdentifyResponse value style=element name=id field=id usage=optional/ /mapping /binding registration-extends-bam.wsdl Description: 1427619262-registration-extends-bam.wsdl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2] Dynamic Invocation based on WSDL support in Axis2
Hi I am looking for information on possible support in Axis2 for subless, dynamic invocation of Web services based on the WSDL exposed by a service. This would allow a client to invoke a service and perform bindings based on an examination of a WSDL provided by the service. We implemented something similar to this in Axis1 using the Javax.wsdl libraries. Does Axis2 have an equivalent to the Apache WSIF (Web Services Invocation Framework)? Any suggestions would be appreciated. Thanks, Brian Bacsu
ClassNotFoundException Error in loading message receiver
Hi, I have deployed axis2.war, with my service .aar in the services directory, to my development server (JBoss 4.03.SP1). On listing the available services, it says that my service is faulty. Clicking its name shows the following: Error: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules ClassNotFoundException Error in loading message receiver com.geai.b2b.service.B2BMessageServiceServiceMessageReceiverInOut; . This axis2.war file works on my local machine (same version of JBoss). Can anyone help with this issue please? Thanks, Andrew Broderick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Dynamic Invocation based on WSDL support in Axis2
Asfar a I see only as jms message objects implemented via Axis over jms http://ws.apache.org/wsif/providers/wsdl_extensions/jms_extension.html M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have receivedthis communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: Brian Bacsu To: axis-user@ws.apache.org Sent: Friday, November 10, 2006 3:13 PM Subject: RE: [Axis2] Dynamic Invocation based on WSDL support in Axis2 Hi I am looking for information on possible support in Axis2 for subless, dynamic invocation of Web services based on the WSDL exposed by a service. This would allow a client to invoke a service and perform bindings based on an examination of a WSDL provided by the service. We implemented something similar to this in Axis1 using the Javax.wsdl libraries. Does Axis2 have an equivalent to the Apache WSIF (Web Services Invocation Framework)? Any suggestions would be appreciated. Thanks,Brian Bacsu
Standalone axis
Title: Standalone axis Hi, I just want to setup webservice with JMS as transport and I do not want to install Tomcat or other application server. Can somebody please show me how to do this? Also, can somebody tell me if there is any documentation of 'savan'. kamal The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any reproduction, dissemination or distribution of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Tellabs
RE: Standalone axis
Title: Standalone axis I have an example of a very simple standalone JMSServer class here: http://www.mail-archive.com/axis-user@ws.apache.org/msg20494.html -Original Message- From: Kang, Kamaljeet K. [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 2:28 PM To: axis-user@ws.apache.org Subject: Standalone axis Hi, I just want to setup webservice with JMS as transport and I do not want to install Tomcat or other application server. Can somebody please show me how to do this? Also, can somebody tell me if there is any documentation of 'savan'. kamal The information contained in this message may be privilegedand confidential and protected from disclosure. If the readerof this message is not the intended recipient, or an employeeor agent responsible for delivering this message to theintended recipient, you are hereby notified that any reproduction,dissemination or distribution of this communication is strictlyprohibited. If you have received this communication in error,please notify us immediately by replying to the message anddeleting it from your computer. Thank you. Tellabs
Axis Deserialization
I have been having an issue with deserialization of nested arrays from my SOAP messages. I am using Axis 1.4 final. The messages are in document/literal/wrapped style. These messages are generated by the JAX-RPC engine, and the RPC objects were generated by the WSDL2Java tool. The message is created correctly by the web service. The problem occurs when the client attempts to deserialize an array of arrays. Originally I see a NullPointerException, which occurs in the exception handler for another exception which seems to be the real issue. Is there some way around this issue without changing Axis versions? If not, is there at least some way to fix this without moving completely to Axis2? Thank you for your help. Below is the nested exception where I believe the true issue resides. - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. - What happened here: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.axis.utils.BeanPropertyDescriptor.set(BeanPropertyDescriptor.java:178) at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:77) at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249) at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1088) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at gov.sandia.nw.mws.MilestonesWebServicePortSoapBindingStub.fullDownloadMilestones(MilestonesWebServicePortSoapBindingStub.java:564) at gov.sandia.nw.mws.MilestonesClient.main(MilestonesClient.java:70) - Object: [EMAIL PROTECTED] - Value: [EMAIL PROTECTED] - Index: 0 - Another exception here: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.axis.utils.BeanPropertyDescriptor.set(BeanPropertyDescriptor.java:178) at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:77) at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249) at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1088) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at gov.sandia.nw.mws.MilestonesWebServicePortSoapBindingStub.fullDownloadMilestones(MilestonesWebServicePortSoapBindingStub.java:564) at gov.sandia.nw.mws.MilestonesClient.main(MilestonesClient.java:70) - ValueType: gov.sandia.nw.mws.schemas.ApplicationContactsDef - Field: person[0] - Index: 0 - BeanPropertyDescriptor: gov.sandia.nw.mws.schemas.MrtPersonsDef - Could not convert gov.sandia.nw.mws.schemas.ApplicationContactsDef to bean field 'person[0]', type gov.sandia.nw.mws.schemas.MrtPersonsDef - Is there a problem: java.lang.IllegalArgumentException: argument type mismatch - Exception: java.lang.IllegalArgumentException: argument type mismatch at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:171) at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249) at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1088) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171) at
Re: ClassNotFoundException Error in loading message receiver
Please check whether you are trying to deploy a service compiled in jdk 1.5 in to a axis2 server running on jdk 1.4.. FYI: http://issues.apache.org/jira/browse/AXIS2-1670 reports the misleading nature of a similar exception.. ~Thilina On 11/11/06, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, I have deployed axis2.war, with my service .aar in the services directory, to my development server (JBoss 4.03.SP1). On listing the available services, it says that my service is faulty. Clicking its name shows the following: Error: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules ClassNotFoundException Error in loading message receiver com.geai.b2b.service.B2BMessageServiceServiceMessageReceiverInOut; . This axis2.war file works on my local machine (same version of JBoss). Can anyone help with this issue please? Thanks, Andrew Broderick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOAPHeader, SOAPBody, wsdl2java, and compiled code question
Im trying to get an example working where I define message structures within my schema element in wsdl for both header and body messages. Im using JIBX as a data binding tool between my domain types and the message being passed as request/response data structures. My question is the following: by declaring my binding type as follows: wsdl:operation name=authenticate soap:operation soapAction=mynamespace/myaction / wsdl:input soap:header part=request_headermessage=tns:authHeaders use=literal/ soap:body use=literal / /wsdl:input wsdl:output soap:body use=literal / /wsdl:output /wsdl:operation It seems like since Im referencing another element on my schema to define what is in my SOAPHeader block, that jibx needs to find a mapping in my binding file to match. The thing thats confusing is that this element theoretically shouldnt necessarily get to my skeleton, and more likely handled within a Handler that I define in, say, an authentication phase within the axis2 stack. Can someone give me any advice as to how they did it? Do I just leave my header definition out of my schema and messages and compile my skeleton/stub code with what only SOAPBody elements? I included my wsdl and binding in an earlier post just in case it helps explain it any better. On a side note, if I dont actually choose JIBX as my binding mechanism and leave it to default to ADB, the wsdl2java compiles fine but gives me methods where both my header and body are passed to my skeleton. Sean Im ok with the fact Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAPHeader, SOAPBody, wsdl2java, and compiled code question
Hi Sean, I haven't tested the JiBX handling for header parts, so there may be some problems in this area. What I'd expect to happen is that the header part element will be passed to JiBX for unmarshalling, and the unmarshalled object will then be passed to your service method. If you want to send what you're working with directly to me I'll take a look. AFAIK there's no way to say in WSDL that you expect a header element to be present for an operation, but the header element doesn't actually serve as input to the operation. That seems to be what you're saying - that you want this header element to be processed by a handler and never seen by your service code. Maybe someone else can comment on this? - Dennis sean curtis wrote: Im trying to get an example working where I define message structures within my schema element in wsdl for both header and body messages. Im using JIBX as a data binding tool between my domain types and the message being passed as request/response data structures. My question is the following: by declaring my binding type as follows: wsdl:operation name=authenticate soap:operation soapAction=mynamespace/myaction / wsdl:input soap:header part=request_headermessage=tns:authHeaders use=literal/ soap:body use=literal / /wsdl:input wsdl:output soap:body use=literal / /wsdl:output /wsdl:operation It seems like since Im referencing another element on my schema to define what is in my SOAPHeader block, that jibx needs to find a mapping in my binding file to match. The thing thats confusing is that this element theoretically shouldnt necessarily get to my skeleton, and more likely handled within a Handler that I define in, say, an authentication phase within the axis2 stack. Can someone give me any advice as to how they did it? Do I just leave my header definition out of my schema and messages and compile my skeleton/stub code with what only SOAPBody elements? I included my wsdl and binding in an earlier post just in case it helps explain it any better. On a side note, if I dont actually choose JIBX as my binding mechanism and leave it to default to ADB, the wsdl2java compiles fine but gives me methods where both my header and body are passed to my skeleton. Sean Im ok with the fact Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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]
Axis2 - NullPointerException
Hi,I am using Axis2 latest snapshot deployed on Tomcat server. I have a very simple service method that takes a string input and returns a polymorphic array output. I have two concrete implementations for the abstract class 'AbstractItem'. Based on the input 'itemType', an array of one of the implementing objects will be returned at the runtime. Here is the code snippet. public AbstractItem[] createItems(String itemType){ AbstractItem[] items = new AbstractItem[1]; if(itemType.equals(electronic)) { ElectronicItem item = new ElectronicItem(); item.setElectronicItemName(Television); item.setItemID(1000); items[0] = item; } else if (itemType.equals(computer)) { ComputerItem item = new ComputerItem(); item.setComputerModel(Dell laptop); item.setItemID(2000); items[0] = item; } return items;}When I pass in input value electronic for the itemType from the soap client (using soap UI), I received NullPointerException at the console and the soap client received a fault. I am using RPC message receiver. It seems WSDL was generated correctly but the service invocation fails. Exception stack trace:2006-11-11 14:36:07,856 ERROR org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver - Exception occurred while trying to invoke service method createItemsorg.apache.axiom.om.OMException : java.lang.NullPointerException at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199) at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:316) at org.apache.axiom.om.impl.llom.OMElementImpl.build (OMElementImpl.java:624) at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:591) at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:117) at org.apache.axiom.om.impl.llom.OMElementImpl.addChild (OMElementImpl.java:240) at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:193) at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:169) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic (RPCMessageReceiver.java:136) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:496) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:319) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:247) at javax.servlet.http.HttpServlet.service (HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source)Caused by: java.lang.NullPointerException at org.apache.axis2.databinding.utils.BeanUtil.getPullParser (BeanUtil.java:78) at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:948) at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java :802) at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:116)This is a simple use case for any web service implementation. I am sure Axis2 takes care of this case, but I am missing something here. Any helps is much appreciated. Thanks. Ramesh