Re: [Axis2] MTOM client example

2006-07-11 Thread Andrew B
Thilina,Thanks for the reply. Tried that option, and it didn't make any difference. The messages are as follows:Request:POST /axis2/services/TTWSServiceService HTTP/1.1User-Agent: Axis2SOAPAction: ""Authorization: Basic V0FMTUFSVDpXQUwxMjNNQVJUHost: 127.0.0.1:Transfer-Encoding: chunkedContent-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031; type="application/xop+xml"; start="0.urn:uuid:[EMAIL PROTECTED]"; start-info="text/xml"; charset=UTF-833e--MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031content-type:application/xop+xml; charset=UTF-8; type="text/xml";content-transfer-encoding:binarycontent-id:0.urn:uuid:[EMAIL PROTECTED]?xml version='1.0' encoding='UTF-8'?soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"soapenv:Header
 /soapenv:BodyTTIS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="VW_TrailerData_Request_Schema.xsd" TRAILERDATATRNRQ  TRNID/TRNID  TRAILERDATARQ   TARGETASSETSTARGETALLY/TARGETALL   /TARGETASSETS   GETLATESTDATAY/GETLATESTDATA   COMPRESSY/COMPRESS  /TRAILERDATARQ
 /TRAILERDATATRNRQ/TTIS/soapenv:Body/soapenv:Envelope--MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031--0Response:HTTP/1.1 200 OKServer: Apache-Coyote/1.1X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)/Tomcat-5.5Set-Cookie: JSESSIONID=8757EBE12760AF3DEEC3119F5A53ED3D; Path=/Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814; type="application/xop+xml"; start="0.urn:uuid:[EMAIL PROTECTED]"; start-info="text/xml";charset=UTF-8Transfer-Encoding: chunkedDate: Tue, 11 Jul 2006 16:19:27 GMT275--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814content-type:application/xop+xml; charset=UTF-8; type="text/xml";content-transfer-encoding:binarycontent-id:0.urn:uuid:[EMAIL PROTECTED]?xml version='1.0'
 encoding='UTF-8'?soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"soapenv:Header /soapenv:Bodyttws:CompressedXML xmlns:ttws="http://www.geassetintelligence.com"xop:Include href="" xmlns:xop="http://www.w3.org/2004/08/xop/include" //ttws:CompressedXML/soapenv:Body/soapenv:Envelope2000--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814content-id:1.urn:uuid:[EMAIL PROTECTED]content-type:application/octet-streamcontent-transfer-encoding:binaryxœì�moÛF¶ÇßßOAì‹Û765ϹZ/ÆÔXbL‘*IYQ..Škt´IÑ [more binary .]--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814--0Thanks,AndrewThilina Gunarathne [EMAIL PROTECTED] wrote: Hi Andrew,Axis2 MTOM should work out of the box without much hassel if you have enabled MTOM on client side as follows.options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); The way you are trying to receive the byte[] is correct. Can u post ur messsage snaphots. You can capture them using TCPMON.~Thilina On 7/11/06, Andrew B [EMAIL PROTECTED] wrote: Martin,The stacktrace is:java.net.UnknownServiceException at javax.mail.internet.MimePartDataSource.getOutputStream(MimePartDataSource.java:57) at
 ttaxis2client.TestClient.main(TestClient.java :73)and the code is:   OMElement response = stub .getData();OMText binaryNode = (OMText) response.getFirstOMChild();DataHandler dataHandler = (DataHandler) binaryNode   .getDataHandler();DataSource ds =  dataHandler.getDataSource();ByteArrayOutputStream baos = (ByteArrayOutputStream) ds.getOutputStream();
byte[] compressedXML = baos.toByteArray();Thanks,Andrew Martin Gainty [EMAIL PROTECTED]  wrote:   Andrew- Please post Stacktrace ThanksM- *This  email message and any files transmitted with it contain  confidentialinformation intended only  for the person(s) to whom this email  message isaddressed. If you have received this email message in error,  please notifythe sender immediately by telephone or email and destroy
 the  originalmessage without making a copy. Thank you.- Original Message - From:AndrewB To: axis-user@ws.apache.org Sent: Monday, July 10, 2006 12:53  PMSubject: [Axis2] MTOM client  example   Hi,Can anyone point me to an example  of an Axis2 client   
 that receives a byte array via MTOM? The Axis2 documentation shows how to getan image, not a byte array.Thanks,Andrew   __ Do YouYahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com   Why keep checking for Mail? The all-new Yahoo! Mail Beta  shows you when there are new messages. -- "May the SourcE be with u"http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ http://www.bloglines.com/blog/Thilina   
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

[Axis2] MTOM client example

2006-07-10 Thread Andrew B
Hi,Can anyone point me to an example of an Axis2 client that receives a byte array via MTOM? The Axis2 documentation shows how to get an image, not a byte array.Thanks,Andrew __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: [Axis2] MTOM client example

2006-07-10 Thread Andrew B
Martin,The stacktrace is:java.net.UnknownServiceException at javax.mail.internet.MimePartDataSource.getOutputStream(MimePartDataSource.java:57) at ttaxis2client.TestClient.main(TestClient.java:73)and the code is:   OMElement response = stub .getData();OMText binaryNode = (OMText) response.getFirstOMChild();DataHandler dataHandler = (DataHandler) binaryNode  .getDataHandler();DataSource ds =
 dataHandler.getDataSource();ByteArrayOutputStream baos = (ByteArrayOutputStream) ds.getOutputStream();byte[] compressedXML = baos.toByteArray();Thanks,AndrewMartin Gainty [EMAIL PROTECTED] wrote:   Andrew- Please post StacktraceThanksM- *This  email message and any files transmitted with it contain  confidentialinformation intended only
 for the person(s) to whom this email  message isaddressed. If you have received this email message in error,  please notifythe sender immediately by telephone or email and destroy the  originalmessage without making a copy. Thank you.  - Original Message -From:AndrewBTo: axis-user@ws.apache.orgSent: Monday, July 10, 2006 12:53  PM   Subject: [Axis2] MTOM client  example   Hi,Can anyone point me to an example
 of an Axis2 clientthat receives a byte array via MTOM? The Axis2 documentation shows how to getan image, not a byte array.Thanks,Andrew   __Do YouYahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com   
		Why keep checking for Mail? The all-new Yahoo! Mail Beta shows you when there are new messages.

Re: [Axis2] MTOM client example

2006-07-10 Thread Andrew B
Ah, you've got me there. I don't know what those things are - the MTOM documentation (http://ws.apache.org/axis2/1_0/mtom-guide.html) never mentioned any of that.-AndrewMartin Gainty [EMAIL PROTECTED] wrote: I wouldlook atyour outflow definitions  for any missing handlers..can we take a look at  module.xml M- *This  email message and any files transmitted with it contain  confidentialinformation intended only for the person(s) to whom this email  message
 isaddressed. If you have received this email message in error,  please notifythe sender immediately by telephone or email and destroy the  originalmessage without making a copy. Thank you.  - Original Message -From:AndrewBTo: axis-user@ws.apache.org ; Martin Gainty   Sent: Monday, July 10, 2006 3:29 PM   Subject:
 Re: [Axis2] MTOM clientexample   Martin,The stacktraceis:java.net.UnknownServiceException atjavax.mail.internet.MimePartDataSource.getOutputStream(MimePartDataSourcejava:57)at ttaxis2client.TestClient.main(TestClient.java:73)and the codeis:   OMElementresponse = stub.getData();   OMText binaryNode =(OMText) response.getFirstOMChild();   DataHandler dataHandler = (DataHandler)binaryNode   
 .getDataHandler();   DataSource ds =dataHandler.getDataSource();   ByteArrayOutputStream baos =(ByteArrayOutputStream) ds.getOutputStream();   byte[] compressedXML= baos.toByteArray();Thanks,AndrewMartin Gainty[EMAIL PROTECTED] wrote:   Andrew- Please post  StacktraceThanksM-
 *This  email message and any files transmitted with it contain  confidentialinformation intended only for the person(s) to whom this  email message isaddressed. If you have received this email message  in error, please notifythe sender immediately by telephone or email and  destroy the originalmessage without making a copy. Thank  you.  -Original Message -From:Andrew BTo:axis-user@ws.apache.orgSent:Monday, July 10, 2006 12:53 PM   Subject:[Axis2] MTOM client example   Hi,Can anyone point me to an example of an Axis2client that receives a byte array via MTOM? The Axis2 documentation showshow to get an image, not a byte array.Thanks,Andrew   __Do YouYahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com   Why keep checking for Mail? The all-newYahoo! Mail Beta shows you when there are new 
 messages. __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

[Axis2] MTOM client error when getting attachment

2006-06-30 Thread Andrew B
Hi,I have a client that needs to get an MTOM attachment as a byte array. The code I came up with is as follows:   OMElement response = stub.getData();   if (response.getLocalName().equals("CompressedXML"))   {OMText binaryNode = (OMText) response.getFirstOMChild();DataHandler dataHandler = (DataHandler) binaryNode  .getDataHandler();DataSource ds = dataHandler.getDataSource();  
  ByteArrayOutputStream baos = (ByteArrayOutputStream) ds.getOutputStream();byte[] compressedXML = baos.toByteArray();   }It blows up on ds.getOutputStream(), with the exception:java.net.UnknownServiceException at javax.mail.internet.MimePartDataSource.getOutputStream(MimePartDataSource.java:57)MTOM optimization is on, and MTOM is enabled on the server. I have the latest Axis build (from 6/29). Can anyone shed some light on this error, or point me to a better way to get the attachment?Thanks, as always,Andrew __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: [Axis2] large MTOM binary data not returning to client

2006-06-29 Thread Andrew B
It is an SSL connection to the production server, so I cannot do packet sniffing. By the MTOM entry, do you mean the OMText node that is created from calling factory.createOMText(dataHandler, true) ?I don't think it's the Axis1 client, because the problem is intermittent - sometimes it works on the large data chunks, and sometimes not. -AndrewPaul Fremantle [EMAIL PROTECTED] wrote: Have you tried doing any packet sniffing? It might well be the Axis1client? I assume you have optimised = false on the MTOM entry?PaulOn 6/28/06, Andrew B <[EMAIL PROTECTED]> wrote: Hi, I have an Axis2 service running in our production environment. The web service call completes, but control is not returned to the client. It is passing back 1.2Mb of binary data, via
 MTOM. Smaller amounts of binary work consistently (say 350Kb or so). The client is Axis1 (Java). The app server is JBoss 4.0.3 running on Linux, with JDK 1.4. MTOM is enabled, according to the documentation: true The server-side processing always completes, in around 1 minute, according to the log files, even when the data is not returned. According to the JBoss console, the request is still being processed, even though the web service call is complete. Any ideas at all are appreciated! Thanks, as always, Andrew   Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.-- Paul FremantleVP/Technology, WSO2 and OASIS WS-RX TC
 Co-chairhttp://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] 
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail Beta.

Re: [Axis2]setting username and password

2006-06-29 Thread Andrew B
I don't seem to have the class HttpTransportProperties.BasicAuthentication in Axis2 1.0. Is it in a later build? Same is true for HTTPConstants.BASIC_AUTHENTICATION.Also, once these problems are ironed out, how do I set the options object on the client stub?robert lazarski [EMAIL PROTECTED] wrote: If your talking about the way call.setPassword etc worked in axis 1.x,in axis2 it is:HttpTransportProperties.BasicAuthentication   basicAuthentication = new HttpTransportProperties().   new BasicAuthentication();   basicAuthentication.setUsername(userName);   basicAuthentication.setPassword(password);   options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,  
 basicAuthentication);HTH,Roberthttp://www.braziloutsource.com/On 6/20/06, Andrew B <[EMAIL PROTECTED]> wrote: Hi, My Axis1 - Axis2 migration continues. The issue I have now is with getting the username and password within the Axis2 service. Are they now accessible via MessageContext.getProperty instead of getUsername() and getPassword()? If so, what are the names of the properties? Thanks   Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] 
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

Re: [Axis2]setting username and password

2006-06-29 Thread Andrew B
Got the latest nightly build. Everything now compiles, but stub has neither a getServiceClient nor setServiceClient method Thanksrobert lazarski [EMAIL PROTECTED] wrote: Forgot to mention - stub has a getServiceClient method.Roberthttp://www.braziloutsource.com/On 6/29/06, robert lazarski <[EMAIL PROTECTED]> wrote: Seems to be a new class - I recommend updating anyways as there has been a lot of bug fixes since 1.0 : http://people.apache.org/dist/axis2/nightly/ Set your client options like ... ServiceClient serviceClient = new ServiceClient(); Options options = new Options(); options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,basicAuthentication);
 serviceClient.setOptions(options); HTH, Robert http://www.braziloutsource.com/ On 6/29/06, Andrew B <[EMAIL PROTECTED]> wrote:  I don't seem to have the class  HttpTransportProperties.BasicAuthentication in Axis2 1.0.  Is it in a later build? Same is true for  HTTPConstants.BASIC_AUTHENTICATION.   Also, once these problems are ironed out, how do I set the options object on  the client stub?   robert lazarski <[EMAIL PROTECTED]> wrote:   If your talking about the way call.setPassword etc worked in axis 1.x,  in axis2 it is:   HttpTransportProperties.BasicAuthentication   basicAuthentication = new HttpTransportProperties().   new BasicAuthentication();   basicAuthentication.setUsername(userName);  
 basicAuthentication.setPassword(password);options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,   basicAuthentication);   HTH,  Robert  http://www.braziloutsource.com/   On 6/20/06, Andrew B wrote:   Hi, My Axis1 - Axis2 migration continues. The issue I have now is with  getting   the username and password within the Axis2 service. Are they now  accessible   via MessageContext.getProperty instead of getUsername() and getPassword()?   If so, what are the names of the properties? Thanks      Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.   
-  To unsubscribe, e-mail: [EMAIL PROTECTED]  For additional commands, e-mail: [EMAIL PROTECTED]  Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates  starting at 1�/min.  -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] 
		Do you Yahoo!? Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.

Re: [Axis2]setting username and password

2006-06-29 Thread Andrew B
Actually I just found it - it's called _getServiceClient. Any reason for the underscore?robert lazarski [EMAIL PROTECTED] wrote: Forgot to mention - stub has a getServiceClient method.Roberthttp://www.braziloutsource.com/On 6/29/06, robert lazarski <[EMAIL PROTECTED]> wrote: Seems to be a new class - I recommend updating anyways as there has been a lot of bug fixes since 1.0 : http://people.apache.org/dist/axis2/nightly/ Set your client options like ... ServiceClient serviceClient = new ServiceClient(); Options options = new Options(); options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,basicAuthentication);
 serviceClient.setOptions(options); HTH, Robert http://www.braziloutsource.com/ On 6/29/06, Andrew B <[EMAIL PROTECTED]> wrote:  I don't seem to have the class  HttpTransportProperties.BasicAuthentication in Axis2 1.0.  Is it in a later build? Same is true for  HTTPConstants.BASIC_AUTHENTICATION.   Also, once these problems are ironed out, how do I set the options object on  the client stub?   robert lazarski <[EMAIL PROTECTED]> wrote:   If your talking about the way call.setPassword etc worked in axis 1.x,  in axis2 it is:   HttpTransportProperties.BasicAuthentication   basicAuthentication = new HttpTransportProperties().   new BasicAuthentication();   basicAuthentication.setUsername(userName);  
 basicAuthentication.setPassword(password);options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,   basicAuthentication);   HTH,  Robert  http://www.braziloutsource.com/   On 6/20/06, Andrew B wrote:   Hi, My Axis1 - Axis2 migration continues. The issue I have now is with  getting   the username and password within the Axis2 service. Are they now  accessible   via MessageContext.getProperty instead of getUsername() and getPassword()?   If so, what are the names of the properties? Thanks      Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.   
-  To unsubscribe, e-mail: [EMAIL PROTECTED]  For additional commands, e-mail: [EMAIL PROTECTED]  Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates  starting at 1�/min.  -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] 
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

[Axis2]client ignoring timeout settings

2006-06-29 Thread Andrew B
Hi,I have an Axis2 client, calling an Axis2 service. The call times out after maybe 10 seconds, when the service typically needs at least a minute to complete its processing. I have tried setting both the connection and socket timeouts to half an hour:   options.setProperty(HTTPConstants.SO_TIMEOUT, new Integer(180));   options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, new Integer(180));but this has had no effect at all. Any ideas, anyone?Thanks,Andrew __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

[Axis2] uploaded .aar still using cached classes?

2006-06-28 Thread Andrew B
   Hi,I have uploaded a web service (.aar) to Axis2, and it appears to keep using old versions of the service classes, even after I've made changes and re-uploaded.Axis2 is running on JBoss 4.0.3, with JDK 1.4. I don't have the option of restarting JBoss, as it is a production environment. Anyone have any idea why this might be happening, and how to get it to reload the classes? (I've also tried deactivating and reactivating the service, and this doesn't help).Thanks,Andrew 
		Yahoo! Music Unlimited - Access over 1 million songs.
Try it free. 

[Axis2] large MTOM binary data not returning to client

2006-06-28 Thread Andrew B
Hi,I have an Axis2 service running in our production environment. The web service call completes, but control is not returned to the client. It is passing back 1.2Mb of binary data, via MTOM. Smaller amounts of binary work consistently (say 350Kb or so). The client is Axis1 (Java). The app server is JBoss 4.0.3 running on Linux, with JDK 1.4. MTOM is enabled, according to the documentation:parameter name="enableMTOM" locked="false"true/parameterThe server-side processing always completes, in around 1 minute, according to the log files, even when the data is not returned. According to the JBoss console, the request is still being processed, even though the web service call is complete.Any ideas at all are appreciated!Thanks, as always,Andrew 
	
		Sneak preview the  all-new Yahoo.com. It's not radically different. Just radically better. 


[Axis2] uploaded .aar still using cached classes?

2006-06-27 Thread Andrew B
Hi,I have uploaded a web service (.aar) to Axis2, and it appears to keep using old versions of the service classes, even after I've made changes. Axis2 is running on JBoss 4.0.3, with JDK 1.4. I don't have the option of restarting JBoss, as it is a production environment. Anyone have any idea why this might be happening? (I've also tried deactivating and reactivating the service, and this doesn't help).Thanks,Andrew 
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

Re: [Axis2]getting username and password

2006-06-22 Thread Andrew B
Davanum,I set the username and password on the SOAPBindingStub on the client side (with Axis 1) like this:clientStub.setUsername(  );I thought this was HTTP Basic authentication. But, when I do the following, per your suggestion:  HttpServletRequest request = (HttpServletRequest)incomingContext.getProperty(Constants.HTTP_SERVLET_REQUEST);   String auth = (String) request.getHeader(HTTPConstants.HEADER_AUTHORIZATION);the string I get back is:Basic V0FMTUFSVDpXQUwxMjNNQVJUwhich does not contain the username and password. Either I am doing something wrong, or clientStub.setUsername() is not HTTP Basic authentication.Thanks,AndrewDavanum Srinivas [EMAIL PROTECTED] wrote: Andrew,Are u talking about HTTP Basic authentication? You can access theHttpServletRequest as follows:HttpServletRequest request = (HttpServletRequest)msgContext.getProperty(Constants.HTTP_SERVLET_REQUEST)Then use:String auth = (String) request.getHeader(HTTPConstants.HEADER_AUTHORIZATION)to get the http header for authorization. You can then parse out theuser id and password as shown here [1]-- dims[1] http://koders.com/java/fidDCB769581B5FB55A16B0B191DEB229F79B8CB9E2.aspxOn 6/21/06, Andrew B <[EMAIL PROTECTED]> wrote: Hi, Does anyone know how to get the username and password that were set on the client stub, in the service implementation class? This is another thing that was easy in Axis 1 but so far seems to be impossible in Axis 2. I need them to do authentication. Thanks, Andrew
 B   Want to be your own boss? Learn how on Yahoo! Small Business.-- Davanum Srinivas : http://people.apache.org/~dims/-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

[Axis2] accessing files within .aar

2006-06-22 Thread Andrew B
Hi,I need to access files (property files and such) within the .aar, in a deployed Axis2 service. (in a subdirectory of the .aar file root).I have tried this so far:String path = incomingContext.getConfigurationContext().getRealPath( ... ).getAbsolutePath();but it gives an erronous path back. Any ideas on how to do this? And then once I've got the path, can I just read a file in a packaged deployment?Thanks,Andrew 
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

[Axis2]getting username and password

2006-06-21 Thread Andrew B
Hi,Does anyone know how to get the username and password that were set on the client stub, in the service implementation class? This is another thing that was easy in Axis 1 but so far seems to be impossible in Axis 2. I need them to do authentication.Thanks,Andrew B 
		Want to be your own boss? Learn how on  Yahoo! Small Business. 


[Axis2] Axis2 equivalent of AxisFault

2006-06-20 Thread Andrew B
Hi,Is there a direct equivalent of AxisFault in Axis2?Thanks! __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: [Axis2] Axis2 equivalent of AxisFault

2006-06-20 Thread Andrew B
Yeah, sorry, that was a dumb question. Here is a better question: in my old Axis 1 code, I can do the following to send an exception back to the client:objOut = new SOAPFault(new AxisFault("ERROR WHILE REQUEST PROCESSING : "+ex.getMessage()));In Axis2, I can instantiate neither SOAPFault nor AxisFault. What is the equivalent in Axis2?ThanksMichele Mazzucco [EMAIL PROTECTED] wrote: org.apache.axis2.AxisFault?MicheleAndrew B wrote: Hi,  Is there a direct equivalent of AxisFault in Axis2?  Thanks!  __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
 -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] 
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail Beta.

[Axis2]getting username and password

2006-06-20 Thread Andrew B
Hi,My Axis1 - Axis2 migration continues. The issue I have now is with getting the username and password within the Axis2 service. Are they now accessible via MessageContext.getProperty instead of getUsername() and getPassword()? If so, what are the names of the properties?Thanks 
		Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

Re: [Axis2]getting username and password

2006-06-20 Thread Andrew B
Yes, I need to do that too (so thanks). But my question at this point was about getting username and password on the server side.robert lazarski [EMAIL PROTECTED] wrote: If your talking about the way call.setPassword etc worked in axis 1.x,in axis2 it is:HttpTransportProperties.BasicAuthentication   basicAuthentication = new HttpTransportProperties().   new BasicAuthentication();   basicAuthentication.setUsername(userName);   basicAuthentication.setPassword(password);   options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,   basicAuthentication);HTH,Roberthttp://www.braziloutsource.com/On 6/20/06, Andrew B <[EMAIL PROTECTED]> wrote: Hi, My Axis1 - Axis2
 migration continues. The issue I have now is with getting the username and password within the Axis2 service. Are they now accessible via MessageContext.getProperty instead of getUsername() and getPassword()? If so, what are the names of the properties? Thanks   Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] 
		Ring'em or ping'em. Make  PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voice.

[Axis2] getting application's path on file system

2006-06-20 Thread Andrew B
Hi,How, in Axis2, do I get the path to the root of my web service application? It used to be in Axis 1 that you could get the ServletContext and call getRealPath() on this. I can't find any examples of how to do it in Axis2.Thanks! 
		Want to be your own boss? Learn how on  Yahoo! Small Business. 


Re: [Axis2] dumb newbie question part 2

2006-06-16 Thread Andrew B
Awesome, that's exactly what I was looking for. I generated a simple, unbloated service and client. The '-d none' should be in the help text for wsdl2java, but it isn't. Thanks!Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi,Do a -d none to *not*  databind.AjithOn 6/16/06, Andrew B <[EMAIL PROTECTED]> wrote: Thanks. Do I do this by just not specifying a data binding (-d) on WSDL2Java? Or do I not use WSDL2Java at all in that case? Also, if I use RawXMLProvider, can the message still handle binary attachments or MTOM? (My ultimate need is to send back large binary data to the client). -Andrew Anne Thomas Manes <[EMAIL PROTECTED]> wrote:  Use the RawXMLProvider and don't use a databinding
 framework. 
		Ring'em or ping'em. Make  PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voice.

Re: [Axis2] Axis2SampleDocLitService not working.

2006-06-15 Thread Andrew B
Title: Apache Tomcat/5.5.9 - Errorbr report
Hi,I am having the same issue, with a different service (a generated one). In my .aar, I have all the package subdirectories, including schemaorg_apache_xmlbeans, directly under the top level of the jar (no classes directory). The .xsb files should be in the classpath there, right? (The .aar is an exploded deployment, which I have found to work so far).I can elaborate more on the structure of the .aar if required - I am desperate to get this problem solved.ThanksAjith Ranabahu [EMAIL PROTECTED] wrote: Hi,For XMLbeans you'll have to add the generated xsb files to theclasspath. if you've used the  jar.client ant target then there shouldbe xmlbeans-packaged.jar file in the build folder. Add that to theclasspath and that should solve the problem :)AjithOn 6/15/06, Jan Bauer
 Nielsen <[EMAIL PROTECTED]> wrote: Hello. I am an Axis2 novice and I am therefore trying to work my way through the examples provided in the Axis2 userguide, but I am having getting the data binding examples to work. I am currently working on a debian sarge install with a Java 2 Standard Edition (build 1.5.0_06-b05). Axis2 v1.0 is deployed on a Geronimo v1.0 web application server. I created the skeleton using the following command: % sh WSDL2Java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide I added the code suggested to Axis2SampleDocLitServiceSkeleton.java and then ran % ant jar.server Finally I successfully deployed the service, I am not so sure it is working though. Testing from SOAP::Lite gives me Request:   POST
 /axis2/services/Axis2SampleDocLitService HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: localhost:8080 User-Agent: SOAP::Lite/Perl/0.67 Content-Length: 459 Content-Type: text/xml; charset=utf-8 SOAPAction: "#echoString"  xmlns:xsi="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/" xsi:type="xsd:string"Axis2 Echo Response: HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Content-Type:
 text/html;charset=utf-8 Content-Length: 1901 Date: Thu, 15 Jun 2006 10:56:29 GMT Connection: close  HTTP Status 500 -  noshade="noshade"type Exception
 reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.axiom.om.OMException org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265) org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:75) org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:222) org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76) org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183) org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168) org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153) 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:615)  javax.servlet.http.HttpServlet.service(HttpServlet.java:688) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs. noshade="noshade"Apache Tomcat/5.5.9 So obviously I have done something wrong somewhere? As a further ado I also tried to build a client stub % sh WSDL2Java.sh -uri ../samples/build/classes/META-INF/Axis2SampleDocLitService.wsdl -d xmlbeans -o ../samples -p org.apache.axis2.userguide % jar.client I then wrote this simple client class: import org.apache.axis2.userguide.*; public class Client {  public static void main(String[] args) {  try {  Axis2SampleDocLitServiceStub stub =
 new Axis2SampleDocLitServiceStub(null, "http://localhost:8080/axis2/services/Axis2SampleDocLitService");  EchoStringParamDocument reqDoc = EchoStringParamDocument.Factory.newInstance();  reqDoc.setEchoStringParam("Axis2 Echo");  EchoStringReturnDocument resDoc = stub.EchoString(reqDoc);  System.out.println(resDoc.getEchoString());  } catch(Exception e)  {  e.printStackTrace();  }  } } which I am unable to compile with the following command: % javac -classpath
 

[Axis2]can anyone spot a problem with this SOAP request?

2006-06-15 Thread Andrew B
Hi,The SOAP request is:POST /axis2/services/TTWSServiceService HTTP/1.0Content-Type: text/xml; charset=utf-8Accept: application/soap+xml, application/dime, multipart/related, text/*User-Agent: Axis/1.3Host: 127.0.0.1:Cache-Control: no-cachePragma: no-cacheSOAPAction: ""Content-Length: 623Authorization: Basic V0FMTUFSVDpXQUwxMjNNQVJU?xml version="1.0" encoding="UTF-8"?soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"soapenv:BodyTTIS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="VW_TrailerData_Request_Schema.xsd" TRAILERDATATRNRQ  TRNID/TRNID  TRAILERDATARQ
   TARGETASSETSTARGETALLY/TARGETALL   /TARGETASSETS   GETLATESTDATAY/GETLATESTDATA   COMPRESSY/COMPRESS  /TRAILERDATARQ /TRAILERDATATRNRQ/TTIS/soapenv:Body/soapenv:EnvelopeThis is actually being generated by an Axis 1 client, calling an Axis2 service. The service bombs out with the exception:ERROR [[AxisServlet]] Servlet.service() for servlet AxisServlet threw exceptionorg.apache.axiom.om.OMException at
 org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265) at org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:75) at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:222) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76) at org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183) at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717).The stack trace makes me think there is something wrong with the SOAP envelope, but I can't see what it is. Any help is appreciated - I have to
 get this thing working urgently.Thanks! __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com  __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: [Axis2] Axis2SampleDocLitService not working.

2006-06-15 Thread Andrew B
Title: Apache Tomcat/5.5.9 - Errorbr report
I'm an Axis2 novice, so I'm not sure what that means, or how it relates to the classpath issue (I will look up the terminology though).Martin Gainty [EMAIL PROTECTED] wrote: Personally..I would try JAXRPC  first(Doc-literal support came in later implementations)  Martin-- This email message and any files transmitted with it contain  confidentialinformation intended only for the person(s) to whom this email  message isaddressed. If you have received this email message in error, 
 please notifythe sender immediately by telephone or email and destroy the  originalmessage without making a copy. Thank you.- Original Message -From:AndrewBTo: axis-user@ws.apache.orgSent: Thursday, June 15, 2006 8:08AM   Subject: Re: [Axis2]Axis2SampleDocLitService not working.   Hi,I am having the same issue, with a different service(a generated one). In my .aar, I have all the package subdirectories,including schemaorg_apache_xmlbeans,
 directly under the top level of the jar(no classes directory). The .xsb files should be in the classpath there,right? (The .aar is an exploded deployment, which I have found to work sofar).I can elaborate more on the structure of the .aar if required - Iam desperate to get this problem solved.ThanksAjithRanabahu [EMAIL PROTECTED] wrote:   Hi,For  XMLbeans you'll have to add the generated xsb files to theclasspath. if  you've used the jar.client ant target then there shouldbe  xmlbeans-packaged.jar file in the build folder. Add that to theclasspath  and that should solve the problem :)AjithOn 6/15/06, Jan  Bauer Nielsen <[EMAIL PROTECTED]>wrote: Hello. I am an  Axis2 novice and I am therefore trying to work my way
 through the  examples provided in the Axis2 userguide, but I am having getting  the data binding examples to work. I am currently working on  a debian sarge install with a Java 2 Standard Edition (build  1.5.0_06-b05). Axis2 v1.0 is deployed on a Geronimo v1.0 web  application server. I created the skeleton using the  following command: % sh WSDL2Java.sh -uri  ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o  ../samples -p org.apache.axis2.userguide I added the code  suggested to Axis2SampleDocLitServiceSkeleton.java and then  ran __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

[Axis2] dumb newbie question part 2

2006-06-15 Thread Andrew B
Hi,Having thought a bit more about it, maybe I shouldn't be using xmlbeans, since the WSDL for the service doesn't specify the schema for the input and return documents.What is the simplest way to just get an XML document passed in, be able to read its DOM, and build a new DOM for the return document? Is ADB data binding the way to go?Thanks __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: [Axis2] dumb newbie question part 2

2006-06-15 Thread Andrew B
Thanks. Do I do this by just not specifying a data binding (-d) on WSDL2Java? Or do I not use WSDL2Java at all in that case?Also, if I use RawXMLProvider, can the message still handle binary attachments or MTOM? (My ultimate need is to send back large binary data to the client).-AndrewAnne Thomas Manes [EMAIL PROTECTED] wrote: Use the RawXMLProvider and don't use a databinding framework.On 6/15/06, Andrew B [EMAIL PROTECTED]  wrote:Hi,Having thought a bit more about it, maybe I shouldn't be using xmlbeans, since the WSDL for the service
 doesn't specify the schema for the input and return documents. What is the simplest way to just get an XML document passed in, be able to read its DOM, and build a new DOM for the return document? Is ADB data binding the way to go?Thanks  __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around  http://mail.yahoo.com__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

[Axis2] Hot reloading of classes

2006-06-14 Thread Andrew B
Hello,Is it possible to hot-reload classes in an Axis2 service? Or do I have to restart the app server every time I make a change?Thanks! __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

[Axis2] basic tutorial/help needed

2006-06-13 Thread Andrew B
Hi,I am trying to get to grips with Axis2, and need an 'Axis2 for Dummies'-type resource. For instance, what does 'OM' in OMElement etc. stand for? How does the documents that are passed back from Axis2 methods relate to SOAP messages? Is an XMLObject similar to a SoapBodyElement? How are attachments handled? Is there a good book on Axis2?Thanks __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com