Attachment FileNames in AttachmentMap
Hello Everyone,My Axis 1.4 Client sends out a few attachments along with few filenames in the request. On the server side, i see that the attachment are present in the AttachmentMaps, however i have no way to relate which Attachment is associated to which FileName. Is there a way to associate a FileName t its right attachment. My Complex object which is an OMElement does not contain the href. Can anyone please suggest something or share any similar experience and solution ? Regards, Nirav S
Additional XML prefixes when client receives SOAP fault
Hello, I have a problem with XML prefixes. When the SOAP message leaves the server with a fault the body looks like this: soapenv:Body xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; wsu:Id=Id-25568549 soapenv:Fault soapenv:Code soapenv:Valuesoapenv:Receiver/soapenv:Value /soapenv:Code soapenv:Reason soapenv:Text xml:lang=en-USENFORCED ERROR THROWN CORRECTLY/soapenv:Text /soapenv:Reason soapenv:Detail serviceFault xmlns=http://www.foo.net/test/xsd/sys/common; faultcode0010/faultcode reasonENFORCED ERROR THROWN CORRECTLY/reason node/ detailENFORCED ERROR THROWN CORRECTLY/detail ctxIdAC10014E0123F082FFAD0001/ctxId timestamp2009-09-25T11:23:32.156+02:00/timestamp /serviceFault /soapenv:Detail /soapenv:Fault /soapenv:Body But the client takes this body out of the stream: soapenv:Body xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope; xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; wsu:Id=Id-25568549 soapenv:Fault soapenv:Code soapenv:Valuesoapenv:Receiver/soapenv:Value /soapenv:Code soapenv:Reason soapenv:Text xml:lang=en-USENFORCED ERROR THROWN CORRECTLY/soapenv:Text /soapenv:Reason soapenv:Detail axis2ns1:serviceFault xmlns:axis2ns1=http://www.foo.net/test/xsd/sys/common; axis2ns1:faultcode0010/axis2ns1:faultcode axis2ns1:reasonENFORCED ERROR THROWN CORRECTLY/axis2ns1:reason axis2ns1:node/ axis2ns1:detailENFORCED ERROR THROWN CORRECTLY/axis2ns1:detail axis2ns1:ctxIdAC10014E0123F082FFAD0001/axis2ns1:ctxId axis2ns1:timestamp2009-09-25T11:23:32.156+02:00/axis2ns1:timestamp /axis2ns1:serviceFault /soapenv:Detail /soapenv:Fault /soapenv:Body You can see that there is no prefix in the serviceFault tag on the server side but the client puts the prefix axis2ns1 into the body. For me this is a problem because the body is signed on the server side and the client calculates the hash with this prefix. That leads to signature verification failure. Would be great if you can help me. Greetings Christian
Problem with serialization of class Date
Hello axis users, I am using Axis2-1.5 and I have a method in my service implementation which returns an object with an Date-attribute. The problem I'm facing now is that the time is wrong or gets lost. For example on the server side the date in question is Fri Sep 25 13:14:44 CEST 2009. When I call my webservice and check the returned date in the member variable it is Fri Sep 25 01:00:00 CEST 2009. I am generating the service archive with the plugin for Eclipse and I did not make any manual changes to the services.xml which is generated by the wizard. Is this a bug or do I need to specify some options for the serialization of the Date class? Any hint is highly appreciated. Thanks, Sebastian
Axis client not listning to correct port when sertting the replayTo header
Hi all, I've been playing aroung with the replyTo header that I send to my web service so it can respond to the port I want it to, this works fine when I don't set the replyto option in the service client, but when I set it lets say something like this options.setReplyTo(new EndpointReference( http://localhost:1/;)); I still get this info message in my client INFO: Listening on port 6060 So my question is, how can I make axis open the port on my client that I want cheers, håkon -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company)
Axis SOAP header security with wsp tags in soap header
Dear All, I have to expose/provide the service method in which I have to implement the Soap Headers Security. Below is the Sample SOAP Header which I have to implement in my Service Method. I am using Axis 1.4, Tomcat 5 and Java 1.5. Response XML : S:Header wsp:authentication wsp:useridXXUserName/wsp:userid wsp:passwordXXPassword/wsp:password wsp:payloadVersion2007B/wsp:payloadVersion /wsp:authentication /S:Header Please Provide your valuable suggestions , how I can implement the above above SOAP Header. Regards, Santosh -- View this message in context: http://www.nabble.com/Axis-SOAP-header-security-with-wsp-tags-in-soap-header-tp25613897p25613897.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: Attachment FileNames in AttachmentMap
Can anyone please help ? -Nirav On Thu, Sep 24, 2009 at 11:06 PM, Nirav Shah snirav.s...@gmail.com wrote: Hello Everyone,My Axis 1.4 Client sends out a few attachments along with few filenames in the request. On the server side, i see that the attachment are present in the AttachmentMaps, however i have no way to relate which Attachment is associated to which FileName. Is there a way to associate a FileName t its right attachment. My Complex object which is an OMElement does not contain the href. Can anyone please suggest something or share any similar experience and solution ? Regards, Nirav S
RE: Axis SOAP header security with wsp tags in soap header
What have you tried? -Original Message- From: sh_santosh [mailto:santosh.nc...@gmail.com] Sent: Friday, September 25, 2009 11:14 AM To: axis-user@ws.apache.org Subject: Axis SOAP header security with wsp tags in soap header Dear All, I have to expose/provide the service method in which I have to implement the Soap Headers Security. Below is the Sample SOAP Header which I have to implement in my Service Method. I am using Axis 1.4, Tomcat 5 and Java 1.5. Response XML : S:Header wsp:authentication wsp:useridXXUserName/wsp:userid wsp:passwordXXPassword/wsp:password wsp:payloadVersion2007B/wsp:payloadVersion /wsp:authentication /S:Header Please Provide your valuable suggestions , how I can implement the above above SOAP Header. Regards, Santosh -- View this message in context: http://www.nabble.com/Axis-SOAP-header-security-with-wsp-tags-in-soap-header-tp25613897p25613897.html Sent from the Axis - User mailing list archive at Nabble.com.
aar and hibernate
I have a web service that performs a simple database lookup. Unfortunately, Persistence.createEntityManagerFactory('xyzzy') fails in all cases. My aar looks like: /com (class files in package format eg com/this/that/x.class) /META-INF services.xml /lib numerous jars I don't know where to put the persistence.xml file. I have tried putting it everywhere. I keep getting the following error: javax.persistence.PersistenceException: No Persistence provider for EntityManager named xyzzy at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:56) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34) at com.papajohns.snapshot.webservice.SurveySubmissionWebService.getSurvey(SurveySubmissionWebService.java:63) (etc) Or does that error mean something else?
Re: aar and hibernate
On Fri, Sep 25, 2009 at 5:41 PM, ANTHONY ENNIS tony.en...@insightbb.com wrote: I have a web service that performs a simple database lookup. Unfortunately, Persistence.createEntityManagerFactory('xyzzy') fails in all cases. My aar looks like: /com (class files in package format eg com/this/that/x.class) /META-INF services.xml /lib numerous jars I don't know where to put the persistence.xml file. I have tried putting it everywhere. I keep getting the following error: javax.persistence.PersistenceException: No Persistence provider for EntityManager named xyzzy at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:56) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34) at com.papajohns.snapshot.webservice.SurveySubmissionWebService.getSurvey(SurveySubmissionWebService.java:63) (etc) Or does that error mean something else? The only thing really required in your aar is a services.xml . Put your classes under WEB-INF/classes and you should have no problems. Hibernate uses the TCCL (Thread context classloader) so you can't load hibernate there without some tricks - for example what the spring support docs show for hibernate. - R
Is WRAPPED LITERAL web service not compatible for C# clients?
We are having issue with WRAPPED LITERAL web service for our C# clients. The response object contains nulls. But, If I use RPC ENCODED, they are working fine. I see some discouragement to use the RPC ENCODED. I really appreciate if somebody suggest the right use and style of WSDL for both Java and C# clients. We produce web services using Axis1.4 Thanks, Srini
Re: aar and hibernate
I moved my classes under WEB-INF/classes and the application no longer deploys. I get org.apache.axis2.deployment.DeploymentException: Processing Operations Modules with an error of The following error occurred during schema generation: java.lang.ClassNotFoundException: Class Not found : com.company.snapshot.webservice.MyWebService - Original Message - From: robert lazarski robertlazar...@gmail.com Date: Friday, September 25, 2009 17:07 Subject: Re: aar and hibernate To: axis-user@ws.apache.org On Fri, Sep 25, 2009 at 5:41 PM, ANTHONY ENNIS tony.en...@insightbb.com wrote: I have a web service that performs a simple database lookup. Unfortunately, Persistence.createEntityManagerFactory('xyzzy') fails in all cases. My aar looks like: /com (class files in package format eg com/this/that/x.class) /META-INF services.xml /lib numerous jars I don't know where to put the persistence.xml file. I have tried putting it everywhere. I keep getting the following error: javax.persistence.PersistenceException: No Persistence provider for EntityManager named xyzzy at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:56) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34) at com.papajohns.snapshot.webservice.SurveySubmissionWebService.getSurvey(SurveySubmissionWebService.java:63) (etc) Or does that error mean something else? The only thing really required in your aar is a services.xml . Put your classes under WEB-INF/classes and you should have no problems. Hibernate uses the TCCL (Thread context classloader) so you can't load hibernate there without some tricks - for example what the spring support docs show for hibernate. - R
Re: aar and hibernate
On Fri, Sep 25, 2009 at 6:30 PM, ANTHONY ENNIS tony.en...@insightbb.com wrote: I moved my classes under WEB-INF/classes and the application no longer deploys. I get org.apache.axis2.deployment.DeploymentException: Processing Operations Modules with an error of The following error occurred during schema generation: java.lang.ClassNotFoundException: Class Not found : com.company.snapshot.webservice.MyWebService Are you 100% sure that class com.company.snapshot.webservice.MyWebService is under WEB-INF/classes ? Try logging this in your class to make sure - make it static and reference it if need be so that its loaded and logs: this.getClass().getProtectionDomain().getCodeSource().getLocation()); You could try putting _only_ your MyWebService class in the aar, though that shouldn't be needed. What version of axis2 and servlet container are you using ? - R
Re: aar and hibernate
I'm at home now, so no checking for me. Thank God. Am I sure? As sure as I can be. Previously the aar had com at the root. I moved the entire com tree to WEB-INF/classes/... as per your suggestion. I ASSume WEB-INF should be at the root of the aar... Using the latest and greatest Axis2 and Jetspeed. On Sep 25, 2009, at 6:08 PM, robert lazarski wrote: On Fri, Sep 25, 2009 at 6:30 PM, ANTHONY ENNIS tony.en...@insightbb.com wrote: I moved my classes under WEB-INF/classes and the application no longer deploys. I get org.apache.axis2.deployment.DeploymentException: Processing Operations Modules with an error of The following error occurred during schema generation: java.lang.ClassNotFoundException: Class Not found : com.company.snapshot.webservice.MyWebService Are you 100% sure that class com.company.snapshot.webservice.MyWebService is under WEB-INF/classes ? Try logging this in your class to make sure - make it static and reference it if need be so that its loaded and logs: this.getClass().getProtectionDomain().getCodeSource().getLocation()); You could try putting _only_ your MyWebService class in the aar, though that shouldn't be needed. What version of axis2 and servlet container are you using ? - R
Re: aar and hibernate
On Fri, Sep 25, 2009 at 7:17 PM, Tony Ennis tony.en...@insightbb.com wrote: I'm at home now, so no checking for me. Thank God. Am I sure? As sure as I can be. Previously the aar had com at the root. I moved the entire com tree to WEB-INF/classes/... as per your suggestion. I ASSume WEB-INF should be at the root of the aar... Using the latest and greatest Axis2 and Jetspeed. When you say I ASSume WEB-INF should be at the root of the aar , that doesn't seem right. The aar goes in your WEB-INF/services , and the format of the aar should be just: ./myExample.aar ./META-INF ./META-INF/MANIFEST.MF ./META-INF/services.xml I have no idea about Axis2 compatability with Jetspeed - I'd try tomcat 6 first to see if that's the issue. - R
Re: aar and hibernate
On Sep 25, 2009, at 6:30 PM, robert lazarski wrote: On Fri, Sep 25, 2009 at 7:17 PM, Tony Ennis tony.en...@insightbb.com wrote: I'm at home now, so no checking for me. Thank God. Am I sure? As sure as I can be. Previously the aar had com at the root. I moved the entire com tree to WEB-INF/classes/... as per your suggestion. I ASSume WEB-INF should be at the root of the aar... Using the latest and greatest Axis2 and Jetspeed. When you say I ASSume WEB-INF should be at the root of the aar , that doesn't seem right. The aar goes in your WEB-INF/services , and the format of the aar should be just: ./myExample.aar ./META-INF ./META-INF/MANIFEST.MF ./META-INF/services.xml I have no idea about Axis2 compatability with Jetspeed - I'd try tomcat 6 first to see if that's the issue. - R I'm just talking about the structure of the aar file. If I understand the documentation correctly, the aar file should have a META-INF folder inside, at the root. There should be a services.xml file in the META-INF folder. Also at the root is a lib folder. Finally, I had my classes at the root under 'com.' All that was working fine before I tried getting a database connection. I deploy the aar file to axis2/WEB-INF/services and didn't change any other files. Everything the webapp needs is in the aar file. Jetspeed uses tomcat under the hood I believe.
RE: aar and hibernate
check your ant or maven scripts to find out which container you're deploying to tomcat is a webapp container and axis as a war(WebApplicationArchive) will deploy there with minimal configuration..on the other hand if you have EJBs, persistence or timed services you're going to need Appserver such as Glassfish..in which case you'll need to use Glassfish admin interface to deploy your axis2 war Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: tony.en...@insightbb.com To: axis-user@ws.apache.org Subject: Re: aar and hibernate Date: Fri, 25 Sep 2009 19:12:51 -0400 On Sep 25, 2009, at 6:30 PM, robert lazarski wrote: On Fri, Sep 25, 2009 at 7:17 PM, Tony Ennis tony.en...@insightbb.com wrote: I'm at home now, so no checking for me. Thank God. Am I sure? As sure as I can be. Previously the aar had com at the root. I moved the entire com tree to WEB-INF/classes/... as per your suggestion. I ASSume WEB-INF should be at the root of the aar... Using the latest and greatest Axis2 and Jetspeed. When you say I ASSume WEB-INF should be at the root of the aar , that doesn't seem right. The aar goes in your WEB-INF/services , and the format of the aar should be just: ./myExample.aar ./META-INF ./META-INF/MANIFEST.MF ./META-INF/services.xml I have no idea about Axis2 compatability with Jetspeed - I'd try tomcat 6 first to see if that's the issue. - R I'm just talking about the structure of the aar file. If I understand the documentation correctly, the aar file should have a META-INF folder inside, at the root. There should be a services.xml file in the META-INF folder. Also at the root is a lib folder. Finally, I had my classes at the root under 'com.' All that was working fine before I tried getting a database connection. I deploy the aar file to axis2/WEB-INF/services and didn't change any other files. Everything the webapp needs is in the aar file. Jetspeed uses tomcat under the hood I believe. _ Bing™ brings you maps, menus, and reviews organized in one place. Try it now. http://www.bing.com/search?q=restaurantsform=MLOGENpubl=WLHMTAGcrea=TEXT_MLOGEN_Core_tagline_local_1x1