Training
Hi, I am located in Dallas, TX. Is there any class room training available for Axis C++ user? Any information is greatly appreciated. Thanks, Bala
Re: Training
BalaSubrahmanyam Gattu wrote: Hi, I am located in Dallas, TX. Is there any class room training available for Axis C++ user? To my knowlege, the user list, dev list and the whatever available docs are the training resources that we have for Axis C++. BTW, if you are a beginner, and considering options for C/C++ based web services, I would like to invite you to look into Axis2/C as well. While Axis C++ is mature and stable, Axis2/C is young but feature packed and promising in the WS-* space. Thanks, Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2] Urgent! How to call service without return value
The subject of the mail contradicts with the content of the message. Just to make sure, hope you started the Axis2 server before making the call, right? Because this error typically comes out when the server can not be contacted. -- Chinthaka Rusda, Sabri wrote: Hello there, How to invoke Service without return value? What is the correct method to use ? I create simple Service like this : / package sample.axis; / / public class HelloWorld { / / public void sayHello(String msg) throws Exception { / / System.out.println(Hello : +msg); / / } / / } / And here is the service.xml / service name=HelloService / / description / / This service is to get the running HelloWorld / / /description / / parameter name=ServiceClass locked=falsesample.axis.HelloWorld/parameter / / operation name=sayHello / / messageReceiver class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver / / / /operation / / /service / And then, I made simple client : / package my.tutorial.simple; / / import java.util.ArrayList; / / import javax.xml.namespace.QName; / / import org.apache.axis2.AxisFault; / / import org.apache.axis2.Constants; / / import org.apache.axis2.addressing.EndpointReference; / / import org.apache.axis2.client.Options; / / import org.apache.axis2.context.ConfigurationContext; / / import org.apache.axis2.context.ConfigurationContextFactory; / / import org.apache.axis2.rpc.client.RPCServiceClient; / / / / public class ServiceClientVoid { / / public static void main(String[] args) { / / try { / / String opName = sayHello; / / EndpointReference targetEPR = new EndpointReference(http://localhost:8080/axis2/services/HelloService;); / / QName operationName = new QName(http://axis.sample/xsd;, opName, ns0); / / Options options = new Options(); / / options.setTo(targetEPR); / / options.setTransportInProtocol(Constants.TRANSPORT_HTTP); / / / / ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); / / RPCServiceClient sender = new RPCServiceClient(configContext, null); / / sender.setOptions(options); / / ArrayList params = new ArrayList(); / / params.add(from the dummies); / / sender.invokeBlocking(operationName, params.toArray()); / / } catch (AxisFault e) { / / e.printStackTrace(); / / } / / } / / / / } / It’s always throw the exception : org.apache.axis2.AxisFault: Incoming message input stream is null at org.apache.axis2.transport.TransportUtils.createSOAPMessage( TransportUtils.java:64 ) at org.apache.axis2.description.OutInAxisOperationClient.send( OutInAxisOperation.java:349 ) at org.apache.axis2.description.OutInAxisOperationClient.execute( OutInAxisOperation.java:279 ) at org.apache.axis2.client.ServiceClient.sendReceive( ServiceClient.java:457 ) at org.apache.axis2.client.ServiceClient.sendReceive( ServiceClient.java:399 ) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking( RPCServiceClient.java:60 ) at my.tutorial.simple.ServiceClientVoid.main( ServiceClientVoid.java:41 ) any help will be appreciate. Thank in advance, srusda signature.asc Description: OpenPGP digital signature
Re: [Axis2]How to invoke a webservice built by Axis2 in PHP?
Is your SoapClient supports document/literal style messages? zhu jiang wrote: Hi All, I made a webservice by Axis2 v1.0 using RPCMessageReceiver, but I can't use the SoapClient class in PHP to invoke the webservice. For example: $soapclient=new SoapClient(http://127.0.0.1:8080/axis2/services/version?wsdl;); ... But the SoapClient could invoke webservices built by Axis 1.3. Does Axis2 not support this? What should I do? Thanks, Jiang signature.asc Description: OpenPGP digital signature
Re: [Axis2] Client Digest Authentication
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Nice article on Digest Auth using HttpClient. http://go.mappoint.net/mappointmpac/default.aspx?main=article.aspxid=J10010 May useful in integrating Digest Auth to Axis2 Saminda Davanum Srinivas wrote: see http://jakarta.apache.org/commons/httpclient/authentication.html order is NTLM, Digest, Basic. -- dims On 8/9/06, Vinh Tran [EMAIL PROTECTED] wrote: Does this mean it will attempt to send credentials in clear text first? Doesn't that defeat the purpose? -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 11:02 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] Client Digest Authentication No, you don't need WSSecurity to do HTTP DIGEST auth. The original code you posted will work with Digest as well. Basically the code will try basic first then digest. If it does not work with latest nightly build. Please log a JIRA bug and we will fix it. thanks, dims On 8/9/06, Vinh Tran [EMAIL PROTECTED] wrote: Quick question Martin... Does this mean I will no longer be using HTTP/DIGEST and instead be using WS-Security? If so, is there a way to do HTTP DIGEST in Axis2? Thanks From: Vinh Tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 9:34 AM To: axis-user@ws.apache.org; Martin Gainty Subject: RE: [Axis2] Client Digest Authentication So I will need to use Rampart for DIGEST authentication. Got it. Thanks Martin. From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 9:29 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] Client Digest Authentication Good Morning Tran- that example was dated The security functionality has been split to project WSS4J http://ws.apache.org/wss4j/ Once you download and onstall you will see a TestHarness that tests Digest Functionality located at /test/wssec/TestWSSecurityNew5.java The test Function to test Digest tokens is called testUsernameTokenDigest HTH, Martin-- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Vinh Tran To: axis-user@ws.apache.org Sent: Wednesday, August 09, 2006 9:07 AM Subject: RE: [Axis2] Client Digest Authentication Martin, I do not see the org.apache.axis.security.servlet package nor do I see MessageContext.SECURITY_PROVIDER. Is this something that was added recently? I am currently using a snapshot from July. Also, by merely using SECURITY_PROVIDER does this get me DIGEST authentication? Thanks. From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 9:10 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] Client Digest Authentication Tran- SECURITY_PROVIDER is an attribute of MessageContext Here is an example for you http://rifers.org:8088/viewrep/~raw,r=1175/rifers/rife/trunk/src/framewo rk/com/uwyn/rife/engine/elements/SoapAxis.java Best Regards Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Vinh Tran To: axis-user@ws.apache.org Sent: Tuesday, August 08, 2006 8:12 PM Subject: [Axis2] Client Digest Authentication I am able to get basic authentication working with Axis2 but would now like to switch to digest. With BASIC I do the following: HttpTransportPorperties.BasicAuthentication basicAuth = new HttpBasicTransportProperties().new BasicAuthentication(); basicAuth.setUsername(_username); basicAuth.setPassword(_password); options.setproperty(org.apache.axis2.transport.http.HTTPConstants.BASIC_ AUTHENTICATION, basicAuth); How is this accomplished with DIGEST authentication? There doesn't appear to be a DigestAuthentication class or an http constant HTTPConstants.DIGEST_AUTHENTICATION. Thanks.
RE: [AXIS2] Urgent! How to call service without return value
Hi Chinthaka, The server already started.. of course :-) The error happen just for service without return value (void method), it doesn't happen for service with return value. Any idea ? Thanks for reply. Regards, srusda -Original Message- From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 1:31 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Urgent! How to call service without return value The subject of the mail contradicts with the content of the message. Just to make sure, hope you started the Axis2 server before making the call, right? Because this error typically comes out when the server can not be contacted. -- Chinthaka Rusda, Sabri wrote: Hello there, How to invoke Service without return value? What is the correct method to use ? I create simple Service like this : / package sample.axis; / / public class HelloWorld { / / public void sayHello(String msg) throws Exception { / / System.out.println(Hello : +msg); / / } / / } / And here is the service.xml / service name=HelloService / / description / / This service is to get the running HelloWorld / / /description / / parameter name=ServiceClass locked=falsesample.axis.HelloWorld/parameter / / operation name=sayHello / / messageReceiver class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver / / / /operation / / /service / And then, I made simple client : / package my.tutorial.simple; / / import java.util.ArrayList; / / import javax.xml.namespace.QName; / / import org.apache.axis2.AxisFault; / / import org.apache.axis2.Constants; / / import org.apache.axis2.addressing.EndpointReference; / / import org.apache.axis2.client.Options; / / import org.apache.axis2.context.ConfigurationContext; / / import org.apache.axis2.context.ConfigurationContextFactory; / / import org.apache.axis2.rpc.client.RPCServiceClient; / / / / public class ServiceClientVoid { / / public static void main(String[] args) { / / try { / / String opName = sayHello; / / EndpointReference targetEPR = new EndpointReference(http://localhost:8080/axis2/services/HelloService;); / / QName operationName = new QName(http://axis.sample/xsd;, opName, ns0); / / Options options = new Options(); / / options.setTo(targetEPR); / / options.setTransportInProtocol(Constants.TRANSPORT_HTTP); / / / / ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(nul l, null); / / RPCServiceClient sender = new RPCServiceClient(configContext, null); / / sender.setOptions(options); / / ArrayList params = new ArrayList(); / / params.add(from the dummies); / / sender.invokeBlocking(operationName, params.toArray()); / / } catch (AxisFault e) { / / e.printStackTrace(); / / } / / } / / / / } / It's always throw the exception : org.apache.axis2.AxisFault: Incoming message input stream is null at org.apache.axis2.transport.TransportUtils.createSOAPMessage( TransportUtils.java:64 ) at org.apache.axis2.description.OutInAxisOperationClient.send( OutInAxisOperation.java:349 ) at org.apache.axis2.description.OutInAxisOperationClient.execute( OutInAxisOperation.java:279 ) at org.apache.axis2.client.ServiceClient.sendReceive( ServiceClient.java:457 ) at org.apache.axis2.client.ServiceClient.sendReceive( ServiceClient.java:399 ) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking( RPCServiceClient.java:60 ) at my.tutorial.simple.ServiceClientVoid.main( ServiceClientVoid.java:41 ) any help will be appreciate. Thank in advance, srusda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2]How to invoke a webservice built by Axis2 in PHP?
I cannot use document/literal style message because the operation I wrote has two parameters, and by now only rpcmessage receiver supports for this in Axis2. What should I do? 2006/8/10, Eran Chinthaka [EMAIL PROTECTED]: Is your SoapClient supports document/literal style messages?zhu jiang wrote: Hi All, I made a webservice by Axis2 v1.0 using RPCMessageReceiver,but I can't use the SoapClient class in PHP to invoke the webservice. For example: $soapclient=new SoapClient( http://127.0.0.1:8080/axis2/services/version?wsdl); ... But the SoapClient could invoke webservices built by Axis 1.3 . Does Axis2 not support this? What should I do? Thanks, Jiang
RE: [Axis2] Custom headers
Any ideas here? This project is rather urgent, and my question seems quite trivial to me (although I am unable to do it). All I want to do is send along custom headers and receive custom headers. Thanks, Brecht From: Brecht Yperman [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 augustus 2006 14:45 To: axis-user@ws.apache.org Subject: [Axis2] Custom headers Hi, I'm using the serviceclient to call webservices. I would like the user to be able to add custom headers to the headerelements. I should also be able to return custom headerelements from the response to the user. I thought about writing a handler, but I have a few problems (how to get the elements from the user to the handler?, ...) How do I start? Thanks a lot, Brecht Invenso - The Integration Software specialists. _ Brecht Yperman Development team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
some questions about the wsdl snippet
?xmlversion="1.0"encoding="UTF-8"? definitionsname="WeatherService" targetNamespace="http://www.ecerami.com/wsdl/WeatherService.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.ecerami.com/wsdl/WeatherService.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" messagename="getWeatherRequest" partname="zipcode"type="xsd:string"/ /message messagename="getWeatherResponse" partname="temperature"type="xsd:int"/ /message portTypename="Weather_PortType" operationname="getWeather" inputmessage="tns:getWeatherRequest"/ outputmessage="tns:getWeatherResponse"/ /operation /portType bindingname="Weather_Binding"type="tns:Weather_PortType" soap:bindingstyle="rpc" transport="http://schemas.xmlsoap.org/soap/http"/ operationname="getWeather" soap:operationsoapAction=""/ input soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:examples:weatherservice" use="encoded"/ /input output soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:examples:weatherservice" use="encoded"/ /output /operation /binding servicename="Weather_Service" documentationWSDLFileforWeatherService/documentation portbinding="tns:Weather_Binding"name="Weather_Port" soap:address location="http://localhost:8080/soap/servlet/rpcrouter"/ /port /service /definitions 1. targetNamespace="http://www.ecerami.com/wsdl/WeatherService.wsdl" is this for the definition of namespace of the file? if yes,why are we need that xmlns:tns="http://www.ecerami.com/wsdl/WeatherService.wsdl"?what's the effection of "tns"? 2.xmlns:xsd="http://www.w3.org/2001/XMLSchema" who verify the URI ?the parser of xml written by java?And when i should write 2001 or 1999 in the URI? 3.encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" why should we write like this?shall we definit in the beginnig of the file?is there a parser to parse the sentence?what's the results?
[Axis2] Configure Rampart dynamically
Hi, how do I configure Rampart dynamically? I tried something like this, but it does not work... private void configureSecurity(ServiceClient client) throws AxisFault { if (true /*security == on*/) { Parameter parm = new Parameter(); parm.setName(OutflowSecurity); OMFactory fact = OMAbstractFactory.getOMFactory(); OMNamespace emptyNS = fact.createOMNamespace(null, ); OMElement actionEl = fact.createOMElement(action, emptyNS); OMElement itemsEl = fact.createOMElement(items, emptyNS); itemsEl.setText(UsernameToken); actionEl.addChild(itemsEl); OMElement userEl = fact.createOMElement(user, emptyNS); userEl.setText(bob); actionEl.addChild(userEl); OMElement pwCbEl = fact.createOMElement(passwordCallbackClass, emptyNS); pwCbEl.setText(CallbackHandler); actionEl.addChild(pwCbEl); parm.setParameterElement(actionEl); client.engageModule(new QName(rampart-1.0)); } } Thanks, Brecht Invenso - The Integration Software specialists. _ Brecht Yperman Development team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof.
Re: [AXIS2] Urgent! How to call service without return value
Rusda, Sabri wrote: Hi Chinthaka, The server already started.. of course :-) The error happen just for service without return value (void method), it doesn't happen for service with return value. Any idea ? Can you create a JIRA attaching the aar file and your client code, so that I can test it? -- Chinthaka signature.asc Description: OpenPGP digital signature
Re: [Axis2]How to invoke a webservice built by Axis2 in PHP?
The easiest way is to write your implement the contract first approach, which I always encourage. Write your own wsdl, use wsdl2java to generate clients and/or server side code and use them. Its the best way. -- Chinthaka zhu jiang wrote: I cannot use document/literal style message because the operation I wrote has two parameters, and by now only rpcmessage receiver supports for this in Axis2. What should I do? 2006/8/10, Eran Chinthaka [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Is your SoapClient supports document/literal style messages? zhu jiang wrote: Hi All, I made a webservice by Axis2 v1.0 using RPCMessageReceiver, but I can't use the SoapClient class in PHP to invoke the webservice. For example: $soapclient=new SoapClient( http://127.0.0.1:8080/axis2/services/version?wsdl;); ... But the SoapClient could invoke webservices built by Axis 1.3 . Does Axis2 not support this? What should I do? Thanks, Jiang signature.asc Description: OpenPGP digital signature
Merlin not on classpath.
Hi I'm just starting out with Axis2 + rampart and have hit a brick wall early. I am unable to invoke a service with inbound security enabled and cannot find any further documentation to help. I have installed Axis 2 correctly and have tested an unsecured service with success. When I attempt to access a secured service I receive a HTTP 500 response. Any help would be very much appreciated. Details follow: The Tomcat localhost log says: 2006-08-10 17:44:24 StandardWrapperValve[AxisServlet]: Servlet.service() for servlet AxisServlet threw exception java.lang.RuntimeException: org.apache.ws.security.components.crypto.Merlin cannot create instance at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:155) at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:115) ... The Tomcat catalina.out says: java.lang.InstantiationException: org.apache.ws.security.components.crypto.Merlin at java.lang.Class.newInstance0(Class.java:281) at java.lang.Class.newInstance(Class.java:249) at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:150) ... Rampart is installed in webapps/axis2/WEB-INF/modules/rampart-1.0.mar. It is enabled in axis2.xml as module ref=rampart/ The rampart-1.0.mar file contains wss4j-1.5.0.jar, which in turn contains org/apache/ws/security/components/crypto/Merlin.class The service.xml definition: service name=lcc_calculator description LCC Calculator /description parameter name=ServiceClass locked=falsecom.thenational.prototype.axis2.LCCCalculator/parameter parameter name=InflowSecurity action itemsTimestamp Signature Encrypt/items passwordCallbackClasscom.thenational.prototype.axis2.security.PasswordStore/passwordCallbackClass signaturePropFileinterop.properties/signaturePropFile /action /parameter operation name=calculate messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation /service The signature properties file: org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin ... (I have not yet fixed the subsequent properties, as I'm stuck on getting the first one to work). National Australia Bank Ltd - ABN 12 004 044 937 This email may contain confidential information. If you are not the intended recipient, please immediately notify us at [EMAIL PROTECTED] or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Ltd. Advice in this email does not take account of your objectives, financial situation, or needs. It is important for you to consider these matters and, if the e-mail refers to a product(s), you should read the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any decisions. If you do not want email marketing from us in future, forward this email with unsubscribe in the subject line to [EMAIL PROTECTED] in order to stop marketing emails from this sender. National Australia Bank Ltd does not represent that this email is free of errors, viruses or interference. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Configure Rampart dynamically
Hi Brecht, Yes it is possible. Please see here: http://marc.theaimsgroup.com/?l=axis-userm=115517624610919w=2 Thanks, Ruchith On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Hi, how do I configure Rampart dynamically? I tried something like this, but it does not work... private void configureSecurity(ServiceClient client) throws AxisFault { if (true /*security == on*/) { Parameter parm = new Parameter(); parm.setName(OutflowSecurity); OMFactory fact = OMAbstractFactory.getOMFactory(); OMNamespace emptyNS = fact.createOMNamespace(null, ); OMElement actionEl = fact.createOMElement(action, emptyNS); OMElement itemsEl = fact.createOMElement(items, emptyNS); itemsEl.setText(UsernameToken); actionEl.addChild(itemsEl); OMElement userEl = fact.createOMElement(user, emptyNS); userEl.setText(bob); actionEl.addChild(userEl); OMElement pwCbEl = fact.createOMElement(passwordCallbackClass, emptyNS); pwCbEl.setText(CallbackHandler); actionEl.addChild(pwCbEl); parm.setParameterElement(actionEl); client.engageModule(new QName(rampart-1.0)); } } Thanks, Brecht Invenso - The Integration Software specialists. _ Brecht Yperman Development team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. -- www.ruchith.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2] Configure Rampart dynamically
Will try this, thanks a lot! Brecht -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 10:02 To: axis-user@ws.apache.org Subject: Re: [Axis2] Configure Rampart dynamically Hi Brecht, Yes it is possible. Please see here: http://marc.theaimsgroup.com/?l=axis-userm=115517624610919w=2 Thanks, Ruchith On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Hi, how do I configure Rampart dynamically? I tried something like this, but it does not work... private void configureSecurity(ServiceClient client) throws AxisFault { if (true /*security == on*/) { Parameter parm = new Parameter(); parm.setName(OutflowSecurity); OMFactory fact = OMAbstractFactory.getOMFactory(); OMNamespace emptyNS = fact.createOMNamespace(null, ); OMElement actionEl = fact.createOMElement(action, emptyNS); OMElement itemsEl = fact.createOMElement(items, emptyNS); itemsEl.setText(UsernameToken); actionEl.addChild(itemsEl); OMElement userEl = fact.createOMElement(user, emptyNS); userEl.setText(bob); actionEl.addChild(userEl); OMElement pwCbEl = fact.createOMElement(passwordCallbackClass, emptyNS); pwCbEl.setText(CallbackHandler); actionEl.addChild(pwCbEl); parm.setParameterElement(actionEl); client.engageModule(new QName(rampart-1.0)); } } Thanks, Brecht Invenso - The Integration Software specialists. _ Brecht Yperman Development team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. -- www.ruchith.org - 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: User Guide: Code generation for client
Thanks a lot Marcel for your findings. -Deepak On 8/8/06, Marcel Frehner [EMAIL PROTECTED] wrote: According tohttp://www.mail-archive.com/axis-user@ws.apache.org/msg16725.html , which Ihad overlooked before, we need to use the nightly snapshots. I still couldnot get it working. Now I definitely give up and wait for the next Releaseor at least for the next complete nightly build. Good luck for the rest or you!MarcelAt 18:01 07.08.2006 +0200, you wrote:Hey DeepakBy now I used to run the wsdl2java from Eclipse. Desperate as I am I triedthe command line version and got correct stub and skeleton code with the following command:wsdl2java -uri Axis2SampleDocLitService.wsdl -ss -sd -d xmlbeanswsdl2java -uri Axis2SampleDocLitService.wsdl -d xmlbeansThis will also generate a TypeSystemHolder.class which needs to be copiedto the IDE project manually(http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html). The next error I get is the following:org.apache.axis2.AxisFault: Data binding erroratorg.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)at org.apache.axis2.Axis2SampleDocLitServiceStub.echoString(Axis2SampleDocLitServiceStub.java:481)at org.Client.main(Client.java:25)No idea where that comes from:-( Maybe it's just the AXIS_HOME Good luck!MarcelMy client looks like this:package org;import org.apache.axis2.Axis2SampleDocLitServiceStub;import org.apache.axis2.userguide.xsd.EchoStringParamDocument ;import org.apache.axis2.userguide.xsd.EchoStringReturnDocument;public class Client {public static void main(String[] args){ try {//Create the stub by passing the AXIS_HOME and target EPR. //We pass null to the AXIS_HOME and hence the stub will use the current directory as the AXIS_HOMEAxis2SampleDocLitServiceStub stub= new Axis2SampleDocLitServiceStub(null, http://localhost:8080/axis2/services/Axis2SampleDocLitService);//Create the request document to be sent. EchoStringParamDocumentreqDoc= EchoStringParamDocument.Factory.newInstance();reqDoc.setEchoStringParam(Axis2 Echo);//invokes the Web service. EchoStringReturnDocument resDoc=stub.echoString(reqDoc);System.out.println(resDoc.getEchoStringReturn()); } catch (Exception e) { e.printStackTrace(); }}}At 11:28 07.08.2006 +0530, you wrote:I would really appreciate if Deepal, Derek or any active member can shedsome light on this problem. Thanks,DeepakOn 8/4/06, Marcel Frehnermailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:I gave it another try. But I could not get any further this time. I'vestillgot the following client, where stub.echoString() expects anEchoStringParam, which I don't have... package org;import org.apache.axis2.userguide.*;import org.apache.axis2.userguide.xsd.EchoStringParamDocument;import org.apache.axis2.userguide.xsd.EchoStringReturnDocument ;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.getEchoStringReturn ());} catch (Exception e) {e.printStackTrace();}}}I would very much appreciate some help!Marcel At 22:21 03.08.2006 +0530, you wrote: Thanks Marcel for the inputs. As I am new to this Axis, so would not be able to comment. I would really appreciate if anyone give us the right direction to resolve this problem. Thanks, Deepak On 8/3/06, Marcel Frehner mailto: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Deepak I've got the same problem and can't find a solution. Following up your thread about the EchoStringParam I would suggest something like the code below. But what ist the XMLStreamReader supposed to be? I mean, how can I create an EchoStringParam? Marcel *** import org.apache.axis2.userguide.Axis2SampleDocLitServiceStub; import org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.EchoStringParam ; import org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.EchoStringReturn; import javax.xml.stream.XMLStreamReader; public class Client { public static void main(String[] args) { try { Axis2SampleDocLitServiceStub stub = new Axis2SampleDocLitServiceStub( null, http://localhost:8080/axis2/services/Axis2SampleDocLitPortTypehttp:/ / localhost:8080/axis2/services/Axis2SampleDocLitPortType http://localhost : 8080/axis2/services/Axis2SampleDocLitPortType ); XMLStreamReader r=null; //of course this must not be null!!! EchoStringParam p= EchoStringParam.Factory.parse(r); p.setEchoStringParam(Axis2 Echo); EchoStringReturn resDoc = stub.echoString (p); System.out.println(resDoc.getEchoStringReturn()); } catch (Exception e) { e.printStackTrace(); } } } ***At 17:53 03.08.2006 +0530, you wrote: Hi Guys,This question has already been asked in the forum and I suppose I am the third person to ask this
[AXIS2] Best practices - RawXMLINOutMessageReceiver?
Would the folks on the list have any recommendations for best practices? If I have a service operation: public TestObject doSomething(TestObject testObject1, OtherTestObject testObject2) { return testIObject1.something(testObject2); } Would it be best to work with RawXMLINOutMessageReceiver + OMElement + xmlbeans instead of the actual xmlbeans objects themselves and have the method do the mapping from OMElement to TestObject and OtherTestObject via xmlbeans? Seems no matter what I try I can't get the service skeleton to be generated with two parameters anyway. It always has one xmlbean parameter that wraps the two params as xmlbeans inside it. i.e. TestObjectMessageDocument.getTestObjectMessage.getTestObjectType(); TestObjectMessageDocument.getTestObjectMessage.getOtherTestObjectType(); thanks, Alistair - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [AXIS2] Urgent! How to call service without return value
I have create JIRA issue : AXIS2-1002 Please kindly test it :-) Thank in advance, srusda -Original Message- From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 3:12 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Urgent! How to call service without return value Rusda, Sabri wrote: Hi Chinthaka, The server already started.. of course :-) The error happen just for service without return value (void method), it doesn't happen for service with return value. Any idea ? Can you create a JIRA attaching the aar file and your client code, so that I can test it? -- Chinthaka - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2] Best practices - RawXMLINOutMessageReceiver?
I think what I need is a extension to AbstractInOutSyncMessageReceiver that does the xmlbeans Document to Type mapping and calls the service class with those types instead of the default of calling the service class with one xmlbeans Document. Alistair On 10 Aug 2006, at 09:33, Alistair Young wrote: Would the folks on the list have any recommendations for best practices? If I have a service operation: public TestObject doSomething(TestObject testObject1, OtherTestObject testObject2) { return testIObject1.something(testObject2); } Would it be best to work with RawXMLINOutMessageReceiver + OMElement + xmlbeans instead of the actual xmlbeans objects themselves and have the method do the mapping from OMElement to TestObject and OtherTestObject via xmlbeans? Seems no matter what I try I can't get the service skeleton to be generated with two parameters anyway. It always has one xmlbean parameter that wraps the two params as xmlbeans inside it. i.e. TestObjectMessageDocument.getTestObjectMessage.getTestObjectType(); TestObjectMessageDocument.getTestObjectMessage.getOtherTestObjectType( ); thanks, Alistair - 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]
Running Axis and Axis2 in Parallel
Hi, I installed Axis2 to get started with RESTful services but also kept Axis (1) to run my other services that I do not intend to move to Axis2 yet. They are both contained in the same Tomcat. This went ok for some weeks, but today my Axis clients refuse to work, telling me: Exception in thread "main" AxisFaultfaultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalExceptionfaultSubcode:faultString: Error locating component factory; nested exception is: com.softwareag.xbridge.exceptions.ComponentNotFoundException: Can not get component for the host null factory null My Axis2 services are still running though. Can this have anything to do with my architecture, is is ok to have both Axis and Axis2 under one Tomcat, what does this error message mean ? Thanks regards, Juliane.
RE: [Axis2] Configure Rampart dynamically
Ok, Apparently I'm shit at using Axis2, no progress last two days... Where can I find the latest rampart.mar-build? Can I rename the .mar-file to .jar and add it to my build path (to use the OutflowConfiguration class)? Thanks, Brecht -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 10:02 To: axis-user@ws.apache.org Subject: Re: [Axis2] Configure Rampart dynamically Hi Brecht, Yes it is possible. Please see here: http://marc.theaimsgroup.com/?l=axis-userm=115517624610919w=2 Thanks, Ruchith On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Hi, how do I configure Rampart dynamically? I tried something like this, but it does not work... private void configureSecurity(ServiceClient client) throws AxisFault { if (true /*security == on*/) { Parameter parm = new Parameter(); parm.setName(OutflowSecurity); OMFactory fact = OMAbstractFactory.getOMFactory(); OMNamespace emptyNS = fact.createOMNamespace(null, ); OMElement actionEl = fact.createOMElement(action, emptyNS); OMElement itemsEl = fact.createOMElement(items, emptyNS); itemsEl.setText(UsernameToken); actionEl.addChild(itemsEl); OMElement userEl = fact.createOMElement(user, emptyNS); userEl.setText(bob); actionEl.addChild(userEl); OMElement pwCbEl = fact.createOMElement(passwordCallbackClass, emptyNS); pwCbEl.setText(CallbackHandler); actionEl.addChild(pwCbEl); parm.setParameterElement(actionEl); client.engageModule(new QName(rampart-1.0)); } } Thanks, Brecht Invenso - The Integration Software specialists. _ Brecht Yperman Development team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. -- www.ruchith.org - 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]
[AXIS2] nightly build problem when parsing xml stream
Hi there, Is there anything obvious that might be causing these? They occur when a MessageReceiver (generated by WSDL2Java) is trying to do a Factory.newInstance (org.apache.axiom.om.OMElement.getXMLStreamReaderWithoutCaching(), new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces (extraNamespaces)) there's no other info in the logs. first attempt at calling the service via stub: SEVERE: java.lang.ExceptionInInitializerError next attempt: SEVERE: java.lang.NoClassDefFoundError INFO: org.apache.axis2.AxisFault: null; nested exception is: com.ctc.wstx.exc.WstxIOException: null thanks, Alistair - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Configure Rampart dynamically
Please add the axis2-security-SNAPSHOT.jar [1] into your classpath to access the OutflowConfiguration/InflowConfiguration classes. Latest rampart-SNAPSHOT.mar is available here : [2]. Thanks, Ruchith [1] http://people.apache.org/repository/axis2/jars/axis2-security-SNAPSHOT.jar [2] http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Ok, Apparently I'm shit at using Axis2, no progress last two days... Where can I find the latest rampart.mar-build? Can I rename the .mar-file to .jar and add it to my build path (to use the OutflowConfiguration class)? Thanks, Brecht -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 10:02 To: axis-user@ws.apache.org Subject: Re: [Axis2] Configure Rampart dynamically Hi Brecht, Yes it is possible. Please see here: http://marc.theaimsgroup.com/?l=axis-userm=115517624610919w=2 Thanks, Ruchith On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Hi, how do I configure Rampart dynamically? I tried something like this, but it does not work... private void configureSecurity(ServiceClient client) throws AxisFault { if (true /*security == on*/) { Parameter parm = new Parameter(); parm.setName(OutflowSecurity); OMFactory fact = OMAbstractFactory.getOMFactory(); OMNamespace emptyNS = fact.createOMNamespace(null, ); OMElement actionEl = fact.createOMElement(action, emptyNS); OMElement itemsEl = fact.createOMElement(items, emptyNS); itemsEl.setText(UsernameToken); actionEl.addChild(itemsEl); OMElement userEl = fact.createOMElement(user, emptyNS); userEl.setText(bob); actionEl.addChild(userEl); OMElement pwCbEl = fact.createOMElement(passwordCallbackClass, emptyNS); pwCbEl.setText(CallbackHandler); actionEl.addChild(pwCbEl); parm.setParameterElement(actionEl); client.engageModule(new QName(rampart-1.0)); } } Thanks, Brecht Invenso - The Integration Software specialists. _ Brecht Yperman Development team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. -- www.ruchith.org - 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] -- www.ruchith.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2] Best practices - RawXMLINOutMessageReceiver?
The reason why you can't get Axis to generate a skeleton with two parameters is that Axis2 does not yet support automatic unwrapping of method parameters when using document style (i.e., wrapped doc/literal). SOAP permits only one child element in the soap:Body. If you use document style, then that child element must be a single element (bean) that wraps your method parameters. When using wrapped doc/literal, the SOAP server automatically wraps and unwraps your method parameters for you. But since Axis2 doesn't support wrapped you must use a single bean. The developers are working on building support for wrapped style. As an alternative, you could use RPC/literal style with the RPC receiver. That should give you the ability to specify your individual parameters in your method signature. Anne On 8/10/06, Alistair Young [EMAIL PROTECTED] wrote: I think what I need is a extension to AbstractInOutSyncMessageReceiver that does the xmlbeans Document to Type mapping and calls the service class with those types instead of the default of calling the service class with one xmlbeans Document. Alistair On 10 Aug 2006, at 09:33, Alistair Young wrote: Would the folks on the list have any recommendations for best practices? If I have a service operation: public TestObject doSomething(TestObject testObject1, OtherTestObject testObject2) { return testIObject1.something(testObject2); } Would it be best to work with RawXMLINOutMessageReceiver + OMElement + xmlbeans instead of the actual xmlbeans objects themselves and have the method do the mapping from OMElement to TestObject and OtherTestObject via xmlbeans? Seems no matter what I try I can't get the service skeleton to be generated with two parameters anyway. It always has one xmlbean parameter that wraps the two params as xmlbeans inside it. i.e. TestObjectMessageDocument.getTestObjectMessage.getTestObjectType(); TestObjectMessageDocument.getTestObjectMessage.getOtherTestObjectType( ); thanks, Alistair - 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: [AXIS2] Best practices - RawXMLINOutMessageReceiver?
Thank you Anne. That makes sense and I should have remembered the SOAP body restriction! thanks, Alistair On 10 Aug 2006, at 13:44, Anne Thomas Manes wrote: The reason why you can't get Axis to generate a skeleton with two parameters is that Axis2 does not yet support automatic unwrapping of method parameters when using document style (i.e., wrapped doc/literal). SOAP permits only one child element in the soap:Body. If you use document style, then that child element must be a single element (bean) that wraps your method parameters. When using wrapped doc/literal, the SOAP server automatically wraps and unwraps your method parameters for you. But since Axis2 doesn't support wrapped you must use a single bean. The developers are working on building support for wrapped style. As an alternative, you could use RPC/literal style with the RPC receiver. That should give you the ability to specify your individual parameters in your method signature. Anne On 8/10/06, Alistair Young [EMAIL PROTECTED] wrote: I think what I need is a extension to AbstractInOutSyncMessageReceiver that does the xmlbeans Document to Type mapping and calls the service class with those types instead of the default of calling the service class with one xmlbeans Document. Alistair On 10 Aug 2006, at 09:33, Alistair Young wrote: Would the folks on the list have any recommendations for best practices? If I have a service operation: public TestObject doSomething(TestObject testObject1, OtherTestObject testObject2) { return testIObject1.something(testObject2); } Would it be best to work with RawXMLINOutMessageReceiver + OMElement + xmlbeans instead of the actual xmlbeans objects themselves and have the method do the mapping from OMElement to TestObject and OtherTestObject via xmlbeans? Seems no matter what I try I can't get the service skeleton to be generated with two parameters anyway. It always has one xmlbean parameter that wraps the two params as xmlbeans inside it. i.e. TestObjectMessageDocument.getTestObjectMessage.getTestObjectType(); TestObjectMessageDocument.getTestObjectMessage.getOtherTestObjectType ( ); thanks, Alistair - 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: [Axis2] Custom headers
Maybe I'm missing something ... but why can't you use ServiceClient.addHeader() ? HTH, Robert http://www.braziloutsource.com/ On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Any ideas here? This project is rather urgent, and my question seems quite trivial to me (although I am unable to do it). All I want to do is send along custom headers and receive custom headers. Thanks, Brecht From: Brecht Yperman [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 augustus 2006 14:45 To: axis-user@ws.apache.org Subject: [Axis2] Custom headers Hi, I'm using the serviceclient to call webservices. I would like the user to be able to add custom headers to the headerelements. I should also be able to return custom headerelements from the response to the user. I thought about writing a handler, but I have a few problems (how to get the elements from the user to the handler?, ...) How do I start? Thanks a lot, Brecht Invenso - The Integration Software specialists. _ Brecht Yperman Development team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. - 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] Custom headers
That is indeed possible to send custom headers. How do I receive them? Thanks, Brecht -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 15:11 To: axis-user@ws.apache.org Subject: Re: [Axis2] Custom headers Maybe I'm missing something ... but why can't you use ServiceClient.addHeader() ? HTH, Robert http://www.braziloutsource.com/ On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Any ideas here? This project is rather urgent, and my question seems quite trivial to me (although I am unable to do it). All I want to do is send along custom headers and receive custom headers. Thanks, Brecht From: Brecht Yperman [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 augustus 2006 14:45 To: axis-user@ws.apache.org Subject: [Axis2] Custom headers Hi, I'm using the serviceclient to call webservices. I would like the user to be able to add custom headers to the headerelements. I should also be able to return custom headerelements from the response to the user. I thought about writing a handler, but I have a few problems (how to get the elements from the user to the handler?, ...) How do I start? Thanks a lot, Brecht Invenso - The Integration Software specialists. _ Brecht Yperman Development team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. - 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: some questions about the wsdl snippet
Please see http://atmanes.blogspot.com/2006/07/short-explanation-of-xml-namespaces.html for a short explanation of namespaces. A namespace URI is just a name. It can but does not need to resolve to a file. It must conform to the requirements of a URI, as defined by RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt). It's purpose is to help you tell the difference between multiple elements/attributes/types with the same name. To answer your specific questions: 1. targetNamespace=http://www.ecerami.com/wsdl/WeatherService.wsdl; is this for the definition of namespace of the file? if yes,why are we need that xmlns:tns=http://www.ecerami.com/wsdl/WeatherService.wsdl;? what's the effection of tns? The targetNamespace attribute creates the namespace and specifies that all entities defined in the WSDL belong to the namespace. It does not specify a way to refer to this namespace from within the document. The xmlns:tns attribute declares a namespace and specifies a way to refer to namespace (via the tns prefix). 2.xmlns:xsd=http://www.w3.org/2001/XMLSchema; who verify the URI ?the parser of xml written by java?And when i should write 2001 or 1999 in the URI? This is the namespace of the final version of the XML Schema specification (http://www.w3.org/TR/xmlschema-1/). The 2000 and 1999 versions refer to pre-standard versions of XML Schema. You should not use previous versions of XML Schema. Any applications that you might have deployed that use a pre-standard version of XML Schema should be upgraded to use the final standard. A parser typically does not verify the URI, but anything that performs validation or data mapping will. 3.encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; why should we write like this? shall we definit in the beginnig of the file? is there a parser to parse the sentence? what's the results? The encodingStyle attribute specifies the name (a URI) of an encoding style to be used to encode the RPC body. This attribute is only used when the use attribute is specified as use=encoded. (The SOAP spec says that you may use alternative encoding styles, therefore you must specify the specific encoding style that you want used.) In this case the name of the encoding style just happens to be the same as the namespace for the SOAP Encoding type system, but this attribute does not declare the namespace, nor can you replace this attribute by declaring a namespace at the beginning of the file (or anywhere else in the document). You don't need to declare that namespace unless you need to reference an entity from the namespace. For example, if your message part specified this: message name=getWeatherRequest part name=zipcode type=soapenc:string/ /message then you would need to include a namespace declaration for the soapenc namespace: xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; Namespace declarations do not need to be specified at the beginning of the file -- they just need to be in scope for the element that references the namespace. For example, you could put the namespace declaration within the message part: message name=getWeatherRequest part name=zipcode type=soapenc:string xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding// /message Anne On 8/10/06, wupeng [EMAIL PROTECTED] wrote: ?xml version=1.0 encoding=UTF-8? definitions name=WeatherService targetNamespace=http://www.ecerami.com/wsdl/WeatherService.wsdl; xmlns=http://schemas.xmlsoap.org/wsdl/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tns=http://www.ecerami.com/wsdl/WeatherService.wsdl; xmlns:xsd=http://www.w3.org/2001/XMLSchema; message name=getWeatherRequest part name=zipcode type=xsd:string/ /message message name=getWeatherResponse part name=temperature type=xsd:int/ /message portType name=Weather_PortType operation name=getWeather input message=tns:getWeatherRequest/ output message=tns:getWeatherResponse/ /operation /portType binding name=Weather_Binding type=tns:Weather_PortType soap:binding style=rpc transport=http://schemas.xmlsoap.org/soap/http/ operation name=getWeather soap:operation soapAction=/ input soap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=urn:examples:weatherservice use=encoded/ /input output soap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=urn:examples:weatherservice use=encoded/ /output /operation /binding service name=Weather_Service documentationWSDL File for Weather Service/documentation port binding=tns:Weather_Binding name=Weather_Port soap:address location=http://localhost:8080/soap/servlet/rpcrouter/ /port /service /definitions 1.
AW: [Axis2] Custom headers
I had the same problem a few days ago. I put parameters to the AxisEngine by call.setOption(...). Then my client-side handler read these paramters by messageContext.getAxisEngine.getOption(...) and filled himself the header with these parameters. Hope I can help you... If you found a better solution, tell me please! Andi -Ursprüngliche Nachricht- Von: Brecht Yperman [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. August 2006 09:12 An: axis-user@ws.apache.org Betreff: RE: [Axis2] Custom headers Any ideas here? This project is rather urgent, and my question seems quite trivial to me (although I am unable to do it). All I want to do is send along custom headers and receive custom headers. Thanks, Brecht From: Brecht Yperman [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 augustus 2006 14:45 To: axis-user@ws.apache.org Subject: [Axis2] Custom headers Hi, I'm using the serviceclient to call webservices. I would like the user to be able to add custom headers to the headerelements. I should also be able to return custom headerelements from the response to the user. I thought about writing a handler, but I have a few problems (how to get the elements from the user to the handler?, ...) How do I start? Thanks a lot, Brecht Invenso - The Integration Software specialists. _ Brecht Yperman Development team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. - 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] nightly build problem when parsing xml stream
aha! handy thing a debugger coz the exception doesn't make it into the log. schemaorg_apache_xmlbeans.system.sA6973D16021071091ABD334B25B9A53E.TypeS ystemHolder was missing. sorted Alistair On 10 Aug 2006, at 13:11, Alistair Young wrote: Hi there, Is there anything obvious that might be causing these? They occur when a MessageReceiver (generated by WSDL2Java) is trying to do a Factory.newInstance (org.apache.axiom.om.OMElement.getXMLStreamReaderWithoutCaching(), new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces (extraNamespaces)) there's no other info in the logs. first attempt at calling the service via stub: SEVERE: java.lang.ExceptionInInitializerError next attempt: SEVERE: java.lang.NoClassDefFoundError INFO: org.apache.axis2.AxisFault: null; nested exception is: com.ctc.wstx.exc.WstxIOException: null thanks, Alistair - 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] Custom headers
If I understand you correctly - you just need to access the header on the service side that the client has set. If that's the case, you need to use a recent nightly and have the Service implement the interface org.apache.axis2.Service . Then its something like... OperationContext _oc; public void setOperationContext(OperationContext oc){ _oc = oc; } What you need to do then is get the SOAPEnvelope from the MessageContext from the INFLOW. That would roughly be: _oc.getMessageContext(In).getTo().getAllReferenceParameters().get(qnameOfReferenceParameter); HTH, Robert http://www.braziloutsource.com/ On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: That is indeed possible to send custom headers. How do I receive them? Thanks, Brecht -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 15:11 To: axis-user@ws.apache.org Subject: Re: [Axis2] Custom headers Maybe I'm missing something ... but why can't you use ServiceClient.addHeader() ? HTH, Robert http://www.braziloutsource.com/ On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Any ideas here? This project is rather urgent, and my question seems quite trivial to me (although I am unable to do it). All I want to do is send along custom headers and receive custom headers. Thanks, Brecht From: Brecht Yperman [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 augustus 2006 14:45 To: axis-user@ws.apache.org Subject: [Axis2] Custom headers Hi, I'm using the serviceclient to call webservices. I would like the user to be able to add custom headers to the headerelements. I should also be able to return custom headerelements from the response to the user. I thought about writing a handler, but I have a few problems (how to get the elements from the user to the handler?, ...) How do I start? Thanks a lot, Brecht Invenso - The Integration Software specialists. _ Brecht Yperman Development team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. - 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: [Axis2] Custom headers
It's only client-side. I want to send headers to the server-side service. I suppose the server-side service can also send headers back, so I would like to receive those as well. Thanks, Brecht -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 15:47 To: axis-user@ws.apache.org Subject: Re: [Axis2] Custom headers If I understand you correctly - you just need to access the header on the service side that the client has set. If that's the case, you need to use a recent nightly and have the Service implement the interface org.apache.axis2.Service . Then its something like... OperationContext _oc; public void setOperationContext(OperationContext oc){ _oc = oc; } What you need to do then is get the SOAPEnvelope from the MessageContext from the INFLOW. That would roughly be: _oc.getMessageContext(In).getTo().getAllReferenceParameters().get(qnam eOfReferenceParameter); HTH, Robert http://www.braziloutsource.com/ On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: That is indeed possible to send custom headers. How do I receive them? Thanks, Brecht -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 15:11 To: axis-user@ws.apache.org Subject: Re: [Axis2] Custom headers Maybe I'm missing something ... but why can't you use ServiceClient.addHeader() ? HTH, Robert http://www.braziloutsource.com/ On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Any ideas here? This project is rather urgent, and my question seems quite trivial to me (although I am unable to do it). All I want to do is send along custom headers and receive custom headers. Thanks, Brecht From: Brecht Yperman [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 augustus 2006 14:45 To: axis-user@ws.apache.org Subject: [Axis2] Custom headers Hi, I'm using the serviceclient to call webservices. I would like the user to be able to add custom headers to the headerelements. I should also be able to return custom headerelements from the response to the user. I thought about writing a handler, but I have a few problems (how to get the elements from the user to the handler?, ...) How do I start? Thanks a lot, Brecht Invenso - The Integration Software specialists. _ Brecht Yperman Development team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. - 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: [Axis2] Configure Rampart dynamically
Now I get the following error: java.lang.NoClassDefFoundError: org/apache/ws/security/handler/WSHandler at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.axis2.deployment.util.Utils.getHandlerClass(Utils.java:201) at org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:61) at org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngi ne.java:324) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j ava:588) at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.j ava:165) at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener .java:53) at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEn gine.java:113) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration( FileSystemConfigurator.java:116) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration Context(ConfigurationContextFactory.java:61) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration ContextFromFileSystem(ConfigurationContextFactory.java:170) This class is in the rampart-SNAPSHOT.mar file, in the lib/wss4j-SNAPSHOT.jar I didn't have this error before. Can you help me? Thanks, Brecht -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 14:15 To: axis-user@ws.apache.org Subject: Re: [Axis2] Configure Rampart dynamically Please add the axis2-security-SNAPSHOT.jar [1] into your classpath to access the OutflowConfiguration/InflowConfiguration classes. Latest rampart-SNAPSHOT.mar is available here : [2]. Thanks, Ruchith [1] http://people.apache.org/repository/axis2/jars/axis2-security-SNAPSHOT.j ar [2] http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Ok, Apparently I'm shit at using Axis2, no progress last two days... Where can I find the latest rampart.mar-build? Can I rename the .mar-file to .jar and add it to my build path (to use the OutflowConfiguration class)? Thanks, Brecht -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 10:02 To: axis-user@ws.apache.org Subject: Re: [Axis2] Configure Rampart dynamically Hi Brecht, Yes it is possible. Please see here: http://marc.theaimsgroup.com/?l=axis-userm=115517624610919w=2 Thanks, Ruchith On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Hi, how do I configure Rampart dynamically? I tried something like this, but it does not work... private void configureSecurity(ServiceClient client) throws AxisFault { if (true /*security == on*/) { Parameter parm = new Parameter(); parm.setName(OutflowSecurity); OMFactory fact = OMAbstractFactory.getOMFactory(); OMNamespace emptyNS = fact.createOMNamespace(null, ); OMElement actionEl = fact.createOMElement(action, emptyNS); OMElement itemsEl = fact.createOMElement(items,
Re: [Axis2] Custom headers
You still need to implement the Service interface the get access to the soap envelope via Operation ctx -- message ctx INFLOW -- soap envelope . That'll have your header. Services that set headers typically do that in a handler, using roughly the same logic. HTH, Robert http://www.braziloutsource.com/ On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: It's only client-side. I want to send headers to the server-side service. I suppose the server-side service can also send headers back, so I would like to receive those as well. Thanks, Brecht -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 15:47 To: axis-user@ws.apache.org Subject: Re: [Axis2] Custom headers If I understand you correctly - you just need to access the header on the service side that the client has set. If that's the case, you need to use a recent nightly and have the Service implement the interface org.apache.axis2.Service . Then its something like... OperationContext _oc; public void setOperationContext(OperationContext oc){ _oc = oc; } What you need to do then is get the SOAPEnvelope from the MessageContext from the INFLOW. That would roughly be: _oc.getMessageContext(In).getTo().getAllReferenceParameters().get(qnam eOfReferenceParameter); HTH, Robert http://www.braziloutsource.com/ On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: That is indeed possible to send custom headers. How do I receive them? Thanks, Brecht -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 15:11 To: axis-user@ws.apache.org Subject: Re: [Axis2] Custom headers Maybe I'm missing something ... but why can't you use ServiceClient.addHeader() ? HTH, Robert http://www.braziloutsource.com/ On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Any ideas here? This project is rather urgent, and my question seems quite trivial to me (although I am unable to do it). All I want to do is send along custom headers and receive custom headers. Thanks, Brecht From: Brecht Yperman [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 augustus 2006 14:45 To: axis-user@ws.apache.org Subject: [Axis2] Custom headers Hi, I'm using the serviceclient to call webservices. I would like the user to be able to add custom headers to the headerelements. I should also be able to return custom headerelements from the response to the user. I thought about writing a handler, but I have a few problems (how to get the elements from the user to the handler?, ...) How do I start? Thanks a lot, Brecht Invenso - The Integration Software specialists. _ Brecht Yperman Development team Direct: +32 (0)3 780 30 05 Email: [EMAIL PROTECTED] INVENSO bvba Industriepark-West 75 9100 Sint-Niklaas Belgium - Europe Phone: +32 (0)3 780 30 02 Fax: +32 (0)3 780 30 03 Email: [EMAIL PROTECTED] Website: www.invenso.com E-mail disclaimer: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. - 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]
Filter AxisFault and change response with Handlers
Hello,I would like to filter all the AxisFault which can occurs to send a customized response to the client. Instead of sending a SOAPFault to the client, I would prefer send it a SOAP message containing some clear explanation. I know how to set up an Axis handler. I know how to catch any fault (public void onFault(MessageContext context) {...}). But I don't know how to change the response and send a particular SOAP message.Can somebody help me ? Thanks,Laurent
Re: [Axis2] Configure Rampart dynamically
Hi Brecht, Please add wss4j-SNAPSHOT.jar to the classpath. This is required by axis2-security-SNAPSHOT.jar Thanks, Ruchith On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Now I get the following error: java.lang.NoClassDefFoundError: org/apache/ws/security/handler/WSHandler at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.axis2.deployment.util.Utils.getHandlerClass(Utils.java:201) at org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:61) at org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngi ne.java:324) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j ava:588) at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.j ava:165) at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener .java:53) at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEn gine.java:113) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration( FileSystemConfigurator.java:116) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration Context(ConfigurationContextFactory.java:61) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration ContextFromFileSystem(ConfigurationContextFactory.java:170) This class is in the rampart-SNAPSHOT.mar file, in the lib/wss4j-SNAPSHOT.jar I didn't have this error before. Can you help me? Thanks, Brecht -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 14:15 To: axis-user@ws.apache.org Subject: Re: [Axis2] Configure Rampart dynamically Please add the axis2-security-SNAPSHOT.jar [1] into your classpath to access the OutflowConfiguration/InflowConfiguration classes. Latest rampart-SNAPSHOT.mar is available here : [2]. Thanks, Ruchith [1] http://people.apache.org/repository/axis2/jars/axis2-security-SNAPSHOT.j ar [2] http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Ok, Apparently I'm shit at using Axis2, no progress last two days... Where can I find the latest rampart.mar-build? Can I rename the .mar-file to .jar and add it to my build path (to use the OutflowConfiguration class)? Thanks, Brecht -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 10:02 To: axis-user@ws.apache.org Subject: Re: [Axis2] Configure Rampart dynamically Hi Brecht, Yes it is possible. Please see here: http://marc.theaimsgroup.com/?l=axis-userm=115517624610919w=2 Thanks, Ruchith On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Hi, how do I configure Rampart dynamically? I tried something like this, but it does not work... private void configureSecurity(ServiceClient client) throws AxisFault { if (true /*security == on*/) { Parameter parm = new Parameter(); parm.setName(OutflowSecurity); OMFactory fact = OMAbstractFactory.getOMFactory(); OMNamespace emptyNS =
RE: [Axis2] Configure Rampart dynamically
Hi, I also added xmlsec-1.3.0.jar and rahas-SNAPSHOT.jar and now it seems to work (= the rampart module loads, still have to check out functionality). Thanks -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 16:06 To: axis-user@ws.apache.org Subject: Re: [Axis2] Configure Rampart dynamically Hi Brecht, Please add wss4j-SNAPSHOT.jar to the classpath. This is required by axis2-security-SNAPSHOT.jar Thanks, Ruchith On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Now I get the following error: java.lang.NoClassDefFoundError: org/apache/ws/security/handler/WSHandler at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.axis2.deployment.util.Utils.getHandlerClass(Utils.java:201) at org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:61) at org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngi ne.java:324) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j ava:588) at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.j ava:165) at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener .java:53) at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEn gine.java:113) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration( FileSystemConfigurator.java:116) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration Context(ConfigurationContextFactory.java:61) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration ContextFromFileSystem(ConfigurationContextFactory.java:170) This class is in the rampart-SNAPSHOT.mar file, in the lib/wss4j-SNAPSHOT.jar I didn't have this error before. Can you help me? Thanks, Brecht -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 14:15 To: axis-user@ws.apache.org Subject: Re: [Axis2] Configure Rampart dynamically Please add the axis2-security-SNAPSHOT.jar [1] into your classpath to access the OutflowConfiguration/InflowConfiguration classes. Latest rampart-SNAPSHOT.mar is available here : [2]. Thanks, Ruchith [1] http://people.apache.org/repository/axis2/jars/axis2-security-SNAPSHOT.j ar [2] http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Ok, Apparently I'm shit at using Axis2, no progress last two days... Where can I find the latest rampart.mar-build? Can I rename the .mar-file to .jar and add it to my build path (to use the OutflowConfiguration class)? Thanks, Brecht -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: donderdag 10 augustus 2006 10:02 To: axis-user@ws.apache.org Subject: Re: [Axis2] Configure Rampart dynamically Hi Brecht, Yes it is possible. Please see here: http://marc.theaimsgroup.com/?l=axis-userm=115517624610919w=2 Thanks, Ruchith On 8/10/06, Brecht Yperman [EMAIL PROTECTED] wrote: Hi, how do I
AW: Filter AxisFault and change response with Handlers
try it with the saaj-api, with which you can build your own soap messages Von: laurent grangier [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. August 2006 16:04An: axis-user@ws.apache.orgBetreff: Filter AxisFault and change response with Handlers Hello,I would like to filter all the AxisFault which can occurs to send a customized response to the client. Instead of sending a SOAPFault to the client, I would prefer send it a SOAP message containing some clear explanation. I know how to set up an Axis handler. I know how to catch any fault (public void onFault(MessageContext context) {...}). But I don't know how to change the response and send a particular SOAP message.Can somebody help me ? Thanks,Laurent
Base64
Hi All, I have a web services written in Java. and the client for this webservice is in .Net environment. I am passing an image file in this webservice using Base64 encoding. Now the question is will the .Net client able to decode the same? Please provide your views/inputs. Thank You Nirmish -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.7/411 - Release Date: 8/7/2006
RE: [AXIS2] OutflowSecurity configuration
...what if I am not using nightly build? I still am using axis2 1.0 orginal release, after attempting to switch over it seems to be several degrees of added complexity to use the nightly, since I am using the Java2WSDL/WSDL2Java tool for code/doc gen, etc (cannot get cmd line WSDL2Java going correctly). Thanks, Alan J Alan R Jones Software Engineering Boeing SIS Mission Systems Denver Engineering Center (BDEC) -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 8:17 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] OutflowSecurity configuration Hi aj, Yes its possible to set the configuration dynamically within the service (for the service client). If you are using the nightly build then you can use org.apache.rampart.handler.config.OutflowConfiguration and org.apache.rampart.handler.config.InflowConfiguration for this. You can create instances of the above classes and set different config parameters using the available setter methods (See [1] getOutflowConfiguration() and getInflowConfiguration()). Then you can obtain an Axis2 parameter form each of the above instances by calling getProerty(). This parameter instance can be set in the options object of the ServiceClient (See here [2] invokeWithGivenConfig()). Thanks, Ruchith [1] https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/in tegration/test/org/apache/axis2/security/AddressingMTOMSecurityTest.java [2] https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/se curity/interop/org/apache/axis2/security/InteropScenarioClient.java On 8/10/06, Jones, Alan R [EMAIL PROTECTED] wrote: Assuming there are several services deployed to the same axis2 deployment (Tomcat) and they all need to talk to each other with secured messages... Each service is also a client of one or more other services. Therefore, each service will need its own axis2.xml in order to config its keystore alias/user, the sec.properties, etc. via OutflowSecurity entry. This implies a separate axis2 client repository for each provider/consumer, which in turn requires a certain directory structure (repos/conf, repos/modules, etc) since axis throws errors when the structure is absent. This is not desirable. S... Is it possible to instead dynamically set the OutflowSecurity parameters inside each service, as it begins to make its call to an external service, eliminating the need for a static config file and all its attendant other stuff? Thanks, aj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- www.ruchith.org - 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: Base64
Yes. Define it as type=xsd:base64binary. Anne On 8/10/06, Nirmish Dholakia [EMAIL PROTECTED] wrote: Hi All, I have a web services written in Java. and the client for this webservice is in .Net environment. I am passing an image file in this webservice using Base64 encoding. Now the question is will the .Net client able to decode the same? Please provide your views/inputs. Thank You Nirmish -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.7/411 - Release Date: 8/7/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filter AxisFault and change response with Handlers
You must also define your response message element such that it contains a choice, e.g., s:element name=operationResponse s:complexType s:choice s:operationReturn type=tns:operationReturnType/ s:operationFault type=tns:operationFaultType/ /s:choice /s:complexType /s:element On 8/10/06, CT IC 1 Gast 15 [EMAIL PROTECTED] wrote: try it with the saaj-api, with which you can build your own soap messages Von: laurent grangier [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. August 2006 16:04 An: axis-user@ws.apache.org Betreff: Filter AxisFault and change response with Handlers Hello, I would like to filter all the AxisFault which can occurs to send a customized response to the client. Instead of sending a SOAPFault to the client, I would prefer send it a SOAP message containing some clear explanation. I know how to set up an Axis handler. I know how to catch any fault (public void onFault(MessageContext context) {...}). But I don't know how to change the response and send a particular SOAP message. Can somebody help me ? Thanks, Laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help: Exception when i use 2 level
Hi, my opration is simply a receive, it receive some parameters, those parameterscan be sorted in several field (or type), therefore i made such a SOAP message: project1:receive xmlns:project1= http://www.foo.com project1:user field project1:USER_ID123456789012/cashback_soap:USER_ID project1:DATEThu Aug 10 12:06:34 CEST 2006/project1:DATE /project1:user field/project1:receivebut when i send to server side ( a service using AXIS2), in my receive methodsuch a message is given: project1:receive xmlns:project1= http://www.foo.com project1:USER_ID123456789012/cashback_soap:USER_ID project1:DATEThu Aug 10 12:06:34 CEST 2006/project1:DATE field /project1:receivewhen my service processe it, clearly Exception. I test all this in local PC, it is impossiblethe communication make this. Have U some idea, what make this happen? Thanks,
Re: [AXIS2] nightly build problem when parsing xml stream
if u use the generated build.xml it packages up the *.xsb stuff into a jar and then places that into the aar. -- dims On 8/10/06, Alistair Young [EMAIL PROTECTED] wrote: aha! handy thing a debugger coz the exception doesn't make it into the log. schemaorg_apache_xmlbeans.system.sA6973D16021071091ABD334B25B9A53E.TypeS ystemHolder was missing. sorted Alistair On 10 Aug 2006, at 13:11, Alistair Young wrote: Hi there, Is there anything obvious that might be causing these? They occur when a MessageReceiver (generated by WSDL2Java) is trying to do a Factory.newInstance (org.apache.axiom.om.OMElement.getXMLStreamReaderWithoutCaching(), new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces (extraNamespaces)) there's no other info in the logs. first attempt at calling the service via stub: SEVERE: java.lang.ExceptionInInitializerError next attempt: SEVERE: java.lang.NoClassDefFoundError INFO: org.apache.axis2.AxisFault: null; nested exception is: com.ctc.wstx.exc.WstxIOException: null thanks, Alistair - 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: Help: Exception when i use 2 level
The XML you posted is malformed. The start tag and end tags must match: project1:USER_ID123456789012/cashback_soap:USER_ID Also, an element's local name cannot contain spaces: project1:user field Anne On 8/10/06, Guido Walden [EMAIL PROTECTED] wrote: Hi, my opration is simply a receive, it receive some parameters, those parameters can be sorted in several field (or type), therefore i made such a SOAP message: project1:receive xmlns:project1= http://www.foo.com; project1:user field project1:USER_ID123456789012/cashback_soap:USER_ID project1:DATEThu Aug 10 12:06:34 CEST 2006/project1:DATE /project1:user field /project1:receive but when i send to server side ( a service using AXIS2), in my receive method such a message is given: project1:receive xmlns:project1= http://www.foo.com; project1:USER_ID123456789012/cashback_soap:USER_ID project1:DATEThu Aug 10 12:06:34 CEST 2006/project1:DATE field /project1:receive when my service processe it, clearly Exception. I test all this in local PC, it is impossible the communication make this. Have U some idea, what make this happen? Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help: Exception when i use 2 level
Thanks Anne, I only forget modify it in eMail, in real all project1 is cashback_soap. and i have this tested using jUnit without AXIS2 server, but when i deploy it in server, then comes this problem :(
Re: [AXIS2] OutflowSecurity configuration
If you are using Axis2-1.0 and Rampart-1.0 then there's only one difference: The package of InflowConiguration and OutflowConfiguration are : org.apache.axis2.security.handler.config The usage is the same. Thanks, Ruchith On 8/10/06, Jones, Alan R [EMAIL PROTECTED] wrote: ...what if I am not using nightly build? I still am using axis2 1.0 orginal release, after attempting to switch over it seems to be several degrees of added complexity to use the nightly, since I am using the Java2WSDL/WSDL2Java tool for code/doc gen, etc (cannot get cmd line WSDL2Java going correctly). Thanks, Alan J Alan R Jones Software Engineering Boeing SIS Mission Systems Denver Engineering Center (BDEC) -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 8:17 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] OutflowSecurity configuration Hi aj, Yes its possible to set the configuration dynamically within the service (for the service client). If you are using the nightly build then you can use org.apache.rampart.handler.config.OutflowConfiguration and org.apache.rampart.handler.config.InflowConfiguration for this. You can create instances of the above classes and set different config parameters using the available setter methods (See [1] getOutflowConfiguration() and getInflowConfiguration()). Then you can obtain an Axis2 parameter form each of the above instances by calling getProerty(). This parameter instance can be set in the options object of the ServiceClient (See here [2] invokeWithGivenConfig()). Thanks, Ruchith [1] https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/in tegration/test/org/apache/axis2/security/AddressingMTOMSecurityTest.java [2] https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/se curity/interop/org/apache/axis2/security/InteropScenarioClient.java On 8/10/06, Jones, Alan R [EMAIL PROTECTED] wrote: Assuming there are several services deployed to the same axis2 deployment (Tomcat) and they all need to talk to each other with secured messages... Each service is also a client of one or more other services. Therefore, each service will need its own axis2.xml in order to config its keystore alias/user, the sec.properties, etc. via OutflowSecurity entry. This implies a separate axis2 client repository for each provider/consumer, which in turn requires a certain directory structure (repos/conf, repos/modules, etc) since axis throws errors when the structure is absent. This is not desirable. S... Is it possible to instead dynamically set the OutflowSecurity parameters inside each service, as it begins to make its call to an external service, eliminating the need for a static config file and all its attendant other stuff? Thanks, aj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- www.ruchith.org - 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] -- www.ruchith.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help: Exception when i use 2 level
Please post the correct XML that your create and what gets sent. On 8/10/06, Guido Walden [EMAIL PROTECTED] wrote: Thanks Anne, I only forget modify it in eMail, in real all project1 is cashback_soap. and i have this tested using jUnit without AXIS2 server, but when i deploy it in server, then comes this problem :( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [AXIS2] OutflowSecurity configuration
OK, thanks, I will give it a shot! Thanks, Alan J Alan R Jones Software Engineering Boeing SIS Mission Systems Denver Engineering Center (BDEC) -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 9:51 AM To: axis-user@ws.apache.org Subject: Re: [AXIS2] OutflowSecurity configuration If you are using Axis2-1.0 and Rampart-1.0 then there's only one difference: The package of InflowConiguration and OutflowConfiguration are : org.apache.axis2.security.handler.config The usage is the same. Thanks, Ruchith On 8/10/06, Jones, Alan R [EMAIL PROTECTED] wrote: ...what if I am not using nightly build? I still am using axis2 1.0 orginal release, after attempting to switch over it seems to be several degrees of added complexity to use the nightly, since I am using the Java2WSDL/WSDL2Java tool for code/doc gen, etc (cannot get cmd line WSDL2Java going correctly). Thanks, Alan J Alan R Jones Software Engineering Boeing SIS Mission Systems Denver Engineering Center (BDEC) -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 8:17 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] OutflowSecurity configuration Hi aj, Yes its possible to set the configuration dynamically within the service (for the service client). If you are using the nightly build then you can use org.apache.rampart.handler.config.OutflowConfiguration and org.apache.rampart.handler.config.InflowConfiguration for this. You can create instances of the above classes and set different config parameters using the available setter methods (See [1] getOutflowConfiguration() and getInflowConfiguration()). Then you can obtain an Axis2 parameter form each of the above instances by calling getProerty(). This parameter instance can be set in the options object of the ServiceClient (See here [2] invokeWithGivenConfig()). Thanks, Ruchith [1] https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/ in tegration/test/org/apache/axis2/security/AddressingMTOMSecurityTest.ja va [2] https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/ se curity/interop/org/apache/axis2/security/InteropScenarioClient.java On 8/10/06, Jones, Alan R [EMAIL PROTECTED] wrote: Assuming there are several services deployed to the same axis2 deployment (Tomcat) and they all need to talk to each other with secured messages... Each service is also a client of one or more other services. Therefore, each service will need its own axis2.xml in order to config its keystore alias/user, the sec.properties, etc. via OutflowSecurity entry. This implies a separate axis2 client repository for each provider/consumer, which in turn requires a certain directory structure (repos/conf, repos/modules, etc) since axis throws errors when the structure is absent. This is not desirable. S... Is it possible to instead dynamically set the OutflowSecurity parameters inside each service, as it begins to make its call to an external service, eliminating the need for a static config file and all its attendant other stuff? Thanks, aj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- www.ruchith.org - 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] -- www.ruchith.org - 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]
Sending Large Attachments (100MB+) using AXIS to different App. Servers
I have been trying to send an DIME attachment of a file (100MB+). This same code works for a file around 40MB.I am using Axis 1.3 and Weblogic 8.1.6. I am using commonshttpsender as described in axis FAQ. Client Code: ((Stub)assetSourceClientAPIAdapter).addAttachment(new DataHandler(new FileDataSource(newFile)));// To use http 1.1 and chunking uncomment the line below and use CommonsHttp ((Stub)assetSourceClientAPIAdapter)._setProperty(MessageContext.HTTP_TRANSPORT_VERSION, HTTPConstants.HEADER_PROTOCOL_V11); Hashtable myhttp = new Hashtable(); myhttp.put(HTTPConstants.HEADER_TRANSFER_ENCODING , HTTPConstants.HEADER_TRANSFER_ENCODING_CHUNKED); ((Stub)assetSourceClientAPIAdapter)._setProperty(HTTPConstants.REQUEST_HEADERS, myhttp);((Stub)assetSourceClientAPIAdapter)._setProperty( org.apache.axis.client.Call.ATTACHMENT_ENCAPSULATION_FORMAT, org.apache.axis.client.Call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);//call webservice with attachement.I am assuming inorder to send large files, chunking is the way to go. Btw, is there a way to control the chunk size? Server code:MessageContext msgContext = MessageContext.getRequestMessage(); Attachments messageAttachments = reqMsg.getAttachmentsImpl(); int attachmentCount = messageAttachments.getAttachmentCount(); if(attachmentCount != 1) logger.warning(Unexpected number of attachments found :+ attachmentCount); else { logger.finer(No of attachments = + attachmentCount);} Iterator it = messageAttachments.getAttachments().iterator(); AttachmentPart part = (AttachmentPart) it.next(); // Get the streams to file and from attachment, then stream to disk InputStream instream; try {//Extract the first attachment. (Since in this case we have only one attachment sent)DataHandler dh = part.getDataHandler(); instream = dh.getInputStream(); } catch (SOAPException e) { e.printStackTrace();throw new LLException(e); } catch (IOException e) { e.printStackTrace();throw new LLException(e); }Exceptions coming back from the serverWeblogic 8.1.6faultDetail: {http://xml.apache.org/axis/}stackTrace:java.io.IOException: DIME header less than 12 bytes. at org.apache.axis.attachments.DimeDelimitedInputStream.readHeader (DimeDelimitedInputStream.java:319) at org.apache.axis.attachments.DimeDelimitedInputStream._read(DimeDelimitedInputStream.java:243) at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java :201) at org.apache.axis.attachments.DimeDelimitedInputStream.read(DimeDelimitedInputStream.java:445) at org.apache.axis.attachments.ManagedMemoryDataSource.lt;initgt;(ManagedMemoryDataSource.java:146) at org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPartDimeInputStream.java:163) at org.apache.axis.attachments.MultiPartDimeInputStream.readAll(MultiPartDimeInputStream.java:100) at org.apache.axis.attachments.MultiPartDimeInputStream.getAttachments(MultiPartDimeInputStream.java:108) at org.apache.axis.attachments.AttachmentsImpl.mergeinAttachments(AttachmentsImpl.java:171) at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount (AttachmentsImpl.java:550)
[Axis 2] MTOM Response is missing MIMEBoundary
Hi, I am implementing an Axis service to send binary attachments from the server to an axis client. I've enabled MTOM and optimized the data as described in the MTOM Guide. When I try to retrieve the OMText at the client side, I get a class cast exception, since the response is returning an OMElement. Here's what the TCPMon response shows: ?xml version='1.0' encoding='utf-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header / soapenv:Body ns:getDiscrepancyReportResponse xmlns:ns=http://service.ws.ena.emprisa.com/xsd; ns:return/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAJYAyADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3TNGaj3Ck3fnW9jz+YlzRmosilzRYOYkzRmo80ZosHMSZozTM0ZpWDmHc0uajzRmnYOYkzRmmZozSsFx+aM0zNGaLBzD80ZpuaM0DuPzRmmZozRYXMPzRTM0ZosFx+aM0zNGaLDuPzRmmZozRYL! j80ZpM0Uiri0ZpuaM0WDmJM03NNzRmiwc47NFJmjNAXFozSU3NAXH5ozTM0Zp2DmH0ZpuaM0rBcdmjNMzS5FFg5iTNFR5pc0WC4/NGaZmjNIdx9GaZmjNAXH0ZpmaM0BcfmjNMzS0BcdmjNMzRmgLj80ZpmaM0BcdmkpM0Ux8w7NGabRRYOYdmjNNzRmiwcQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAJYAyADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3TNGaj3Ck3fnW9jz+YlzR! mosilzRYOYkzRmo80ZosHMSZozTM0ZpWDmHc0uajzRmnYOYkzRmmZozSsFx+aM0zNGaLBzD80ZpuaM0DuPzRmmZozRYXMPzRTM0ZosFx+aM0zNGaLDuPzRmmZozRYLj80ZpM0Uiri0ZpuaM0WDmJM03NNzRmiwc47NFJmjNAXFozSU3NAXH5ozTM0Zp2DmH0ZpuaM0rBcdmjNMzS5FFg5iTNFR5pc0WC4/NGaZmjNIdx9GaZmjNAXH0ZpmaM0BcfmjNMzS0BcdmjNMzRmgLj80ZpmaM0BcdmkpM0Ux8w7NGabRRYOYdmjNNzRmiwcw/NGabmkzSFcfmjNNozQFx1GaZRmgLj80ZpmaM0BcfRTM0uaAuOzRmm5ozQFx1GaZmlzQFx1GaZmlzQVcdRmm5ozQFx1GabmjNAXHZozTc0maLE3FzRmm5pC3XvTsLmH5pM1A8rheE5PQVW8u4dsl8e1Wo9zOVa2yNDIpc1nC3mB/1v41NEGXq7H3ocF3Eqze6LeQ==ozUQyP4qXfzU2NOYkzRk0zNGaLCuP30b6ZmkzRYfMSb6M1HmjNFg5iTNGajzRmiwe0JM0ZqPNGaLD9oQ5pMmmkmgGtLHNcfn5qM0zP8A+ulNFhXHZO7+VGabmjP6UWC47NLv7UzNGaLBcfmjNM60Z/KiwXH7/mo31HRn5aLDuSb6N/y1DmgH5qLBcm3/AJU7fxUO/wCVaATRYLk2+jfUWflxRmiwXJd9G+os/jRmiwXJc0b6ioye1Fh3Jd9G+os0Amiwrk2aN9Q5+ajNKwc5Nvo31H/FQTuosVzEmaN9R5zSf5OaLBclzRvFR0hzRYOYl30b6jz+FHNFg5mSb6N/6VCTRRYOYm30b6h6cfNRRYOZk2+jfUOfl+tFFg5mTb6N9Q/8CoJ/GiwczJg9G+oc0ZNFg5ibeKN9Q7vSjfRyhzE2+nb6rF+nrRvPajlDmLG8Uu+q2+jfRyh7Qsb6TzKr76N/f! tT5SfaFjeKN4qDeabvxRyle0LPmCjzKrB6N5o5A9oWd4o8wVW34PFNDn8+lHKT7Qt+ZRvHSq3mUB+9HKV7Qs+ZR5lVt/wDtfjQX7Ucoe0LPmUb6rb6N/wB6jlD2hZ3ijfVbzCab5n+TRyk+0Le+jfVbeaPMNHIV7Qs76N/zVW8z049KPMNHKHtC1vFG6qvmGm+YRxRyB7QubqN/aqm+l3mjkD2ha30hkA/iqrvLUUchPtCwbhB/FSfaU/vVXwPwoGKfIhe0kWfPRV+9R9oUfxVXOKX+KlyIPaSJvtC5phuCVOz8zTOP8abx+HpT5UHNLuSic96Xz1P+NQjG2nDFFkHMyTzV6U7zc/w1Dmlosh8zJfMFHmDNR5oz1pWC7JN5o31Hml/zmiwXH5pcmo87qM0WKuP3inZqLNGf8KLBclzTc/NzTM0E0WC48GnZqLI/CjJosFyUmjNMzSClYLkGfm4oB/SofNWjzRWvKYe0XcsEik3Y/GofNWl3j86LC5l3Jc+tGelR+YKBIv8A9aiw+ZdyTPftRn5uajMgDfeo8wdDRYXMibNN3Ypm8Ugcf3qLBzkuaM1FvFG/8aLFc5IDz9aOtR76dmiwXH/epc1FvFKD+dKwXJBiimb/APao3iiw7j/0pelM35FJv+b71FguPzRn8KZv28Uu8UWC47PzUcUzIo34osFx+fwFOzUQI+lLkUWC5J/DRn5qj37l5pQaVguPz81LvFR5H/1qMiiwXJKTNMJA/wAKUEdDSsFx+RRmo80gcdTTsFyTNHFMz81Jkf3vwosFyTj5e9GaZkf3qbnbRYLkuaM1FvFLv54p2C48mgvUeaCc8UWC48n5aCaYDTcjvzRYLkuRx8v4UZFRZy1KT3HNFguSZ3UhpuaTOQ==osFx+aM9qbmkzRYLj8037y0h+WgH/wDXQIWgGmdeBRn5fWmFx+aKZkUZoAfR0bj0xTM0Z9etFgHmjtzSZxTaAH+tH60wvR!
Axis 1.3 webservice C# client
Hello,I have some Axis webservices protect the service with user and password using WSS4J. I can connect to the webservice via java client no problem, but I need to do the same from C# client. I don't know how to provide user credentials from a C# client. Have you guys done anything like that?. Thanks,Vali
Re: Cannot work with Axis2 - URGENT - A quick list of lessons learnt
couple of comments. [EMAIL PROTECTED] wrote: 8. Now I took the same wsdl file as if I am a client and have no whereabouts of the webservice. Now I want to write a servlet in my webapp, one in my world, who knows nothing of the above. First I generated only the client code using the WSDL2Java commandline tool and this wsdl file. Yes, I am writing an axis2 client. This created just one My*Stub.java. All other required classes are created as inner classes. How can I make the tool create separate java files rather than all these inner classes? Did u try -u option, whilst calling wsdl2java? 10. When you are returning an object, then make sure to populate all the fields of the object. This is only if your fields are non-nillable. You could have easily avoided populating all the fields by making the optional ones marked as nilable in your schema. -- Chinthaka signature.asc Description: OpenPGP digital signature
NoSuchMethodError in a generated type class
Hello, I am using the August 10th nightly build and I am getting a NoSuchMethod error in one of my classes. Here is what I am seeing in the log file. I regenerated all of my class files and replaced the libraries with the jars from the nightly build. 2006-08-10 13:18:07,418 ERROR [org.apache.axis2.transport.http.AxisServlet] java.lang.NoSuchMethodError: com.kg.webservice.types.CloseSessionResponse.getOMElement(Ljavax/xml/namespa ce/QName;Lorg/apache/axiom/om/OMFactory;)Lorg/apache/axiom/om/OMElement; The method getOMElement exists in the CloseSessionResponse class and it has the same parameters and return types. Any ideas? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2] Nightly Build
When I use the nightly build I get the binary distro and unpack to /usr/local/axis2 - everything you need is there. For the webapp, I use the nightly axis2.war and unpack into tomcat_home/webapps. I have to unpack as tomcat won't expand wars outside /webapps (my web tree is on a separate volume from tomcat). The jars in the binary distro are differently named from the normal ones (*-NIGHTLY*.jar) so move your 1.0 /usr/local/axis2 out of the way before unpacking the nightly binary distro. One thing I've found is you have to run WSDL2Java.sh from AXIS2_HOME/bin or it won't work. It computes it's lib dir from: export AXIS2_HOME=.. which is the current working directory, which isn't AXIS2_HOME so it doesn't find it's jars and crashes. Or do what I do in WSDL2Java.sh: export AXIS2_HOME=/usr/local/axis2 -- Alistair Young Senior Software Engineer [EMAIL PROTECTED] Mòr Ostaig Isle of Skye Scotland Read the installation guide please. Ignazio Anastasi wrote: How can i install a Nightly Build? just execute the jar file everywhere? this make me the error Failed to load Main-Class manifest attribute from axis2-1.0.jar how can i do? tnx all - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2] Nightly Build
Hi Alistair, Seems you have a very good knowledge on Axis2. Are you willing to contribute some thing back to the community? If yes, I think the best one for you to start is to improve the documentation from your experiences. Its great if you can help us with that :) Thanks, -- Chinthaka Alistair Young wrote: When I use the nightly build I get the binary distro and unpack to /usr/local/axis2 - everything you need is there. For the webapp, I use the nightly axis2.war and unpack into tomcat_home/webapps. I have to unpack as tomcat won't expand wars outside /webapps (my web tree is on a separate volume from tomcat). The jars in the binary distro are differently named from the normal ones (*-NIGHTLY*.jar) so move your 1.0 /usr/local/axis2 out of the way before unpacking the nightly binary distro. One thing I've found is you have to run WSDL2Java.sh from AXIS2_HOME/bin or it won't work. It computes it's lib dir from: export AXIS2_HOME=.. which is the current working directory, which isn't AXIS2_HOME so it doesn't find it's jars and crashes. Or do what I do in WSDL2Java.sh: export AXIS2_HOME=/usr/local/axis2 signature.asc Description: OpenPGP digital signature
Re: [Axis 2] MTOM Response is missing MIMEBoundary
Hi, First of all your message does not contain any MTOM Optimised parts. Binary attachment has been sent inline with XML payload by base64 encoding. Enable MTOM in the server by adding follwing to the axis2.xml. parameter name=enableMTOM locked=falsetrue/parameter ~Thilina On 8/10/06, Sathija Pavuluri [EMAIL PROTECTED] wrote: Hi, I am implementing an Axis service to send binary attachments from the server to an axis client. I've enabled MTOM and optimized the data as described in the MTOM Guide. When I try to retrieve the OMText at the client side, I get a class cast exception, since the response is returning an OMElement. Here's what the TCPMon response shows: ?xml version='1.0' encoding='utf-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header / soapenv:Body ns:getDiscrepancyReportResponse xmlns:ns=http://service.ws.ena.emprisa.com/xsd; ns:return/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAJYAyADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3TNGaj3Ck3fnW9jz+YlzRmosilzRYOYkzRmo80ZosHMSZozTM0ZpWDmHc0uajzRmnYOYkzRmmZozSsFx+aM0zNGaLBzD80ZpuaM0DuPzRmmZozRYXMPzRTM0ZosFx+aM0zNGaLDuPzRmmZozRY L! j80ZpM0Uiri0ZpuaM0WDmJM03NNzRmiwc47NFJmjNAXFozSU3NAXH5ozTM0Zp2DmH0ZpuaM0rBcdmjNMzS5FFg5iTNFR5pc0WC4/NGaZmjNIdx9GaZmjNAXH0ZpmaM0BcfmjNMzS0BcdmjNMzRmgLj80ZpmaM0BcdmkpM0Ux8w7NGabRRYOYdmjNNzRmiwcQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAJYAyADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3TNGaj3Ck3fnW9jz+Ylz R! mosilzRYOYkzRmo80ZosHMSZozTM0ZpWDmHc0uajzRmnYOYkzRmmZozSsFx+aM0zNGaLBzD80ZpuaM0DuPzRmmZozRYXMPzRTM0ZosFx+aM0zNGaLDuPzRmmZozRYLj80ZpM0Uiri0ZpuaM0WDmJM03NNzRmiwc47NFJmjNAXFozSU3NAXH5ozTM0Zp2DmH0ZpuaM0rBcdmjNMzS5FFg5iTNFR5pc0WC4/NGaZmjNIdx9GaZmjNAXH0ZpmaM0BcfmjNMzS0BcdmjNMzRmgLj80ZpmaM0BcdmkpM0Ux8w7NGabRRYOYdmjNNzRmiwcw/NGabmkzSFcfmjNNozQFx1GaZRmgLj80ZpmaM0BcfRTM0uaAuOzRmm5ozQFx1GaZmlzQFx1GaZmlzQVcdRmm5ozQFx1GabmjNAXHZozTc0maLE3FzRmm5pC3XvTsLmH5pM1A8rheE5PQVW8u4dsl8e1Wo9zOVa2yNDIpc1nC3mB/1v41NEGXq7H3ocF3Eqze6LeQ==ozUQyP4qXfzU2NOYkzRk0zNGaLCuP30b6ZmkzRYfMSb6M1HmjNFg5iTNGajzRmiwe0JM0ZqPNGaLD9oQ5pMmmkmgGtLHNcfn5qM0zP8A+ulNFhXHZO7+VGabmjP6UWC47NLv7UzNGaLBcfmjNM60Z/KiwXH7/mo31HRn5aLDuSb6N/y1DmgH5qLBcm3/AJU7fxUO/wCVaATRYLk2+jfUWflxRmiwXJd9G+os/jRmiwXJc0b6ioye1Fh3Jd9G+os0Amiwrk2aN9Q5+ajNKwc5Nvo31H/FQTuosVzEmaN9R5zSf5OaLBclzRvFR0hzRYOYl30b6jz+FHNFg5mSb6N/6VCTRRYOYm30b6h6cfNRRYOZk2+jfUOfl+tFFg5mTb6N9Q/8CoJ/GiwczJg9G+oc0ZNFg5ibeKN9Q7vSjfRyhzE2+nb6rF+nrRvPajlDmLG8Uu+q2+jfRyh7Qsb6TzKr76N/ f! tT5SfaFjeKN4qDeabvxRyle0LPmCjzKrB6N5o5A9oWd4o8wVW34PFNDn8+lHKT7Qt+ZRvHSq3mUB+9HKV7Qs+ZR5lVt/wDtfjQX7Ucoe0LPmUb6rb6N/wB6jlD2hZ3ijfVbzCab5n+TRyk+0Le+jfVbeaPMNHIV7Qs76N/zVW8z049KPMNHKHtC1vFG6qvmGm+YRxRyB7QubqN/aqm+l3mjkD2ha30hkA/iqrvLUUchPtCwbhB/FSfaU/vVXwPwoGKfIhe0kWfPRV+9R9oUfxVXOKX+KlyIPaSJvtC5phuCVOz8zTOP8abx+HpT5UHNLuSic96Xz1P+NQjG2nDFFkHMyTzV6U7zc/w1Dmlosh8zJfMFHmDNR5oz1pWC7JN5o31Hml/zmiwXH5pcmo87qM0WKuP3inZqLNGf8KLBclzTc/NzTM0E0WC48GnZqLI/CjJosFyUmjNMzSClYLkGfm4oB/SofNWjzRWvKYe0XcsEik3Y/GofNWl3j86LC5l3Jc+tGelR+YKBIv8A9aiw+ZdyTPftRn5uajMgDfeo8wdDRYXMibNN3Ypm8Ugcf3qLBzkuaM1FvFG/8aLFc5IDz9aOtR76dmiwXH/epc1FvFKD+dKwXJBiimb/APao3iiw7j/0pelM35FJv+b71FguPzRn8KZv28Uu8UWC47PzUcUzIo34osFx+fwFOzUQI+lLkUWC5J/DRn5qj37l5pQaVguPz81LvFR5H/1qMiiwXJKTNMJA/wAKUEdDSsFx+RRmo80gcdTTsFyTNHFMz81Jkf3vwosFyTj5e9GaZkf3qbnbRYLkuaM1FvFLv54p2C48mgvUeaCc8UWC48n5aCaYDTcjvzRYLkuRx8v4UZFRZy1KT3HNFguSZ3UhpuaTOQ==osFx+aM9qbmkzRYLj8037y0h+WgH/wDXQIWgGmdeBRn5fWmFx+aKZkUZoAfR0bj0xTM0Z9etFgHmjtzSZxTaAH+tH60wv R!
Re: [AXIS2] Nightly Build
Hi Chinthaka, yes, I'd love to share my experiences. Previously I'd used Axis1 and simple RPC-encoded web services. I was happy to write classes and have Axis expose them and generate it's own WSDL. The downside of this is forgetting about SOAP limitations as Anne pointed out when I queried about Document-wrapped. However, RCP-* is not allowed by WS-I BP 1.0, only Document-literal (and wrapped for interop with Microsoft!). Now with Axis2 I'm being more thorough, defining domain models in XML Schema and interfaces in WSDL and using Axis2+xmlbeans to generate stubs and skeletons and MessageReceivers. It's a really nice way of working with Axis2 and debugging is easy as you can just unpack a WEB-INF/services/*.aar and you can point your IDE at the expanded directory. I'm working on a start to finish document on how to do all this with Axis2. I'll post to the list when it's ready. -- Alistair Young Senior Software Engineer [EMAIL PROTECTED] Mòr Ostaig Isle of Skye Scotland Hi Alistair, Seems you have a very good knowledge on Axis2. Are you willing to contribute some thing back to the community? If yes, I think the best one for you to start is to improve the documentation from your experiences. Its great if you can help us with that :) Thanks, -- Chinthaka Alistair Young wrote: When I use the nightly build I get the binary distro and unpack to /usr/local/axis2 - everything you need is there. For the webapp, I use the nightly axis2.war and unpack into tomcat_home/webapps. I have to unpack as tomcat won't expand wars outside /webapps (my web tree is on a separate volume from tomcat). The jars in the binary distro are differently named from the normal ones (*-NIGHTLY*.jar) so move your 1.0 /usr/local/axis2 out of the way before unpacking the nightly binary distro. One thing I've found is you have to run WSDL2Java.sh from AXIS2_HOME/bin or it won't work. It computes it's lib dir from: export AXIS2_HOME=.. which is the current working directory, which isn't AXIS2_HOME so it doesn't find it's jars and crashes. Or do what I do in WSDL2Java.sh: export AXIS2_HOME=/usr/local/axis2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis 2] MTOM Response is missing MIMEBoundary
Thilina, Thanks for the quick response. I do have MTOM enabled in axis2.xml as you mentioned below. And on the server side, I construct the OMText this way. OMText textData = factory.createOMText(dh, true); which means should it should be optimized. And I am pretty sure I have followed all other steps as outlined in the MTOM guide. Can't figure out what else might be wrong. Here's my server code (almost an exact replica of what's in mtom guide). public OMElement getReport(String devName) { OMElement imageElement = null; String inputImageFileName = Blue_hills.jpg; try { OMFactory factory = OMAbstractFactory.getOMFactory(); OMNamespace ns = factory.createOMNamespace(, getReport); imageElement = factory.createOMElement(image, ns); Image image; image = new ImageIO().loadImage(new FileInputStream(inputImageFileName)); ImageDataSource ds = new ImageDataSource(Blue_hills.jpg, image); DataHandler dh = new DataHandler(ds); OMText textData = factory.createOMText(dh, true); imageElement.addChild(textData); } catch (Exception e) { e.printStackTrace(); } return imageElement; } Thanks, Sathija. Hi, First of all your message does not contain any MTOM Optimised parts. Binary attachment has been sent inline with XML payload by base64 encoding. Enable MTOM in the server by adding follwing to the axis2.xml. parameter name=enableMTOM locked=falsetrue/parameter ~Thilina On 8/10/06, Sathija Pavuluri [EMAIL PROTECTED] wrote: Hi, I am implementing an Axis service to send binary attachments from the server to an axis client. I've enabled MTOM and optimized the data as described in the MTOM Guide. When I try to retrieve the OMText at the client side, I get a class cast exception, since the response is returning an OMElement. Here's what the TCPMon response shows: ?xml version='1.0' encoding='utf-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header / soapenv:Body ns:getDiscrepancyReportResponse xmlns:ns=http://service.ws.ena.emprisa.com/xsd; ns:return/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAJYAyADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3TNGaj3Ck3fnW9jz+YlzRmosilzRYOYkzRmo80ZosHMSZozTM0ZpWDmHc0uajzRmnYOYkzRmmZozSsFx+aM0zNGaLBzD80ZpuaM0DuPzRmmZozRYXMPzRTM0ZosFx+aM0zNGaLDuPzRmmZoz! RY L! j80ZpM0Uiri0ZpuaM0WDmJM03NNzRmiwc47NFJmjNAXFozSU3NAXH5ozTM0Zp2DmH0ZpuaM0rBcdmjNMzS5FFg5iTNFR5pc0WC4/NGaZmjNIdx9GaZmjNAXH0ZpmaM0BcfmjNMzS0BcdmjNMzRmgLj80ZpmaM0BcdmkpM0Ux8w7NGabRRYOYdmjNNzRmiwcQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAJYAyADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3TNGaj3Ck3fnW9jz+Y! lz R!
Re: [Axis 2] MTOM Response is missing MIMEBoundary
Oh, and btw, when I extract the OMElement at the client and print, this is what it contains: imagexop:Include xmlns:xop=http://www.w3.org/2004/08/xop/include; href=cid:1.urn:uuid:[EMAIL PROTECTED] //image If that can help you diagnose the problem any better. Thanks! Thilina, Thanks for the quick response. I do have MTOM enabled in axis2.xml as you mentioned below. And on the server side, I construct the OMText this way. OMText textData = factory.createOMText(dh, true); which means should it should be optimized. And I am pretty sure I have followed all other steps as outlined in the MTOM guide. Can't figure out what else might be wrong. Here's my server code (almost an exact replica of what's in mtom guide). public OMElement getReport(String devName) { OMElement imageElement = null; String inputImageFileName = Blue_hills.jpg; try { OMFactory factory = OMAbstractFactory.getOMFactory(); OMNamespace ns = factory.createOMNamespace(, getReport); imageElement = factory.createOMElement(image, ns); Image image; image = new ImageIO().loadImage(new FileInputStream(inputImageFileName)); ImageDataSource ds = new ImageDataSource(Blue_hills.jpg, image); DataHandler dh = new DataHandler(ds); OMText textData = factory.createOMText(dh, true); imageElement.addChild(textData); } catch (Exception e) { e.printStackTrace(); } return imageElement; } Thanks, Sathija. Hi, First of all your message does not contain any MTOM Optimised parts. Binary attachment has been sent inline with XML payload by base64 encoding. Enable MTOM in the server by adding follwing to the axis2.xml. parameter name=enableMTOM locked=falsetrue/parameter ~Thilina On 8/10/06, Sathija Pavuluri [EMAIL PROTECTED] wrote: Hi, I am implementing an Axis service to send binary attachments from the server to an axis client. I've enabled MTOM and optimized the data as described in the MTOM Guide. When I try to retrieve the OMText at the client side, I get a class cast exception, since the response is returning an OMElement. Here's what the TCPMon response shows: ?xml version='1.0' encoding='utf-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header / soapenv:Body ns:getDiscrepancyReportResponse xmlns:ns=http://service.ws.ena.emprisa.com/xsd; ns:return/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAJYAyADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3TNGaj3Ck3fnW9jz+YlzRmosilzRYOYkzRmo80ZosHMSZozTM0ZpWDmHc0uajzRmnYOYkzRmmZozSsFx+aM0zNGaLBzD80ZpuaM0DuPzRmmZozRYXMPzRTM0ZosFx+aM0zNGaLDuPzRmmZo! z! RY L! j80ZpM0Uiri0ZpuaM0WDmJM03NNzRmiwc47NFJmjNAXFozSU3NAXH5ozTM0Zp2DmH0ZpuaM0rBcdmjNMzS5FFg5iTNFR5pc0WC4/NGaZmjNIdx9GaZmjNAXH0ZpmaM0BcfmjNMzS0BcdmjNMzRmgLj80ZpmaM0BcdmkpM0Ux8w7NGabRRYOYdmjNNzRmiwcQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAJYAyADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3TNGaj3Ck3fnW9jz+! Y! lz R!
Amazon product feed
Title: Message Hello, I am having trouble using the apache axis java bindings for theamazon wsdl soap service.Ive generated the java classes from the wsdl document using apache axis version 1.4, but the examples in the help section of seller central do not appear to coincide with the generated code. SoI'm trying to reimplement the example manually, and have run into trouble. Heres the codeI'm using: import com.warp9.amazon_integration.*; import java.net.URL; import java.io.*; import java.io.BufferedInputStream; import java.io.FileInputStream; import org.apache.axis.attachments.OctetStream; //import javax.activation.DataHandler; //import javax.activation.FileDataSource; public class MyAmazonClient { public static void main(String[] args) { Merchant merchant = new Merchant(); merchant.setMerchantIdentifier("M_BASEBAL_3183"); merchant.setMerchantName("M_BASEBAL_3183"); try{ MerchantInterface_PortType merchantInterface = new MerchantInterfaceMimeLocator().getMerchantInterface(); ((MerchantInterface_BindingStub)merchantInterface).setUsername("[EMAIL PROTECTED]"); ((MerchantInterface_BindingStub)merchantInterface).setPassword("PWDMASKED"); String messageType="_POST_PRODUCT_DATA_"; //BufferedInputStream in2 = new BufferedInputStream(new FileInputStream("mydocument.txt")); //OctetStream oc = new OctetStream(IO.toByteArrray(in2)); FileInputStream fi = (new FileInputStream("mydocument.txt")); byte[] b = new byte[fi.available()]; int i = fi.read(b); OctetStream oc = new OctetStream(b); DocumentSubmissionResponse response = merchantInterface.postDocument(merchant,messageType,oc); // DataHandler dh = new DataHandler(new FileDataSource("mydocument.txt")); //DocumentSubmissionResponse response = merchantInterface.postDocument(merchant,messageType,dh); System.out.println("Batch Reference = "+response.getDocumentTransactionID()); //Display "Hello World!" System.out.println("Hello World!"); } catch (Exception ex){ ex.printStackTrace(); //System.out.println(e); } } } The errorI'm getting is: No port for method 'postDocument:(null)' with SOAPAction '"http://www.amazon.com/merchants/merchant-interface/MerchantInterface#postDocument#KEx3YXNwY1NlcnZlci9BbXpJU0EvTWVyY2hhbnQ7TGphdmEvbGFuZy9TdHJpbmc7TG9yZy9pZG9veC93YXNwL3R5cGVzL1JlcXVlc3RNZXNzYWdlQXR0YWNobWVudDspTHdhc3BjU2VydmVyL0FteklTQS9Eb2N1bWVudFN1Ym1pc3Npb25SZXNwb25zZTs="' found at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.warp9.amazon_integration.MerchantInterface_BindingStub.postDocument(MerchantInterface_BindingStub.java:601) at MyAmazonClient.main(MyAmazonClient.java:29) Any advice you can give would be helpful. Thanks, = Liling SongProduct Specialist [EMAIL PROTECTED] Warp 9, Inc. www.warp9inc.com 805.964.3313 (phone) x117 805.964.6968 (fax) 50 Castilian Drive, Suite A Santa Barbara, CA 93117 =
Re: 1.4: String[] translated to String in WSDL
Hey, I found a workaround! Just a reference for others. http://wiki.apache.org/ws/FrontPage/Axis/WsdlFile-Tim-- Forwarded message -- From: Timothy Chan [EMAIL PROTECTED]Date: Aug 9, 2006 3:00 PMSubject: 1.4: String[] translated to String in WSDL To: axis-user@ws.apache.orgHi everyone,I'd appreciate any insight on an issue I've encountered. A String[] is being translated into a non-array String in the WSDL. The result is an argument type mismatch error. More specifically, I have a bean object that contains a String[] property. During Ant build, Java2WSDL correctly produces a WSDL where the schema defines this property as... element name=items nillable=true type=impl:ArrayOf_xsd_string/And WSDL2Java correctly produces the .java w/ the String[] property.But when I deploy the project, the Axis translates the property to a non-array String property so that the WSDL defines the property as... element name=items nillable=true type=xsd:string/As a result, the client encounters the argument type mismatch error when the server replies w/ a String[] but the client expects a non-array String. I would appreciate any insight. thx,-Tim
Scope
I have a question regarding scope and would like clarification on something to be sure I understand things.I have a sample class called AxisTest deployed on a local server that looks like:public class AxisTest { private String lastName; private String firstName; private String middleName; public AxisTest() { } public String getLastName() { return this.lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public String getFirstName() { return this.firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getMiddleName() { return this.middleName; } public void setMiddleName(String middleName) { this.middleName = middleName; }}Here is the client class I use to talk to the server.public class AxisTest { public AxisTest() { } public static void main(String[] args) throws Exception { AxisTestService ams = new AxisMathServiceLocator(); AxisTest am = ams.getAxisTest(); am.setFirstName("Willy"); am.setLastName("Wonka"); am.setMiddleName("Wilbur"); System.out.println("First Name = " + am.getFirstName()); System.out.println("Last Name = " + am.getLastName()); System.out.println("Middle Name = " + am.getMiddleName()); } }When I run the client subsequent the calls to: System.out.println("First Name = " + am.getFirstName()); System.out.println("Last Name = " + am.getLastName()); System.out.println("Middle Name = " + am.getMiddleName());all come back as null values.I have read in the users guide about "scope" and if I change the scope to "Application"as in:parameter name="scope" value="Application"/then the name values are returned as they were assigned.My question is this: Is each method call considered a "SOAP Request" hence:1.The objectis created. 2. Themethodis called/ data created. 3. The object / data is destroyed.What I "think" I need is "Session-Enabled" objects and NOT application scope becuase multiple users of the object will share data. Quesiton: How do you setthe session-enabled attribute per object?Finally,are the scope of objects in Axis similar in concept to the JSP request, session, application scopes?Thank You! Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta.
Unable to compress message with GZIP in Axis 1.4
Hi, I am trying to use the out of the box axis compression to send a gzipped message with using Axis 1.4 as per the instructions outlined in http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression, however the messages are being sent to the endpoint uncompressed. I am using Axis 1.4 with J2SE 5.0 and commons-httpclient 3.1.0 with eclipse 3.2 and websphere 6.1 all on my local dev machine. I have set up a servlet filter to intercept and log the incoming web service calls at the endpoint *prior* to the axis listener (which it does according to my stacktrace), hence prior to any decompression. The extracted InputStream message is the readable (hence uncompressed) SOAP XML that I sent through. Is this a known issue of sorts,or perhaps a library version interoperability problem, or am I just missing something? Are there any known issues such as this in using Axis 1.4 with J2SE 5.0? Any help would be greatly appeciated Damian Phillips - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Base64
Thanks Anne, But I forgot to mention that I am using Axis for generating the wsdl. Hence it will not define the type as type=xsd:base64binary” so weather I have to modify the generated WSDL? Thank You again Nirmish -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 8:36 PM To: axis-user@ws.apache.org; [EMAIL PROTECTED] Subject: Re: Base64 Yes. Define it as type=xsd:base64binary. Anne On 8/10/06, Nirmish Dholakia [EMAIL PROTECTED] wrote: Hi All, I have a web services written in Java. and the client for this webservice is in .Net environment. I am passing an image file in this webservice using Base64 encoding. Now the question is will the .Net client able to decode the same? Please provide your views/inputs. Thank You Nirmish -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.7/411 - Release Date: 8/7/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.7/411 - Release Date: 8/7/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.7/411 - Release Date: 8/7/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]