Re: [Axis2] Creating a debug build
Darran- nmake install DEBUG=1 Good luck, Jeff -- Original message -- From: White, Darran [EMAIL PROTECTED] Hi, Is there a command line parameter or change to the makefile to create a debug build of AxisC2 as I need to have a build with symbols in to debug it in Visual studio. Thanks Darran This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. ---BeginMessage--- Title: [Axis2] Creating a debug build Hi, Is there a command line parameter or change to the makefile to create a debug build of AxisC2 as I need to have a build with symbols in to debug it in Visual studio. Thanks Darran This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Creating a debug build
Hi Darran, you can use the Visaul Studio project in ides\vc\axis2c to Debug. Or you can add an option to configure.in file as DEBUG=1 Thanks Nandika On 11/29/06, White, Darran [EMAIL PROTECTED] wrote: Hi, Is there a command line parameter or change to the makefile to create a debug build of AxisC2 as I need to have a build with symbols in to debug it in Visual studio. Thanks Darran This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
Axis 1.4 service deployment query
Hello, I am using axis c++ 1.4 version with apache http server 2.0.59.. I have a query and any help is very much appreciated. This is a snippet of my sample wsdl wsdl:service name=MD5Service wsdl:port binding=local:MD5SoapBinding name=MD5Service wsdlsoap:address location=http://localhost/axis/MD5Service/ /wsdl:port /wsdl:service The above snippet shows the sample wsdl service name and service address.. Now my problem is if i change the above address to some thing like wsdlsoap:address location=http://localhost/myservice/MD5Service/ then what and how will it affect my configuration. What i noticed is apache in its configuration file sets handler for axis :: LoadModule axis_module modules/libaxiscpp_mod2.so Location /axis SetHandler axis /Location What are the changes i have to make if my service has a different address.. I tried to set one more handler for myservice path like:: Location /myservices SetHandler axis /Location I want to know whether is it the right way to set handler for /myservices . How do i check and verif whether my service at http://localhost/myservice/MD5Service has been deployed or not. - Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
RE: [Axis2] Deploying webservice with difficult wsdl-file
Created a JIRA: http://issues.apache.org/jira/browse/AXIS2-1786 Brecht -Original Message- From: Brecht Yperman [mailto:[EMAIL PROTECTED] Sent: dinsdag 28 november 2006 13:30 To: axis-user@ws.apache.org Subject: [Axis2] Deploying webservice with difficult wsdl-file Hi, When deploying the following service using Axis2 1.1 http://www.invenso.com/downloads/XbiService.aar I get an exception in the logging, when starting up the server.\2006-11-28 13:17:48,568 [main] INFO org.apache.axis2.deployment.resolver.AARFileBasedURIResolver - AARFileBasedURIResolver: Unable to resolvemeta-inf/OC-Transport.xsd This is because the WSDL in the archive file references an XML Schema in the directory OrderConfirmation. This schema references another Schema in the same directory, but as this schema has got no directory prefix, the resolver starts looking in the meta-inf directory, instead of in the meta-inf/OrderConfirmation directory. Has this bug been resolved yet? Do I create a JIRA? Thanks, Brecht Brecht Yperman Developer / Implementor Invenso - Convenso Direct: +32 (0)3 780 30 05 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] Problem reading own xml file inside aar archive
Hi Subash, please try URL url = XMLParser.class.getResource(serverConf.xml); //... instead. There are some configuration issues you have to fix in order to successfully use the class loader. Regards, Michele Subash Devkota wrote: Hi, I am having problem reading my own XML file inside aar file. The structure of my archive file is as shown below: * META-INF o MANIFEST.MF o services.xml * security o XMLParser.class o serverConf.xml o .. * key.jks * services.properties I want to read parameters inside serverConf.xml from XMLParser class. I have following code to read the xml file: URL url=XMLParser.class.getClassLoader().getResource(security/serverConf.xml); String fileName=url.toString(); DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); Document doc = docBuilder.parse (new File(fileName)); It works fine when i try it in java application from eclipse. But it has problem reading the file when i make archive and deploy as web service. I get the following error: java.io.FileNotFoundException: jar:file:/home/oracle/app/jakarta-tomcat-5.0.28/webapps/axis2/WEB-INF/services/SecureServer.aar!/security/serverConf.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:129) at security.XMLParser.loadXmlParameters(XMLParser.java:63) Can anyone suggest me how can i solve the problem? Thank You Subash PRIVACY NOTICE This email and any attachments may be confidential and/or privileged. Use of the information contained in this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and delete this email. - 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] False namespace2package mapping in wsdl2java
I have problems mapping namespaces to packages using WSDL2JAVA (AXIS2 1.1) My WSDL contains the following schema definition xsd:schema targetNamespace=http://www.foo-bar.de/bar; xmlns:bar=http://www.foo-bar.de/bar; xmlns:foo=http://www.foo-bar.de/foo; xsd:import namespace=http://www.w3.org/2005/05/xmlmime; schemaLocation=xsd/xmime.xsd/ xsd:element name=CreateProductXmlRequest type=bar:AttachmentType/ xsd:element name=CreateProductXmlResponse type=xsd:string/ xsd:complexType name=AttachmentType xsd:sequence xsd:element minOccurs=0 name=fileName type=xsd:string/ xsd:element name=binaryData type=xmime:base64Binary/ /xsd:sequence /xsd:complexType /xsd:schema I start wsdl2java like this: target name=generate.service depends=init java classname=org.apache.axis2.wsdl.WSDL2Java arg value=-uri/ arg value=${project.base.dir}/FoobarService.wsdl/ arg value=-o/ arg value=${project.base.dir}/ arg value=-p/ arg value=foo.bar.service/ arg value=-ss/ arg value=-ssi/ arg value=-g/ arg value=-t/ arg value=-sd/ arg value=-ns2p/ arg value=bar=foo.bar.service.types,foo=foo.bar.service.types.foo/ classpath refid=class.path/ /java /target The java classes are written to the packages: foo.bar.service (expected, -p custom package name): FoobarServiceCallbackHandler.java FoobarServiceMessageReceiverInOut.java FoobarServiceSkeleton.java FoobarServiceSkeletonInterface.java FoobarServiceStub.java and FoobarServiceTest.java org.w3.www._2005._05.xmlmime (expected, default mapping) Base64Binary.java HexBinary.java de.foo_bar.www.bar (unexpected, expected in foo.bar.service.types following -ns2p parameter): ExtensionMapper.java AttachmentType.java CreateProductXmlRequest.java CreateProductXmlResponse.java Is my WSDL2JAVA call not correct? Ulf -- Ein Herz für Kinder - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[AXIS2] WSDL2JAVA produces unformatted (pretty printed) java code
My WSDL2JAVA call produces unformatted (pretty printed) java code (AXIS2 1.1). Any hints? Ulf -- Ein Herz für Kinder - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sesion managment, scope=soapsession
Hi session-managers, I'm running my client and server with modules addressing-1.1, logging, soapmonitor-1.1 engaged and have set scope=soapsession MyService.java got the additional methods public void init(ServiceContext sCtx) { this.sc = sCtx; this.log.info(sc.toString()+ init() called ); } public void destroy(ServiceContext sCtx) { if(!this.sc.toString().equals(sCtx.toString())){ this.log.error(ServiceContext on init() and destroy() not equal in ); } this.log.info(sc.toString()+ destroy() called ); } public void setOperationContext(OperationContext oCtx) { this.oc = oCtx; this.log.info(oc.toString()+ setOperationContext() called ); } I start client #1 which has the effect that MyService.init() is called; so far so right! Client #1 then loops and sends continously messages to MyService.echo() I start client #2 which has the effect that MyService.destroy() is called followed by MyService.init() This has the effect that client #1 fails with an invalid group context id exception Is this a bug? I have studied the architecture of axis2 and have drilled down in code and I came down to where alle the service objects are finally called at invokeBusinessLogic (inCtx, outCtx) with it's call to method.invoke ( . . . ) All reading in code and documentation did not answer my questions *** How does Axis2 manage / support long-lasting-sessions to server-objects bound to this session ? *** Do I have to implement this myself on top of Axis2? 1. I want to have a client-object exchanging OMElements with it's service-class-object. 2. when the client starts the session, up on receiving the first message, a unique instance of the service-class-object shall be created at the server. 2a) 20 client objects shall mean we have instantiated 20 dedicated-server-objects 3. as long as this 20 service-class-object exists, in fact 20 wrapper-object to 20 external server process, and as long as this 20 external process exist it shall not be allowed that one single service-class-object dies. for that reasioon the server-objects must exist until it's dedicated client terminates the session esplicitly by calling logout() on the server-object. 4. every message sent by a client has to reach exact the same instance of the service-class-object as the previous message did, anything else would be considerd a security risk, a fault, an error. I have read in a dcoument about axis session managment @ http://www.developer.com/java/web/print.php/3620661 that axis2 is meant to be an enterprise web service engine, so it has to support session management. I have read all related e-mails and implemented soap-sessions which work nicely with one client and one server. But they die when the second client starts as descibed above. the second client creates a new service-group-id when and the old one gets lost. THis happens in my mind because destry is called implicit. So client-1 then fails as it's known service-group-id does no longer exist. I have not found in all the e-mail of the past 3 months a clear idea or an answer to this often asked questions about how to implement sessions to such server side obejcts. I must admit, I do not understand how ws-addressing supports my demand. Can I managment my sessions with axis2 in an elegant way or do I have to fall-back to servlets and tomcat? I would really appreciate any answers and thank you very much to answer my burning question not only for my own satisfaction. Thank you. Josef
Re: Did Anyone tried Axis2 attachments with XMlBeans as databinding???
This article is slightly dated but the jist of the issue and the solution is still valid - from the perspective of ADB. Since OM would be part of any xmlbeans solution, this should help: http://www.wso2.net/articles/axis2/java/2006/08/10/binary-with-adb Robert On 11/28/06, Mehar SVLN [EMAIL PROTECTED] wrote: Robert thanx a lot for the invitation I will try my level to implement this feature Any inputs on where to start??? On 11/28/06, robert lazarski [EMAIL PROTECTED] wrote: There is a jira for this: http://issues.apache.org/jira/browse/AXIS2-1031 Your welcome to try and help us implement it ... the adb / mtom code would be a good start. Robert On 11/28/06, Mehar SVLN [EMAIL PROTECTED] wrote: No i dint try... Actually my entire appln is based on XMLBeans so i need to check with XMLBeans The problem what i ve observerd wherever i have an element of type xsd:base64Binary it should be sent as an attachment(MTOM is enabled) But this is not happening in XMLBeans case, its being sent as a part of the soap:body I saw the envelope in the tcpmon Are u aware of this problem??? On 11/28/06, Philipp Perner [EMAIL PROTECTED] wrote: No, because I'm just trying to do it with adb - and it's harder than i thought Are there any significant reasons why to use xmlbeans? Did you try SwA with other bindings than xmlbeans? kr Mehar SVLN schrieb: Did Anyone tried Axis2 attachments with XMlBeans as databinding??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Rgds Mehar -- Rgds Mehar
Reading properties files from AXIS
Hello, I never do it before but I need to read properties file from an application deployed as a service of AXIS. My first unsuccessful attempt was: Properties props = new Properties(); URL url = ClassLoader.getSystemResource(lucene.properties); props.load(url.openStream()); System.out.println(Using index: + props.getProperty(index.location)); this.indexLocation = props.getProperty(index.location); File lucene.properties I put in ${tomcatDir}/webapps/axis/WEB-INF/classes/lucene.properties, so I thought I could read it as resource in non-web application using classpath load, but it won't work - I think that in web servers must be another way to read properties, maybe some dedicated for AXIS. Maybe there is another option to provide variables to AXIS without hardcoding them into Java classes you could share? Best regards, Adr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reading properties files from AXIS
Hi, This is right way. props.load(getClass().getClassLoader().getResourceAsStream(filename)); Vladi -Original Message- From: Java Programmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 2:27 PM To: axis-user@ws.apache.org Subject: Reading properties files from AXIS Hello, I never do it before but I need to read properties file from an application deployed as a service of AXIS. My first unsuccessful attempt was: Properties props = new Properties(); URL url = ClassLoader.getSystemResource(lucene.properties); props.load(url.openStream()); System.out.println(Using index: + props.getProperty(index.location)); this.indexLocation = props.getProperty(index.location); File lucene.properties I put in ${tomcatDir}/webapps/axis/WEB-INF/classes/lucene.properties, so I thought I could read it as resource in non-web application using classpath load, but it won't work - I think that in web servers must be another way to read properties, maybe some dedicated for AXIS. Maybe there is another option to provide variables to AXIS without hardcoding them into Java classes you could share? Best regards, Adr - 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: Reading properties files from AXIS
I use the ServletContext to locate properties files, like this HttpServlet srv = (HttpServlet) MessageContext.getCurrentContext ().getProperty( HTTPConstants.MC_HTTP_SERVLET); ServletContext context = srv.getServletContext(); InputStream is = context.getResourceAsStream(/WEB-INF/rtiservice.conf); props.load(is); / Clarence On 11/29/06, Java Programmer [EMAIL PROTECTED] wrote: Hello, I never do it before but I need to read properties file from an application deployed as a service of AXIS. My first unsuccessful attempt was: Properties props = new Properties(); URL url = ClassLoader.getSystemResource(lucene.properties); props.load(url.openStream()); System.out.println(Using index: + props.getProperty(index.location)); this.indexLocation = props.getProperty(index.location); File lucene.properties I put in ${tomcatDir}/webapps/axis/WEB-INF/classes/lucene.properties, so I thought I could read it as resource in non-web application using classpath load, but it won't work - I think that in web servers must be another way to read properties, maybe some dedicated for AXIS. Maybe there is another option to provide variables to AXIS without hardcoding them into Java classes you could share? Best regards, Adr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WS-Addressing setReplyto method name namespace
Hi, need help on an issue relating to WS Addressing: m working on the following configuration with WS addressing using axis2 :- axis2 + Jboss + IBM Rad6 m trying to generate a scenario wherein i send a SOAP request using axis2 to an axis2 WS deployed on JBOSS. Then the reply of this service should be forwarded to another WS hosted on RAD6. Everythng wrks perfectly fine except the fault that i get from RAD6 stating that it could not map the request to a particular operation. axis2 client --SOAPReq (over HTTP)-- WS1 (axis2 WS on jboss) --SOAPRes (over HTTP)-- WS2 (on IBM Rad6) The reason for this is that the SOAP response generated by my WS1 will have the namespace and method response of WS1 and no information pertaining to the WS2, but as the replyto header is set to the WS2 EPR, the request gets forwarded and then the WS2 generates a fault. I tried with all types of WS viz doc/literal, rpc/encoded, rpc/literal etc but got the same fault !! Is there any way by which i can set these configurations(method name of WS2 and namespace through my client itself or any other way) ?? Kindly guide me as to what m i supposed to do ?? Regards, Vaibhav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] deploying with Jetty
I'm looking for information on how to deploy Axis2 with Jetty. The Axis2 documentation describes the deployment procedure for Tomcat, which simply involves copying the 'war' file into the webapps directory. Can anyone provide any help on how to get Axis2 working successfully with Jetty (I'm using Jetty 5.1.11). I don't have a lot of experience with Jetty, so any information would be appreciated. Thanks. Andrew. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Strange !!! WebService works on one pc but not on the other
Hi all I am using Axis2-1.0 with Rampart module for security. I am facing strange type of problem. I have a web service which works fine in my pc. (http://localhost:7600/axis2/services/SecureServer). I deployed the same aar file to next computer (remote computer connected through VPN) and I can not get the response from server. I set the session timeout to 100 seconds asumming the timeout problem as options.setTimeOutInMilliSeconds(10) in client side. But get the same error listed below: org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed; nested exception is: org.apache.ws.security.WSSecurityException: An error was discovered processing the wsse:Security header. (WSSecurityEngine: Invalid timestamp The security semantics of message have expired) at org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183) at org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82) at org.apache.axis2.engine.Phase.invoke(Phase.java:381) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:355) 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 d2Agent.com.d2hawkeye.b2b.d2Agent.v1.WebServiceClient.getSecureVMRURL(WebServiceClient.java:138) .. Caused by: org.apache.ws.security.WSSecurityException: An error was discovered processing the wsse:Security header. (WSSecurityEngine: Invalid timestamp The security semantics of message have expired) at org.apache.ws.security.processor.TimestampProcessor.handleTimestamp(TimestampProcessor.java:82) at org.apache.ws.security.processor.TimestampProcessor.handleToken(TimestampProcessor.java:52) at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269) at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191) at org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180) ... 12 more Can anyone help me where is the problem. Thank You Subash PRIVACY NOTICE This email and any attachments may be confidential and/or privileged. Use of the information contained in this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and delete this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
usernametoken programmatically with a stub (rampart and Axis2)
Hi All! I am sending this emai to wssj4 and axis list. Please, I need help in this question. Seems a simple problem, but I really can't resolve it . I want set a usernametoken programmatically in the client side. I am using axis2 and rampart module. This is the error: Exception in thread main java.lang.NullPointerException at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:578) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279) at org.apache.ws.axis2.ClientStub.getUpdate(ClientStub.java:118) at org.apache.ws.axis2.TestClient.main(TestClient.java:72) I will very glad if someone could helpe me. The piece of my code client side is following: //--- ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(path/to/repository, \\axis2.xml); ClientStub stub = new ClientStub(ctx,target); stub._getServiceClient().getOptions().setProperty(user, teste); // here I am setting the username //--- I tried the following too: //- ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(path/to/repository, \\axis2.xml); ClientStub stub = new ClientStub(ctx,target); ServiceClient serviceClient = stub._getServiceClient(); Options options = serviceClient.getOptions(); options.setProperty(user, teste); serviceClient.setOptions(options); stub._setServiceClient(serviceClient); //-- In the axis2.xml I am not using the user element. The piece of this file is following: // - axisconfig name=AxisJava2.0 module ref=rampart / parameter name=OutflowSecurity action itemsUsernameToken/items !--userteste/user -- passwordCallbackClassorg.apache.ws.axis2.PWCBHandler/passwordCallbackClass /action /parameter parameter name=hotdeployment locked=falsetrue/parameter parameter name=hotupdate locked=falsetrue/parameter messageReceiver mep=INOUT class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/ transportSender name=http class=org.apache.axis2.transport.http.CommonsHTTPTransportSender parameter name=PROTOCOL locked=falseHTTP/1.0/parameter /transportSender phaseOrder type=inflow !-- Continue --- // -- Please, Where is the problem? There are other way to set the usernametoken programmatically? Thanks in advance, Edson -- Edson Tavares de Camargo - Instituto Stela Florianópolis - SC - Brasil (48) 3239 2572 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is Axis 1.x (Java) still an active project?
Davanum, Thank you for letting me know the status, as well as the offer for help. After we meet this set of deadlines, I can test Axis2 and see what issues crop up with its WSDL2Java in handling complex schemas. Axis2 is a sufficiently different architecture and approach that it will require significant time to port our application and integrate into our platform. Thank you again! Fred Davanum Srinivas wrote: Frederick, Please switch to Axis2. There is no plan for a Axis/Java 1.5. Am willing to help get your XSD's working with Axis2's ADB data binding if you run into trouble. thanks, dims On 11/27/06, Frederick N. Brier [EMAIL PROTECTED] wrote: Axis 1.4 (Java) shipped April 22, this year. Is the 1.x branch still an active project? I know there is a completely new Axis 2.x. Is an Axis 1.5 (Java) version planned? The reason I am asking is that I am in the midst of trying to make Axis 1.4 (Java) try to handle some complicated XSDs (OpenGIS) and running into a large number of bugs, some of which have apparently been around for years. I have made changes to the source on a bunch of these. Are there active maintainers of 1.x that would apply patches if I created them? One or two would need a little more work to be more robust. I would need to check out the 1.4 source, apply my changes, and create sets of patches. It is a fair bit of work, but if someone will apply the patches, I will do it. Thank you. Fred - 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]
Simple SOAP server. Can axis help me ?
Hi all, I would like to build a harcoded SOAP server. I.e. a server which reacts to an incoming SOAP message, analyses the message content and replies with a predifined message. I was wondering if Axis could help me gain some time as compared to the time needed to recode an HTTP server (I have a reference) and analyse HTTP requests. Thanks for your help. Cheers
where should i put my jar files in the .aar file???
Hai all, where should i put my jar files in the .aar file??? Thanks in advance -- Rgds Mehar
[Axis2] Rampart not available on Axis modules page
Hello, Why is Rampart 1.1 (or whatever is the compatible version for Axis2 1.1) not listed/available for download on Axis Modules page? http://ws.apache.org/axis2/modules/index.html There are other pages on Axis2 website that point to this link for Rampart. Thanks, Sathija - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where should i put my jar files in the .aar file???
try the lib/ folder If you want more options there is a list here: http://www.wso2.net/articles/axis2/java/2006/08/01/client-api-parameters Mehar SVLN schrieb: Hai all, where should i put my jar files in the .aar file??? Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help Exception occurred while trying to invoke service method
When trying to invoke a webservice method I get the following error: org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method methd1 at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287) at mt.com.go.cps.webservice.axis2.client.MyServiceStub.methd1(MyServiceStub.java:185) at mt.com.go.cps.webservice.axis2.client.MyServiceTest.testmethd1(MyServiceTest.java:24) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Re: where should i put my jar files in the .aar file???
Try to put them in /lib Michele On 29 Nov 2006, at 16:12, Mehar SVLN wrote: Hai all, where should i put my jar files in the .aar file??? Thanks in advance -- Rgds Mehar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WS-Addressing setReplyto method name namespace
Hi Vaibhav, Is the message sent by jboss to RAD6 a forward or a result message? In the first case you must be sure the target service is available on RAD6, in the latter one you have to fix the addressing information contained into the SOAP header before the message hits the RAD6 host (by default the replyTo fields is set to the client so if you send the message somewhere else the receiver will fail). And what about the exception your service is throwing? Try to post it and maybe we can help you. Regards, Michele On 29 Nov 2006, at 13:54, Vaibhav Pandey wrote: Hi, need help on an issue relating to WS Addressing: m working on the following configuration with WS addressing using axis2 :- axis2 + Jboss + IBM Rad6 m trying to generate a scenario wherein i send a SOAP request using axis2 to an axis2 WS deployed on JBOSS. Then the reply of this service should be forwarded to another WS hosted on RAD6. Everythng wrks perfectly fine except the fault that i get from RAD6 stating that it could not map the request to a particular operation axis2 client --SOAPReq (over HTTP)-- WS1 (axis2 WS on jboss) -- SOAPRes (over HTTP)-- WS2 (on IBM Rad6) The reason for this is that the SOAP response generated by my WS1 will have the namespace and method response of WS1 and no information pertaining to the WS2, but as the replyto header is set to the WS2 EPR, the request gets forwarded and then the WS2 generates a fault. I tried with all types of WS viz doc/literal, rpc/encoded, rpc/ literal etc but got the same fault !! Is there any way by which i can set these configurations(method name of WS2 and namespace through my client itself or any other way) ?? Kindly guide me as to what m i supposed to do ?? Regards, Vaibhav - 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] How to read the response received from the server side
How do I get messageContext? On 11/28/06, robert lazarski [EMAIL PROTECTED] wrote: Try: SOAPEnvelope envelope = messageContext.getEnvelope(); envelope.getHeaders() You probably need a server side handler to do that. You could try the static methods in MessageContext in you service but IIRC that won't work. HTH, Robert On 11/28/06, Jatinder Kaur [EMAIL PROTECTED] wrote: Hi, I've been able to write the client code using Axis2. When I send my request to the server, the server returns an ID (as part of SOAP Header) that I need to extract. Can anyone please let me know how can I do that -- any pointers to the documentation or the sample code will be greatly appreciated. Thanks.
[Axis2] SOAP message is sent corrupted
Hi, I'm using Axis2 client API to dynamically invoke WS. I detected that when working against a remote computer (not localhost) the SOAP message is sent corrupted (I've monitored the communication). To be more specific, the size of the SOAP envelope (in Hex) is written to the HTTP request body just before the envelope and the latter is preceded by a 0. This is an example: 11a ?xml version='1.0' encoding='UTF-8'?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Heade r /soapenv:Bodytns:EMPGET xmlns:tns=http://tempuri.org/ EMPL_ID142/EMPL_ID1 /tns:EMPGET/soapenv:Body/soapenv:Envelope 0 /Message Suspiciously enough, when the WS server is located on my computer, running the same SOAP request is successful. Did anyone encounter this kind of problem? Thanks, Shahar Kedar Software AG
Re: usernametoken programmatically with a stub (rampart and Axis2)
Hi, I already resolve the problem. The error wasn't in the code. Thanks! Edson Edson Tavares de Camargo escreveu: Hi All! I am sending this emai to wssj4 and axis list. Please, I need help in this question. Seems a simple problem, but I really can't resolve it . I want set a usernametoken programmatically in the client side. I am using axis2 and rampart module. This is the error: Exception in thread main java.lang.NullPointerException at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:578) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279) at org.apache.ws.axis2.ClientStub.getUpdate(ClientStub.java:118) at org.apache.ws.axis2.TestClient.main(TestClient.java:72) I will very glad if someone could helpe me. The piece of my code client side is following: //--- ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(path/to/repository, \\axis2.xml); ClientStub stub = new ClientStub(ctx,target); stub._getServiceClient().getOptions().setProperty(user, teste); // here I am setting the username //--- I tried the following too: //- ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(path/to/repository, \\axis2.xml); ClientStub stub = new ClientStub(ctx,target); ServiceClient serviceClient = stub._getServiceClient(); Options options = serviceClient.getOptions(); options.setProperty(user, teste); serviceClient.setOptions(options); stub._setServiceClient(serviceClient); //-- In the axis2.xml I am not using the user element. The piece of this file is following: // - axisconfig name=AxisJava2.0 module ref=rampart / parameter name=OutflowSecurity action itemsUsernameToken/items !--userteste/user -- passwordCallbackClassorg.apache.ws.axis2.PWCBHandler/passwordCallbackClass /action /parameter parameter name=hotdeployment locked=falsetrue/parameter parameter name=hotupdate locked=falsetrue/parameter messageReceiver mep=INOUT class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/ transportSender name=http class=org.apache.axis2.transport.http.CommonsHTTPTransportSender parameter name=PROTOCOL locked=falseHTTP/1.0/parameter /transportSender phaseOrder type=inflow !-- Continue --- // -- Please, Where is the problem? There are other way to set the usernametoken programmatically? Thanks in advance, Edson -- Edson Tavares de Camargo - Instituto Stela Florianópolis - SC - Brasil (48) 3239 2572 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] AxisFault: java.lang.ExceptionInInitializerError / NoClassDefFoundError
Thanks, Robert! The problem is resolved. To adapt to my file structure, I only used the wsdl2java ant task from the Apache site. When I did re-build in my IDE, it wiped out the XML Bean resources generated. I re-generated the XML Beans resources before zipped the code in the aar file. Since the package name seems randomly generated each time, the older package name must have been used in the compiled classes. That's why the engine was looking for a different package name and definitely it cannot be found. Shaoguang robert lazarski [EMAIL PROTECTED] wrote: Classic error: http://ws.apache.org/axis2/tools/1_1/CodegenToolReference.html An important detail is that an XMLBean class file is also generated by WSDL2Java, TypeSystemHolder.class. That file is placed into build/classes by the above ant task and will be needed to compile the generated sources. A frequent problem is users get an error such as: ClassNotFoundException : Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s68C41DB812F52C975439BA10FE4FEE54.TypeSystemHolder. Make sure the generated binary files are on the classpath. The TypeSystemHolder.class generated by WSDL2Java must be placed in your classpath in order to avoid this error. So one way to solve the issue is to follow the ant task in the tutorial. HTH, Robert - Everyone is raving about the all-new Yahoo! Mail beta.
[AXIS2] Class load error - org.apache.axis2.AxisFault: HTTP Transport error : '404'
I've a ServletContext listener class (WsServletContextListener) in my Axis2 project. The listenner class is packaged in the aar file. The aar file is deployed under axis2/WEB-INF/services. This makes tomcat fail to install the axis2 webapp because it fails to find the WsServletContextListener class (client is returned with org.apache.axis2.AxisFault: HTTP Transport error : '404'). It will work fine if I move the WsServletContextListener class to axis2/WEB-INF/classes. Do I need to deploy some of the customized classes (e.g. ServletContext listener class) separately from the classes in the aar file? I won't think so but it seems possible because those classes are loaded earlier by the tomcat boostrap process. Anyone can explain why or what could be wrong in my deployment? Thanks. Shaoguang - Access over 1 million songs - Yahoo! Music Unlimited.
Generate WSDL for dynamic types
Hi, I am trying to write a generic service that works against another framework. This service has to support a few data types that are specified as Java Beans, but are not known at development time as they will be specified at deployment time. A good analogy will be a service that inserts Java Beans to a database using something like hibernate. The user can choose the list of tables to expose, and gets an operation for each table. The WSDL should contain the schema of the input record, which maps to a Java Bean. So if I decide to expose the tables “CUSTOMER” and “ORDER”, the WSDL will contain two operations, one for each table. The operations must contain a request schema that matches the bean associated with the table by hibernate, “beans.Customer” and “beans.Order”. It is not possible to write a function for each operation, because it relies on the list of tables that the user configures, and the java beans associated with the tables are extracted by hibernate. This is configurable by the user and not known at development time. I have the feeling that all the pieces are there and it should be a fairly quick task, but I am having a hard time finding the starting point after reading all the documentation. The documentation deals extensively with static signatures, where the WSDL is generated dynamically based on a Java function signature that is strongly typed, but not when the Java function is generic and the request object is a configuration property. I am thinking of something like this: service name=InsertToTables class=sample.InsertToTablesService scope=application messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-only; class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver/ /messageReceivers parameter name=ServiceClasssample.InsertSingleRecord/parameter parameter name=tables tables tableCUSTOMER/table tableORDER/table /tables /parameter /service Or even add the operations individually: operation name=customer messageReceiver class=org.apache.axis2.receivers.RPCInOnlyMessageReceiver / actionMappingurn:insert/actionMapping parameter name=tableCUSTOMER/parameter /operation operation name=order messageReceiver class=org.apache.axis2.receivers.RPCInOnlyMessageReceiver / actionMappingurn:insert/actionMapping parameter name=tableORDER/parameter /operation The service class should be generic: public void insert(Object javaBeanRecord) or: public void insert(OMElement xmlRecord) but still have the WSDL generated properly form the Java Bean of the table. I am looking for a place to plug in the schema in the WSDL generation, the rest seems very straight forward. Any help will be greatly appreciated! -- View this message in context: http://www.nabble.com/Generate-WSDL-for-dynamic-types-tf2728713.html#a7610898 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Rampart-1.1-RC1
Ruchith, I picked up the rampart-1.1.RC1 release and am having library problems. I have copies of wss4j-SNAPSHOT.jar and bcprov.jar in my service.aar file because my application needs them. I copied the versions of those jars from the rampart-1.1-RC1.mar and put them in my aar file. Somehow finding those jars in my aar file confuses rampart. I get the following errors when axis2 is trying to read a request message. If I remove wss4j.jar from my aar file, rampart works, but then my code fails since it can't find the classes it is using. I was previously using the rampart1.1 snapshot from Nov 13 and it was ok after I put the updated versions of wss4j and bcprov in my aar file. I am using axis2-1.1.1 nightly build of Nov 29. INFO: Server startup in 24471 ms java.lang.ClassCastException: org.apache.ws.security.components.crypto.Merlin at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.j ava:180) at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory .java:153) at org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:347) at org.apache.ws.security.handler.WSHandler.decodeSignatureParameter2(WSHandler.jav a:848) (...) Nov 29, 2006 4:18:53 PM org.apache.ws.security.components.crypto.CryptoFactory loadClass SEVERE: Unable to instantiate (2): org.apache.ws.security.components.crypto.Merlin java.lang.InstantiationException: org.apache.ws.security.components.crypto.Merlin at java.lang.Class.newInstance0(Class.java:335) at java.lang.Class.newInstance(Class.java:303) at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.j ava:188) at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory .java:153) at org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:347) at org.apache.ws.security.handler.WSHandler.decodeSignatureParameter2(WSHandler.jav a:848) at org.apache.ws.security.handler.WSHandler.doReceiverAction(WSHandler.java:232) at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:249 ) at org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:8 8) at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:74) at org.apache.axis2.engine.Phase.invoke(Phase.java:382) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:487) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTr ansportUtils.java:326) Any suggestions would be appreciated Thanks, Mary - Mary R. Thompson[EMAIL PROTECTED] Secure Grid Technologies Group (510) 486-7408 Lawrence Berkeley National Lab http://dsd.lbl.gov/~mrt -- Ruchith Fernando wrote: Hi All, Apache Rampart-1.1-RC artifacts are now available. You can find them here: http://people.apache.org/~ruchithf/rampart-1.1-RC1/ Please try out rampart and report any issues you have. Thanks, Ruchith - 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]
Receiving soap faults in axis2-1-1 client
Ever since I switched to axis2-1-1 my client stubs have generated the following exception whenever they receive a soap fault from the server. (the stub code is generated by WSDL2java) OSCARSStub threw exception org.apache.axiom.om.impl.llom.OMElementImpl java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl at org.apache.axiom.soap.impl.llom.SOAPFaultImpl.getCode(SOAPFaultImpl.java:101) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:312) at net.es.oscars.service.OSCARSStub.cancelReservation(Unknown Source) at net.es.oscars.client.Client.cancelReservation(Unknown Source) at CancelReservationClient.main(Unknown Source) I have been logging the reply message to see what it really wrong and the message looks ok to me. DEBUG [httpclient.wire.content] ?xml version='1.0' encoding='UTF-8'?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header /soapenv:Bodysoapenv:Faultfaultcodesoapenv:Client/faultcodefaultstringjava.lang.ExceptionInInitializerError/faultstringdetailExceptionorg.apache.axis2.AxisFault: java.lang.ExceptionInInitializerError; nested exception is: [\n] DEBUG [httpclient.wire.content] [0x9]java.lang.ExceptionInInitializerError[\n] .. long stack trace of error ... /Exception/detail/soapenv:Fault/soapenv:Body/soapenv:Envelope Has any one else seen this? It was working ok with axis2-1.0. Did I miss some trick in switching to the 2.1.1 release? I have just tried the Nov 29 nightly build, but it didn't help. Mary - Mary R. Thompson[EMAIL PROTECTED] Secure Grid Technologies Group (510) 486-7408 Lawrence Berkeley National Lab http://dsd.lbl.gov/~mrt -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[axis2 1.1.1]original wsdl soap:address altered
Hi, I am using Axis2 1.1.1. I author my wsdl and specify useOriginalwsdl in my services.xml so that the published WSDL would be the one I authored and not the one generated by Axis. It used to wokr fine until the latest nightly of 27th Nov. Eventhough I ask for the original wsdl to be preserved, it alters my soap:address and replaces my host name with some weird IP address!! This happens to any wsdl and any service. Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2] Problem reading own xml file inside aar archive
Try getResourceAsStream() instead. That has the ability to read files within a zip file. -Original Message- From: Subash Devkota [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 9:45 PM To: axis-user@ws.apache.org Subject: [Axis2] Problem reading own xml file inside aar archive Hi, I am having problem reading my own XML file inside aar file. The structure of my archive file is as shown below: * META-INF o MANIFEST.MF o services.xml * security o XMLParser.class o serverConf.xml o .. * key.jks * services.properties I want to read parameters inside serverConf.xml from XMLParser class. I have following code to read the xml file: URL url=XMLParser.class.getClassLoader().getResource(security/serverConf.xml); String fileName=url.toString(); DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); Document doc = docBuilder.parse (new File(fileName)); It works fine when i try it in java application from eclipse. But it has problem reading the file when i make archive and deploy as web service. I get the following error: java.io.FileNotFoundException: jar:file:/home/oracle/app/jakarta-tomcat-5.0.28/webapps/axis2/WEB-INF/servic es/SecureServer.aar!/security/serverConf.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderImpl.parse(DocumentBuilderI mpl.java:129) at security.XMLParser.loadXmlParameters(XMLParser.java:63) Can anyone suggest me how can i solve the problem? Thank You Subash PRIVACY NOTICE This email and any attachments may be confidential and/or privileged. Use of the information contained in this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and delete this email. - 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] WSDL2JAVA produces unformatted (pretty printed) java code
I believe if you have either Jalopy or JTidy on your classpath, Axis2 will use them. -Original Message- From: Ulf Heyder [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 2:54 AM To: axis-user ws.apache.org Subject: [AXIS2] WSDL2JAVA produces unformatted (pretty printed) java code My WSDL2JAVA call produces unformatted (pretty printed) java code (AXIS2 1.1). Any hints? Ulf -- Ein Herz für Kinder - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! - 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: How to configure axis2-1.1 to support JAXB-RI
Jim, Your best bet is to generate databinding using some other supported tech (i.e., XmlBeans). Then alter the generated classes (the MessageReceiver and Skeleton) so that you use JAXB-RI. This generally involves going to and from Axiom (OMElement) as the information is passed from and back to the SOAP body-this shouldn't involve much effort since the StAX api is supported by JAXB. _ From: jim ma [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 10:00 PM To: axis-user@ws.apache.org Subject: How to configure axis2-1.1 to support JAXB-RI Hi all , I noticed aixs2 1.1 can support JAXB-RI databinding experimentally. I have copied all the jar files related to jaxb ri under lib directory(in axis2-std kit). But wsdl2java complains JAX-B RI binding extension not in classpath. Is there something need to configure or codegen tool can not generate jaxb ri databinding code ? I also want to know runtime can support jaxb ri databinding. Thanks Jim
[axis2-1.1.1] probems with enumerated types
One more thing that broke when I moved from 2.1 to 2.1.1. In 2.1 enumerated types based on strings were just treated as ordinary strings. In 2.1.1 a class was created (by wsdl2java) for each enumerated type and the values were checked. So far, an improvement. But when the type is put in or out of a message (using ADB binding) the OMElement classes reject it. For example resStatus is a return parameter which can hold a few string values. It is part of a CreateReservationResponse but when axis goes to return it I get. Nov 29, 2006 6:54:02 PM org.apache.axiom.om.impl.llom.OMSourcedElementImpl forceExpand SEVERE: forceExpand: expected element name cancelReservationResponse, found resStatus Nov 29, 2006 6:54:02 PM org.apache.axis2.transport.http.AxisServlet doPost SEVERE: java.lang.ExceptionInInitializerError My Skeleton class is returning a CreateReservationClass which contains a ResStatus class instance which has been set to CANCELLED using the fromString(CANCELLED) method. This happens both in axis2 1.1 and 1.1.1 Nov 29. Any suggestions or enlightenment would be appreciated. Mary - Mary R. Thompson[EMAIL PROTECTED] Secure Grid Technologies Group (510) 486-7408 Lawrence Berkeley National Lab http://dsd.lbl.gov/~mrt -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sesion managment, scope=soapsession
Hi Stadelmann ; pls see my comments below; Hi session-managers, I'm running my client and server with modules addressing-1.1, logging, soapmonitor-1.1 engaged and have set scope=soapsession MyService.java got the additional methods public void init(ServiceContext sCtx) { this.sc = sCtx; this.log.info(sc.toString()+ init() called ); } public void destroy(ServiceContext sCtx) { if(!this.sc.toString().equals(sCtx.toString())){ this.log.error(ServiceContext on init() and destroy() not equal in ); } this.log.info(sc.toString()+ destroy() called ); } public void setOperationContext(OperationContext oCtx) { this.oc = oCtx; this.log.info(oc.toString()+ setOperationContext() called ); } We have removed this method (it was there in Axis2 1.0 , but we removed that from Axis2 1.1), so we are no longer going to call this method . If you want to get access to operation context , then you can do that as follows; MessageContext msgCtx = MessageContext.getCurrentContext(); from msgCtx you can access any of the contexts you want . I start client #1 which has the effect that MyService.init() is called; so far so right! Client #1 then loops and sends continously messages to MyService.echo() I start client #2 which has the effect that MyService.destroy() is called followed by MyService.init() This has the effect that client #1 fails with an invalid group context id exception Is this a bug? Nope. That is not a bug , soapsession has concept of time out , so once it gets time out you will get that exception. I have studied the architecture of axis2 and have drilled down in code and I came down to where alle the service objects are finally called at invokeBusinessLogic (inCtx, outCtx) with it's call to method.invoke ( . . . ) good . All reading in code and documentation did not answer my questions *** How does Axis2 manage / support long-lasting-sessions to server-objects bound to this session ? *** Do I have to implement this myself on top of Axis2? No , you can get support from Axis2 session management. If you have Axis2 1.1 distribution there you can find a sample called Library sample , which help you to understand most of the important factors. 1. I want to have a client-object exchanging OMElements with it's service-class-object. yes , doable 2. when the client starts the session, up on receiving the first message, a unique instance of the service-class-object shall be created at the server. yes , that is what happen. 2a) 20 client objects shall mean we have instantiated 20 dedicated-server-objects yes. 3. as long as this 20 service-class-object exists, in fact 20 wrapper-object to 20 external server process, and as long as this 20 external process exist it shall not be allowed that one single service-class-object dies. for that reasioon the server-objects must exist until it's dedicated client terminates the session esplicitly by calling logout() on the server-object. Nope , the behavior of soapsession is not like that. It has a notion of time out. If the user does not touch the service for about 30s (time interval is configurable) , then the session will be automatically terminated. 4. every message sent by a client has to reach exact the same instance of the service-class-object as the previous message did, anything else would be considerd a security risk, a fault, an error. yes , we are mapping to the same session using special header parameter called ServiceGroupID I have read in a dcoument about axis session managment @ http://www.developer.com/java/web/print.php/3620661 that axis2 is meant to be an enterprise web service engine, so it has to support session management. The article is little bit out dated , since we had few changes from Axis2 1.0 to 1.1 I have read all related e-mails and implemented soap-sessions which work nicely with one client and one server. But they die when the second client starts as descibed above. the second client creates a new service-group-id when and the old one gets lost. THis happens in my mind because destry is called implicit. So client-1 then fails as it's known service-group-id does no longer exist. I have not found in all the e-mail of the past 3 months a clear idea or an answer to this often asked questions about how to implement sessions to such server side obejcts. I must admit, I do not understand how ws-addressing supports my demand. Can I managment my sessions with axis2 in an elegant way or do I have to fall-back to servlets and tomcat? I would really appreciate any answers and thank you very much to answer my burning question not only for my own satisfaction. Thank you. Josef -- Thanks, Deepal The highest tower is built one brick at a time
Web Services Generic Client Approach
Hai, From past 10 days i have been playing with AXIS 1.4 (Java) API. Actually my need is to write a generic web service monitoring client, where i can connect with different web services like .NET and J2EE. This generic client can used in monitoring any web service. USer need to supply WSDL URL and method details and can create a monitor instance. Using these details my generic client should poll for a specific web service. According to my Knowledge there are three ways to create web service monitor, which are as follows: 1. Static Stub Based 2. Dynamic Proxies 3. DII Call. What i feel after spending 10 days with axis api is, method 1 2 is not so flexible for my use. Becuase i need to generate stubs dynamically and need to use reflection for making final soap call. I used WSDL2Java with differnt wsdl files. But the WSDL2Java tool output stub names is not consistent with every wsdl file. 1. if web service name starts with small letter wsdl2java tool is making it capital. Ex: sevicename=eBayService in output stubs it is changed to EBayService. 2. With -p option stub names will have differnt names from without using -p option. If this is the case my reflection based soap call fails with some web services. Then i decided to use DII approach eventhough it requires more effort than stub based client. But in some news groups i found like JAX-RPC DII client doesn't support Document/Literal encoding (supports only RPC). Can any one guide me the best client approach. Can I use DII approach with axis 1.4 or do i need to go with stub based approach only. thanks Durga Srinivasu
RE: WS-Addressing setReplyto method name namespace
Hi Michele, The process cycle is that: my client sends a message to a service hosted on JBoss with all WS addressing properties like replyTo, faultTo, from, to etc. already mentioned in the request header. Now, the request header in this case has a replyTo set to the address of the service installed on RAD6(service up and running). Now when i start the process then the message as specified goes to the JBoss service and then based on the replyTo address hits the RAD6 server. After this i get a SOAP fault from RAD6 (also shown on the RAD6 console- so this means that my message had reached the destination but then its throwing the SOAP fault that it cannot map the operation name to any operation name in the service). This is absolutely fine as the RAD servie excepts a string type param and the response from JBoss also contains a string param but there is no method name of the destination rad service in this reponse (as a SOAP response does not contain a method name) so its unable to map to the response from Jboss to rad. My basic aim is that i want to simulate a scenario wherein i pass a string (or any data) from a clent to a service (using WS addessing) and then that service after manipulating that data sends it to another sevice hosted somewhere else. Is the way i m implementing it correct or is there any other way ? Also what i feel is that if i want to add the method name in the response of Jboss service then may be will have to use SAAJ api's but think thats not a correct way of doing !! My client uses axis 2 Api's. Kindly guide. Regards, Vaibhav -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 9:49 PM To: axis-user@ws.apache.org Subject: Re: WS-Addressing setReplyto method name namespace Hi Vaibhav, Is the message sent by jboss to RAD6 a forward or a result message? In the first case you must be sure the target service is available on RAD6, in the latter one you have to fix the addressing information contained into the SOAP header before the message hits the RAD6 host (by default the replyTo fields is set to the client so if you send the message somewhere else the receiver will fail). And what about the exception your service is throwing? Try to post it and maybe we can help you. Regards, Michele On 29 Nov 2006, at 13:54, Vaibhav Pandey wrote: Hi, need help on an issue relating to WS Addressing: m working on the following configuration with WS addressing using axis2 :- axis2 + Jboss + IBM Rad6 m trying to generate a scenario wherein i send a SOAP request using axis2 to an axis2 WS deployed on JBOSS. Then the reply of this service should be forwarded to another WS hosted on RAD6. Everythng wrks perfectly fine except the fault that i get from RAD6 stating that it could not map the request to a particular operation axis2 client --SOAPReq (over HTTP)-- WS1 (axis2 WS on jboss) -- SOAPRes (over HTTP)-- WS2 (on IBM Rad6) The reason for this is that the SOAP response generated by my WS1 will have the namespace and method response of WS1 and no information pertaining to the WS2, but as the replyto header is set to the WS2 EPR, the request gets forwarded and then the WS2 generates a fault. I tried with all types of WS viz doc/literal, rpc/encoded, rpc/ literal etc but got the same fault !! Is there any way by which i can set these configurations(method name of WS2 and namespace through my client itself or any other way) ?? Kindly guide me as to what m i supposed to do ?? Regards, Vaibhav - 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: Compatibility issue between weblogic9.0 and axis2-1.1
Hi Sumeet, First of all I am not a web logic specialist. But looks like I can share my knowledge in application servers here. :-) For me it looks like a class loading issue created from web logic side. I assume you just deployed axis2 1.1 war inside the WL (not in EAR or some complex situation). If this is the case you may have to change the default class loading behavior of the WAR file by adding weblogic.xml with necessary configurations. Thanks, Lasantha Ranaweera sumeet gupta wrote: Hi All, we are deploying our webservices on weblogic 9.0 but it is continously giving an error which i am mentioning below.can anybody please tell me is axis2-1.1 compatible with weblogic9.0 or not?? Nov 28, 2006 7:31:29 PM GMT+05:30 Error HTTP BEA-101017 [weblogic.servl [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - name: 'axis2.war', context-path: '/ax is2'] Root cause of ServletException. java.lang.NoSuchMethodError: javax.xml.stream.XMLOutputFactory.newInstance(Ljava /lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/stream/XMLOutputFactory; at org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXUtils.java :97) at org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.ja va:111) at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize (OMNodeImpl.java:38 1) at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:732 ) at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:6 01) Truncated. see log file for complete stacktrace Nov 28, 2006 7:31:36 PM GMT+05:30 Error HTTP BEA-101017 [weblogic.servl [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - name: 'axis2.war', context-path: '/ax is2'] Root cause of ServletException. java.lang.NoSuchMethodError: javax.xml.stream.XMLOutputFactory.newInstance(Ljava /lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/stream/XMLOutputFactory; at org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXUtils.java :97) at org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.ja va:123) at org.apache.axiom.om.impl.MTOMXMLStreamWriter .init(MTOMXMLStreamWrit er.java:74) at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeIm pl.java:410) at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEnt ity.handleOMOutput(SOAPOverHTTPSender.java:190) Truncated. see log file for complete stacktrace Many Thanks Sumeet
SSL Client Transport in Axis2
Hi all, How can i set up the client that wants to talk to a service through SSL transport. The certificate needs to be loaded in to a truststore. Does Axis2 provide a way to set this up.? Any help on this would be appreciated.. Thanks in Advance Sriram
[Axis2] Problem getting response from WebService from client in next pc
Hi all, I am having problem calling webservice hosted in next pc. If the web service client is in same computer, it works fine. But if client and server are at different computers, there is error receiving response from the server. The server can get the request but the client can not obtain response from server. I am using Axis2-1.0 and rampart module for security. I am using : itemsTimestamp Signature Encrypt/items configuration in outflow and inflow for both client and service side. I obtain following error when I call service from a client from any other computer other than the one where client is hosted: org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed; nested exception is: org.apache.ws.security.WSSecurityException: An error was discovered processing the wsse:Security header. (WSSecurityEngine: Invalid timestamp The security semantics of message have expired) at org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183) at org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82) at org.apache.axis2.engine.Phase.invoke(Phase.java:381) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:355) 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) Caused by: org.apache.ws.security.WSSecurityException: An error was discovered processing the wsse:Security header. (WSSecurityEngine: Invalid timestamp The security semantics of message have expired) at org.apache.ws.security.processor.TimestampProcessor.handleTimestamp(TimestampProcessor.java:82) at org.apache.ws.security.processor.TimestampProcessor.handleToken(TimestampProcessor.java:52) at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269) at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191) at org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180) ... 12 more Please help me... Thanks in advance Subash PRIVACY NOTICE This email and any attachments may be confidential and/or privileged. Use of the information contained in this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and delete this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]