Re: Does Axis2 do anything with WS-Addressing and WS-Policy in WSDLs?
Hi David, WS Policy is the primary configuration mechanism of Apache Rampart which is the WS Security implementation for Axis2. In fact Axis2 stores and presents any policy expressions that are defined in services.xml or service WSDL to any candidate modules for interpreting and enforcing those policy expressions during service deployment and runtime. AFAIK Axis2 Addressing module doesn't support WS Addressing Policy expressions hence any policy expressions regarding WS Addressing don't get processed. This is something which is trivial and easy to implement and I guess we should get this done soon. Cheers, Sanka On Mon, Oct 27, 2008 at 4:12 PM, Karr, David [EMAIL PROTECTED] wrote: If I have a WSDL that references WS-Addressing and WS-Policy, using a policy expression that supposedly makes WS-Addressing required in the message, along with the wsam:Action attribute value, does Axis2 do anything useful with that information? -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
Re: [axis2] 1.4.1 introduce header Transfer-Encoding: chunked
Set the following property in client options object to false. options.setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.TRUE); Cheers, Sanka On Thu, Sep 11, 2008 at 3:28 PM, Bartolomeo Nicolotti [EMAIL PROTECTED]wrote: Hi there, I had a working web service client with axis2-1.4, than I updated to axis2-1.4.1 and it started not even to log to the web service. The web service support tells me to turn off this http header param: Transfer-Encoding: chunked How can I turn this http headr off? Many thanks in advance. Bye - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
Re: org.apache.axis2.AxisFault: Did not understand MustUnderstand header(s):
, 2008 at 4:49 AM, Sanka Samaranayake [EMAIL PROTECTED] wrote: Can you post the request / response SOAP messages ? Sanka On Tue, Jul 22, 2008 at 6:52 PM, Dini Omar [EMAIL PROTECTED] wrote: Does anyone konw how i can resolve this error? Thanks in advance.. org.apache.axis2.AxisFault: Did not understand MustUnderstand header(s): at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at ie.ros.www.schemas.customs.service.sadfile.client.SadFileStub.SadEdifactFile(SadFileStub.java:169) at com.alp.ccs21.soapgw.gw.ToDHLCli.readFiles(ToDHLCli.java:411) at com.alp.ccs21.soapgw.gw.ToDHLCli.run(ToDHLCli.java:197) Here is my configuration wsp:Policy wsu:Id=SigOnly xmlns:wsu= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy; wsp:ExactlyOne wsp:All sp:AsymmetricBinding xmlns:sp= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; wsp:Policy sp:InitiatorToken wsp:Policy sp:X509Token sp:IncludeToken= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient wsp:Policy sp:WssX509V3Token10/ /wsp:Policy /sp:X509Token /wsp:Policy /sp:InitiatorToken sp:RecipientToken wsp:Policy sp:X509Token sp:IncludeToken= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never wsp:Policy sp:WssX509V3Token10/ /wsp:Policy /sp:X509Token /wsp:Policywebservices.soap.aep.signed.stub /sp:RecipientToken sp:AlgorithmSuite wsp:Policy sp:TripleDesRsa15/ /wsp:Policy /sp:AlgorithmSuite sp:Layout wsp:Policy sp:Strict/ /wsp:Policy /sp:Layout sp:OnlySignEntireHeadersAndBody/ /wsp:Policy /sp:AsymmetricBinding sp:Wss10 xmlns:sp= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; wsp:Policy sp:MustSupportRefKeyIdentifier/ sp:MustSupportRefIssuerSerial/ /wsp:Policy /sp:Wss10 sp:SignedParts xmlns:sp= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; sp:Body/ /sp:SignedParts ramp:RampartConfig xmlns:ramp= http://ws.apache.org/rampart/policy; ramp:user257804/ramp:user ramp:encryptionUserservice/ramp:encryptionUser ramp:passwordCallbackClassie.ros.www.schemas.customs.service.sadfile.client.PWCBHandler/ramp:passwordCallbackClass ramp:signatureCrypto ramp:crypto provider=org.apache.ws.security.components.crypto.Merlin ramp:property name=org.apache.ws.security.crypto.merlin.keystore.typeJKS/ramp:property ramp:property name=org.apache.ws.security.crypto.merlin.fileC:\Documents and Settings\702723344\My Documents\alp.workspace\eclipse.workspace\alp.ccs21.webservice.soapgw\keystore\newstore.jks/ramp:property ramp:property name=org.apache.ws.security.crypto.merlin.keystore.passwordnewpass/ramp:property /ramp:crypto /ramp:signatureCrypto /ramp:RampartConfig /wsp:All /wsp:ExactlyOne /wsp:Policy -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/ -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
Re: org.apache.axis2.AxisFault: Did not understand MustUnderstand header(s):
Can you post the request / response SOAP messages ? Sanka On Tue, Jul 22, 2008 at 6:52 PM, Dini Omar [EMAIL PROTECTED] wrote: Does anyone konw how i can resolve this error? Thanks in advance.. org.apache.axis2.AxisFault: Did not understand MustUnderstand header(s): at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at ie.ros.www.schemas.customs.service.sadfile.client.SadFileStub.SadEdifactFile(SadFileStub.java:169) at com.alp.ccs21.soapgw.gw.ToDHLCli.readFiles(ToDHLCli.java:411) at com.alp.ccs21.soapgw.gw.ToDHLCli.run(ToDHLCli.java:197) Here is my configuration wsp:Policy wsu:Id=SigOnly xmlns:wsu= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy; wsp:ExactlyOne wsp:All sp:AsymmetricBinding xmlns:sp= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; wsp:Policy sp:InitiatorToken wsp:Policy sp:X509Token sp:IncludeToken= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient wsp:Policy sp:WssX509V3Token10/ /wsp:Policy /sp:X509Token /wsp:Policy /sp:InitiatorToken sp:RecipientToken wsp:Policy sp:X509Token sp:IncludeToken= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never; wsp:Policy sp:WssX509V3Token10/ /wsp:Policy /sp:X509Token /wsp:Policywebservices.soap.aep.signed.stub /sp:RecipientToken sp:AlgorithmSuite wsp:Policy sp:TripleDesRsa15/ /wsp:Policy /sp:AlgorithmSuite sp:Layout wsp:Policy sp:Strict/ /wsp:Policy /sp:Layout sp:OnlySignEntireHeadersAndBody/ /wsp:Policy /sp:AsymmetricBinding sp:Wss10 xmlns:sp= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; wsp:Policy sp:MustSupportRefKeyIdentifier/ sp:MustSupportRefIssuerSerial/ /wsp:Policy /sp:Wss10 sp:SignedParts xmlns:sp= http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; sp:Body/ /sp:SignedParts ramp:RampartConfig xmlns:ramp= http://ws.apache.org/rampart/policy; ramp:user257804/ramp:user ramp:encryptionUserservice/ramp:encryptionUser ramp:passwordCallbackClassie.ros.www.schemas.customs.service.sadfile.client.PWCBHandler/ramp:passwordCallbackClass ramp:signatureCrypto ramp:crypto provider=org.apache.ws.security.components.crypto.Merlin ramp:property name=org.apache.ws.security.crypto.merlin.keystore.typeJKS/ramp:property ramp:property name=org.apache.ws.security.crypto.merlin.fileC:\Documents and Settings\702723344\My Documents\alp.workspace\eclipse.workspace\alp.ccs21.webservice.soapgw\keystore\newstore.jks/ramp:property ramp:property name=org.apache.ws.security.crypto.merlin.keystore.passwordnewpass/ramp:property /ramp:crypto /ramp:signatureCrypto /ramp:RampartConfig /wsp:All /wsp:ExactlyOne /wsp:Policy -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
Re: [Axis2] endpoint domain
On Thu, May 29, 2008 at 9:58 PM, Jack Sprat [EMAIL PROTECTED] wrote: The domain of my WSDL endpoint location is being overlaid with an IP address when retrieving the WSDL using the ?wsdl parameter. The location looks like this in the WSDL: soap:address location= https://www.mydomain.com/mycontext/services/MyService; / but appears like this when accessing with the ?wsdl parameter: soap:address location=http://4.4.4.63:80/mycontext/services/MyService/ I have the useOriginalWSDL parameter set to true in the services.xml file. Will setting the modifyUserWSDLPortAddress parameter to false prevent this? Yes, If you set that parameter to false, it will not modify the port addresses of the provided WSDL Sanka Thanks, T. -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
Re: Help Axis Fault
Hi Marc, Please find my comments inlined. Marc Lefebvre wrote: I have axis2 installed within Tomcat on Apache. I have SoapUI to test the Webservice, and Im trying to get some errors or faults to come back and I am getting nothing accept an HTTP message that says: HTTP/1.1 202 Accepted I guess the operation of your Web service to which you are sending the request is In-Only type. That is if there is a fault raised at the server-side during the invocation of that operation, that fault will not be communicated back as a SOAP fault. However you should get a HTTP/1.1 500 Internal Server Error instead in such case which is not happening. Please raise a JIRA so that we can track and fix it. Thanks Regards, Sanka I get this no matter what I send on INPUT only messages. When i check the TOMCAT LOG, I see all the faults showing up there, but nothing is being sent back to me. What am I doing wrong? Is Axis, or Tomcat not setup properly? THIS ONLY applies to Soap Messages that are INPUT only on the WSDL. Messages that are INPUT/OUTPUT, I get the errors fine. How do I get the faults for messages that are only INPUT? Should I make all my messages INPUT/OUTPUT by default? Help!! __ Marc Lefebvre, Principle Software Engineer Akimeka, 1305 N. Holopono Street, Kihei, HI 96753 Phone: (808)442-7168, Email: [EMAIL PROTECTED] echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 1.4 incorrect wsdl with policy
If you want to attach a policy to a particular binding you should do that in the services.xml as follows. service wsp:PolicyAttachment xmlns:wsp= http://schemas.xmlsoap.org/ws/2004/09/policy; wsp:AppliesTo policy-subject identifier=binding:soap11 / policy-subject identifier=binding:soap12 / /wsp:AppliesTo wsp:Policy wsu:Id=UToverHTTP ... ... /wsp:Policy /wsp:PolicyAttachment /service HTH Sanka On Sun, May 4, 2008 at 2:48 PM, jason zhang [EMAIL PROTECTED] wrote: Hi, all I am using axis2 1.4 with rampart 1.4 RC1. My services.xml is like this -- ?xml version=1.0 encoding=UTF-8? serviceGroup service name=programws ... wsp:Policy wsu:Id=UToverHTTP xmlns:wsu= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy; xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; /wsp:Policy /service /serviceGroup Then I retrieve the generated wsdl from web interface ( http://localhost:8080/cmdportal1/services/programws?wsdl) My wsdl is like this - ?xml version=1.0 encoding=UTF-8? wsdl:definitions wsp:Policy xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy; xmlns:wsu= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utilit y-1.0.xsd wsu:Id=UToverHTTP ... /wsp:Policy wsdl:documentationprogramws/wsdl:documentation wsdl:types ... wsdl:types /wsdl:definitions Should the policy element be the first element of wsdl:binding? thanks -jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
Re: [Axis2] 1.4 RC3
On Sun, Mar 30, 2008 at 4:15 PM, Davanum Srinivas [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I've posted the RC3 here: http://people.apache.org/~dims/axis2-1.4/RC3/http://people.apache.org/%7Edims/axis2-1.4/RC3/ Notes: - - There's a text file with revision numbers that i used for all the SNAPSHOTS - - There's a m2-repo.zip with all the m2 artifacts - - There's an online repo as well ~ http://people.apache.org/~dims/axis2-1.4/RC3/m2-repo/http://people.apache.org/%7Edims/axis2-1.4/RC3/m2-repo/ Please kick the tires and raise JIRA's. Thanks, dims PS: I haven't cut the 1.4 branch as there's a significant patch from Sanka that needs to be merged again and tested thoroughly. Please see - https://issues.apache.org/jira/secure/attachment/12378951/axis2-3675_and_3677.patch Thanks Sanka -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) iD8DBQFH729IgNg6eWEDv1kRAo8JAKCJ2YcxQNNELaTMxk67oQLu/rUQfACgwxH+ NIpk5zeJ9ayU/TAGInv/QZc= =tYV5 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
Re: Policy driven code generation problem Axis v1.3
Hi Pete, I think the namespace declaration in your WSDL should change from xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy/; to xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy; Cheers, --Sanka Pete wrote: Anyone have any ideas? Attached are the wsdl and related policy documents as requested. Thx again! -P Hello, Can someone say if the Axis2 v1.3 code generator (eclipse plugin) supports WS-Policy 1.2? Or just 1.5? Or ? I can't get Axis 2 to generate the stubs with any policy code, this was for policy v1.2... I did try to change the name space definition for policy in the WSDL to v1.5 to see if that would cause it to do anything different, but that didn't do anything. I also removed a non standard policy element, that did not change the behavior either. No errors/warnings, etc... (Using eclipse plugin v1.3) Thanks for any assistance! -P Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.4/1227 - Release Date: 1/16/2008 1:40 AM -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2]About WS-Policy support
Hi Kokie, In the current version of Axis2, the WS-Policy support is limited to single policy alternative scenarios. That is if the policy that is attached to Axis2 service contains multiple alternatives, it will pick the first and ignore the others. However if there is a strong use case of supporting multiple alternatives it can think of implementing it in the next version. Cheers, Sanka kokie wrote: The tool is actually a UDDI center.What I need first is to invoke web services on an AXIS2+TOMCAT server with many policy support like WS-Security,WS-Reliable Messaging,etc.Now the samples AXIS2 supply is limited,so I need to know HOW and TO WHICH DEGREE the Axis2 support the WS-Policy specification. Thanks,Sanka. Another question,can the WSDL4J read a wsdl file with policy information in it? On 1/14/08, *Sanka Samaranayake* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Jan 14, 2008 12:54 PM, kokie [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Great!The examples works.But they are all about the security policy. I'm tring to working out a general tool which should deal with all the policy Axis2 support. If you can explain the function of the tool which you are planning to implement, I might be able to provide you some useful hints. Cheers, --Sanka 在08-1-14,*Sanka Samaranayake* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 写道: You might be interested in trying out the following samples[1] Cheers, --Sanka [1]https://svn.apache.org/repos/asf/webservices/rampart/trunk/java/modules/rampart-samples/ kokie wrote: Dear, Axis2's great project! I'm using it developing web service with policy support. You metioned in the document http://ws.apache.org/axis2/1_3/WS_policy.html http://ws.apache.org/axis2/1_3/WS_policy.html that axis2 *fully supports WS Policy at client-side,* so could axis give an example like codegen a stub against a WSLD which contains policies or else? Thanks in advance. Best wishes. -- 绯村剑心 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.13/1213 - Release Date: 1/7/2008 9:14 AM -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- 绯村剑心 -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://sankas.blogspot.com/ http://www.wso2.org/ http://www.wso2.org/ -- 绯村剑心 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.9/1238 - Release Date: 1/22/2008 8:12 PM -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Policy driven code generation problem Axis v1.3
Pete wrote: Hello, Can someone say if the Axis2 v1.3 code generator (eclipse plugin) supports WS-Policy 1.2? Or just 1.5? Or ? Currently Axis2 support only WS-Policy 1.2 version. Both 1.2 and 1.5 version will be supported in (next) Axis2-1.4 release. Based on some info that Anne previously offered, it seems that I can't get Axis 2 to generate the stubs (ADB) with the necessary policy code, this was for policy v1.2... I did try to change the name space definition for policy in the WSDL to v1.5 to see if that would cause it to do anything different, but that didn't do anything. I also removed a non standard policy element, that did not change the behavior either. Any policy expressions which belong to 1.5 namespace will be ignored in code generation process. That is because policy expressions are recognized as qnames, policy expression of a 1.5 namespace would just be a qname of an unknown namespace. HTH Sanka No errors/warnings, etc... (Using eclipse plugin v1.3) Thanks for any assistance! -P The input policy is: The WSDL is: The description of enumerated value is listed as follows :-- 1. CALENDAR-OK value-- http://SYSD/CICS/XML3/XMLPC003?Request=PolicyTemplate=TMCALN04Type=Input/http://SYSD/CICS/XML3/XMLPC003?Request=PolicyTemplate=TMCALN04Type=Output/http://SYSD/CICS/XML/XMLPC000/ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2]About WS-Policy support
You might be interested in trying out the following samples[1] Cheers, --Sanka [1]https://svn.apache.org/repos/asf/webservices/rampart/trunk/java/modules/rampart-samples/ kokie wrote: Dear, Axis2's great project! I'm using it developing web service with policy support. You metioned in the document http://ws.apache.org/axis2/1_3/WS_policy.html that axis2 *fully supports WS Policy at client-side,* so could axis give an example like codegen a stub against a WSLD which contains policies or else? Thanks in advance. Best wishes. -- 绯村剑心 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.13/1213 - Release Date: 1/7/2008 9:14 AM -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2]About WS-Policy support
On Jan 14, 2008 12:54 PM, kokie [EMAIL PROTECTED] wrote: Great!The examples works.But they are all about the security policy. I'm tring to working out a general tool which should deal with all the policy Axis2 support. If you can explain the function of the tool which you are planning to implement, I might be able to provide you some useful hints. Cheers, --Sanka 在08-1-14,Sanka Samaranayake [EMAIL PROTECTED] 写道: You might be interested in trying out the following samples[1] Cheers, --Sanka [1]https://svn.apache.org/repos/asf/webservices/rampart/trunk/java/modules/rampart-samples/ kokie wrote: Dear, Axis2's great project! I'm using it developing web service with policy support. You metioned in the document http://ws.apache.org/axis2/1_3/WS_policy.html that axis2 *fully supports WS Policy at client-side,* so could axis give an example like codegen a stub against a WSLD which contains policies or else? Thanks in advance. Best wishes. -- 绯村剑心 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.13/1213 - Release Date: 1/7/2008 9:14 AM -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- 绯村剑心 -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
Re: How to engage a module in client
Hi, Did you add addressing mar to your class path ( If not you should add it ..) Best, --Sanka On Jan 9, 2008 10:44 AM, asd [EMAIL PROTECTED] wrote: i am an newbie to axis2. i had writen a simple program using SOAP with axis2,it work fine. then,i alert the client code a litte to like below: // client = new ServiceClient(); client.engageModule( Constants.MODULE_ADDRESSING); client.setOptions( options); OMElement result = client.sendReceive( methodE); //. sometheing wrong occure. the exception lists: org.apache.axis2.AxisFault: Unable to engage module : addressing at org.apache.axis2.client.ServiceClient.engageModule( ServiceClient.java:339) at net.asd.study.soa.axiom.client.SayHelloClient.testRESTSayAXIOMHello( SayHelloClient.java:107) at net.asd.study.soa.axiom.client.SayHelloClient.main( SayHelloClient.java:130) i google for the issue,and find that need add address module into my configure. but i do not know the detail way to do this. and all of my client configuration was a simple java class with some corresponded jar in my class path.i did not find a configuration to addin modules. can some friends help me how to confirue this in client, thanks a lot. - 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/
Re: How to engage a module in client
try, stub.engageModule(addressing); --Sanka On Jan 9, 2008 11:52 AM, asd [EMAIL PROTECTED] wrote: thanks at first. i had added %AXIS2_HOME%/repository/modules into my classpath variable,but it ran with the same exception:Unable to engage module. it is so sad. On 1/9/08, Sanka Samaranayake [EMAIL PROTECTED] wrote: Hi, Did you add addressing mar to your class path ( If not you should add it ..) Best, --Sanka On Jan 9, 2008 10:44 AM, asd [EMAIL PROTECTED] wrote: i am an newbie to axis2. i had writen a simple program using SOAP with axis2,it work fine. then,i alert the client code a litte to like below: // client = new ServiceClient(); client.engageModule( Constants.MODULE_ADDRESSING); client.setOptions( options); OMElement result = client.sendReceive ( methodE); //. sometheing wrong occure. the exception lists: org.apache.axis2.AxisFault: Unable to engage module : addressing at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java :339) at net.asd.study.soa.axiom.client.SayHelloClient.testRESTSayAXIOMHello( SayHelloClient.java:107) at net.asd.study.soa.axiom.client.SayHelloClient.main(SayHelloClient.java :130) i google for the issue,and find that need add address module into my configure. but i do not know the detail way to do this. and all of my client configuration was a simple java class with some corresponded jar in my class path.i did not find a configuration to addin modules. can some friends help me how to confirue this in client, thanks a lot. - 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] -- Sanka Samaranayake WSO2 Inc. http://www.bloglines.com/blog/sanka http://www.wso2.org/
Re: [Axis2] WS-Policy on an operation level in services.xml
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/
Re: [Axis2] Policy-driven code generation
Hi, It seems to be broken in latest codebase which is need to be fixed before Axis2-1.2 release. Please log a JIRA and I will follow up. Thanks, Sanka On 3/28/07, Angel Todorov [EMAIL PROTECTED] wrote: Hi, I have seen policy-driven code generation as a feature of Axis2, but I couldn't get it to work properly. Is this feature currently supported in Axis2 ? If yes, where can I find a sample demonstrating it? What I assume it means, is to have a policy (let's say UsernameToken auth) in my WSDL, and when I run wsdl2java, I would like to have the rampart module automatically engaged in the generated stubs, and most of the setups of the module - auto generated. To sum it up: 1) given a WSDL with policy definitions in it 2) run wsdl2java 3) the tool generates code in the stub that activates the policy Thanks. Regards, Angel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
Re: Axis2 JMS samples?
At the moment I am doing some preparations of sample proposed in the JIRA. I will commit it shortly. Thanks, Sanka On 3/23/07, Thilina Gunarathne [EMAIL PROTECTED] wrote: Please find the JMS sample attached to the https://issues.apache.org/jira/browse/AXIS2-1909 Yes.. We need to get this in to 1.2 release.. ~Thilina On 3/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Try the following steps.(All these are mentioned in the url you mentioned, but check see if you have missed anything ;-) ) 1.Download start ActiveMQ from apache.(Do not change default ports) 2.Open AXIS2_HOME/conf/axis2.xml 3.Uncomment transport receiver part for JMS. i.e. section starting with... transportReceiver name=jms 4.Uncomment line setting transport sender for JMS. i.e. line starting with transportSender name=jms 5.Start Axis Server by running AXIS2_HOME/bin/axis2server.(bat|sh) (If you get a binding exception,change the port of axis server) 6.Type 'jconsole' on a new command/shell window. (i.e. assuming your using jdk 1.5 JAVA_HOME/bin is in your path) 7.This will open up a GUI. 8.On left hand side of the UI check for jms queues created with service names you have deployed under axis2. 9.Once the queues are there(this means the link between the axis server JMS server is established),change you client code with following. String url = jms:/ABCDE?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactoryjava.naming.factory.initial= org.apache.activemq.jndi.ActiveMQInitialContextFactoryjava.naming.provider.url=tcp://localhost:61616 ; //Replace ABCDE with you service name. //and add following property to client options.setProperty(Constants.Configuration.TRANSPORT_URL, url); 10.Add ACTIVEMQ_HOME/lib/*.jar to classpath run the client. Good luck! Happy messaging with JMS ;-) /sumedha Are there any samples for JMS with Axis2. Also can some one point some useful links on this topic. I could not find anything other than the http://ws.apache.org/axis2/1_1_1/jms-transport.html Axis2/Java - JMS transport. Thanks Nishant -- View this message in context: http://www.nabble.com/Axis2-JMS-samples--tf3449408.html#a9621016 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
Re: Custom Message Receiver use cases
Hi, You don't necessarily have to have 1:1 operation mapping. You are free to create the response message (if there is a response) any way you want, may be using few library functions. The easy way to write a custom MessageReceiver is to extends one of the abstract MessageReceivers depending on your requirements. You can construct the response the way you want and set it in out MessageContext. Hope this will help .. Sanka On 1/13/07, Angel Todorov [EMAIL PROTECTED] wrote: Hi Paul, I've read this doc: http://ws.apache.org/axis2/1_1/spring.html And I can see the integration with Spring uses the default Axis2 RawXMLINOutMessageReceiver. I get what you're saying but can't see anywhere a custom Spring message receiver. In the document above, one doesn't avoid having 1:1 operation - java method mapping - i.e one still generates java code that wraps around existing functionality and that can be otherwise avoided. Is that correct? Thanks. Regards, Angel On 1/13/07, Paul Fremantle [EMAIL PROTECTED] wrote: Two points: 1) the ability to plug in custom message receivers is to handle the cases where you want to enable a whole class of services. For example, the Spring message receiver allows any Spring bean to be exposed. Another example is an EJB session bean message receiver that enables EJB session beans to be exposed. To do this with the existing message receivers would mean each user writing the code to handle Spring or EJB calls. (Which is ok, but not so nice). 2) WSDL2Java generates custom message receivers because they are slightly more efficient than the dynamic approach taken by the RPC message receiver. Paul On 1/13/07, Angel Todorov [EMAIL PROTECTED] wrote: Hi , Well i was thinking that , assuming the RPC Message Receiver is inadequate for more complex input and output datatypes , we are only left with the RAW XML Message receivers, which assume that one has a compiled java class with a method parameter signature accepting OMElement and returning an OM Element, and a method name which should be *the same* as the name of the operation name. (at least that can be seen from the RawXML MessageReceiver implementations in Axis2, more specifically in the findOperation impl). So maybe if I don't want to restrict my java impl classes to have the same method names as the operation names , I should write a custom Message Receiver. Can anyone clarify this point? Thanks. Best Regards, Angel On 1/13/07, Comain Chen [EMAIL PROTECTED] wrote: To give the user freedom to decide their own Databinding techniques? Also I have this doubt, why does the codegen module generate MessageReceiver for each Service, not let the binding framework write a general messageReceiver for all services? On 1/13/07, Angel Todorov [EMAIL PROTECTED] wrote: Hi Axis2 developers, I am interested to know what is the motivation behind using custom message receivers? For example, if I want to invoke non-java operations, I can have a helper Java class which manages all this logic, and still be invoked by one of the existing message receivers, such as the raw XML message receivers. Thanks very much for your feedback in advance. Regards, Angel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regrads, Comain Chen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/