Re: [Axis2]MessageContext
Options you set to message context in the client side will not be available to you in the server side. But if you can get hold to some of the HTTP transport properties, by retrieving them from the options. If you wanna send some props from client side, you might wanna consider putting them as headers in the request SOAP message. -- Chinthaka Smirnova, Natalya wrote: > Hi, > Thank you for your advance. > But my MessageContext in my handler is still empty :-(. > I simple add some property to Options object on client side, set this > option to sender and send. > MessageContext does not contain my property. > > > Best regards,Natalya Smirnova. > MERA NN /EMA/custom software > > > -Original Message- > From: robert lazarski [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 21, 2006 12:21 AM > To: axis-user@ws.apache.org > Subject: Re: [Axis2]MessageContext > > First of all, try a nightly as the new release is almost ready, as > there were problems here since fixed: > > http://people.apache.org/dist/axis2/nightly/axis2-1.1-SNAPSHOT.war > http://people.apache.org/dist/axis2/nightly/axis2-1.1-SNAPSHOT.zip > > Looks like the current way the client sends out basic auth info is the > following - change to match your env: > > OMElement payload = TestingUtils.createDummyOMElement(); > /** > * Proxy setting in runtime > */ > HttpTransportProperties.ProxyProperties proxyproperties = new > HttpTransportProperties.ProxyProperties(); > proxyproperties.setProxyName("localhost"); > proxyproperties.setProxyPort(); > proxyproperties.setDomain("anonymous"); > proxyproperties.setPassWord("anonymous"); > proxyproperties.setUserName("anonymous"); > > Options options = new Options(); > options.setProperty(HTTPConstants.PROXY, proxyproperties); > options.setTo(targetEPR); > options.setTransportInProtocol(Constants.TRANSPORT_HTTP); > ServiceClient sender = new ServiceClient(); > sender.setOptions(options); > > OMElement result = sender.sendReceive(payload); > > Since these params are probably in the http headers, you'll probably > need a handler to access them. The following code example is from axis > 1.x but is close enough to start with - > HTTPConstants.HEADER_AUTHORIZATION is still there, for example: > > http://koders.com/java/fidDCB769581B5FB55A16B0B191DEB229F79B8CB9E2.aspx > > See the migration guide for getting the above handler to work in axis2: > > http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/xdocs/1_1/m > igration.html > > HTH, > Robert > > On 10/20/06, Smirnova, Natalya <[EMAIL PROTECTED]> wrote: >> >> >> >> Hi, >> >> >> >> How I can get user name and password from MessageContext class object? >> >> I use Axis2 release 1.0. I write custom module and handler. It work >> correctly. >> >> On client side I set username and password into options properties and > send. >> >> >> Options options = new Options(); >> >> options.setTransportInProtocol(Constants.TRANSPORT_HTTP); >> >> >> >> HttpTransportProperties.ProxyProperties >> basicAuthentication = new HttpTransportProperties().new > ProxyProperties(); >> basicAuthentication.setUserName("admin"); >> >> basicAuthentication.setPassWord("axis2"); >> >> >> > options.setProperty(org.apache.axis2.transport.http.HTTPConstants.PROXY, >> basicAuthentication); >> >> options.setTo(targetEPR); >> >> >> >> ServiceClient serviceClient = new ServiceClient(); >> >> serviceClient.setOptions(options); >> >> >> >> >> >> >> >> But on service side in handler my message context is empty. >> >> >> >> Thank you >> >> >> >> >> >> Best regards,Natalya Smirnova. >> >> MERA NN /EMA/custom software >> >> > > - > 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] > > signature.asc Description: OpenPGP digital signature
Re: [Axis2] ServiceClient question
To stop the listner yourself you will have to call the following method as well.configurationContext.getListenerManager().stop();ChamikaraOn 10/24/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote: Hi Michele;Yes , cleanup is enough.Note : when you are creating service client if you pass your ownconfigctx , then it will not stop the started listeners , but if youcreate that with default constructor it does. ThanksDeepal>Hi all,>>what should I use instead of the ServiceClient.finalizeInvoke() call>(which I guess has been removed)? Is the cleanup() call enough?>>Thanks, >Michele>>->To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED]>--Thanks,Deepal ~Future is Open~-To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Service interface question
Hi Michele; yes , we removed that interface and provide an easy way to access message context in side the service impl class. What you have to do is call MessageContext.getCurrentContext(); It will give you the message context you want to access. >Hi all, > >after a few weeks I've updated my axis2 libs and I've found out that >the Service interface has been removed while a new one has been added >(ServiceLifeCycle). Unfortunately the new interface does not provide >any facility to obtain the operation/message context (i.e. the old >setOperationContext method). Is there any workaround for this problem? > > >Thanks in advance, >Michele > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] ServiceClient question
Hi Michele; Yes , cleanup is enough. Note : when you are creating service client if you pass your own configctx , then it will not stop the started listeners , but if you create that with default constructor it does. Thanks Deepal >Hi all, > >what should I use instead of the ServiceClient.finalizeInvoke() call >(which I guess has been removed)? Is the cleanup() call enough? > >Thanks, >Michele > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Thanks, Deepal ~Future is Open~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Adding custom MSMQ transport to AXIS2
Hi, I was wondering if anyone has used MSMQ (Microsoft Message Queue) as a custom transport for Axis2, where it is not running on a Windows server? (Its going to be on a Solaris box). thanks, Anthony. -- - Anthony Bull Senior Developer Black Coffee Software Ltd Level 13, Compudigm House, 49 Boulcott Street PO Box 10-192 The Terrace Wellington, New Zealand [EMAIL PROTECTED] Ph +64 4 472 8818 Fax +64 4 472 8811 Mob +64 021 303 692 - www.bcsoft.co.nz --- This email may contain confidential or privileged information, and is intended for use only by the addressee, or addressees. If you are not the intended recipient please advise the sender immediately and do not copy, use or disclose the contents to any other person or organisation. Black Coffee Software Ltd accepts no responsibility for viruses received with this email, or to any changes made to the original content. Any views or opinions expressed in this email may be personal to the sender and are not necessarily those of Black Coffee Software Ltd. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invoking java classes with a Perl client
I'm stuck and endless googling is leading me to no success. I'm trying to use Perl's SOAP::Lite to talk to an Axis web service. I've got a new method that I want to add to my service implementation that accepts an object as its sole argument, and what I need to do is instantiate that object on the client, but I can't figure out how to make it all happen. Here's the relevant service method: public void testTakeRequest(Request request) { System.out.println("Request: " + request); } And the snippet from the deploy.wsdd: Here's the entirety of the Perl client: use strict; use warnings; use Data::Dumper qw(Dumper); use SOAP::Lite (dispatch_from => 'Request', uri => 'urn:Request', proxy => $ENV{'PBQS_PROXY_URL'}, trace => 'debug'); my $r = Request->new(); $r->isApproved(1); print Dumper($r); But the problem is that I'm getting "No such operation 'new'" errors. I can't figure out if I've got problems with my namespace or what. Here's how my request gets serialized: Accept: text/xml Accept: multipart/* Accept: application/soap Content-Length: 436 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://packagebuild.company.com/Request#new"; http://www.w3.org/2001/XMLSchema-instance"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>http://packagebuild.company.com/Request"; xsi:nil="true" /> I'm not sure if including the full body of my Axis-generated WSDL is going to help, so I'll refrain from posting that here until/unless someone asks for it. BTW, if you're wondering why I don't e-mail the SOAP::Lite developer's list, it's because that list appears to be pretty much dead for all intents and purposes, so I'm hoping that one of you might have a clue what I'm doing wrong (other than using Perl--can't do anything about that given the huge mass of legacy code with which I'm trying to integrate). -dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UTF-8 or other codepage in Axis 1.4 response
change the encoding attribute in your server-config.wsdd dobrzy szansa, Martin- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "Filozof71" <[EMAIL PROTECTED]> To: Sent: Monday, October 23, 2006 7:01 PM Subject: UTF-8 or other codepage in Axis 1.4 response > Hello, > > I use Axis 1.4 on Java 1.3 platform. I obtain the response from backend > system tah is encoded using UTF-8. In logs I can see that polish national > characters are correctly encoded. When response is sent by Axis to the > client these charactrs become endoed in HTML manner eg. > Ń > > My question is where can I configure how Axis encodes responses. What if I > wanted use another codepage, not utf-8 but eg. ISO8859_2 ? > > sincerely Olek > Polsoft, Poznan, Poland > > > > -- > Jestes kierowca? To poczytaj! >>> http://link.interia.pl/f199e > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
UTF-8 or other codepage in Axis 1.4 response
Hello, I use Axis 1.4 on Java 1.3 platform. I obtain the response from backend system tah is encoded using UTF-8. In logs I can see that polish national characters are correctly encoded. When response is sent by Axis to the client these charactrs become endoed in HTML manner eg. Ń My question is where can I configure how Axis encodes responses. What if I wanted use another codepage, not utf-8 but eg. ISO8859_2 ? sincerely Olek Polsoft, Poznan, Poland -- Jestes kierowca? To poczytaj! >>> http://link.interia.pl/f199e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AXIS code generation
we have an ant java2wsdltask -- dims On 10/23/06, James Roper <[EMAIL PROTECTED]> wrote: Hi, I'm about to start a webservices project, and would like to use Apache Axis. Reading through the documentation, I'm not exactly clear on how I would go about turning a class into a webservice. We consider it bad practice to check any generated code into CVS, so we want to be able to build everything using ant. We have a nightly build server, and we cut releases from those builds. Ideally, this is the way I'd like to use a webservices ant task: Is it possible to do this or something similar using Apache Axis? The only way I can see to generate a WSDL is using the ecilpse plugin. Thankyou for your help, James Roper Software Engineer Computer Sciences Corporation Level 3, Tower A 26 Talavera Road, Macquarie Park NSW 2113 Phone: +61 2 9034 3541 Email: [EMAIL PROTECTED] This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AXIS code generation
Hi, I'm about to start a webservices project, and would like to use Apache Axis. Reading through the documentation, I'm not exactly clear on how I would go about turning a class into a webservice. We consider it bad practice to check any generated code into CVS, so we want to be able to build everything using ant. We have a nightly build server, and we cut releases from those builds. Ideally, this is the way I'd like to use a webservices ant task: Is it possible to do this or something similar using Apache Axis? The only way I can see to generate a WSDL is using the ecilpse plugin. Thankyou for your help, James Roper Software Engineer Computer Sciences Corporation Level 3, Tower A 26 Talavera Road, Macquarie Park NSW 2113 Phone: +61 2 9034 3541 Email: [EMAIL PROTECTED] This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
Re: [Axis2] MEP for broadcasting and multicasting
The Muse project has an implementation of WS-Notification 1.3, which is another alternative. The sample project in the tutorial shows two WSN-based endpoints - one producer and one consumer - and a test client that starts the pub-sub interaction between them. http://ws.apache.org/muse/docs/2.0.0/tutorial/index.html If you want to do non-pub-sub broadcasting you would change the producer so that it sends out messages directly instead of relying on the subscription manager. The NotificationConsumerClient can help you do that. http://ws.apache.org/muse/docs/2.0.0/javadoc/org/apache/muse/ws/notification/remote/NotificationConsumerClient.html Dan Dan Jemiolo IBM Corporation Research Triangle Park, NC +++ I'm an engineer. I make slides that people can't read. Sometimes I eat donuts. +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOAP and Session
Sounds good. Thanks Robert. I will have a closer look into the http://www.braziloutsource.com/wss2.html, since I don't see any built-in mechanism to do what I want to do in Axis2 itself. Gul -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 3:45 PM To: axis-user@ws.apache.org Subject: Re: SOAP and Session As stated its 'roll your own', an idea borrowed from other users on this list over the years. It does indeed however control an axis2 login session, expires it, validates it etc . Axis2 itself AFAIK has no way of storing login state in between server shutdowns etc, nor does it have anything AFAIK that allows the user the contol the session without a handler. Some single sign-on ideas like CAS can do that, but the link shows somthing much simpler. Just an idea - feel free to ignore it. Robert On 10/23/06, Gul Onural <[EMAIL PROTECTED]> wrote: > I had a quick look into the link below. But I don't think it provides > any information (or mechanism) to associate an axis2 session with a > userId/password. > The question is if there is a way to get the axis2 server side to > store session information along with the userid and password. > > > > > -Original Message- > From: Spies, Brennan [mailto:[EMAIL PROTECTED] > Sent: Monday, October 23, 2006 3:29 PM > To: axis-user@ws.apache.org > Subject: RE: SOAP and Session > > Is this what you are looking for? > > http://www.wso2.net/articles/rampart/java/2006/08/15/usernametoken-aut > h > > > Brennan Spies > Sr. Programmer Analyst > Shared Application Services > > > -Original Message- > From: Gul Onural [mailto:[EMAIL PROTECTED] > Sent: Monday, October 23, 2006 12:23 PM > To: axis-user@ws.apache.org > Subject: RE: SOAP and Session > > > I am also interested in the same subject if anyone can comment on... > > Gul > > > -Original Message- > From: Frans Thamura @ FB - Meruvian [mailto:[EMAIL PROTECTED] > Sent: Monday, October 23, 2006 6:31 AM > To: axis-user@ws.apache.org > Subject: SOAP and Session > > Hi All, > > I just got input from my friends to implement session in SOAP, > > because I want to put like a basket in shoping chart like in the > server, > > anyone can help to implement this ? > > how to make the SOAP Server store the session in the server > > i think session is needed to implement in user login also right, so we > dont have to sent user/password every time request a sOAP > > can help? > > Frans > > - > 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] > > > - > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP and Session
As stated its 'roll your own', an idea borrowed from other users on this list over the years. It does indeed however control an axis2 login session, expires it, validates it etc . Axis2 itself AFAIK has no way of storing login state in between server shutdowns etc, nor does it have anything AFAIK that allows the user the contol the session without a handler. Some single sign-on ideas like CAS can do that, but the link shows somthing much simpler. Just an idea - feel free to ignore it. Robert On 10/23/06, Gul Onural <[EMAIL PROTECTED]> wrote: I had a quick look into the link below. But I don't think it provides any information (or mechanism) to associate an axis2 session with a userId/password. The question is if there is a way to get the axis2 server side to store session information along with the userid and password. -Original Message- From: Spies, Brennan [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 3:29 PM To: axis-user@ws.apache.org Subject: RE: SOAP and Session Is this what you are looking for? http://www.wso2.net/articles/rampart/java/2006/08/15/usernametoken-auth Brennan Spies Sr. Programmer Analyst Shared Application Services -Original Message- From: Gul Onural [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 12:23 PM To: axis-user@ws.apache.org Subject: RE: SOAP and Session I am also interested in the same subject if anyone can comment on... Gul -Original Message- From: Frans Thamura @ FB - Meruvian [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 6:31 AM To: axis-user@ws.apache.org Subject: SOAP and Session Hi All, I just got input from my friends to implement session in SOAP, because I want to put like a basket in shoping chart like in the server, anyone can help to implement this ? how to make the SOAP Server store the session in the server i think session is needed to implement in user login also right, so we dont have to sent user/password every time request a sOAP can help? Frans - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP and Session
http://www.developer.com/java/web/article.php/3620661 On 10/23/06, Gul Onural <[EMAIL PROTECTED]> wrote: I had a quick look into the link below. But I don't think it provides any information (or mechanism) to associate an axis2 session with a userId/password. The question is if there is a way to get the axis2 server side to store session information along with the userid and password. -Original Message- From: Spies, Brennan [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 3:29 PM To: axis-user@ws.apache.org Subject: RE: SOAP and Session Is this what you are looking for? http://www.wso2.net/articles/rampart/java/2006/08/15/usernametoken-auth Brennan Spies Sr. Programmer Analyst Shared Application Services -Original Message- From: Gul Onural [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 12:23 PM To: axis-user@ws.apache.org Subject: RE: SOAP and Session I am also interested in the same subject if anyone can comment on... Gul -Original Message- From: Frans Thamura @ FB - Meruvian [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 6:31 AM To: axis-user@ws.apache.org Subject: SOAP and Session Hi All, I just got input from my friends to implement session in SOAP, because I want to put like a basket in shoping chart like in the server, anyone can help to implement this ? how to make the SOAP Server store the session in the server i think session is needed to implement in user login also right, so we dont have to sent user/password every time request a sOAP can help? Frans - 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] - 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] -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOAP and Session
I had a quick look into the link below. But I don't think it provides any information (or mechanism) to associate an axis2 session with a userId/password. The question is if there is a way to get the axis2 server side to store session information along with the userid and password. -Original Message- From: Spies, Brennan [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 3:29 PM To: axis-user@ws.apache.org Subject: RE: SOAP and Session Is this what you are looking for? http://www.wso2.net/articles/rampart/java/2006/08/15/usernametoken-auth Brennan Spies Sr. Programmer Analyst Shared Application Services -Original Message- From: Gul Onural [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 12:23 PM To: axis-user@ws.apache.org Subject: RE: SOAP and Session I am also interested in the same subject if anyone can comment on... Gul -Original Message- From: Frans Thamura @ FB - Meruvian [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 6:31 AM To: axis-user@ws.apache.org Subject: SOAP and Session Hi All, I just got input from my friends to implement session in SOAP, because I want to put like a basket in shoping chart like in the server, anyone can help to implement this ? how to make the SOAP Server store the session in the server i think session is needed to implement in user login also right, so we dont have to sent user/password every time request a sOAP can help? Frans - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP and Session
I've had good luck rolling my own with java.util.UUID and ehcache: http://www.braziloutsource.com/wss2.html The article is in português but you can search for 'Universally Unique Identifier' and get some code examples. HTH, Robert On 10/23/06, Gul Onural <[EMAIL PROTECTED]> wrote: I am also interested in the same subject if anyone can comment on... Gul -Original Message- From: Frans Thamura @ FB - Meruvian [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 6:31 AM To: axis-user@ws.apache.org Subject: SOAP and Session Hi All, I just got input from my friends to implement session in SOAP, because I want to put like a basket in shoping chart like in the server, anyone can help to implement this ? how to make the SOAP Server store the session in the server i think session is needed to implement in user login also right, so we dont have to sent user/password every time request a sOAP can help? Frans - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOAP and Session
Is this what you are looking for? http://www.wso2.net/articles/rampart/java/2006/08/15/usernametoken-auth Brennan Spies Sr. Programmer Analyst Shared Application Services -Original Message- From: Gul Onural [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 12:23 PM To: axis-user@ws.apache.org Subject: RE: SOAP and Session I am also interested in the same subject if anyone can comment on... Gul -Original Message- From: Frans Thamura @ FB - Meruvian [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 6:31 AM To: axis-user@ws.apache.org Subject: SOAP and Session Hi All, I just got input from my friends to implement session in SOAP, because I want to put like a basket in shoping chart like in the server, anyone can help to implement this ? how to make the SOAP Server store the session in the server i think session is needed to implement in user login also right, so we dont have to sent user/password every time request a sOAP can help? Frans - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Credentials cannot be used for NTLM authentication
Vinay, Please use a nightly build when i becomes available (ETA tomorrow!). That has a fully revamped support for auth stuff including NTLM. thanks, dims On 10/23/06, Gnanasekaran Vinayakamurthy <[EMAIL PROTECTED]> wrote: Hi Group, I am trying to make web service calls to MS Reporting services, which requires NTLM Authentication and so for that I have tried the below code in axis2 stub client, but I am facing "Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials" errors. Options options = executionStub._getServiceClient().getOptions(); HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator(); auth.setUsername("x"); auth.setPassword("x"); auth.setDomain(""); options.setProperty(HTTPConstants.AUTHENTICATE,auth); Error description: Oct 23, 2006 11:45:49 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: ntlm authentication scheme selected Oct 23, 2006 11:45:49 AM org.apache.commons.httpclient.HttpMethodDirector authenticate SEVERE: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials at org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:331) at org.apache.commons.httpclient.HttpMethodDirector.authenticateHost(HttpMethodDirector.java:281) at org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMethodDirector.java:233) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:169) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:534) at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:119) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:333) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:205) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:642) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365) -- Is this a proper way to do NTLM authentication? Can someone please help on this?. Thank you very much, Vinay -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOAP and Session
I am also interested in the same subject if anyone can comment on... Gul -Original Message- From: Frans Thamura @ FB - Meruvian [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 6:31 AM To: axis-user@ws.apache.org Subject: SOAP and Session Hi All, I just got input from my friends to implement session in SOAP, because I want to put like a basket in shoping chart like in the server, anyone can help to implement this ? how to make the SOAP Server store the session in the server i think session is needed to implement in user login also right, so we dont have to sent user/password every time request a sOAP can help? Frans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging request messages in Axis running in JBoss
Marcin Zajączkowski wrote: (...) Sorry for long delay, but I was out of office. Today I was preparing to check your solution, when I noticed then set logging org.apache.axis.transport.HTTPSender at DEBUG level in log4j.xml (in JBoss configuration) shows full HTTP requests (and responses, even after remote error) in JBoss' logs. I don't know why it didn't work earlier (or what is more probable why I didn't see it last week). Of cource I meant: org.apache.axis.transport.http.HTTPSender Marcin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 1.1
There some scheduled downtime: Hi, Upcoming Saturday 21st through Monday 23nd the ASF is moving a non-trivial portion of it's infrastructure from the San Francisco area to Corvallis, Oregon. During this move all services, save SVN, can be expected to be down. Mail will be brought down on Sunday morning, California time. Please be patient with our Infrastructure team, while they work on the move and on bringing the services back up. Apologies for the rather late notification, Sander On 10/23/06, Spies, Brennan <[EMAIL PROTECTED]> wrote: I haven't been able to reach the link for the nightly distribution for almost 2 days now ("10060 - Connection timeout"). Brennan Spies Sr. Programmer Analyst Shared Application Services -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 7:25 PM To: axis-dev@ws.apache.org Cc: axis-user@ws.apache.org; George Wilder; Beth Ayres Subject: Re: axis2 1.1 Hi Tony, We have done some major packaging/distribution changes after the 1.1-RC1, of course with the feedback we received. 1.1-RC2 will take some more time to appear, since we need some more testing for those changes. In the mean time I recommend you to try axis2-1.1 branch nightlies available at http://people.apache.org/dist/axis2/nightly/... Thanks, Thilina On 10/21/06, Tony Dean <[EMAIL PROTECTED]> wrote: Thanks Anne. -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 4:15 PM To: axis-dev@ws.apache.org Cc: axis-user@ws.apache.org Subject: Re: axis2 1.1 RC1 was released on Oct 9: Download locations : * binary and source distributions - http://people.apache.org/~thilina/axis2/1.1-RC1/ * jars http://people.apache.org/~thilina/maven/org.apache.axis2/jars/ * mars (addressing and SOAP monitor) http://people.apache.org/~thilina/maven/org.apache.axis2/mars/ * Tools http://people.apache.org/~thilina/axis2/1.1-RC1/eclipse_codegen_plugin_1.1-RC1http://people.apache.org/~thilina/axis2/1.1-RC1/idea_codegen_plugin_1.1-RC1/ On 10/20/06, Tony Dean < [EMAIL PROTECTED]> wrote: > Hi, > > I thought there were plans to do a release candidate for 1.1... RC1, RC2? > > Is such a candidate available? > > Thanks. > > Tony Dean > SAS Institute Inc. > 919.531.6704 > [EMAIL PROTECTED] > > SAS... The Power to Know > http://www.sas.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Credentials cannot be used for NTLM authentication
Hi Group, I am trying to make web service calls to MS Reporting services, which requires NTLM Authentication and so for that I have tried the below code in axis2 stub client, but I am facing "Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials" errors. Options options = executionStub._getServiceClient().getOptions(); HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator(); auth.setUsername("x"); auth.setPassword("x"); auth.setDomain(""); options.setProperty(HTTPConstants.AUTHENTICATE,auth); Error description: Oct 23, 2006 11:45:49 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthSchemeINFO: ntlm authentication scheme selectedOct 23, 2006 11:45:49 AM org.apache.commons.httpclient.HttpMethodDirector authenticateSEVERE: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentialsorg.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials at org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:331) at org.apache.commons.httpclient.HttpMethodDirector.authenticateHost(HttpMethodDirector.java:281) at org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMethodDirector.java:233) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:169) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:534) at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:119) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:333) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:205) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:642) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365)-- Is this a proper way to do NTLM authentication? Can someone please help on this?. Thank you very much, Vinay
Re: axis2 1.1
Apache Infra is moving between colo's...Please stay tuned. -- dims On 10/23/06, Spies, Brennan <[EMAIL PROTECTED]> wrote: I haven't been able to reach the link for the nightly distribution for almost 2 days now ("10060 - Connection timeout"). Brennan Spies Sr. Programmer Analyst Shared Application Services -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 7:25 PM To: axis-dev@ws.apache.org Cc: axis-user@ws.apache.org; George Wilder; Beth Ayres Subject: Re: axis2 1.1 Hi Tony, We have done some major packaging/distribution changes after the 1.1-RC1, of course with the feedback we received. 1.1-RC2 will take some more time to appear, since we need some more testing for those changes. In the mean time I recommend you to try axis2-1.1 branch nightlies available at http://people.apache.org/dist/axis2/nightly/... Thanks, Thilina On 10/21/06, Tony Dean <[EMAIL PROTECTED]> wrote: Thanks Anne. -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 4:15 PM To: axis-dev@ws.apache.org Cc: axis-user@ws.apache.org Subject: Re: axis2 1.1 RC1 was released on Oct 9: Download locations : * binary and source distributions - http://people.apache.org/~thilina/axis2/1.1-RC1/ * jars http://people.apache.org/~thilina/maven/org.apache.axis2/jars/ * mars (addressing and SOAP monitor) http://people.apache.org/~thilina/maven/org.apache.axis2/mars/ * Tools http://people.apache.org/~thilina/axis2/1.1-RC1/eclipse_codegen_plugin_1.1-RC1http://people.apache.org/~thilina/axis2/1.1-RC1/idea_codegen_plugin_1.1-RC1/ On 10/20/06, Tony Dean < [EMAIL PROTECTED]> wrote: > Hi, > > I thought there were plans to do a release candidate for 1.1... RC1, RC2? > > Is such a candidate available? > > Thanks. > > Tony Dean > SAS Institute Inc. > 919.531.6704 > [EMAIL PROTECTED] > > SAS... The Power to Know > http://www.sas.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Array issues with Axis
Hello everybody,i don't know if my previous email has been sent correctly, since i have some issues with my internet connection.So if it has already been sent, i'm sorry for spamming you.If not, here is the problem i have, and i hope you will be able to help me. I have two classes, named Category and CategoryInfo. The Category one has an array of CategoryInfo in its attributes.public class Category{ private int Id = 0; private String name; private CategoryInfo[] data; private int shared = 0; private int userid = 0; // methods here}public class CategoryInfo{ private int ownerId=0; private String name; private String type; private int userid=0; // methods here}One of my webservice will add the content of a Category object in the database. Its name is SqlGenerator, and i call the insert method : public Category insert(Category obj, String str) throws Exception, InternalException { try { if (SqlMisc.checkUserIsConnect(SqlMisc.decode(str)) == 0) throw new Exception("Todo : add here an exception saying that the user is not connected"); if (obj.getData() == null ) throw new Exception("Todo : DATA = ""> if (obj.getData().length == 0 ) throw new Exception("Todo : LENGTH = 0"); CategoryGenerator cat = new CategoryGenerator(); cat.setCategory(obj); obj.setId(cat.generateCategory()); cat.generateCategoryInfo(); DbConnection.getInstance ().getConnection().commit(); return obj; } catch (InternalException e) { DbConnection.getInstance().getConnection().rollback(); throw new InternalException( TablesExceptions.getInstance().getUserMessage(e.getMessage())); } }I call this webservice this way :public static Category testAddCategory() throws Exception { Category cat = new Category(); CategoryInfo catInfo = new CategoryInfo(); CategoryInfo catInfo2 = new CategoryInfo(); cat.setName("BBB"); cat.setShared(0); cat.setUserid (1); catInfo.setName("NAME1"); catInfo.setType("Text"); catInfo2.setName("NAME2"); catInfo2.setType("Doc"); cat.setData(catInfo); cat.setData(catInfo2); try { String endpoint = "http://localhost:8080/axis/services/SqlGenerator"; Service service = new Service(); Call call = (Call) service.createCall(); QName qn = new QName("ns:Category", "Category"); call.registerTypeMapping(objects.Category.class, qn, new org.apache.axis.encoding.ser.BeanSerializerFactory(objects.Category.class, qn), new org.apache.axis.encoding.ser.BeanDeserializerFactory (objects.Category.class, qn)); QName qn3 = new QName("ns:CategoryInfo", "CategoryInfo"); call.registerTypeMapping(objects.CategoryInfo.class, qn3, new org.apache.axis.encoding.ser.BeanSerializerFactory(objects.CategoryInfo.class, qn3), new org.apache.axis.encoding.ser.BeanDeserializerFactory(objects.CategoryInfo.class, qn3)); QName qn2 = new QName("ns:ArrayOfCategoryInfo", "CategoryInfo[]"); call.registerTypeMapping(objects.CategoryInfo[].class, qn2, new org.apache.axis.encoding.ser.ArraySerializerFactory(objects.CategoryInfo[].class, qn2), new org.apache.axis.encoding.ser.ArrayDeserializerFactory(qn2)); call.setTargetEndpointAddress( new java.net.URL(endpoint) ); call.setOperationName(new QName(" http://webservices.sql.generator.SqlGenerator", "insert")); call.addParameter("arg1", qn , ParameterMode.IN); call.addParameter("arg2", XMLType.XSD_STRING , ParameterMode.IN); call.setReturnType( qn); cat = (Category)(call.invoke( new Object[] {cat, encode("1:1:yahoo")} )); System.out.println("Result for TestAddCategory : " + cat.toString() + "'"); return cat; } catch (Exception e) { System.err.println("error : "); e.printStackTrace(); } return null; }Here is my wsd file : xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java=" http://xml.apache.org/axis/wsdd/providers/java"> http://objects" languageSpecificType="java:objects.Directory"/> http://objects" languageSpecificType="java:objects.Category"/> http://objects " languageSpecificType="java:objects.CategoryInfo"/> http://objects" languageSpecificType="java: objects.CategoryInfo[]"/> xmlns:ns="http://exceptions" qname="ns:InternalException" type="java: exceptions.InternalException" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
Re: JMS Transport not starting
Yes, I copied all the libraries listed in the docs. Conf file attached... Thanks Terry asankha wrote: > > Hi Terry > > Could you send me your axis2.xml Also I am assuming that you have copied > the relevant dependencies/jars into your tomcat lib folder > > asankha > > http://www.nabble.com/file/3809/axis2.xml axis2.xml -- View this message in context: http://www.nabble.com/JMS-Transport-not-starting-tf2465386.html#a6957608 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] MEP for broadcasting and multicasting
Chathura Herath wrote: >> We have a WS-Eventing implementation called Savan. > Where? https://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/modules/savan. signature.asc Description: OpenPGP digital signature
RE: axis2 1.1
I haven’t been able to reach the link for the nightly distribution for almost 2 days now (“10060 - Connection timeout”). Brennan Spies Sr. Programmer Analyst Shared Application Services -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 7:25 PM To: axis-dev@ws.apache.org Cc: axis-user@ws.apache.org; George Wilder; Beth Ayres Subject: Re: axis2 1.1 Hi Tony, We have done some major packaging/distribution changes after the 1.1-RC1, of course with the feedback we received. 1.1-RC2 will take some more time to appear, since we need some more testing for those changes. In the mean time I recommend you to try axis2-1.1 branch nightlies available at http://people.apache.org/dist/axis2/nightly/... Thanks, Thilina On 10/21/06, Tony Dean <[EMAIL PROTECTED]> wrote: Thanks Anne. -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]] Sent: Friday, October 20, 2006 4:15 PM To: axis-dev@ws.apache.org Cc: axis-user@ws.apache.org Subject: Re: axis2 1.1 RC1 was released on Oct 9: Download locations : * binary and source distributions - http://people.apache.org/~thilina/axis2/1.1-RC1/ * jars http://people.apache.org/~thilina/maven/org.apache.axis2/jars/ * mars (addressing and SOAP monitor) http://people.apache.org/~thilina/maven/org.apache.axis2/mars/ * Tools http://people.apache.org/~thilina/axis2/1.1-RC1/eclipse_codegen_plugin_1.1-RC1http://people.apache.org/~thilina/axis2/1.1-RC1/idea_codegen_plugin_1.1-RC1/ On 10/20/06, Tony Dean < [EMAIL PROTECTED]> wrote: > Hi, > > I thought there were plans to do a release candidate for 1.1... RC1, RC2? > > Is such a candidate available? > > Thanks. > > Tony Dean > SAS Institute Inc. > 919.531.6704 > [EMAIL PROTECTED] > > SAS... The Power to Know > http://www.sas.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/
RE: [Axis2]MessageContext
Hi, Thank you for your advance. But my MessageContext in my handler is still empty :-(. I simple add some property to Options object on client side, set this option to sender and send. MessageContext does not contain my property. Best regards,Natalya Smirnova. MERA NN /EMA/custom software -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Saturday, October 21, 2006 12:21 AM To: axis-user@ws.apache.org Subject: Re: [Axis2]MessageContext First of all, try a nightly as the new release is almost ready, as there were problems here since fixed: http://people.apache.org/dist/axis2/nightly/axis2-1.1-SNAPSHOT.war http://people.apache.org/dist/axis2/nightly/axis2-1.1-SNAPSHOT.zip Looks like the current way the client sends out basic auth info is the following - change to match your env: OMElement payload = TestingUtils.createDummyOMElement(); /** * Proxy setting in runtime */ HttpTransportProperties.ProxyProperties proxyproperties = new HttpTransportProperties.ProxyProperties(); proxyproperties.setProxyName("localhost"); proxyproperties.setProxyPort(); proxyproperties.setDomain("anonymous"); proxyproperties.setPassWord("anonymous"); proxyproperties.setUserName("anonymous"); Options options = new Options(); options.setProperty(HTTPConstants.PROXY, proxyproperties); options.setTo(targetEPR); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); ServiceClient sender = new ServiceClient(); sender.setOptions(options); OMElement result = sender.sendReceive(payload); Since these params are probably in the http headers, you'll probably need a handler to access them. The following code example is from axis 1.x but is close enough to start with - HTTPConstants.HEADER_AUTHORIZATION is still there, for example: http://koders.com/java/fidDCB769581B5FB55A16B0B191DEB229F79B8CB9E2.aspx See the migration guide for getting the above handler to work in axis2: http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/xdocs/1_1/m igration.html HTH, Robert On 10/20/06, Smirnova, Natalya <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > How I can get user name and password from MessageContext class object? > > I use Axis2 release 1.0. I write custom module and handler. It work > correctly. > > On client side I set username and password into options properties and send. > > > > Options options = new Options(); > > options.setTransportInProtocol(Constants.TRANSPORT_HTTP); > > > > HttpTransportProperties.ProxyProperties > basicAuthentication = new HttpTransportProperties().new ProxyProperties(); > > basicAuthentication.setUserName("admin"); > > basicAuthentication.setPassWord("axis2"); > > > options.setProperty(org.apache.axis2.transport.http.HTTPConstants.PROXY, > basicAuthentication); > > options.setTo(targetEPR); > > > > ServiceClient serviceClient = new ServiceClient(); > > serviceClient.setOptions(options); > > > > > > > > But on service side in handler my message context is empty. > > > > Thank you > > > > > > Best regards,Natalya Smirnova. > > MERA NN /EMA/custom software > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] MEP for broadcasting and multicasting
On Sat, 2006-10-21 at 13:06 +0800, falom falom wrote: > Hi, > > I'm trying to figure out a way that Axis can support broadcasting or > multicasting. Are there MEP supporting that, or some enhancement needs > to be made for future Axis2 releases? Are you looking for a MEP that does that out of the box? If so, you'll have to write a custom MEP (which is certainly possible). Alternative is to use WS-Eventing as suggested. Sanjiva. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] ServiceClient question
Hi all, what should I use instead of the ServiceClient.finalizeInvoke() call (which I guess has been removed)? Is the cleanup() call enough? Thanks, Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis 1.4 wsdl2java problem
Hi All, I obtained the attached wsdl file for an Axis2 service I want to invoke, but when I run Axis 1.4 wsdl2java the generated method signature for the single operation (getReferences) provided by the service doesn't match that defined in the wsdl (at least as far as I can see). In short, the request should have 3 string parameters (id, db, organism), defined by: http://mips.gsf.de/xml/schemas/CrossRefRequest/v1";> and the response 1 string parameter (title) and 1 defined by a complexType, defined by: http://mips.gsf.de/xml/schemas/CrossRefResult/v1";> However, the method signature generated in the BindingStub (also attached) contains all 5 parameters (the 3 input and 2 output): public void getReferences(java.lang.String id, java.lang.String db, java.lang.String organism, javax.xml.rpc.holders.StringHolder title, de.gsf.mips.xml.schemas.CrossRefResult.v1.holders.XRefsResultArrayHolder result) Also, the title parameter in the method signature is a javax.xml.rpc.holders.StringHolder rather than a string. Does anyone have any idea what's going wrong? Is it a problem with the wsdl which I just can't see, or is it a bug with wsdl2java. Any suggestions would be gratefully appreciated. Thanks. Richard -- == Richard Gregory Biological Information Systems Group MIPS/ Institute for Bioinformatics GSF-National Research Center for Environment and Health Ingolstaedter Landstrasse 1 D-85764 Neuherberg , Munich, Germany Tel.: +49-89-3187-3691 Fax:+49-89-3187-3585 Email: [EMAIL PROTECTED] http://mips.gsf.de/xml/services/CrossRefService"; xmlns:tns="http://mips.gsf.de/xml/services/CrossRefService"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:sns="http://mips.gsf.de/xml/schemas/CrossRefResult/v1"; xmlns:rns="http://mips.gsf.de/xml/schemas/CrossRefRequest/v1";> http://mips.gsf.de/xml/schemas/CrossRefRequest/v1";> http://mips.gsf.de/xml/schemas/CrossRefResult/v1";>
Re: [Axis2] MEP for broadcasting and multicasting
We have a WS-Eventing implementation called Savan. Where? -- Chathura Herath http://people.apache.org/~chathura/ http://chathurah.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] MEP for broadcasting and multicasting
Eran Which specific events does your product support which would fit this requirement? Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "Eran Chinthaka" <[EMAIL PROTECTED]> To: Sent: Saturday, October 21, 2006 2:00 AM Subject: Re: [Axis2] MEP for broadcasting and multicasting > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > falom falom wrote: >> Hi, >> >> I'm trying to figure out a way that Axis can support broadcasting or >> multicasting. Are there MEP supporting that, > I don't think we have in-built support for it. > >> or some enhancement needs >> to be made for future Axis2 releases? > We have a WS-Eventing implementation called Savan. Not sure that will > fit your exact requirement. >
SOAP and Session
Hi All, I just got input from my friends to implement session in SOAP, because I want to put like a basket in shoping chart like in the server, anyone can help to implement this ? how to make the SOAP Server store the session in the server i think session is needed to implement in user login also right, so we dont have to sent user/password every time request a sOAP can help? Frans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error in in deploying axis2 in tomcat 5.0.x -->Error in schema generating null
Hi I have created a simple helloWorld webservice, and I have placed 1) HelloWorld under axis2/WEB-INF/services HelloWorld | | META-INF | services.xml |HelloWorld.class But I get this error in tomcat cmd window.Same with weblogic. - Error in schema generating null java.lang.NullPointerException at org.apache.ws.java2wsdl.Java2WSDLUtils.namespaceFromClassName(Java2WS DLUtils.java:51) at org.apache.ws.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName(J ava2WSDLUtils.java:77) at org.apache.ws.java2wsdl.SchemaGenerator.(SchemaGenerator.java:7 Can anyone help me out. 2) When I ignore this error and the see my webservices wsdl using http://10.8.2.177:8080/axis2/services/HelloWorld?wsdl I see the file but when I try to generate the stub using wsdl2java I get few lines in the stub unreachable ..lines are //Unknown style!! No code is generated throw new UnsupportedOperationException("Unknown Style"); // create message context with that soap envelope org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext() ; _messageContext.setEnvelope(env); My Wsdl file is auto generated using the axis2. wsdl is - http://schemas.xmlsoap.org/wsdl/"; xmlns:axis2="http://ws.apache.org/axis2"; 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:ns1="http://org.apache.axis2/xsd"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; targetNamespace="http://ws.apache.org/axis2";> - - - http://schemas.xmlsoap.org/soap/http"; /> - - http://ws.apache.org/axis2"; use="literal" /> - http://ws.apache.org/axis2"; use="literal" /> - http://schemas.xmlsoap.org/soap/http"; /> - - http://ws.apache.org/axis2"; use="literal" /> - http://ws.apache.org/axis2"; use="literal" /> - - - - - - http://10.8.2.177:8080/axis2/services/HelloWorld"; /> - http://10.8.2.177:8080/axis2/services/HelloWorld"; /> - http://10.8.2.177:8080/axis2/rest/HelloWorld"; /> Regards Sanket This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WSDL2Java - latest version
Hi I have a question regarding WSDL2Java and would appreciate if someone could help me. I am trying to generate a proxy client from a remote WSDL file using Axis WSDL2Java utility. I have Axis 1.4, commons-httpclient 3.0 and WSDL2Java.zip with .class files last modified around June-2003. The WSDL2Java generates following files for me:- MyWebService.java MyWebServiceLocator.java MyWebServiceSoap.java MyWebServiceSoapStub.java I am able to make call the remote webservice method and get a response back but I need to enable gzip compression. According to the following page, I should expect a file "MyBindingStub.java" generated by WSDL2Java http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression Can someone please tell me how to get the latest version of WDSL2Java. I have a copy of WSDL2Java.zip with classes last modified around June-2003. Is the WSDL2Java.zip out of date? Thanks Manish * This communication contains confidential information some or all of which may be privileged. It is for the intended recipient only and others must not disclose, distribute, copy, print or rely on this communication. If an addressing or transmission error has misdirected this communication: in the case that this communication is an e-mail please notify the sender by replying to this e-mail and then delete the e-mail; in the case that this communication is a facsimile, please notify the sender immediately by telephone and return the facsimile to the sender by mail and the sender will reimburse you for any expense incurred. E-mail sent to EDF Trading may be monitored by the Company. Thank you. EDF Trading Markets Limited 71 High Holborn, London WC1V 6ED A Company registered in England No. 4255974. Switchboard: 020 7061 4000 EDF Trading Markets Limited is a member of the EDF Trading Limited Group and is regulated by the Financial Services Authority. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Service interface question
Hi all, after a few weeks I've updated my axis2 libs and I've found out that the Service interface has been removed while a new one has been added (ServiceLifeCycle). Unfortunately the new interface does not provide any facility to obtain the operation/message context (i.e. the old setOperationContext method). Is there any workaround for this problem? Thanks in advance, Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wrapped style with Axis2
Wrapped is supported by both ADB and JiBX data binding options. ADB actually still generates the full set of wrapper classes, but provides convenience client stub and service implementation methods which expose the individual parameters. Behind the scenes, ADB generated code handles packaging up the parameters into the wrapper object on the client side, and extracting the parameters from the wrapper object on the server side. The result object remains wrapped. JiBX unwrapping goes a little further in ease of use (or at least *I* think it does - but I'm the one who wrote the JiBX unwrapping, so I'm biased :-) ). With JiBX unwrapped there are no classes that correspond to the wrapper schema types. Unwrapped method parameters are used directly, as are the return types. On the other hand, the JiBX support currently doesn't extend to generating code for the actual data objects. This means you have to write your own data objects and binding definition for any complex structures passed as parameters (or extract the schema from the WSDL and use the JiBX xsd2jibx tool to generate the data object classes and binding, if your schema is simple enough). There's an example for JiBX unwrapped handling that was added to the code post-RC1, so once RC2 is out you'll be able to get a better idea of how this works. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 Manuel Ernstberger wrote: Hello Davanum, I know that Axis2 supports rpc/lit and doc/lit, but AFAIK not yet the wrapped style. So I wanted to know when the *wrapped* style will be supported. Regards, Manuel Original-Nachricht Datum: Tue, 17 Oct 2006 13:02:52 -0400 Von: "Davanum Srinivas" <[EMAIL PROTECTED]> An: axis-user@ws.apache.org Betreff: Re: wrapped style with Axis2 Axis2 supports both RPC/LIT and DOC/LIT right now. -- dims On 10/17/06, Manuel Ernstberger <[EMAIL PROTECTED]> wrote: Hello, does anybody know when Axis2 will support the doc/lit/wrapped style? Regards, Manuel Ernstberger -- GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist! NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MTOM: sending binary data from WebService
Hi, I am developing a small BookWebService. In this service I have an operation which returns Array Of Book(i.e Book[]) type. It is working fine but I want to return an Image of each book with ISBN,Title, Published Date etc. Please help me out, I have already spent lot of time to figure it out but it didnt work. Console Output: Title Ultimate Axis2Price 19.0Published Sun Oct 22 00:00:00 EDT 2006ISBN ISBN-123java.lang.RuntimeException: ContentID is null at org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java :339) at ClientRunner.BookServiceADBClient.main(BookServiceADBClient.java:79) Here is the code of schema which I am using to generate code (I am using ADB) name="publishedDate" type="xsd:date" /> name="isbn" type="xsd:string" /> name="title" type="xsd:string" /> name="price" type="xsd:float" /> name="bookImage" type="xsd:imageEle" /> Skeleton Code(here i am sending only one book right now just to make image sending work): FindBooksResponse response = new FindBooksResponse(); Book book1 =new Book(); book1.setIsbn("ISBN-123"); book1.setPrice(19); book1.setPublishedDate (new Date()); book1.setTitle("Ultimate Axis2"); OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace omNs = fac.createOMNamespace(" http://www.example.com/OnlineBooksADBImage/xsd", "bookImage"); OMElement imageEle = fac.createOMElement("bookImage", omNs); Image image; String inputImageFileName = "C:\\axis.jpg"; image = new ImageIO().loadImage(new FileInputStream(inputImageFileName)); ImageDataSource dataSource = new ImageDataSource("axisImage.jpg",image); DataHandler dataHandler = new DataHandler(dataSource); //create an OMText node with the above DataHandler and set optimized to true OMText textData = fac.createOMText(dataHandler, true); imageEle.addChild(textData); book1.setBookImage(imageEle); // Book book2 =new Book();// book2.setIsbn("ISBN-9089");// book2.setPrice(40);// book2.setPublishedDate(new Date()); // book2.setTitle("Professional Axis2"); response.addBook(book1); // response.addBook(book2); return response; Client Code : OnlineBooksADBImageServiceStub stub = new OnlineBooksADBImageServiceStub();Options options =stub._getServiceClient().getOptions(); options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_MTOM , Boolean.TRUE); FindBooksRequest request = new FindBooksRequest(); request.setIsbn("123"); FindBooksResponse response= stub.FindBooks(request); //System.out.println("RESPONSE "+ response.); Book[] books = response.getBook();for (int i = 0; i < books.length; i++) { System.out.println("Title "+books[i].getTitle() ); System.out.println("Price "+books[i].getPrice() ); System.out.println ("Published "+books[i].getPublishedDate() ); System.out.println("ISBN "+books[i].getIsbn() ); OMElement imageEle = books[i].getBookImage(); OMText binaryNode = (OMText) imageEle.getFirstOMChild (); // Extracting the data and saving DataHandler actualDH; actualDH = (DataHandler) binaryNode.getDataHandler(); //here RuntimeException is throwing Image actualObject = new ImageIO().loadImage( actualDH.getDataSource().getInputStream()); FileOutputStream imageOutStream = new FileOutputStream("C:\\axisReturns.jpg"); new ImageIO().saveImage("image/jpeg", actualObject, imageOutStream); SOAP RESPONSE: --MIMEBoundaryurn_uuid_3A1C4DDA46DD411ACD11615456368283content-type:application/xop+xml; charset=UTF-8; type="text/xml";content-transfer-encoding:binarycontent-id:< 0.urn:uuid:[EMAIL PROTECTED]> http://schemas.xmlsoap.org/soap/envelope/"> http://www.example.com/OnlineBooksADBImage/xsd">2006-10-22 ISBN-123Ultimate Axis219.0/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCABgAKcDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2
Re: [Axis2] Can WSDL2Java generate dual channel client codes for both sync & osync
Look at Axis2 1.1 Userguide https://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/1_1/userguide.html (Save and view to see it as html) Look at the second part of "Do a Non-Blocking Invocation" specifically stub._getServiceClient().engageModule(new QName("addressing")); stub._getServiceClient().getOptions().setUseSeparateListener(true); Please let us know how it goes Thanks Srinath On 10/19/06, falom falom <[EMAIL PROTECTED]> wrote: Hi, I tested one simple service using WSDL2Java eclipse plugin to generate java codes for both sync and osync service communication. I think they are only for one channel communication(singleBlocking and singleNoneBlocking), is there a way to also generate codes for dual clients? Does WSDL2Java command support that? falom 雅虎免费邮箱-3.5G容量,20M附件 -- Srinath Perera: Indiana University, Bloomington http://www.cs.indiana.edu/~hperera/ http://www.bloglines.com/blog/hemapani
Re: JMS Transport not starting
Hi Terry Could you send me your axis2.xml Also I am assuming that you have copied the relevant dependencies/jars into your tomcat lib folder asankha Terry wrote: I am trying to configure the JMS transport in a recent snapshot of Axis2. I have followed the documentation and uncommented the JMS-specific sections in the config file, however when I start Tomcat, I get the following: INFO: Deploying web application archive axis2.war 18-Oct-2006 09:24:11 org.apache.axis2.deployment.AxisConfigBuilder processTransportReceivers INFO: Class Not found : org.apache.axis2.transport.jms.JMSListener 18-Oct-2006 09:24:11 org.apache.axis2.deployment.WarBasedAxisConfigurator SEVERE: Transport Receiver can not be null for the transport jms; nested exception is: org.apache.axis2.AxisFault: Transport Receiver can not be null for the transport jms org.apache.axis2.deployment.DeploymentException: Transport Receiver can not be null for the transport jms; nested exception is: org.apache.axis2.AxisFault: Transport Receiver can not be null for the transport jms at org.apache.axis2.deployment.AxisConfigBuilder.processTransportReceivers(AxisConfigBuilder.java:355) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:93) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:674) at org.apache.axis2.deployment.WarBasedAxisConfigurator.(WarBasedAxisConfigurator.java:126) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:366) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:304) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3817) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4079) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:777) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:672) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1079) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:437) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2010) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) Caused by: org.apache.axis2.AxisFault: Transport Receiver can not be null for the transport jms at org.apache.axis2.engine.AxisConfiguration.addTransportIn(AxisConfiguration.java:317) at org.apache.axis2.deployment.AxisConfigBuilder.processTransportReceivers(AxisConfigBuilder.java:353) ... 31 more 18-Oct-2006 09:24:12 org.apache.axis2.deployment.DeploymentEngine doDeploy INFO: Deploying module : addressing 18-Oct-2006 09:24:12 org.apache.axis2.deployment.DeploymentEngine doDeploy INFO: Deploying module : soapmonitor 18-Oct-2006 09:24:12 org.apache.axis2.deployment.WarBasedAxisConfigurator getAxisConfiguration SEVERE: org.apache.axis2.deployment.DeploymentException: Dispatch phase not found on the global InFlow phase of the axis2.xml. Please recheck; nested exception is: org.apache.axis2.deployment.DeploymentException: Dispatch phase not found on the global InFlow phase of the axis2.xml. Please recheck: loading repository from classpath 18-Oct-2006 09:24:12 org.apache.catalina.core.ApplicationContext log SEVERE: Servlet /axis2 threw load() exception javax.servlet.ServletException: Dispatch phase not found on the global InFlow phase of the axis2.xml. Please recheck a
Re: [Axis2] MEP for broadcasting and multicasting
Martin Gainty wrote: > Eran > > Which specific events does your product You mean Apache Free and Opensource software :) > support which would fit this requirement? Please see ftp://www6.software.ibm.com/software/developer/library/ws-eventing/WS-Eventing.pdf to understand what we have implemented in Axis2 Savan module. Chamikara, please correct me if I'm wrong. -- Chinthaka signature.asc Description: OpenPGP digital signature
RE: [Axis2]MessageContext
Hi, Thank you for your advance. But my MessageContext in my handler is still empty :-(. I simple add some property to Options object on client side, set this option to sender and send. MessageContext does not contain my property. Best regards,Natalya Smirnova. MERA NN /EMA/custom software -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Saturday, October 21, 2006 12:21 AM To: axis-user@ws.apache.org Subject: Re: [Axis2]MessageContext First of all, try a nightly as the new release is almost ready, as there were problems here since fixed: http://people.apache.org/dist/axis2/nightly/axis2-1.1-SNAPSHOT.war http://people.apache.org/dist/axis2/nightly/axis2-1.1-SNAPSHOT.zip Looks like the current way the client sends out basic auth info is the following - change to match your env: OMElement payload = TestingUtils.createDummyOMElement(); /** * Proxy setting in runtime */ HttpTransportProperties.ProxyProperties proxyproperties = new HttpTransportProperties.ProxyProperties(); proxyproperties.setProxyName("localhost"); proxyproperties.setProxyPort(); proxyproperties.setDomain("anonymous"); proxyproperties.setPassWord("anonymous"); proxyproperties.setUserName("anonymous"); Options options = new Options(); options.setProperty(HTTPConstants.PROXY, proxyproperties); options.setTo(targetEPR); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); ServiceClient sender = new ServiceClient(); sender.setOptions(options); OMElement result = sender.sendReceive(payload); Since these params are probably in the http headers, you'll probably need a handler to access them. The following code example is from axis 1.x but is close enough to start with - HTTPConstants.HEADER_AUTHORIZATION is still there, for example: http://koders.com/java/fidDCB769581B5FB55A16B0B191DEB229F79B8CB9E2.aspx See the migration guide for getting the above handler to work in axis2: http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/xdocs/1_1/m igration.html HTH, Robert On 10/20/06, Smirnova, Natalya <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > How I can get user name and password from MessageContext class object? > > I use Axis2 release 1.0. I write custom module and handler. It work > correctly. > > On client side I set username and password into options properties and send. > > > > Options options = new Options(); > > options.setTransportInProtocol(Constants.TRANSPORT_HTTP); > > > > HttpTransportProperties.ProxyProperties > basicAuthentication = new HttpTransportProperties().new ProxyProperties(); > > basicAuthentication.setUserName("admin"); > > basicAuthentication.setPassWord("axis2"); > > > options.setProperty(org.apache.axis2.transport.http.HTTPConstants.PROXY, > basicAuthentication); > > options.setTo(targetEPR); > > > > ServiceClient serviceClient = new ServiceClient(); > > serviceClient.setOptions(options); > > > > > > > > But on service side in handler my message context is empty. > > > > Thank you > > > > > > Best regards,Natalya Smirnova. > > MERA NN /EMA/custom software > > - 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]