Re: MTOM Problem with Axis2
Okay, I found a bug: https://issues.apache.org/jira/browse/RAMPART-118 Is this only related to verison 1.4? I guess yes, while I have no xop include tag :( Regards Jochen Am Do 26.06.2008 09:23 schrieb Jochen Zink <[EMAIL PROTECTED]>: > Hello, > > I try to send an attachment with MTOM from a Client to a Server. I > traced the Message with tcpmon and see, that the message contains > base64 > Date directly in the body and not as a xop:include link to an > attachment. This happends with small attachments (34kb) and Big ons > (22mb) both. > > > On Client Site, I have enabled MTOM with > > > > stub._getServiceClient().getOptions().setProperty(Constants.Configuration.ENABLE_MTOM, > Constants.VALUE_TRUE); > > On server site, I set the enableMTOM Property to true. > > The relevant Part of the WSDL: > > > > ... > nillable="true" type="xmime:base64Binary" /> > > > > > > > The Soap Message looks like, that MTOM is enabled because of > "Content-Type: application/xop+xml;" in HTTP Header. But as you can > see, > there is no xop:include in the soap-body: > > POST /avparchiveservice/services/AvpArchivService HTTP/1.1 > Content-Type: multipart/related; > boundary=MIMEBoundaryurn_uuid_0655E8454C89FC8F621214463338880; > type="application/xop+xml"; > start="<0.urn:uuid:[EMAIL PROTECTED]>"; > start-info="text/xml" > SOAPAction: "urn:addMandantendokument" > User-Agent: Axis2 > Host: localhost:8081 > Transfer-Encoding: chunked > > 20e5 > --MIMEBoundaryurn_uuid_0655E8454C89FC8F621214463338880 > Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" > Content-Transfer-Encoding: binary > Content-ID: <0.urn:uuid:[EMAIL PROTECTED]> > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> > http://www.w3.org/2005/08/addressing";> > > > xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; > soapenv:mustUnderstand="1"> > > > xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; > wsu:Id="Timestamp-7226213"> > 2008-06-26T06:55:38.687Z > 2008-06-26T07:00:38.687Z > > > > xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; > wsu:Id="UsernameToken-33402317"> > test > > > Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest";>OC1+di1N3aFqUH6baAvd3maNh5w= > 90q/U9DPl02opPiANdp1Nw== > 2008-06-26T06:55:38.687Z > > > > > > http://localhost:8081/avparchiveservice/services/AvpArchivService > > urn:uuid:0655E8454C89FC8F621214463338238 > urn:addMandantendokument > > > http://avp.archivservice.awd.de";> > 1 > Mandantendokument > testdokument.pdf > MANDANTEN_DOKUMENTE > http://www.w3.org/2005/05/xmlmime"; > ns2:contentType="application/pdf"> > JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovTWV > > > > /R+yYtdo7I4j1vsZ04CFZGHCkxsHGwcEaSrUAjJ5IcI/n1qa+K7C72OWc0uq6D7IPONKvZZLFYd1701+WvF8u9//7m749fLPfuf+qWTz77dLn464VbavSH2pbU0oFKXi57+cXji6+W51LDrS/37/yCt35J+ZAbtRZoKZmrutBarMvV9cW9Tx+45dMHXGd58OkX3NjTxR3C8uMSl/vLxb3P+e23L6WP64vk3YFC5udnFw8uvtRvr17i25dXz+Xb9Y/gBOe3WLXRokft0SzhQDculO7gUuBBTQ4H4jxauLrgY/fYqRTy7jOecW29AqqGIkVz6Q3DFPoJAFUWtlA4 > /NKymIPzz4JESKnnpBBpxy2t7lAnwcJsUxQoI09 > 2000 > ... > > > > > > 3a--MIMEBoundaryurn_uuid_0655E8454C89FC8F621214463338880--0 > > Has anyone an Idea? > > I'm using axis2 1.4 with addressing 1.4 and rampart 1.4 (Only > UsernameToken and Timestamp), > > Thanks a lot! > Regards > Jochen > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Beste Grüße/Best regards Jochen Zink ___ Dipl.-Inf. (FH) Jochen Zink Softwareentwickler nepatec GmbH & Co. KG Hindenburgstr. 37 . 30175 Hannover Fon: 0511/935.946.51 . Fax: 0511/935.946.57 Mail:[EMAIL PROTECTED] Internet: http://www.nepatec.de nepatec GmbH & Co. KG Sitz Hannover . Amtsgericht Hannover . HRA 200338 Persönlich haftende Gesellschafterin: nepatec Verwaltungs-GmbH . Amtsgericht Hannover HRB 200954 . Geschäftsführer: Claudius Grieser . Burkhard Gerlts . Jörg Neumann . Frank Nitze Hinweis: http://www.nepatec.de/de/disclaimer.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MTOM Problem with Axis2
Hello, I try to send an attachment with MTOM from a Client to a Server. I traced the Message with tcpmon and see, that the message contains base64 Date directly in the body and not as a xop:include link to an attachment. This happends with small attachments (34kb) and Big ons (22mb) both. On Client Site, I have enabled MTOM with stub._getServiceClient().getOptions().setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); On server site, I set the enableMTOM Property to true. The relevant Part of the WSDL: ... The Soap Message looks like, that MTOM is enabled because of "Content-Type: application/xop+xml;" in HTTP Header. But as you can see, there is no xop:include in the soap-body: POST /avparchiveservice/services/AvpArchivService HTTP/1.1 Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_0655E8454C89FC8F621214463338880; type="application/xop+xml"; start="<0.urn:uuid:[EMAIL PROTECTED]>"; start-info="text/xml" SOAPAction: "urn:addMandantendokument" User-Agent: Axis2 Host: localhost:8081 Transfer-Encoding: chunked 20e5 --MIMEBoundaryurn_uuid_0655E8454C89FC8F621214463338880 Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" Content-Transfer-Encoding: binary Content-ID: <0.urn:uuid:[EMAIL PROTECTED]> http://schemas.xmlsoap.org/soap/envelope/";> http://www.w3.org/2005/08/addressing";> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; soapenv:mustUnderstand="1"> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; wsu:Id="Timestamp-7226213"> 2008-06-26T06:55:38.687Z 2008-06-26T07:00:38.687Z http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; wsu:Id="UsernameToken-33402317"> test http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest";>OC1+di1N3aFqUH6baAvd3maNh5w= 90q/U9DPl02opPiANdp1Nw== 2008-06-26T06:55:38.687Z http://localhost:8081/avparchiveservice/services/AvpArchivService urn:uuid:0655E8454C89FC8F621214463338238 urn:addMandantendokument http://avp.archivservice.awd.de";> 1 Mandantendokument testdokument.pdf MANDANTEN_DOKUMENTE http://www.w3.org/2005/05/xmlmime"; ns2:contentType="application/pdf"> JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovTWV /R+yYtdo7I4j1vsZ04CFZGHCkxsHGwcEaSrUAjJ5IcI/n1qa+K7C72OWc0uq6D7IPONKvZZLFYd1701+WvF8u9//7m749fLPfuf+qWTz77dLn464VbavSH2pbU0oFKXi57+cXji6+W51LDrS/37/yCt35J+ZAbtRZoKZmrutBarMvV9cW9Tx+45dMHXGd58OkX3NjTxR3C8uMSl/vLxb3P+e23L6WP64vk3YFC5udnFw8uvtRvr17i25dXz+Xb9Y/gBOe3WLXRokft0SzhQDculO7gUuBBTQ4H4jxauLrgY/fYqRTy7jOecW29AqqGIkVz6Q3DFPoJAFUWtlA4 /NKymIPzz4JESKnnpBBpxy2t7lAnwcJsUxQoI09 2000 ... 3a--MIMEBoundaryurn_uuid_0655E8454C89FC8F621214463338880--0 Has anyone an Idea? I'm using axis2 1.4 with addressing 1.4 and rampart 1.4 (Only UsernameToken and Timestamp), Thanks a lot! Regards Jochen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[AXIS2] Problem with WS-Trust
Hello, I try to build a Client with Axis-1.2 for the WebService https://www.vdg-portal.de/VDGAuthPortal/services/STS. The client only calls the RequestSecurityToken Method. First, I generate the client with the following command: wsdl2java -uri https://www.vdg-portal.de/VDGAuthPortal/services/STS?wsdl -p de.awd.biproclient.prototype -o stubs/vdg/ticketService -u Now, I have the generated Stubs classes and everything else I need. My Sourcecode: ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem("repository", "repository/conf/axis2.xml"); VDGSecurTokenServiceStub stub = new VDGSecurTokenServiceStub(ctx, "https://www.vdg-portal.de/VDGAuthPortal/services/STS";); RequestSecurityToken request = new RequestSecurityToken(); RequestSecurityTokenType type = new RequestSecurityTokenType(); request.setRequestSecurityToken(type); RequestSecurityTokenResponse response = stub.RequestSecurityToken(request); The Axis repository contains a modules folder with addressing and rampart module inside. The axis2.xml contains the rampart configuration for outflowsecurity: UsernameToken SomeUsername de.awd.biproclient.prototype.VDGPasswordCallback PasswordText That is all I need, I guess. But I get an Exception (end of this email) and I don't know what does this mean, or what I do wrong. Has someone an idea? Thanks a lot! Exception in thread "main" org.apache.axis2.AxisFault: Error in extracting message properties at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:63) at org.apache.axis2.engine.Phase.invoke(Phase.java:383) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:433) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) at de.awd.biproclient.prototype.VDGSecurTokenServiceStub.RequestSecurityToken(VDGSecurTokenServiceStub.java:157) at de.awd.biproclient.prototype.Prototypeclient.useCodeGenImplementation(Prototypeclient.java:74) at de.awd.biproclient.prototype.Prototypeclient.main(Prototypeclient.java:144) Caused by: org.apache.rampart.RampartException: Error in extracting message properties at org.apache.rampart.RampartMessageData.(RampartMessageData.java:314) at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:57) at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:57) ... 8 more Caused by: org.apache.ws.security.WSSecurityException: Error in converting SOAP Envelope to Document; nested exception is: org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:129) at org.apache.rampart.RampartMessageData.(RampartMessageData.java:148) ... 10 more Caused by: org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:211) at org.apache.axiom.om.impl.dom.NodeImpl.build(NodeImpl.java:444) at org.apache.axiom.om.impl.dom.DocumentImpl.build(DocumentImpl.java:472) at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:113) ... 11 more Caused by: javax.xml.stream.XMLStreamException at org.apache.axiom.om.impl.llom.OMStAXWrapper.updateLastNode(OMStAXWrapper.java:955) at org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:900) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:125) ___ Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axiom] Using XPAth with namespaces
Thanks, but is it not possible to use addNamespace() Methode? regards. Jochen > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 25.07.07 12:03:32 > An: axis-user@ws.apache.org > Betreff: Re: [Axiom] Using XPAth with namespaces > Hi, > > you can try to get around this problem by changing the XPath expression: > > For instance you can rewrite the query > > //ex:TITLE (with xmlns:ex="http://www.example.com/cds";) > > as > > //*[local-name(.) = 'TITEL' and namespace-uri(.) = > 'http://www.example.com/cds'] > > Not exactly the most pretty XPath expression, but should also work with > AXIOm without using the addNamespace() method... > > /philipp > > Jochen Zink wrote: > > Hello, > > > > I try to use Axiom with XPath and Namespaces. > > > > My XML I want to parse is the following: > > > xmlns="http://schemas.xmlsoap.org/ws/2005/02/trust";> > > > xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";> > > >xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing/";> > > > > https://www.vdg-portal.de/VDGAuthPortal/services/TicketService > > > > > > > > > > I want the wsa:Address Element. > > > > I guess it goes like this: > > AXIOMXPath xpath = new AXIOMXPath( "/wst:RequestSecurityTokenResponse/" + > > > > "wsp:AppliesTo/" + > > > > "wsa:EndpointReference/" + > > > > "wsa:Address"); > > > > xpath.addNamespace( "wst", > > "http://schemas.xmlsoap.org/ws/2005/02/trust"; ); > > xpath.addNamespace( "wsp", > > "http://schemas.xmlsoap.org/ws/2004/09/policy"; ); > > xpath.addNamespace( "wsa", > > "http://schemas.xmlsoap.org/ws/2004/08/addressing/"; ); > > > > OMElement address = (OMElement) > > xpath.selectSingleNode(requestedSecurityToken); > > > > > > > > But the address Element is null. What do I wrong? > > > > Thanks a lot! > > ___ > > Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate > > kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00 > > > > > > - > > 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] > > ___ Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axiom] Using XPAth with namespaces
Hello, I try to use Axiom with XPath and Namespaces. My XML I want to parse is the following: http://schemas.xmlsoap.org/ws/2005/02/trust";> http://schemas.xmlsoap.org/ws/2004/09/policy";> http://schemas.xmlsoap.org/ws/2004/08/addressing/";> https://www.vdg-portal.de/VDGAuthPortal/services/TicketService I want the wsa:Address Element. I guess it goes like this: AXIOMXPath xpath = new AXIOMXPath( "/wst:RequestSecurityTokenResponse/" + "wsp:AppliesTo/" + "wsa:EndpointReference/" + "wsa:Address"); xpath.addNamespace( "wst", "http://schemas.xmlsoap.org/ws/2005/02/trust"; ); xpath.addNamespace( "wsp", "http://schemas.xmlsoap.org/ws/2004/09/policy"; ); xpath.addNamespace( "wsa", "http://schemas.xmlsoap.org/ws/2004/08/addressing/"; ); OMElement address = (OMElement) xpath.selectSingleNode(requestedSecurityToken); But the address Element is null. What do I wrong? Thanks a lot! ___ Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] ConcurrentModificationException on Statefu ll WebService
Thanks, okay, I will try a nightly build and give you a feedback. Thanks for the fast reply! > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 18.07.07 15:32:16 > An: axis2 > Betreff: Re: [Axis2] ConcurrentModificationException on Statefull WebService > > Dims, > > yes, you worked around JIRA 1053 (see the comments on the bug page), but > that problem was on the client side -- this is on the server side. > > Michele > > On Wed, 2007-07-18 at 09:23 -0400, Davanum Srinivas wrote: > > Jochen, > > > > Please try a nightly build. I remember fixing at least one of these > > Concurrent Exception > > > > thanks, > > dims > > > > On 7/18/07, Jochen Zink <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > > > I'm using Axis2 1.1.1 with WS-Addressing module engaged. > > > > > > I have a statefull Webservice (scope="sopasession") which receives binary > > > Documents from clients. > > > > > > At the moment I try to build a stress test with JMeter. 100 clients are > > > calling the service. Some calls fails with the following message: > > > ERROR [AxisServlet] java.util.ConcurrentModificationException > > > > > > There is no StackTrace or ErrorMessage included. I figured out, that this > > > Exception is cached on line 285 of AxisServlet class. But I don't know > > > where the problem is. I'm pretty sure, that this Exception does not come > > > from my ServiceClass. I surround every javaCode with try {...} > > > catch(Exception e) and inside the ServiceClass is nothing which can be > > > accessed from different threads. No static content or something else. > > > > > > I figured out, that the problem mostly happened, after axis destroys a > > > service instance (or a couple of service instances) > > > > > > 1. Service clients calls the service > > > 2. The configured timeout of service lifetime runs out, for some clients > > > 3. Another(!) clients calls the service. -> > > > ConcurrentModificationException > > > > > > Only in Stress Situations (ca 100 clients) some ServiceCalls end up with > > > a ConcurrentModificationException happens. > > > > > > Is there any problem known? > > > > > > I just find two JIRA entry's, but I'm not sure if these entries pointing > > > to my problem: > > > http://issues.apache.org/jira/browse/AXIS2-2662 > > > http://issues.apache.org/jira/browse/AXIS2-1053 > > > > > > Thanks a lot! > > > > > > ___ > > > Jetzt neu! Schuetzen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate > > > kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00 > > > > > > > > > - > > > 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] > > _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=0066 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] ConcurrentModificationException on Statefull WebService
Hello, I'm using Axis2 1.1.1 with WS-Addressing module engaged. I have a statefull Webservice (scope="sopasession") which receives binary Documents from clients. At the moment I try to build a stress test with JMeter. 100 clients are calling the service. Some calls fails with the following message: ERROR [AxisServlet] java.util.ConcurrentModificationException There is no StackTrace or ErrorMessage included. I figured out, that this Exception is cached on line 285 of AxisServlet class. But I don't know where the problem is. I'm pretty sure, that this Exception does not come from my ServiceClass. I surround every javaCode with try {...} catch(Exception e) and inside the ServiceClass is nothing which can be accessed from different threads. No static content or something else. I figured out, that the problem mostly happened, after axis destroys a service instance (or a couple of service instances) 1. Service clients calls the service 2. The configured timeout of service lifetime runs out, for some clients 3. Another(!) clients calls the service. -> ConcurrentModificationException Only in Stress Situations (ca 100 clients) some ServiceCalls end up with a ConcurrentModificationException happens. Is there any problem known? I just find two JIRA entry's, but I'm not sure if these entries pointing to my problem: http://issues.apache.org/jira/browse/AXIS2-2662 http://issues.apache.org/jira/browse/AXIS2-1053 Thanks a lot! ___ Jetzt neu! Schuetzen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] CodeGen Problem
Hello, I'm not sure if this is a bug... Maybe it was (or still is) a technical problem in my office. Yesterday, it I can't generate the client... but not with every try. Sometimes it works and 5 seconds later, it does not work. Today it works every time. ... So, I'm still confused. I'm really sure that I have nothing changed to the wsdl2java call! Sometimes it worked, and sometimes not. Today it worked every time I try to generate the client... maybe here are some ghosts in my office?! Thanks Jochen > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 06.07.07 11:49:49 > An: axis-user@ws.apache.org > Betreff: Re: [Axis2] CodeGen Problem > > Amila, Jochen, > I think i've dealt with this before. I need to exercise my aging brain > cells... > > Jochen, > Can you please open a JIRA bug report? > > thanks, > dims > > On 7/6/07, Amila Suriarachchi <[EMAIL PROTECTED]> wrote: > > this seems to be a problem with the wsdl4j > > it says > > Caused by: javax.wsdl.WSDLException: WSDLException (at > > /wsdl:definitions/wsdl:types > > /xsd:schema[1]/xs:schema/xsd:schema): > > faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced > > at ' http://www.w3.org/2001/xml.xsd', relative to ' > > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'.: > > java.net.ConnectException: Connection refused: connect > > > > it tries to find the absolute uri relative to the parent uri. > > > > > > On 7/5/07, Jochen Zink <[EMAIL PROTECTED]> wrote: > > > Okay, know I have another problem. I'm confused... I got a > > "connection refused" exception, while wsdl2java trys to receive the schema > > file "http://www.w3.org/2001/xml.xsd ". > > > I can't see what is going wrong. If I try to get the schema manually with > > the webbrowser... it works. > > > > > > I know, yesterday it works... > > > > > > What happend? > > > > > > > > > > > > > > > > > > > > > > > > [java] Retrieving schema at ' > > http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd', > > relative to > > 'file:/D:/jzink/workspace/biproClientPrototype/https:/www.vdg- > > portal.de/VDGAuthPortal/services'. > > > [java] Retrieving schema at > > 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd > > ', relative to > > 'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd'. > > > [java] Retrieving schema at ' > > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', > > relative to > > 'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd > > '. > > > [java] Retrieving schema at 'http://www.w3.org/2001/xml.xsd', > > relative to ' > > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'. > > > [java] > > org.apache.axis2.wsdl.codegen.CodeGenerationException: > > Error parsing WSDL > > > [java] at > > org.apache.tools.ant.taskdefs.ExecuteJava.execute > > (ExecuteJava.java:180) > > > [java] at > > org.apache.tools.ant.taskdefs.Java.run(Java.java:710) > > > [java] at > > org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) > > > [java] at org.apache.tools.ant.taskdefs.Java.execute > > (Java.java:84) > > > [java] at > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > > > [java] at > > org.apache.tools.ant.Task.perform(Task.java:364) > > > [java] at org.apache.tools.ant.Target.execute > > (Target.java:341) > > > [java] at > > org.apache.tools.ant.Target.performTasks(Target.java:369) > > > [java] at > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > > > [java] at org.apache.tools.ant.Project.executeTarget > > (Project.java:1185) > > > [java] at > > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) > > > [java] at > > org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java > > :32) > > > [java] at > > org.apache.tools.ant.Project.executeTargets(Project.java:1068) > > > [java] at > > org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) > >
Re: [Axis2] Problems with Statefull WebService and .NET client
Thanks a lot for your help. I can't get it work. I installed WSE 3.0 and I got the same messages. First I believed, that there is a need for in the SOAP-Binding Element. But the wsdl.exe tool (WseWsdl3.exe says the same) says that the wsdl extension "UsingAddressing" will be ignored. But it is not so important. I will make some more investigations in .net. Thanks! > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 05.07.07 21:11:00 > An: axis-user@ws.apache.org > Betreff: Re: [Axis2] Problems with Statefull WebService and .NET client > > WCF also supports WS-Addressing. See http://connect.microsoft.com/wcf. > > Anne > > On 7/5/07, John, Anil <[EMAIL PROTECTED]> wrote: > > WSE 3.0 is fully supported with .NET 2.0. You can find out more about it > > @ > > http://msdn2.microsoft.com/en-us/webservices/aa740663.aspx > > > > There is a link to download it from the link above. There are also links > > to hands on labs on the page above that should hopefully provide you > > with what you need. > > > > Just as an FYI, in the following article @ > > http://msdn2.microsoft.com/en-us/library/ms977317.aspx > > > > ... there is a section on Stateful sessions. Please note that I have not > > delved into this any great detail and am not sure if what Axis2 is > > calling a stateful web services is the same as what .NET 2.0 + WSE is > > calling a stateful web service. > > > > Regards, > > > > - Anil > > > > > -Original Message- > > > From: Walker, Jeff [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, July 05, 2007 9:55 AM > > > To: axis-user@ws.apache.org > > > Subject: RE: [Axis2] Problems with Statefull WebService and > > > .NET client > > > > > > I'm no .Net expert, but I think WS-Addressing is only > > > supported in WSE 3.0. > > > http://msdn2.microsoft.com/en-us/library/aa529362.aspx Which > > > is a kind of add-on support library that you need to download > > > for free from the Microsoft website. I don't know what is > > > included in .NET 2.0. (Probably not WS-Addressing support, > > > according to the info you supplied). > > > > > > Now, in theory, if you can't get WSE 3.0 to work in your .NET > > > 2.0 environment, you could attempt to write your own message > > > handlers to handle WS-Addressing headers. But that would be a > > > complex task, I think. > > > > > > But, in general, this page should help, for soap header > > > manipulation in .NET (at least the basics, anyway). > > > http://msdn2.microsoft.com/en-us/library/whew6x7f.aspx > > > -jeff > > > > > > > > > -Original Message- > > > From: Jochen Zink [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, July 04, 2007 5:38 AM > > > To: axis-user@ws.apache.org > > > Subject: [Axis2] Problems with Statefull WebService and .NET client > > > > > > Hello, > > > > > > I have a StateFull WebService written with Axis2 1.1.1 with > > > scope="soapsession". > > > > > > Know I want to develop a .NET client to test > > > interoperability. It works well, I can call every Service > > > Method. But the client ignores WS-Addressing information's. > > > The ServiceGroupID is not sended back to the WebService. I > > > know this is not a axis2 question, but I hope anybody here > > > has written a .net 2.0 client, to consume a statefull webservice. > > > > > > With the wsdl.exe tool, I have generate a Proxy class. I > > > can't access to the soap header (or I don't know how), to > > > read the servicegroupID by hand and send it back. Does anyone > > > know how does this work or where I can find information's > > > about that? I try to search MSDN and google. > > > Without useful results. > > > > > > Thanks a lot! > > > > > > _ > > > Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > > > http://smartsurfer.web.de/?mc=100071&distributionid=0066 > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > --
Re: [Axis2] CodeGen Problem
ainSocketImpl.java:182) [java] at java.net.Socket.connect(Socket.java:516) [java] at java.net.Socket.connect(Socket.java:466) [java] at sun.net.NetworkClient.doConnect(NetworkClient.java:157) [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) [java] at sun.net.www.http.HttpClient.(HttpClient.java:214) [java] at sun.net.www.http.HttpClient.New(HttpClient.java:287) [java] at sun.net.www.http.HttpClient.New(HttpClient.java:299) [java] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:795) [java] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:747) [java] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:672) [java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:916) [java] at java.net.URL.openStream(URL.java:1007) [java] at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source) [java] ... 33 more > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 05.07.07 08:15:44 > An: axis-user@ws.apache.org > Betreff: Re: [Axis2] CodeGen Problem > > Okay, thanks a lot. That is a reason, but can't solve my problem :). I only > develop the client and not the service. The service is actually working. But > i will inform the service developers. > > Thanks a lot!! > > > > > -Ursprüngliche Nachricht- > > Von: axis-user@ws.apache.org > > Gesendet: 05.07.07 06:46:09 > > An: [EMAIL PROTECTED] > > Betreff: Re: [Axis2] CodeGen Problem > > this problem is in here > > > > > style="document"/> > > > > > > > part="bipro:Security" use="literal"/> > > > > > > > > > > > > > > > > > > the message part is not namespace qualified So you have to put it as > > > > > > this would fix your problem. > > > > > > And also if you want to send nothing in body put parts="" in soap body > > > > > > > > > > > > On 7/4/07, > > Davanum Srinivas <[EMAIL PROTECTED]> wrote: > > Please create a JIRA and upload your wsdl. > > > > thanks, > > dims > > > > On 7/4/07, Jochen Zink <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > > > I try to generate a client Stub with wsdl2java. > > > > > > > > I got the following Exception if I execute the wsdl2java tool. > > > > > > It seems, that the codeGen tool believes, that the is no messagepart > > > bipro:Security declared int the wsdl file. But, as you can see in the > > > attached file, it is declared. > > > > > > > > I'm using axis1.2 with rampart1.2 > > > > > > Thanks a lot! > > > > > > Regards > > > Jochen > > > > > > > > > [java] SCHWERWIEGEND: org.apache.axis2.AxisFault: message part > > > bipro:Security not found in the WSDL > > > > > [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error > > > parsing WSDL > > > [java] at > > > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180) > > > [java] at org.apache.tools.ant.taskdefs.Java.run > > (Java.java:710) > > > [java] at > > > org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) > > > [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) > > > [java] at org.apache.tools.ant.UnknownElement.execute > > (UnknownElement.java:275) > > > [java] at org.apache.tools.ant.Task.perform(Task.java:364) > > > [java] at org.apache.tools.ant.Target.execute(Target.java:341) > > > [java] at org.apache.tools.ant.Target.performTasks > > (Target.java:369) > > > [java] at > > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > > > [java] at > > > org.apache.tools.ant.Project.executeTarget(Project.java:1185) > > > [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets > > (DefaultExecutor.java:40) > > > [java] at > > > org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) > > > [java] a
Re: [Axis2] CodeGen Problem
Okay, thanks a lot. That is a reason, but can't solve my problem :). I only develop the client and not the service. The service is actually working. But i will inform the service developers. Thanks a lot!! > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 05.07.07 06:46:09 > An: [EMAIL PROTECTED] > Betreff: Re: [Axis2] CodeGen Problem this problem is in here > > style="document"/> > > > part="bipro:Security" use="literal"/> > > > > > > > > > the message part is not namespace qualified So you have to put it as > > > this would fix your problem. > > > And also if you want to send nothing in body put parts="" in soap body > > > > > > On 7/4/07, > Davanum Srinivas <[EMAIL PROTECTED]> wrote: > Please create a JIRA and upload your wsdl. > > thanks, > dims > > On 7/4/07, Jochen Zink <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I try to generate a client Stub with wsdl2java. > > > > > I got the following Exception if I execute the wsdl2java tool. > > > > It seems, that the codeGen tool believes, that the is no messagepart > > bipro:Security declared int the wsdl file. But, as you can see in the > > attached file, it is declared. > > > > > I'm using axis1.2 with rampart1.2 > > > > Thanks a lot! > > > > Regards > > Jochen > > > > > > [java] SCHWERWIEGEND: org.apache.axis2.AxisFault: message part > > bipro:Security not found in the WSDL > > > [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error > > parsing WSDL > > [java] at > > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180) > > [java] at org.apache.tools.ant.taskdefs.Java.run > (Java.java:710) > > [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) > > [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) > > [java] at org.apache.tools.ant.UnknownElement.execute > (UnknownElement.java:275) > > [java] at org.apache.tools.ant.Task.perform(Task.java:364) > > [java] at org.apache.tools.ant.Target.execute(Target.java:341) > > [java] at org.apache.tools.ant.Target.performTasks > (Target.java:369) > > [java] at > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > > [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) > > [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets > (DefaultExecutor.java:40) > > [java] at > > org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) > > [java] at org.apache.tools.ant.Project.executeTargets > (Project.java:1068) > > [java] at > > org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) > > [java] at > > org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java > :137) > > [java] Caused by: > > org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL > > [java] at > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java > :137) > > [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > > [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > > [java] at sun.reflect.NativeMethodAccessorImpl.invoke0 > (Native Method) > > [java] at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > [java] at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java > :25) > > [java] at java.lang.reflect.Method.invoke(Method.java:585) > > [java] at > > org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202) > > [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute > (ExecuteJava.java:134) > > [java] ... 14 more > > [java] Caused by: org.apache.axis2.AxisFault: message part > > bipro:Security not found in the WSDL > > [java] at > > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService > (WSDL11ToAxisServiceBuilder.java:298) > > [java] at > > org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:100) > > [java] at org.apache.axis2.wsdl.
[Axis2] CodeGen Problem
Hello, I try to generate a client Stub with wsdl2java. I got the following Exception if I execute the wsdl2java tool. It seems, that the codeGen tool believes, that the is no messagepart bipro:Security declared int the wsdl file. But, as you can see in the attached file, it is declared. I'm using axis1.2 with rampart1.2 Thanks a lot! Regards Jochen [java] SCHWERWIEGEND: org.apache.axis2.AxisFault: message part bipro:Security not found in the WSDL [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [java] at org.apache.tools.ant.Task.perform(Task.java:364) [java] at org.apache.tools.ant.Target.execute(Target.java:341) [java] at org.apache.tools.ant.Target.performTasks(Target.java:369) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) [java] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:137) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134) [java] ... 14 more [java] Caused by: org.apache.axis2.AxisFault: message part bipro:Security not found in the WSDL [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:298) [java] at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:100) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:131) [java] ... 22 more [java] Caused by: org.apache.axis2.AxisFault: message part bipro:Security not found in the WSDL [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2080) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:466) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:374) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:334) [java] at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:288) [java] ... 24 more [java] --- Nested Exception --- [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:137) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) [java] at org.apache.tools.ant.task
[Axis2] Problems with Statefull WebService and .NET client
Hello, I have a StateFull WebService written with Axis2 1.1.1 with scope="soapsession". Know I want to develop a .NET client to test interoperability. It works well, I can call every Service Method. But the client ignores WS-Addressing information's. The ServiceGroupID is not sended back to the WebService. I know this is not a axis2 question, but I hope anybody here has written a .net 2.0 client, to consume a statefull webservice. With the wsdl.exe tool, I have generate a Proxy class. I can't access to the soap header (or I don't know how), to read the servicegroupID by hand and send it back. Does anyone know how does this work or where I can find information's about that? I try to search MSDN and google. Without useful results. Thanks a lot! _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=0066 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MTOM error "java.lang.OutOfMemoryError: Java heap space"
Sorry, I did not want to affront you. A big sorry for that! I know it is difficult to handle large attachments without caching it in files. With caching attachments in files, there can(!) be some problems with security configurations on some applicationservers. It can be forbidden for webapplications to write any files to harddisc. This could run in problems, if some people want to use axis2 in high security environments, this could be a problem. A direct streaming of the attachments to the Service Implementation would be solve the problem... After taking a look to SAAJ I'm nearly sure, that a direct streaming is imposible with this API. Regards! Jochen > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 23.05.07 10:15:30 > An: axis-user@ws.apache.org > Betreff: Re: MTOM error "java.lang.OutOfMemoryError: Java heap space" > > On 5/23/07, Jochen Zink <[EMAIL PROTECTED]> wrote: > > > > This is the only way to handle large attachments int axis2, *sadly*. > Feel free to contribute or implement if you have ideas for better > mechanisms for handling large attachments... There was an earlier > effort to port the attachment streaming mechanisms from Axis1.. But it > was never completed.. > > Thanks, > Thilina > > > > > > > > -Ursprüngliche Nachricht- > > > Von: axis-user@ws.apache.org > > > Gesendet: 23.05.07 07:23:12 > > > An: "axis user" > > > Betreff: MTOM error "java.lang.OutOfMemoryError: Java heap space" > > > > > > > Hi friends, > > > > > > > > > > > > I am running sample application "mtom" from standard axis2 samples > > > [axis2-1.1.1\samples\mtom]. This sample is working for sending attachment > > > of size 2-3 MB, but giving error for more than 3MB size of files. > > > > > > > > > > > > I want to send file of size 50-100 MB. > > > > > > > > > > > > error is as follows > > > > > > [java] Exception in thread "main" org.apache.axis2.AxisFault: > > > java.lang.Out > > > OfMemoryError: Java heap space > > > [java] at > > > org.apache.axis2.description.OutInAxisOperationClient.send(Ou > > > tInAxisOperation.java:271) > > > [java] at > > > org.apache.axis2.description.OutInAxisOperationClient.execute > > > (OutInAxisOperation.java:202) > > > [java] at sample.mtom.service.MTOMSampleStub.attachment(Unknown > > > Source) > > > > > > > > > > > > [java] at sample.mtom.client.Client.transferFile(Unknown Source) > > > [java] at sample.mtom.client.Client.main(Unknown Source) > > > [java] Java Result: 1 > > > > > > > > > > > > I have enabled "MTOM" & "filecaching" both in the client side, but not > > > server side caching means in "axis2.xml". > > > > > > 1) Can some one figureout solution? > > > > > > 2) Can we send file as attachment of size 50MB - 1GB? > > > > > > > > > > > > With best regards > > > > > > From > > > Vikas R. Khengare > > > > > > > > > ___ > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MTOM error "java.lang.OutOfMemoryError: Java heap space"
Hi Vikas, okay, I tryed a example with a attachment larger than 50mb. ... I got the same error. I'm sure that I have enabled FileCaching in the same way as you did (configured in axis2.xml). I'm pretty sure that this worked for month ago. The only thing I have changed is to copy newer versions of the axiom libs. Currently I use axis2 1.1.1 with axiom 1.2.4. I tryed the same szenarop with axis2 1.1.1 and axiom 1.2.2 and it does not work too. I'm not sure what is going wrong... my axis2.xml (server): true false true D:\\cache 3000 my services.xml has no parameter which deals with attachments.. Is there any bug known? Thanks > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 23.05.07 09:22:04 > An: > Betreff: Re: MTOM error "java.lang.OutOfMemoryError: Java heap space" > > Hi Jochen & Friends, > > I have enabled FileCaching on server side by following code. > true > true > > > true > locked="false">C:\\TempWebService\\DestinationTemp > 4000 > At the same time I am continuing with client side file caching code. > > It is caching that file in given directory, but not writing on to output > stream i.e. on specified location. Now also I am able send 2-3MB size of > files but not bigger file size like 7MB-100MB. I am getting same error > [java] Exception in thread "main" org.apache.axis2.AxisFault: > java.lang.OutOfMemoryError: Java heap space > [java] at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperatio > n.java:271) > [java] at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOpera > tion.java:202) > [java] at sample.mtom.service.MTOMSampleStub.attachment(Unknown > Source) > > [java] at sample.mtom.client.Client.transferFile(Unknown Source) > [java] at sample.mtom.client.Client.main(Unknown Source) > [java] Java Result: 1 > > my questions still unsolved? Can some one suggest solution? > [Can we send file as attachment of size 5MB - 1GB?] > > With best regards > Vikas R. Khengare > > - Original Message - > From: "Jochen Zink" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, May 23, 2007 11:51 AM > Subject: Re: MTOM error "java.lang.OutOfMemoryError: Java heap space" > > > > > > Hi Vikas. > > > > you have to enabled FileCaching on ServerSide. This is the only way to > handle large attachments int axis2, sadly. > > > > > > > -Ursprüngliche Nachricht- > > > Von: axis-user@ws.apache.org > > > Gesendet: 23.05.07 07:23:12 > > > An: "axis user" > > > Betreff: MTOM error "java.lang.OutOfMemoryError: Java heap space" > > > > > > > Hi friends, > > > > > > > > > > > > I am running sample application "mtom" from standard axis2 samples > [axis2-1.1.1\samples\mtom]. This sample is working for sending attachment of > size 2-3 MB, but giving error for more than 3MB size of files. > > > > > > > > > > > > I want to send file of size 50-100 MB. > > > > > > > > > > > > error is as follows > > > > > > [java] Exception in thread "main" org.apache.axis2.AxisFault: > java.lang.Out > > > OfMemoryError: Java heap space > > > [java] at > org.apache.axis2.description.OutInAxisOperationClient.send(Ou > > > tInAxisOperation.java:271) > > > [java] at > org.apache.axis2.description.OutInAxisOperationClient.execute > > > (OutInAxisOperation.java:202) > > > [java] at sample.mtom.service.MTOMSampleStub.attachment(Unknown > Source) > > > > > > > > > > > > [java] at sample.mtom.client.Client.transferFile(Unknown > Source) > > > [java] at sample.mtom.client.Client.main(Unknown Source) > > > [java] Java Result: 1 > > > > > > > > > > > > I have enabled "MTOM" & "filecaching" both in the client side, but not > server side caching means in "axis2.xml". > > > > > > 1) Can some one figureout solution? > > > > > > 2) Can we send file as attachment of size 50MB - 1GB? > > > > > > > > > > > > With best regards > > > > > > From > > > Vikas R. Khengare > > > > > > > > > ___ > > SMS
Re: MTOM error "java.lang.OutOfMemoryError: Java heap space"
Hi Vikas. you have to enabled FileCaching on ServerSide. This is the only way to handle large attachments int axis2, sadly. > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 23.05.07 07:23:12 > An: "axis user" > Betreff: MTOM error "java.lang.OutOfMemoryError: Java heap space" > Hi friends, > > > > I am running sample application "mtom" from standard axis2 samples > [axis2-1.1.1\samples\mtom]. This sample is working for sending attachment of > size 2-3 MB, but giving error for more than 3MB size of files. > > > > I want to send file of size 50-100 MB. > > > > error is as follows > > [java] Exception in thread "main" org.apache.axis2.AxisFault: > java.lang.Out > OfMemoryError: Java heap space > [java] at > org.apache.axis2.description.OutInAxisOperationClient.send(Ou > tInAxisOperation.java:271) > [java] at > org.apache.axis2.description.OutInAxisOperationClient.execute > (OutInAxisOperation.java:202) > [java] at sample.mtom.service.MTOMSampleStub.attachment(Unknown > Source) > > > > [java] at sample.mtom.client.Client.transferFile(Unknown Source) > [java] at sample.mtom.client.Client.main(Unknown Source) > [java] Java Result: 1 > > > > I have enabled "MTOM" & "filecaching" both in the client side, but not server > side caching means in "axis2.xml". > > 1) Can some one figureout solution? > > 2) Can we send file as attachment of size 50MB - 1GB? > > > > With best regards > > From > Vikas R. Khengare > ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unexpected subelement, encryption problem
Hi, I have captured the messages and have done some tests. You can see the very strange results an the issue. http://issues.apache.org/jira/browse/RAMPART-29 It looks a little bit strange, ... maybe it is an axis2 bug and not a rampart bug. But please take a look. I'm not so deep inside the axis stuff! thanks > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 10.05.07 09:00:24 > An: axis-user@ws.apache.org > Betreff: Re: Unexpected subelement, encryption problem see my comment on this issue. http://issues.apache.org/jira/browse/RAMPART-29 > Can you find the decripted message and send us? > > > > On 5/10/07, Jochen Zink <[EMAIL PROTECTED]> wrote: > Hello, > > I have not a solution for your problem, because I have the same one :) > > Please take a look at this bug http://issues.apache.org/jira/browse/RAMPART-29 > > > Maybe it hits your problem, to. > > regards > Jochen > > > > > -Ursprüngliche Nachricht- > > Von: axis-user@ws.apache.org > > Gesendet: 09.05.07 20:24:16 > > An: axis-user@ws.apache.org > > Betreff: Unexpected subelement, encryption problem > > > > > > Hello, > > > > I'm trying to get encryption working with axis using rampart. I was > > > having a hard time getting everything working but think i have worked > > through all the encryption related setup issues (i'm not getting > > random exceptions anymore). > > > > I currently have the following in my axis2.xml file > > > > > > > > > > Encrypt > > jontest > > > com.mitel.me.soap.ssserver.TestCallBack > > client.properties > > > > > > > > > > > Encrypt > > client.properties > > > com.mitel.me.soap.ssserver.TestCallBack > > > > > > > > client.properties looks like > > > > org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin > > > org.apache.ws.security.crypto.merlin.keystore.type=jks > > org.apache.ws.security.crypto.merlin.file=testkeystore > > org.apache.ws.security.crypto.merlin.keystore.password=default > > > > I created the key using > > > > > keytool -genkey -keyalg rsa -alias ME -keypass default -keystore > > testkeystore -storepass default > > > > When i start up tomcat i immediately get an error message. > > > > "java.lang.RuntimeException > : Unexpected subelement Result" > > > > This is being thrown from an auto generated 'parse' method in one of > > the stub files as seen below. > > > > public static LoginResponse parse(javax.xml.stream.XMLStreamReader > > > reader) throws java.lang.Exception > > > > > > if (reader.isStartElement() && new > > javax.xml.namespace.QName("","return").equals(reader.getName > ())){ > > > > object.set_return(com.mitel.www.mixml.ss.CmdResponse.Factory.parse(reader)); > > 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("Unexpected subelement " + > > reader.getLocalName()); > > } > > > > If i comment out the encryption stuff in the axis2.xml file that i > > > mentioned above our web service functions as expected. I'm pretty > > much at a loss as to what the problem could be. I've tried attaching > > the debugger and stepping through the auto generated code and nothing > > > is jumping out at me as being 'wrong'. > > > > Anyone have any advice? > > > > Thanks, > > > > Jon H. > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > ___ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- > Amila Suriarachchi, > > WSO2 Inc. > ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unexpected subelement, encryption problem
Hello, I have not a solution for your problem, because I have the same one :) Please take a look at this bug http://issues.apache.org/jira/browse/RAMPART-29 Maybe it hits your problem, to. regards Jochen > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 09.05.07 20:24:16 > An: axis-user@ws.apache.org > Betreff: Unexpected subelement, encryption problem > > Hello, > > I'm trying to get encryption working with axis using rampart. I was > having a hard time getting everything working but think i have worked > through all the encryption related setup issues (i'm not getting > random exceptions anymore). > > I currently have the following in my axis2.xml file > > > > > Encrypt > jontest > com.mitel.me.soap.ssserver.TestCallBack > client.properties > > > > > Encrypt > client.properties > com.mitel.me.soap.ssserver.TestCallBack > > > > client.properties looks like > > org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin > org.apache.ws.security.crypto.merlin.keystore.type=jks > org.apache.ws.security.crypto.merlin.file=testkeystore > org.apache.ws.security.crypto.merlin.keystore.password=default > > I created the key using > > keytool -genkey -keyalg rsa -alias ME -keypass default -keystore > testkeystore -storepass default > > When i start up tomcat i immediately get an error message. > > "java.lang.RuntimeException: Unexpected subelement Result" > > This is being thrown from an auto generated 'parse' method in one of > the stub files as seen below. > > public static LoginResponse parse(javax.xml.stream.XMLStreamReader > reader) throws java.lang.Exception > > > if (reader.isStartElement() && new > javax.xml.namespace.QName("","return").equals(reader.getName())){ > > object.set_return(com.mitel.www.mixml.ss.CmdResponse.Factory.parse(reader)); > 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("Unexpected subelement " + > reader.getLocalName()); > } > > If i comment out the encryption stuff in the axis2.xml file that i > mentioned above our web service functions as expected. I'm pretty > much at a loss as to what the problem could be. I've tried attaching > the debugger and stepping through the auto generated code and nothing > is jumping out at me as being 'wrong'. > > Anyone have any advice? > > Thanks, > > Jon H. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Get access to ServletContext
Hello, I use Client Certiicate authentication. Afeter authentication the client certificate is placed in the SessionContext from the Servlet. For authorisation I need access to this certificate. Is any possiblity to get access of the Servlet/SessionContext? Thanks! Regards! Jochen Zink ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] WS-Policy on an operation level in services.xml
Hi Angel, I have not try this out, but in a axis2 book is a description about that. If you define the rampart configuration as a child node of the service element in services.xml, the settings are global. But you can also define the rampart configuration as a child node of any operation element. In this case, the security settings are only active for this operation. I hope this helps! Regards Jochen > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 23.04.07 16:49:21 > An: axis-user@ws.apache.org > Betreff: Re: [Axis2] WS-Policy on an operation level in services.xml > > Hi Sanka, > > I already checked and it seems to work (having security policies on > the operation level). Rampart in its default samples only applies > policies on the service level. Thanks. > > Regards, > Angel > > On 4/23/07, Sanka Samaranayake <[EMAIL PROTECTED]> wrote: > > > > > > > > On 4/23/07, Angel Todorov <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > > > Is it possible to associate policies for each individual operation , > > > in a service definition in services.xml, for example WS-SecurityPolicy > > > ? > > > > Yes. It is possible to associate policies even at message level using > > services.xml. > > > > > > > As far as I can see, a the moment a policy is applied for the whole > > > service and all of its operations. If this is not the case, can you > > > point me to some sample. > > > > > > Let me check and get back to you. Rampart must be having few .. > > > > Thanks > > Sanka > > > > > I think this is a very important feature and > > > should be supported by Axis2. Other frameworks such as JAX-WS RI 2.1 & > > > WSIT & NetBeans have support for it. > > > > > > Thanks very much for your feedback. > > > > > > Regards, > > > Angel > > > > > > > > - > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > -- > > Sanka Samaranayake > > WSO2 Inc. > > > > http://www.bloglines.com/blog/sanka > > http://www.wso2.org/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] generated WSDL not conform to WSDL 1.1 schema
Hello, I generate a WSDL from my sources. I have a One-Way communication. The ServiceConsumer calls a method, which has no response. The generated WSDL looks like this: http://www.w3.org/2006/05/addressing/wsdl"; message="axis2:closeTransferSessionMessage" wsaw:Action="urn:closeTransferSession" /> http://www.w3.org/2006/05/addressing/wsdl"; message="axis2:serviceNotAvailableFault" name="serviceNotAvailableFault" wsaw:Action="http://comchannel.comserver.edocbox.nepatec.de/DocumentTransferServicePortType/closeTransferSession/Fault/serviceNotAvailableFault"; /> This is not schema conform... The schema wants a wsdl:output element between input and fault. I can insert it by hand, but this is also not correct. The Service does not send a response message. Has anyone an idea want I can do? Without wsld:output Element the wsdl does not pass the WS-I Test to be conform to basic Profile 1.3. Thanks a Lot! ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2][Rampart] How to sign multiple XML-Elements?
Exactly, I tried every trink else. ',', '.', ':' ' ' ... but a simple ';' ... thanks a lot! > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 06.04.07 02:34:21 > An: axis-user@ws.apache.org > Betreff: Re: [Axis2][Rampart] How to sign multiple XML-Elements? I'm doing this in my axis2.xml (if I understand your question correctly): > > > > {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}To; > {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}ReplyTo; > {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}MessageID; > {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}Action > > > > Signatures are generated for each of the elements ... the ";" separator was > the key to getting this to work ... > > > > On 5-Apr-07, at 7:48 AM, Jochen Zink wrote: > > Hello, > > > I have a SOAP-Message with UsernameToken and Timestamp. I want to sign the > SOAP-Body, TimeStamp and UsernameToken Element... > > > In the OutFlowElement is a signatureParts Element, where I can specify the > signed Parts of a soap message. But it is not possible for me, to specify > more than one Element inside of signatureParts. Is it possible to specify > more than one? If yes, has anyone a little example for me? Every try of me > fails. > > > Thanks! > > > ___ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > _ > Aaron Aston | Twisted Pair | 905.852.0950 > > > > > > ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2][Rampart] How to sign multiple XML-Elements?
Hello, I have a SOAP-Message with UsernameToken and Timestamp. I want to sign the SOAP-Body, TimeStamp and UsernameToken Element... In the OutFlowElement is a signatureParts Element, where I can specify the signed Parts of a soap message. But it is not possible for me, to specify more than one Element inside of signatureParts. Is it possible to specify more than one? If yes, has anyone a little example for me? Every try of me fails. Thanks! ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Filecaching with servlet specification temporary dir?
Hello, At the moment, for large attachments is it possible to cache the attachment in a specific dir, configured in axis2.xml. But this can run into problems, if the security configuration of the applicationserver does not allow writing directly to hard disk. For this case, there exists a tempdirectory since servlet spec 2.2. Every Servletcontainer has to provide a temp directory to the servlet, where they can store tempory files. To get access to this directory, the servlet has to read out the javax.servlet.context.tempdir variable. Is there a possibility to configure axis2, that this directory is used for filecaching? Thanks for help! ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2][Rampart] How to extract User Information?
Hi at all, I have a state full webservice and use rampart authentication with usernametoken. It works, but is there any possibility to extract the user information? With the PaswordCallback class I can authenticate the user. But in the ServiceMethod I want to know, which user has called the method. Is this possible? I tried to put the user manually in the MessageContext inside the PasswordCallbackClass. But the MessageContext is not available inside this class. Is there another possibility as parsing the soap envelope by hand? Thanks for your help! ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 Web Service
Hi, normally every client "talks" to a new service instance. Implement a init( ServiceContext c ) {} method to your ServiceSkeleton and you can see, that three instances are created, if three different clients calls a service method. It is possible, that you have only one instance over more than one methodcall (but only for one client). For this, you have to enable session management. Normally, this is deactivated. It is just the same, if you call a local service or a service, which is running on a other machine in your network. Maybe your firewall blocks the call? I hope that helps, > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 29.03.07 08:49:44 > An: axis-user@ws.apache.org > Betreff: Axis2 Web Service > > Hi there, > > With regards to Axis2 web services, does each client get their own instance > when they execute code such as the following: > > StockQuoteServiceStub stub = > new StockQuoteServiceStub > ("http://localhost:8080/axis2/services/StockQuoteService";); > > In my case all the clients seem to be using just the one instance. This is > bad because if one client changes the value of a variable in the web > service, then all the other clients see that changes as well. Is there any > way I can avoid this? > > Also, say if my web service was not local, but on another machine in my > network. How do I access it? > I tried: StockQuoteServiceStub stub = > new StockQuoteServiceStub > > ("http://130.216.23.45:8080/axis2/services/StockQuoteService";); > > However it didnt work. Any help would be much appreciated. > > -- > View this message in context: > http://www.nabble.com/Axis2-Web-Service-tf3484692.html#a9727904 > Sent from the Axis - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2][Rampart] Different soap data with Ramaprt
Hi, okay, I opend a new BUG. I'm new on the Bug tracking system. I hope the description is okay for all https://issues.apache.org/jira/browse/RAMPART-29 > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 23.03.07 04:55:30 > An: axis-user@ws.apache.org > Betreff: Re: [Axis2][Rampart] Different soap data with Ramaprt > Hi, > > Can you please create a JIRA issue [1] on this and help us recreate > the issue. Please attach your service/client info to the issue. > > Thanks, > Ruchith > > [1] https://issues.apache.org/jira/browse/RAMPART > > On 3/22/07, Jochen Zink <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I have a little Webservice, which receives a File with MTOM form a Client. > > The Service works fine. Now, I want to secure the soap messages with > > rampart. I got an Exception on Server side, while axis parses the soap > > message. > > > > This is the Exception: > > org.apache.axis2.AxisFault: java.lang.RuntimeException: Unexpected > > subelement data > > > > > > > > Therefore I debugged the parsing sequence. First without rampart, and > > second with rampart. > > > > > > Here is the relevant SOAP-Message Part WITHOUT Rampart > > > xmlns:ns1="http://comchannel.comserver.edocbox.nepatec.de/xsd";> > > > > > > Portable Document Format > > 1 > > pdf > > 3.0 > > > > > > > > > > > > Everything looks good, the service receives the file correctly. No > > exception is thrown. > > > > Now the relevant SOAP-Message Part WITH Rampart > > http://www.w3.org/2001/04/xmlenc#"; > > xmlns:wsa="http://www.w3.org/2005/08/addressing"; > > xmlns:ns1="http://comchannel.comserver.edocbox.nepatec.de/xsd"; > > xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; > > xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";> > > > > http://comchannel.comserver.edocbox.nepatec.de/xsd";> > > > >Portable Document Format > >1 > >pdf > >3.0 > > > > > > http://www.w3.org/2001/XMLSchema";> > > > > > > > > > > As you can see, the messages are different. And the message with rampart is > > not correct and the service fails. > > > > Has someone any idea what I do wrong? > > > > > > Thanks for every reply! > > > > > > Here are the service.xml from the service: > > > > > > > > > > > > true > > > > > > > > Timestamp Signature Encrypt > > > > de.nepatec.edocbox.comserver.comchannel.serviceimpl.PWCBHandler > > > > service.properties > > > > > > > > > > > > Timestamp Signature Encrypt > > service > > > > de.nepatec.edocbox.comserver.comchannel.serviceimpl.PWCBHandler > > > > service.properties > > > > DirectReference > > > > SKIKeyIdentifier > > > > useReqSigCert > > > > > > ... // MessageReceivers and so on > > > > > > > > And the axis2.xml from the clients context: > > > > > > > > > > > > > > > > Timestamp Signature Encrypt > > client > > > > de.nepatec.edocbox.comserver.client.PWCBHandler > > client.properties > > DirectReference > > SKIKeyIdentifier > > service > > > > //xenc:EncryptedData/xenc:CipherData/xenc:CipherValue > > > > > > > > > > > > Timestamp Signature Encrypt > > > > de.nepatec.edocbox.comserver.client.PWCBHandler > > client.pro
[Axis2][Rampart] Different soap data with Ramaprt
Hello, I have a little Webservice, which receives a File with MTOM form a Client. The Service works fine. Now, I want to secure the soap messages with rampart. I got an Exception on Server side, while axis parses the soap message. This is the Exception: org.apache.axis2.AxisFault: java.lang.RuntimeException: Unexpected subelement data Therefore I debugged the parsing sequence. First without rampart, and second with rampart. Here is the relevant SOAP-Message Part WITHOUT Rampart http://comchannel.comserver.edocbox.nepatec.de/xsd";> Portable Document Format 1 pdf 3.0 Everything looks good, the service receives the file correctly. No exception is thrown. Now the relevant SOAP-Message Part WITH Rampart http://www.w3.org/2001/04/xmlenc#"; xmlns:wsa="http://www.w3.org/2005/08/addressing"; xmlns:ns1="http://comchannel.comserver.edocbox.nepatec.de/xsd"; xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";> http://comchannel.comserver.edocbox.nepatec.de/xsd";> Portable Document Format 1 pdf 3.0 http://www.w3.org/2001/XMLSchema";> As you can see, the messages are different. And the message with rampart is not correct and the service fails. Has someone any idea what I do wrong? Thanks for every reply! Here are the service.xml from the service: true Timestamp Signature Encrypt de.nepatec.edocbox.comserver.comchannel.serviceimpl.PWCBHandler service.properties Timestamp Signature Encrypt service de.nepatec.edocbox.comserver.comchannel.serviceimpl.PWCBHandler service.properties DirectReference SKIKeyIdentifier useReqSigCert ... // MessageReceivers and so on And the axis2.xml from the clients context: Timestamp Signature Encrypt client de.nepatec.edocbox.comserver.client.PWCBHandler client.properties DirectReference SKIKeyIdentifier service //xenc:EncryptedData/xenc:CipherData/xenc:CipherValue Timestamp Signature Encrypt de.nepatec.edocbox.comserver.client.PWCBHandler client.properties true ... // normal stuff ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2][Rampart] Get Certificates and keys from a Data base and not from Keystore
Hello, Is it possible to configure Rampart, that the module does not need a Keystore for the crypt Keys and certificates? I want to store certificates in a database, so that rampart can load it from there. I'm nearly sure, that is impossible without customizing the existing rampart module. I'm a little bit confused. I can't find the class which uses the Keystore Objects... Can anybody, who has some experience in rampart, tell me? That will be great! Thanks a lot! ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [axis2] session management fails with invalidServi ceGroupID Exception
Yes, the clients sends the ServiceGroupID, I take a look to the soapmessages. The servers respons looks also good .. soapenv:Sender Invalid Service Group Id urn:uuid:F6AFB3268FA47142F11173882794098 .. But I don't know why I get an nullpointer on Clientside... But that is another problem, and not the reason why I have posted ;) I wonder about this. If only one client uses the Services. The Session on the Server never(!) expired, If no client sends a Message to the services. Client sends its first message: Everything okay, a service Instance is created Client waits longer, than the configured Timeout Clients sends its second message: The same service instance is invoked correctly. Only after the second message, the destroy message is called and all messages send to servers sends a message, that the servicegroupid ist not valid. I seems, that axis first handle the invoking method and after that it checks if a session is run into a timeout. thx Jochen > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 14.03.07 15:12:33 > An: > Betreff: AW: [axis2] session management fails with invalidServiceGroupID > Exception > Jochen, > > my comment in +++> ... <+++ below > > -----Ursprüngliche Nachricht- > Von: Jochen Zink [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 14. März 2007 12:28 > An: axis-user@ws.apache.org > Betreff: Re: [axis2] session management fails with invalidServiceGroupID > Exception > > > I use soapsession scope. > > > I'm sure that every client invokes a creation of a new ServicesClass. I > control it with hashcodes of the instances. Every client talks to another > instance. A single client talks, every method call to is own Service Instance. > > The Timeout on the service is set to 3. > > After the first method call, the Client waits 40seconds before he calls the > next method. > > > > +++> Jochen, can you check that the message sent with the 2nd call of > client#1 which has timed-out still sends the ServiceGroupId? > > also we migth talk about similar not exactly equal problems. > > does your clinet#1 second message look similar like (carry a ServiceGroupID)? > > - > http://www.w3.org/2005/08/addressing/anonymous > - > http://www.w3.org/2005/08/addressing/anonymous > - >xmlns:axis2="http://ws.apache.org/namespaces/axis2";>urn:uuid:AEDE11BE4497D9478F117316759348254 > > > > urn:uuid:AEDE11BE4497D9478F117316759399760 > urn:echo >wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply";>urn:uuid:C1D5F6754451BC782111731675939823 > > > > > if a ServiceGroupID is sent to a timed-out service-object in a ServiceGroup > your initial fault should show up. > > if no ServiceGroupId is sent, that would explain why no fault "invalid > Service Group ID", is raised. > in this case, I would expect that a new ServicegroupID is created and that > the old ServiceGroupID is removed and hence destroy() is called on the first > service-object. is this the case? > > And the question to the developers would remain: is this intended behaviour? > > Josef <+++ > > > > > > The servers log messages are: > init [EMAIL PROTECTED] > openTransferSession [EMAIL PROTECTED] > // Here is the client waiting > closetransferSession [EMAIL PROTECTED] >last touching Time 40031 > > > > As you can see, it is always the same Instance. > > The strange thing is, if I invoke another client, the service Instance of the > first client should be destroyed after the 30 seconds. > > > > > Example: > Client1.firstMethod: > Client1.wait: > Client2.firstMethod: > Know, the destroy Method is invoked > Client 2.wait: > Client1.secondMethod: > > java.lang.NullPointerException > at > org.apache.axis2.context.MessageContext.isHeaderPresent(MessageContext.java:1054) > at > org.apache.axis2.handlers.addressing.AddressingInHandler.invoke(AddressingInHandler.java:72) > at org.apache.axis2.engine.Phase.invoke(Phase.java:382) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522) > at org.apache.axis2.engine.AxisEngine.receiveFault(AxisEngine.java:600) > at > org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationClient.send(RobustOutOnlyAxisOperation.java:99) > at > org.apache.axis2.description.OutInAxisOperationClient.
Re: [axis2] session management fails with invalidServi ceGroupID Exception
> instance your talking to, maybe identify each object by unique hash value or > UUID. > > Josef > > > > > -Ursprüngliche Nachricht- > Von: Jochen Zink [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 14. März 2007 10:40 > An: axis-user@ws.apache.org > Betreff: Re: [axis2] session management fails with invalidServiceGroupID > Exception > > > A big Thank you I don't believe it... in axis2.xml the > ConfigContextTimeout are milliseconds and not seconds like the comment tells. > > But... there is another thing, which I don't understand. > > Know, the ConfigContextTimeout Parameter has the value 3 (30seconds). > > My client invokes the login method, sleeps 6 milliseconds (1min) and > after this wait period, it invokes a second method. It works... but why?! > Normally I think, the session run into a timeout. The client has not touch > the service over a minute and can successfully call a method. ... > > Thanks! > > > > > -Ursprüngliche Nachricht- > > Von: axis-user@ws.apache.org > > Gesendet: 14.03.07 10:19:22 > > An: > > Betreff: AW: [axis2] session management fails with invalidServiceGroupID > > Exception > > > > Hi Jochen, > > > > Maybe you have the same problem then I had. > > For that I have had logged a JIRA and meanwhile it' sfixed. Look at > > > > > > [ > > https://issues.apache.org/jira/browse/AXIS2-1991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > > ] > > > > > > and more in the e-mail thread at > > > > http://marc.theaimsgroup.com/?l=axis-user&m=117316427720305&w=2 > > > > > > I hope for you that it is that easy to fix your problem. > > > > Regards > > Josef > > > > > > > > -Ursprüngliche Nachricht- > > Von: Jochen Zink [mailto:[EMAIL PROTECTED] > > Gesendet: Mittwoch, 14. März 2007 10:01 > > An: axis-user@ws.apache.org > > Betreff: [axis2] session management fails with invalidServiceGroupID > > Exception > > > > > > Hello at all, > > > > I have a session based Webservice with three Methods. A client has 2 > > threads with 2 different clients, which use the webservice. Only the second > > client can invoke more than the first method of the service. > > > > Example: > > Client 1 invoke Method login -> everything okay. > > Client 2 invole Method login -> invoking works fine BUT on the service > > class, that is created by the call of client 1, the destroy method is called > > > > Client 1 invokes method transfer -> The following exception is thrown on > > client side: > > org.apache.axis2.AxisFault: Invalid Service Group Id > > urn:uuid:4489A6CEFA71AF964F1173862161488 > > at > > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271) > > at > > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202) > > at > > de.nepatec.edocbox.comserver.client.DocumentTransferServiceStub.transferDocument(DocumentTransferServiceStub.java:212) > > at de.nepatec.edocbox.comserver.client.Client.run(Client.java:84) > > > > Client 2 invokes Method transfer -> everything okay > > > > > > It seems that only the last instance of the service class is alive. > > > > The service is correct state full. With only one client, all member > > attributes are available over all method calls. > > > > Here is the services.xml: > > > > > > true > > > > > > > > > > > > > > de.nepatec.edocbox.comserver.comchannel.serviceimpl.DocumentTransferServiceSkeleton > > > > > > > > > > > > > > > > > > In the servers axis2.xml addressing module is engaged. > > > > On client side the Sessionmanagement is enabled: > > serviceStub._getServiceClient().getOptions().setManageSession(true); > > > > > > > > I found the same problem in the mailinglist ( > > http://marc.theaimsgroup.com/?t=11628234986&r=1&w=2) but without a > > solution. > > > > Is this a axis2 Bug or did I something wrong? What can I do, to have a > > session based webservice that can handle mutltiple clients? > > > > Thanks for all! > > > >
Re: [axis2] session management fails with invalidServi ceGroupID Exception
A big Thank you I don't believe it... in axis2.xml the ConfigContextTimeout are milliseconds and not seconds like the comment tells. But... there is another thing, which I don't understand. Know, the ConfigContextTimeout Parameter has the value 3 (30seconds). My client invokes the login method, sleeps 6 milliseconds (1min) and after this wait period, it invokes a second method. It works... but why?! Normally I think, the session run into a timeout. The client has not touch the service over a minute and can successfully call a method. ... Thanks! > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 14.03.07 10:19:22 > An: > Betreff: AW: [axis2] session management fails with invalidServiceGroupID > Exception > Hi Jochen, > > Maybe you have the same problem then I had. > For that I have had logged a JIRA and meanwhile it' sfixed. Look at > > > [ > https://issues.apache.org/jira/browse/AXIS2-1991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > ] > > > and more in the e-mail thread at > > http://marc.theaimsgroup.com/?l=axis-user&m=117316427720305&w=2 > > > I hope for you that it is that easy to fix your problem. > > Regards > Josef > > > > -Ursprüngliche Nachricht- > Von: Jochen Zink [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 14. März 2007 10:01 > An: axis-user@ws.apache.org > Betreff: [axis2] session management fails with invalidServiceGroupID > Exception > > > Hello at all, > > I have a session based Webservice with three Methods. A client has 2 threads > with 2 different clients, which use the webservice. Only the second client > can invoke more than the first method of the service. > > Example: > Client 1 invoke Method login -> everything okay. > Client 2 invole Method login -> invoking works fine BUT on the service class, > that is created by the call of client 1, the destroy method is called > > Client 1 invokes method transfer -> The following exception is thrown on > client side: > org.apache.axis2.AxisFault: Invalid Service Group Id > urn:uuid:4489A6CEFA71AF964F1173862161488 > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271) > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202) > at > de.nepatec.edocbox.comserver.client.DocumentTransferServiceStub.transferDocument(DocumentTransferServiceStub.java:212) > at de.nepatec.edocbox.comserver.client.Client.run(Client.java:84) > > Client 2 invokes Method transfer -> everything okay > > > It seems that only the last instance of the service class is alive. > > The service is correct state full. With only one client, all member > attributes are available over all method calls. > > Here is the services.xml: > > > true > > > > > > > de.nepatec.edocbox.comserver.comchannel.serviceimpl.DocumentTransferServiceSkeleton > > > > > > > > > In the servers axis2.xml addressing module is engaged. > > On client side the Sessionmanagement is enabled: > serviceStub._getServiceClient().getOptions().setManageSession(true); > > > > I found the same problem in the mailinglist ( > http://marc.theaimsgroup.com/?t=11628234986&r=1&w=2) but without a > solution. > > Is this a axis2 Bug or did I something wrong? What can I do, to have a > session based webservice that can handle mutltiple clients? > > Thanks for all! > > > > ___ > Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos. > Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=02 > > > - > 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] > > _ In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[axis2] session management fails with invalidServiceGr oupID Exception
Hello at all, I have a session based Webservice with three Methods. A client has 2 threads with 2 different clients, which use the webservice. Only the second client can invoke more than the first method of the service. Example: Client 1 invoke Method login -> everything okay. Client 2 invole Method login -> invoking works fine BUT on the service class, that is created by the call of client 1, the destroy method is called Client 1 invokes method transfer -> The following exception is thrown on client side: org.apache.axis2.AxisFault: Invalid Service Group Id urn:uuid:4489A6CEFA71AF964F1173862161488 at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202) at de.nepatec.edocbox.comserver.client.DocumentTransferServiceStub.transferDocument(DocumentTransferServiceStub.java:212) at de.nepatec.edocbox.comserver.client.Client.run(Client.java:84) Client 2 invokes Method transfer -> everything okay It seems that only the last instance of the service class is alive. The service is correct state full. With only one client, all member attributes are available over all method calls. Here is the services.xml: true de.nepatec.edocbox.comserver.comchannel.serviceimpl.DocumentTransferServiceSkeleton In the servers axis2.xml addressing module is engaged. On client side the Sessionmanagement is enabled: serviceStub._getServiceClient().getOptions().setManageSession(true); I found the same problem in the mailinglist ( http://marc.theaimsgroup.com/?t=11628234986&r=1&w=2) but without a solution. Is this a axis2 Bug or did I something wrong? What can I do, to have a session based webservice that can handle mutltiple clients? Thanks for all! ___ Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos. Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[axis2] Destroing a Session based Webservice
Hello, I have a session based Webservice. The ConfigContextTimeoutInterval Parameter in axis2.xml is set to 30 seconds. A client calls the Service and after 30 seconds, the destroy method is not(!) invoked. The destroy method are only invoked, if another client calls the service. Is there any possibility, to destroy the service automatically after the configured time? Or is it possible to destroy the service manually? If yes, how can this work? Thanks a lot! Regards Jochen ___ Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos. Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: attachments clean-up after a defined time
Hello Manuel, I don't believe that axis2 clean-up the cache Directory by itself. The application has to clean-up the Directory manually. On [1] you can read something about mtom attachments. Inside this article is a short description about filecaching. If axis2 can clean the cache Directory, I don't know how you can enable it. But if it is possible, I want to know, too :). Regards Jochen [1] http://wso2.org/library/264 > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 13.03.07 10:21:50 > An: axis-user@ws.apache.org > Betreff: attachments clean-up after a defined time > Hello, > > when Axis receives attachments they are temporarily written to the hard disk. > After some time they are deleted automatically. Is there a possibility to > define the time to wait until the files are cleaned up? > > Thank you in advance. > > Regards, > Manuel > > > -- > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten > Browser-Versionen downloaden: http://www.gmx.net/de/go/browser > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=0066 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] ArrayIndexOutOfBounds with MTOM and sessio n based Service
Databinding is ADB. But you were right. With file caching it works fine. But I have to set the threshold to less than 400 ... however... it works! Thanks a lot for your fast help! > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 12.03.07 13:06:27 > An: axis-user@ws.apache.org > Betreff: Re: [Axis2] ArrayIndexOutOfBounds with MTOM and session based Service > Ooops... If it is just 27 KB, then I would recommend you to log a bug > in the jira with the necessary info to recreate the problem.. > > Which databinding mechanism are you using... > > Thanks, > Thilina > > On 3/12/07, Jochen Zink <[EMAIL PROTECTED]> wrote: > > Thanks for your answer. I will try filecaching. > > > > The Filesize is 27KB > > > > > -Ursprüngliche Nachricht- > > > Von: axis-user@ws.apache.org > > > Gesendet: 12.03.07 12:39:51 > > > An: axis-user@ws.apache.org > > > Betreff: Re: [Axis2] ArrayIndexOutOfBounds with MTOM and session based > > > Service > > > > > > > What is the size of the attachment you are trying to transfer... If it > > > is large please enable file caching at the server side [1].. > > > Make sure to use the latest Axiom jars when using the File Caching, as > > > they contain major performance improvements and bug fixes over the > > > Axiom 1.2 version.. > > > > > > ~Thilina > > > [1] http://wso2.org/library/264 > > > > > > On 3/12/07, Jochen Zink <[EMAIL PROTECTED]> wrote: > > > > Hallo, > > > > > > > > I have a session based WebService with scope="soapsession". I tried to > > > > send binary data with mtom from a client to the service. > > > > > > > > The client calls three methods: > > > > > > > > openTransferSession(); > > > > transferDocument(); > > > > closeTransferSession(); > > > > > > > > On transferDocument, a binary attachment is sendet with MTOM. > > > > > > > > If I enable MTOM an client side, a ArrayIndexOutOfBounds Exception is > > > > thrown on the Servers MessageReceiver (StackTrace on the end of > > > > message). If I disable MTOM, everythink is okay. No exception is thrown. > > > > > > > > I believe, that I do something wrong on the services wsdl, but I'm not > > > > sure. > > > > > > > > From the wsdl, I generate my Service Sekeleton and the MessageReceiver > > > > and some Types. > > > > > > > > > > > > Does anyone knows, what is wrong? > > > > > > > > Thanks for all! > > > > > > > > > > > > > > > > Here are the wsdl: > > > > > > > xmlns:axis2="http://comchannel.comserver.edocbox.nepatec.de"; > > > > xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; > > > > xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; > > > > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; > > > > xmlns:xmime="http://www.w3.org/2005/05/xmlmime"; > > > > xmlns:ns="http://comchannel.comserver.edocbox.nepatec.de/xsd"; > > > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; > > > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; > > > > > > > > targetNamespace="http://comchannel.comserver.edocbox.nepatec.de";> > > > > > > > > http://www.w3.org/2001/XMLSchema"; > > > > attributeFormDefault="qualified" > > > > elementFormDefault="qualified" > > > > > > > > targetNamespace="http://comchannel.comserver.edocbox.nepatec.de/xsd";> > > > > > > > > > > > namespace="http://www.w3.org/2005/05/xmlmime"; > > > > schemaLocation="xmime.xsd" /> > > > > > > > > > > > > > > > > > > > >
Re: [Axis2] ArrayIndexOutOfBounds with MTOM and sessio n based Service
Thanks for your answer. I will try filecaching. The Filesize is 27KB > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 12.03.07 12:39:51 > An: axis-user@ws.apache.org > Betreff: Re: [Axis2] ArrayIndexOutOfBounds with MTOM and session based Service > What is the size of the attachment you are trying to transfer... If it > is large please enable file caching at the server side [1].. > Make sure to use the latest Axiom jars when using the File Caching, as > they contain major performance improvements and bug fixes over the > Axiom 1.2 version.. > > ~Thilina > [1] http://wso2.org/library/264 > > On 3/12/07, Jochen Zink <[EMAIL PROTECTED]> wrote: > > Hallo, > > > > I have a session based WebService with scope="soapsession". I tried to send > > binary data with mtom from a client to the service. > > > > The client calls three methods: > > > > openTransferSession(); > > transferDocument(); > > closeTransferSession(); > > > > On transferDocument, a binary attachment is sendet with MTOM. > > > > If I enable MTOM an client side, a ArrayIndexOutOfBounds Exception is > > thrown on the Servers MessageReceiver (StackTrace on the end of message). > > If I disable MTOM, everythink is okay. No exception is thrown. > > > > I believe, that I do something wrong on the services wsdl, but I'm not sure. > > > > From the wsdl, I generate my Service Sekeleton and the MessageReceiver and > > some Types. > > > > > > Does anyone knows, what is wrong? > > > > Thanks for all! > > > > > > > > Here are the wsdl: > > > xmlns:axis2="http://comchannel.comserver.edocbox.nepatec.de"; > > xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; > > xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; > > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; > > xmlns:xmime="http://www.w3.org/2005/05/xmlmime"; > > xmlns:ns="http://comchannel.comserver.edocbox.nepatec.de/xsd"; > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; > > targetNamespace="http://comchannel.comserver.edocbox.nepatec.de";> > > > > http://www.w3.org/2001/XMLSchema"; > > attributeFormDefault="qualified" > > elementFormDefault="qualified" > > > > targetNamespace="http://comchannel.comserver.edocbox.nepatec.de/xsd";> > > > > > namespace="http://www.w3.org/2005/05/xmlmime"; > > schemaLocation="xmime.xsd" /> > > > > > > > > > > > > > > > name="fileName" > > type="xs:string" /> > > > name="binaryData" > > > > type="xmime:base64Binary" /> > > > name="fileType" > > type="xs:int" /> > > > > > > > > > > > > > > > > > > > > > nillable="true" > > type="xs:boolean" /> > > > > > > > > > > > > > > > nillable="true" > > type="xs:string" /> > > > > > > > > > >
[Axis2] ArrayIndexOutOfBounds with MTOM and session based Service
Hallo, I have a session based WebService with scope="soapsession". I tried to send binary data with mtom from a client to the service. The client calls three methods: openTransferSession(); transferDocument(); closeTransferSession(); On transferDocument, a binary attachment is sendet with MTOM. If I enable MTOM an client side, a ArrayIndexOutOfBounds Exception is thrown on the Servers MessageReceiver (StackTrace on the end of message). If I disable MTOM, everythink is okay. No exception is thrown. I believe, that I do something wrong on the services wsdl, but I'm not sure. >From the wsdl, I generate my Service Sekeleton and the MessageReceiver and >some Types. Does anyone knows, what is wrong? Thanks for all! Here are the wsdl: http://comchannel.comserver.edocbox.nepatec.de"; xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:xmime="http://www.w3.org/2005/05/xmlmime"; xmlns:ns="http://comchannel.comserver.edocbox.nepatec.de/xsd"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; targetNamespace="http://comchannel.comserver.edocbox.nepatec.de";> http://www.w3.org/2001/XMLSchema"; attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://comchannel.comserver.edocbox.nepatec.de/xsd";> http://www.w3.org/2005/05/xmlmime"; schemaLocation="xmime.xsd" /> http://schemas.xmlsoap.org/soap/http"; style="document" /> http://comchannel.comserver.edocbox.nepatec.de"; /> http://comchannel.comserver.edocbox.nepatec.de"; /> http://comchannel.comserver.edocbox.nepatec.de"; /> http://comchannel.comserver.edocbox.nepatec.de"; /> http://comchannel.comserver.edocbox.nepatec.de"; /> http://schemas.xmlsoap.org/soap/http"; style="document" /> http://comchannel.comserver.edocbox.nepatec.de"; /> http://comchannel.comserver.edocbox.nepatec.de"; /> http://comchannel.comserver.edocbox.nepatec.de"; /> http://comcha
Re: [Axis2] String[] problem
I found the problem. Sorry for the post. I was a little bit stupid. The Service has yoused the wrong messagereceiver. I have not replaced the service.xml by the generated service.xml form wsdl2java thanks a lot! > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 09.03.07 11:52:43 > An: axis-user@ws.apache.org > Betreff: [Axis2] String[] problem > Hello, > > I found no solution for my problem in the archive, therefor I send a new > email. > > I have a simple service with a method String[] logout. > > I generated the wsdl by java2wsdl tool. Relevant part looks okay: > > > > > type="xs:string" /> > > > > > On the client side, I generate the Stub with wsdl2Java. The client Code, > using this stub looks like: > SessionBasedServiceStub.LogoutResponse logoutResponse = serviceStub.logout(); > String[] value = logoutResponse.get_return(); > > get_return(); returns a String[]; > > But the problem is, by calling the logout() method, an exception is thrown: > java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement > return > at > de.nepatec.jzink.webservice.client.SessionBasedServiceStub.fromOM(SessionBasedServiceStub.java:2887) > at > de.nepatec.jzink.webservice.client.SessionBasedServiceStub.logout(SessionBasedServiceStub.java:586) > at de.nepatec.jzink.webservice.client.Client.main(Client.java:38) > Caused by: java.lang.RuntimeException: Unexpected subelement return > at > de.nepatec.jzink.webservice.client.SessionBasedServiceStub$LogoutResponse$Factory.parse(SessionBasedServiceStub.java:1721) > at > de.nepatec.jzink.webservice.client.SessionBasedServiceStub.fromOM(SessionBasedServiceStub.java:2881) > ... 2 more > > The XMLParser does not know the return elements in the return message from > the service: > http://org.apache.axis2/xsd";> > firstString > secondString > > > > What is my fault? Does anyone know, how to return a String[]? > > Thanks a lot! > > > The service.xml: > > .. > > >class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> > > >name="ServiceClass">de.nepatec.jzink.webservice.SessionBasedService > > > > > _ > In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! > Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ___ Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos. Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] String[] problem
Hello, I found no solution for my problem in the archive, therefor I send a new email. I have a simple service with a method String[] logout. I generated the wsdl by java2wsdl tool. Relevant part looks okay: On the client side, I generate the Stub with wsdl2Java. The client Code, using this stub looks like: SessionBasedServiceStub.LogoutResponse logoutResponse = serviceStub.logout(); String[] value = logoutResponse.get_return(); get_return(); returns a String[]; But the problem is, by calling the logout() method, an exception is thrown: java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement return at de.nepatec.jzink.webservice.client.SessionBasedServiceStub.fromOM(SessionBasedServiceStub.java:2887) at de.nepatec.jzink.webservice.client.SessionBasedServiceStub.logout(SessionBasedServiceStub.java:586) at de.nepatec.jzink.webservice.client.Client.main(Client.java:38) Caused by: java.lang.RuntimeException: Unexpected subelement return at de.nepatec.jzink.webservice.client.SessionBasedServiceStub$LogoutResponse$Factory.parse(SessionBasedServiceStub.java:1721) at de.nepatec.jzink.webservice.client.SessionBasedServiceStub.fromOM(SessionBasedServiceStub.java:2881) ... 2 more The XMLParser does not know the return elements in the return message from the service: http://org.apache.axis2/xsd";> firstString secondString What is my fault? Does anyone know, how to return a String[]? Thanks a lot! The service.xml: .. de.nepatec.jzink.webservice.SessionBasedService _ In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2][Rampart] MTOM Attachment secure?
I know that rampart handels the file as binary file. :) That is the reason, why I can not check, that the attachment is also encrypted. If I do not write the Element to the clients config file, I can see, that the file is encrypted. Because, there is no binary stuff inside the message and the file ist transfered correctly. With It looks like, that only the soap message is encrypted and not the attachment. But I'm not sure. I don't know a way to check this. If anybody knows, how can I check, please let me know. Or does anybody know, that rampart encrypted mtom attachments?! Thanks for all > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 08.03.07 15:09:14 > An: axis-user@ws.apache.org > Betreff: Re: [Axis2][Rampart] MTOM Attachment secure? > > The File is transferred correctly. But I'm not sure, that both message > > Parts (the soap >Message and the attachment) are encrypted. Without > > rampart, I can read the XML-File >content in clear text on tcpmon. With > > Rampart and sending the file with Soap With >Attachment, its also clear > > text (Rampart can't secure SWA). Therefore I tried to send the >File with > > mtom. Know, I can't read the xml File. But it doesn't look like an xml > > encryption. > AFAIK rampart will treat your attachment as a binary file.. It'll not > be aware of whether you are sending XML as the attachment... > > ~Thilina > > >If you open a binary file in an text editor, you getan similar > result. I don't know, how I can check that the attachment is really > encrypted. Has anyone an idea, how can I check, or can anyone take a > look to my configuration to check, if mtom attachments are surly > encrypted?? > > > > Here are my service.xml > > > > > > > > > mep="http://www.w3.org/2004/08/wsdl/in-out"; > > > > class="de.nepatec.jzink.webservice.MTOMSampleMessageReceiverInOut" /> > > > > > > de.nepatec.jzink.webservice.RampertFileService > > > > > mep="http://www.w3.org/2004/08/wsdl/in-out";> > > attachment > > > > > > //schemas.xmlsoap.org/wsdl/MTOMServicePortType/AttachmentResponse > > > > > > > > true > > > > > > > > > > > > Timestamp Signature Encrypt > > > > de.nepatec.jzink.webservice.PWCBHandler > > > > service.properties > > > > > > > > > > > > Timestamp Signature Encrypt > > service > > > > de.nepatec.jzink.webservice.PWCBHandler > > > > service.properties > > > > DirectReference > > > > SKIKeyIdentifier > > > > useReqSigCert > > > > > > > > > > > > > > > > And the client configuration > > > > > > > > > > > > Timestamp Signature Encrypt > > client > > > > de.nepatec.jzink.webservice.client.PWCBHandler > > client.properties > > DirectReference > > SKIKeyIdentifier > > service > > > > //xenc:EncryptedData/xenc:CipherData/xenc:CipherValue > > > > > > > > > > > > Timestamp Signature Encrypt > > > > de.nepatec.jzink.webservice.client.PWCBHandler > > client.properties > > > > > > > > > > Thanks for reading! > > > > > > > > > > _ > > Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > > http://smartsurfer.web.de/?mc=100071&distributionid=0066 > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Thilina Gunarathne > WSO2, Inc.; http://www.wso2.com/ > Home page: http://webservices.apache.org/~thilina/ > Blog: http://thilinag.blogspot.com/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > _ In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114 - To unsubsc
[Axis2][Rampart] MTOM Attachment secure?
Hello, I tried to sign and encrypted messages with rampart module 1.1 and axis2 1.1.1. To check, if the messages are really encrypted, I view the soap messages with tcpmon. I'm sending an attachment with MTOM from the client to the service, like the mtom example in axis2. The sending file is a simple xml File. The File is transferred correctly. But I'm not sure, that both message Parts (the soap Message and the attachment) are encrypted. Without rampart, I can read the XML-File content in clear text on tcpmon. With Rampart and sending the file with Soap With Attachment, its also clear text (Rampart can't secure SWA). Therefore I tried to send the File with mtom. Know, I can't read the xml File. But it doesn't look like an xml encryption. If you open a binary file in an text editor, you getan similar result. I don't know, how I can check that the attachment is really encrypted. Has anyone an idea, how can I check, or can anyone take a look to my configuration to check, if mtom attachments are surly encrypted?? Here are my service.xml http://www.w3.org/2004/08/wsdl/in-out"; class="de.nepatec.jzink.webservice.MTOMSampleMessageReceiverInOut" /> de.nepatec.jzink.webservice.RampertFileService http://www.w3.org/2004/08/wsdl/in-out";> attachment //schemas.xmlsoap.org/wsdl/MTOMServicePortType/AttachmentResponse true Timestamp Signature Encrypt de.nepatec.jzink.webservice.PWCBHandler service.properties Timestamp Signature Encrypt service de.nepatec.jzink.webservice.PWCBHandler service.properties DirectReference SKIKeyIdentifier useReqSigCert And the client configuration Timestamp Signature Encrypt client de.nepatec.jzink.webservice.client.PWCBHandler client.properties DirectReference SKIKeyIdentifier service //xenc:EncryptedData/xenc:CipherData/xenc:CipherValue Timestamp Signature Encrypt de.nepatec.jzink.webservice.client.PWCBHandler client.properties Thanks for reading! _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=0066 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Rampert with Axis2, encrypt attachment
Hallo, I'm using axis2 1.1.1 with the rampart module to sign and encrypt the soap messages. I have used the sample 6 from rampart and have done a little change to the example. The service handles a file which is send with swa. To check, if the messages are signed and encrypted I take look to the messages with tcpmon tool. The messages are encrypted, but I can read the attachment as clear text (its an xml document). Is there any option to encrypt the attachment to? My service.xml looks like this: FileService de.nepatec.jzink.webservice.RampertFileService Timestamp Signature Encrypt de.nepatec.jzink.webservice.PWCBHandler service.properties Timestamp Signature Encrypt service de.nepatec.jzink.webservice.PWCBHandler service.properties DirectReference SKIKeyIdentifier useReqSigCert Thanks a lot! __ Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach! Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]