Wsdl2C incorrect choice management
Hi, In my operation parameter i have a choice element with 3 subelement. xs:choice xs:element name=NumericMessage type=NumericMessageType/ xs:element name=AlphanumericMessage type=AlphanumericMessageType/ xs:element name=TransparentDataMessage type=TransparentDataMessageType/ /xs:choice In the serialize function of the generated code (with last nightly build), this element is not correctly managed: it checks for the presence of all three element, not for only one. I have attached the generated code of the choice type. Is this a known bug? Thanx, simone bordin choice_type.tar.gz Description: application/gzip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wsdl2C incorrect choice management
Hi Simon, Yea it is a known bug:( We have a JIRA issue reported similar to yours, https://issues.apache.org/jira/browse/AXIS2C-826 Thanks DImuthu On Dec 19, 2007 8:31 PM, Simone Bordin [EMAIL PROTECTED] wrote: Hi, In my operation parameter i have a choice element with 3 subelement. xs:choice xs:element name=NumericMessage type=NumericMessageType/ xs:element name=AlphanumericMessage type=AlphanumericMessageType/ xs:element name=TransparentDataMessage type=TransparentDataMessageType/ /xs:choice In the serialize function of the generated code (with last nightly build), this element is not correctly managed: it checks for the presence of all three element, not for only one. I have attached the generated code of the choice type. Is this a known bug? Thanx, simone bordin - 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]
How to set a value of type anyType in generated stub
Hi, I have to set a value defined as anyType in wsdl and relative xsd: xs:sequence xs:element minOccurs=0 name=metadataName type=xs:string/ xs:element minOccurs=0 name=value type=xs:anyType/ /xs:sequence I have generated the stub for this wsdl and the struct defined to pass to the op contains a field of type axiom_node_t* struct adb_metadataValue { axis2_char_t* property_metadataName; axis2_bool_t is_valid_metadataName; axiom_node_t* property_value; axis2_bool_t is_valid_value; }; I need to insert a string or int or other types depending of some conditions verified at runtime. Thanks Antonio Chiurla --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set a value of type anyType in generated stub
Hi Antonio, If I m correct you are asking how to create string or int node so you can assign it the variable with anytype. You can use 'axiom_text_create' to create text element and corresponding node. axiom_text_t* text_element; axiom_node_t *text_node; text_element = axiom_text_create(env, NULL /* no parent at start */, SomeString /* your string */, text_node); here you can set the text_node to the setter method of the above struct. you may set int, float values after converting them to string (May be using sprintf) Check http://ws.apache.org/axis2/c/docs/om_tutorial.html Code Listing 6 for an example. Thanks Dimuthu On Dec 19, 2007 10:56 PM, Antonio Chiurla [EMAIL PROTECTED] wrote: Hi, I have to set a value defined as anyType in wsdl and relative xsd: xs:sequence xs:element minOccurs=0 name=metadataName type=xs:string/ xs:element minOccurs=0 name=value type=xs:anyType/ /xs:sequence I have generated the stub for this wsdl and the struct defined to pass to the op contains a field of type axiom_node_t* struct adb_metadataValue { axis2_char_t* property_metadataName; axis2_bool_t is_valid_metadataName; axiom_node_t* property_value; axis2_bool_t is_valid_value; }; I need to insert a string or int or other types depending of some conditions verified at runtime. Thanks Antonio Chiurla --- - 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 Rampart + Sandesha integration problem
I'm trying to do the same thing you want to do but I having a different message error: (Debug enabled) [DEBUG] Exit: InMemoryTransaction::enlist [DEBUG] Enter: InMemoryStorageManager::removeMessageContext, key: urn:uuid:818835A043FB6125F01198050445672 [DEBUG] Exit: InMemoryStorageManager::removeMessageContext, key: urn:uuid:818835A043FB6125F01198050445672 [DEBUG] Entry: OutInAxisOperationClient$SyncCallBack::onError, java.lang.Exception: Sandesha2 sender thread has not received a valid CreateSequnceResponse [DEBUG] Exit: OutInAxisOperationClient$SyncCallBack::onError [DEBUG] Exit: SenderWorker::run The error is: Sandesha2 sender thread has not received a valid CreateSequnceResponse I'm tracking the error in the SenderWorker.java file, checkForSyncResponses function: } catch (Exception e) { String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.noValidSyncResponse); if (msgCtx != null ! msgCtx.isServerSide() (Sandesha2Constants.SPEC_2005_02.Actions.ACTION_CREATE_SEQUENCE.equals(msgCtx.getSoapAction()) ||Sandesha2Constants.SPEC_2007_02.Actions.ACTION_CREATE_SEQUENCE.equals(msgCtx.getSoapAction())) ){ // We have not received a valid createSequnce reponse for the request we send so we need to terminate the seunce here return false; } else { if (log.isWarnEnabled()) log.warn(message, e); } I'm not sure why the code is looking for ACTION_CREATE_SEQUENCE instead of ACTION_CREATE_SEQUENCE_RESPONSE! Any ideas? ( I have read the link in http://wso2.org/library/1027 but I realized the changes suggested in the article are already incorporated in the sandesha 1.3 module.xml file) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2] Release plan and road map for Axis2 1.4 release
Hi! Could you please have a look at the following issue if it can be resolved to the Axis2 1.4 release. I have asked the axis mailing list about this issue a couple of times the last year but the problem has not been solved yet. When creating a web service using existing business logic with code first approach I dont think custom exceptions are handled the way it should. (Axis2 1.3) Assume the following server side code: package axis2test; public class MyService { public MyService() { } public int addOneToPositiveValue(int value) throws CustomException { if(value 1) { throw(new CustomException()); } return(value + 1); } } package axis2test; public class CustomException extends Exception { private static final long serialVersionUID = 9; public CustomException() { super(); } public String toString() { return(super.toString() + ' axis2test.CustomException'); } } This is a webservice for MyService axis2test.MyService I deploy the service, let Axis2 generate the .wsdl file and then create a client with the wsdl2java tool (xmlbeans style). The custom exception appears on the client side in the AxisFault details field within -tags together with a HUGE stack trace. This makes it hard for a client to parse. Is it posible to fix this to make it possible to use the generated client like: try { stub.addOneToPositiveValue(-1); } catch(CustomException c) { ... ... } catch(Exception e) { ... ... } I have tried the parameters drillDownTo... and sendStackTrace... It doesn't solve the problem for me. Thanks. /Pär _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2] Question about interactiving with different Axis2 versions
Hi Anil, The idea is to have independent components. Therefore the server doesn't know the clients implementation and the other way around. The only important thing is that they both stick to the contract (wsdl file) for sending the correct messages. Different versions can have problems ofcourse, but the only interesting part is that the correct messages are send between server and client. Regards, Sietse -Original Message- From: Anil VVNN [mailto:[EMAIL PROTECTED] Sent: 18 December 2007 21:37 To: axis-user@ws.apache.org Subject: [Axis2] Question about interactiving with different Axis2 versions Hi, We use Axis2 for the WebServices and ADB for the code generation. Currently, the Server side uses Axis2 1.1.1 version and Client uses Axis2 1.2 version for code generation (stubs etc). Is this type of set-up okay? or will there be any problem with different versions. Can Client version be different from the Server and vice versa? Which layer (server/client) can have upper version? Thanks. -- View this message in context: http://www.nabble.com/-Axis2--Question-about-interactiving-with-differen t-Axis2-versions-tp14406286p14406286.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[axis2] Service blocking
Hi I noticed one strange(?) behavior: Situation: I got 2 different services (2 different .aar files). 1st service works quite long approx. 30sec, 2nd one works shortly, approx. 1 sec. When I start 1st one and during it is operating I start 2nd one, this 2nd service waits(?) till 1st service will finished and then 2nd service starts operating. It looks like they blocks each other. Services doesn't use common DB connections etc. - totally separated services. What is wrong with it, why they don't work simultaneously? Is there some service/axis2 configuration options? Info: OS: Linux (don't know what distribution, I don't have raw access to server) Axis2: version 1.3 JVM: 1.5.0_03-b07 Tomcat: 5.0 Greetings zolv - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] ANN: book on Apache Axis2 available
Hi Kent, with all due respect to your efforts and having in mind that not everything coming out of a mailing list is legitimate and before anyone of us invest our time, effort and trust in your book, Is this book endorsed by the Axis2 community? :) I will welcome it with open arms if it is ... Thanks much Kent Tong wrote: Hi, I've updated my book on Axis to Axis2 (Developing Web Services with Apache Axis2). If you'd like to learn how to create web services (in particular, using Apache Axis2) and make some sense of various standards like SOAP, WSDL, MTOM, WS-Addressing, WS-Security, WS-Policy, XML Encryption and XML Signature, then please check it out at http://www.agileskills2.org/DWSAA Thanks! - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] rampart encryption and multiple clients
Hi yueyue, i have a question : if the certificate is in the key store ,how do the server know a client user is who ? There are number of key referencing mechanisms defined in WSS and WS - security policy specifications. You can use a Subject key identifier, issuer serial, Thumbprint key identifier etc. These information are unique, so we can get the referenced certificate from the key store using these references. eg. Key referenced using a subject key identifier reference : KeyInfo xmlns=http://www.w3.org/2000/09/xmldsig#; o:SecurityTokenReference o:KeyIdentifier ValueType= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier Xeg55vRyK3ZhAEhEf+YT0z986L0=/o:KeyIdentifier /o:SecurityTokenReference /KeyInfo Key referenced using a thumbprint reference : KeyInfo xmlns=http://www.w3.org/2000/09/xmldsig#; o:SecurityTokenReference o:KeyIdentifier ValueType= http://docs.oasis-open.org/wss/2005/xx/oasis-2005xx-wss-soap-message-security-1.1#ThumbprintSHA1 NQM0IBvuplAtETQvk+6gn8C13wE=/o:KeyIdentifier /o:SecurityTokenReference /KeyInfo Thanks, Nandana Regards, yueyue Nunny wrote: Hi Kent, This won't work if the client is unknown (being unknown is fine as long as the certificate can be verified by a trusted CA). Is rampart designed to be used for known/fixed clients only? No, Rampart can be used in this kind of scenario. You have to set the encryption user as encryptionUseruseReqSigCert/encryptionUser. Then the certificate used to sign the request message will be used to encrypt the response message. If the certificate is not in the key store it has to be sent with the request as a binary token (according token inclusion property of the security token defined in the security policy). Regards, Nandana Thanks! - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/-Axis2--rampart-encryption-and-multiple-clients-tp14289084p14289084.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Axis2--rampart-encryption-and-multiple-clients-tp14289084p14409381.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [axis2] Service blocking
Try to check the tomcat config. file, specifically the number of connector threads (tomcat 5.0 uses blocking I/O). Michele On 19 Dec 2007, at 12:51, Radoslaw Adamiak wrote: Hi I noticed one strange(?) behavior: Situation: I got 2 different services (2 different .aar files). 1st service works quite long approx. 30sec, 2nd one works shortly, approx. 1 sec. When I start 1st one and during it is operating I start 2nd one, this 2nd service waits(?) till 1st service will finished and then 2nd service starts operating. It looks like they blocks each other. Services doesn't use common DB connections etc. - totally separated services. What is wrong with it, why they don't work simultaneously? Is there some service/axis2 configuration options? Info: OS: Linux (don't know what distribution, I don't have raw access to server) Axis2: version 1.3 JVM: 1.5.0_03-b07 Tomcat: 5.0 Greetings zolv - 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] wrong value of xml encoding
Hi all, Using Axis2 1.3 with the WSDL appearing below. When invoking the service the SOAP looks like this: ?xml version=1.0 encoding=http://www.w3.org/2003/05/soap-envelope; standalone=no? soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope; soapenv:Body ... /soapenv:Body /soapenv:Envelope I am deploying the service through the Eclipse IDE on its embedded Tomcat 5.5 server. Adrian. ?xml version=1.0 encoding=UTF-8? wsdl:definitions xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:ns1=http://acme.com/xsd; xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; xmlns:ns0=http://acme.com; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; targetNamespace=http://acme.com; wsdl:documentation Please Type your service description here /wsdl:documentation wsdl:types xs:schema xmlns:ns=http://acme.com; attributeFormDefault=qualified elementFormDefault=qualified targetNamespace=http://acme.com; xs:element name=getBNodeResponse xs:complexType xs:sequence xs:element minOccurs=0 name=return nillable=true type=ns1:BNode/ /xs:sequence /xs:complexType /xs:element /xs:schema xs:schema xmlns:ax21=http://acme.com/xsd; attributeFormDefault=qualified elementFormDefault=qualified targetNamespace=http://acme.com/xsd; xs:complexType name=BNode xs:sequence xs:element minOccurs=0 name=left nillable=true type=ax21:BNode/ xs:element minOccurs=0 name=right nillable=true type=ax21:BNode/ xs:element minOccurs=0 name=value type=xs:int/ /xs:sequence /xs:complexType /xs:schema /wsdl:types wsdl:message name=getBNodeRequest/ wsdl:message name=getBNodeResponse wsdl:part name=parameters element=ns0:getBNodeResponse/ /wsdl:message wsdl:portType name=ConverterPortType wsdl:operation name=getBNode wsdl:input message=ns0:getBNodeRequest wsaw:Action=urn:getBNode/ wsdl:output message=ns0:getBNodeResponse wsaw:Action=urn:getBNodeResponse/ /wsdl:operation /wsdl:portType wsdl:binding name=ConverterSOAP11Binding type=ns0:ConverterPortType soap:binding transport=http://schemas.xmlsoap.org/soap/http; style=document/ wsdl:operation name=getBNode soap:operation soapAction=urn:getBNode style=document/ wsdl:input soap:body use=literal/ /wsdl:input wsdl:output soap:body use=literal/ /wsdl:output /wsdl:operation /wsdl:binding wsdl:binding name=ConverterSOAP12Binding type=ns0:ConverterPortType soap12:binding transport=http://schemas.xmlsoap.org/soap/http; style=document/ wsdl:operation name=getBNode soap12:operation soapAction=urn:getBNode style=document/ wsdl:input soap12:body use=literal/ /wsdl:input wsdl:output soap12:body use=literal/ /wsdl:output /wsdl:operation /wsdl:binding wsdl:binding name=ConverterHttpBinding type=ns0:ConverterPortType http:binding verb=POST/ wsdl:operation name=getBNode http:operation location=Converter/getBNode/ wsdl:input mime:content type=text/xml part=getBNode/ /wsdl:input wsdl:output mime:content type=text/xml part=getBNode/ /wsdl:output /wsdl:operation /wsdl:binding wsdl:service name=Converter wsdl:port name=ConverterSOAP11port_http binding=ns0:ConverterSOAP11Binding soap:address location=http://localhost:8080/axis2-buttomup/services/Converter/ /wsdl:port wsdl:port name=ConverterSOAP12port_http binding=ns0:ConverterSOAP12Binding soap12:address location=http://localhost:8080/axis2-buttomup/services/Converter/ /wsdl:port wsdl:port name=ConverterHttpport binding=ns0:ConverterHttpBinding http:address location=http://localhost:8080/axis2-buttomup/services/Converter/ /wsdl:port /wsdl:service /wsdl:definitions - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Service name change - creates WSDL generation problem.
I may have done my renaming wrongly, or missed a trick. I have successfully developed and tested a service using Axis2 based on generation from our own wsdl. For depolyment we needed to change the service name. To do this I: 1) Took a copy of the service.xml file generated from our wsdl. 2) Renamed the service name=newname tag inside service.xml then used it to generate compile and jar the webservice. 3) Then changed oldname.aar to newname.aar 4) Run our JUnit tests on the new service successfully. However, when we request newname?wsdl the returned wsdl is faulty. Our original wsdl imported multiple files to define the schema: wsdl:types xs:schema xs:import namespace=http://www.ournamespace; schemaLocation=BsSearchEstabsRQ.xsd/ /xs:schema ... wsdl:types When requested from the running service they became: wsdl:types xs:schema attributeFormDefault=unqualified elementFormDefault=unqualified xs:import namespace=http://www.ournamespace; schemaLocation=oldname?xsd=xsd0/ /xs:schema ... wsdl:types This was fine, but when requested from the renamed service they become: wsdl:types xs:schema attributeFormDefault=qualified elementFormDefault=qualified targetNamespace=http://server.service.bs.org; xs:element name=searchEstabs xs:complexType xs:sequence xs:element minOccurs=0 name=searchEstabs nillable=true type=xs:anyType/ /xs:sequence /xs:complexType /xs:element /xs:schema ... /wsdl:types The import references are missing and the complexTypes generated in their place bear no resemblance. Have I done my renaming wrongly, have I missed a trick, or is there a bug? Any comments or advice would be welcome. Many thanks, Pete.H. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
serviceClient.invokeBlocking() throwing nullpointer exception in rpcclient
hi in my axis2 service returning hashmap .when i am trying to invoke the service in rpcclient i am getting nullpointer exception. i writen rpcclient like this rpcclient.java --- RPCServiceClient serviceClient = *new* RPCServiceClient(); Options options = *new* Options(); options = serviceClient.getOptions(); options.setManageSession( *true*); EndpointReference targetEPR = *new* EndpointReference( http://localhost:8080/services/LoginService;); options.setTo(targetEPR); QName qname= *new* QName(demo.sample.myservicecom, loginUser); Object input[] = { username, password }; Class[] returnTypes = *new* Class[] {java.util.HashMap.*class*}; Object[] response = serviceClient.invokeBlocking(qname,input, returnTypes); -- serviceClient.invokeBlocking(qname,inpu,returnTypes) throwing exception . following is my stacktrace INFO: Exception e is org.apache.axis2.AxisFault org.apache.axis2.AxisFault at org.apache.axis2.AxisFault.makeFault( *AxisFault.java:417*) at org.apache.axis2.transport.TransportUtils.createSOAPMessage( *TransportUtils.java:89*) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse( *OutInAxisOperation.java:326*) at org.apache.axis2.description.OutInAxisOperationClient.send( *OutInAxisOperation.java:389*) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl( *OutInAxisOperation.java:211*) at org.apache.axis2.client.OperationClient.execute( *OperationClient.java:163*) at org.apache.axis2.client.ServiceClient.sendReceive( *ServiceClient.java:528*) at org.apache.axis2.client.ServiceClient.sendReceive( *ServiceClient.java:508*) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking( *RPCServiceClient.java:101*) Caused by: *java.lang.NullPointerException * at org.apache.axis2.transport.TransportUtils.createDocumentElement( *TransportUtils.java:156*) at org.apache.axis2.transport.TransportUtils.createSOAPMessage( *TransportUtils.java:111*) at org.apache.axis2.transport.TransportUtils.createSOAPMessage( *TransportUtils.java:87*) ... 9 more please help me from this problem your help is appriciated thanks and regards knrnaidu
Re: [Axis2] ANN: book on Apache Axis2 available
Hi Kent, When I was starting out a few years back, and knew only what the three acronyms stood for, that is SOAP, WSDL and UDDI, and WSDL looked like gobbledegook, your book on Axis had the clearest explanation so far of what all those tags are doing in a WSDL and document-this and RPC-that and so on. And I read only a few chapters. All other sources I read those days (even nowadays) were written as though readers already knew everything, like those stock market reports. Your chapters didn't have any prose good for insomniacs but only practical know-how worth for real day-to-day work. This is my personal thoughts. Thank you very much and I won't forget how it helped see the light. Upul Note: By the way the keyboard I am typing may have been endorsed by the world federation of keyboard makers but I don't care, I just check whether it suits me before I buy it. On Dec 19, 2007 2:25 PM, Kent Tong [EMAIL PROTECTED] wrote: Hi, I've updated my book on Axis to Axis2 (Developing Web Services with Apache Axis2). If you'd like to learn how to create web services (in particular, using Apache Axis2) and make some sense of various standards like SOAP, WSDL, MTOM, WS-Addressing, WS-Security, WS-Policy, XML Encryption and XML Signature, then please check it out at http://www.agileskills2.org/DWSAA Thanks! - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/-Axis2--ANN%3A-book-on-Apache-Axis2-available-tp14412974p14412974.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Axis2 Service Archiver
Dear apache Team I was developing my webservice on my local PC. It's working propably. Nowit's the time I wanted to run the client from a universities PC. The probelm/error message is that he cannot solve the address location ...address location=3Dhttp://192.168.0.177:8080/axis2/services/Room/ (192.168.0.177 is my localhost) /wsdl:binding wsdl:service name=3DRoom wsdl:port name=3DRoomSOAP11port=5Fhttp binding=3Dns0:RoomSOAP11Binding soap:address location=3Dhttp://192.168.0.177:8080/axis2/services/Room/ /wsdl:port wsdl:port name=3DRoomSOAP12port=5Fhttp binding=3Dns0:RoomSOAP12Binding soap12:address location=3Dhttp://192.168.0.177:8080/axis2/services/Room/ /wsdl:port wsdl:port name=3DRoomHttpport binding=3Dns0:RoomHttpBinding http:address location=3Dhttp://192.168.0.177:8080/axis2/services/Room/ /wsdl:port /wsdl:service /wsdl:definitions Now I changed this url ( http://NEW.dyndns.org:8081/axis2/services...) in my wsdl file but when I want to implement the changed wsdl-file by mentioning/locating it during the Axis2 Service Archiver Tool process to generate the .aar File. But when I have a look at the new generated wsdl file (http://localhost:8080/axis2/services/Room=3Fwsdl) the address location is still the same, no change at all. So how it is possible to place a new address or how I can run my webservice client? Greetings Tim ___ Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing the web services url in Axis1?
I've tried this change and mine is working. Don't forget to change the url in your client service locator, maybe problem is there. On Dec 18, 2007 3:37 PM, Fedde [EMAIL PROTECTED] wrote: Hi, all you Axis gurus out there... I am writing to you with a question regarding an integration I am working with at the moment. Due to many serious problems with the Axis2 WSDL2Java generator I have been forced to use Axis1 for an integration to a third-party system. I have searched this forum during a couple of hours with my question, but I haven't found an answer that has helped yet. To get to the point, when Axis1 is used to deploy web services, the URL for the web service looks something like: http://host:port/App/services/WebService I need to provide URLs without the services part, meaning: http://host:port/App/WebService I have tried what many here have suggested, to change the url-pattern line in the wex.xml file from /services/* to /*, but this doesn't do the trick. Is there ANY simple way in Axis1 to get this done and if yes, please be specific? :-) Thanks in advance! -- View this message in context: http://www.nabble.com/Changing-the-web-services-url-in-Axis1--tp14402997p14402997.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple JMS Transport Senders?
Sorry if this is a basic question... Can there be multiple jms transport senders? I have looked for examples of this configuration, and cannot locate any. Any help is appreciated. This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you.
question about how to test stub timeout
In the axis wiki page http://wiki.apache.org/ws/FrontPage/Axis/JavaTimeout, this describes how to set a timeout. FooServiceLocator loc = new FooServiceLocator(); FooService binding = loc.getFooService(); org.apache.axis.client.Stub s = (Stub) binding; s.setTimeout(1); // 10 seconds, in miliseconds Is there a way I can actually test a slow connection to verify this bit of functionality is working? If I put in a bad url, it will immediately return me, connection refused which doesn't help. Thanks, -dan
Re: Multiple JMS Transport Senders?
I think jms transport urls are given like this. jms:/StockQuoteService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactoryamp; java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactoryamp ;java.naming.provider.url=tcp://localhost:61616 The single jms transport sender uses the above parameters to create a jms connection and send the message to the destination. By using different parameter values in urls like above the destination changes. http://ws.apache.org/axis2/1_3/jms-transport.html Upul On Dec 19, 2007 10:55 PM, Tucker, Mark [EMAIL PROTECTED] wrote: Sorry if this is a basic question… Can there be multiple jms transport senders? I have looked for examples of this configuration, and cannot locate any. Any help is appreciated. -- This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you.
can we pass xmlnode.
Hi We have implemented axis2 web service which take xml structure. While sending parameters to Web service I create structured OMElements as per my schema and send across. This works perfect. My question is 1) Can I add complex xml node to any sub element. of type xsd:anytype. 2) I need to send xml complex data structure element to my axis2 web service. My webservice will not use it but for doing its work but send back same xml structure 3) We don't want to analyze what is in that complex node. Just should go there and cached. 4) While returning back it may goto either of two cluster web application. We want to some polling job using ws where onwakeup event we want to send back this appcontext to identify which polling job is triggerd. if any thing is not clear please let me know. regard Yogesh Dhake == This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that you have received this transmittal and any attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd., Mizuho Corporate Bank (USA), Mizuho Securities USA Inc. or any other affiliates of Mizuho Financial Group (”Mizuho”). Mizuho accepts no responsibility for the accuracy or completeness of any information herein contained. E-Mail received by or sent from officer of Mizuho Securities USA Inc. (which is a registered U.S. broker-dealer and the entity through which Mizuho generally conducts its investment banking, capital markets, and securities business in the United States) is electronically archived and recorded and is subject to review and monitoring by and/or disclosure to persons other than the recipient, including (but not limited to) Mizuho Securities USA Inc. supervisory personnel. Such communications may be produced to regulatory authorities or others with legal rights to the information.
RE: Multiple JMS Transport Senders?
Thanks for the help Upul! From: Upul Godage [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 1:22 PM To: axis-user@ws.apache.org Subject: Re: Multiple JMS Transport Senders? I think jms transport urls are given like this. jms:/StockQuoteService?transport.jms.ConnectionFactoryJNDIName=QueueConn ectionFactoryamp; java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialCont extFactoryamp ;java.naming.provider.url=tcp://localhost:61616 The single jms transport sender uses the above parameters to create a jms connection and send the message to the destination. By using different parameter values in urls like above the destination changes. http://ws.apache.org/axis2/1_3/jms-transport.html Upul On Dec 19, 2007 10:55 PM, Tucker, Mark [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Sorry if this is a basic question... Can there be multiple jms transport senders? I have looked for examples of this configuration, and cannot locate any. Any help is appreciated. This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you. This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you.
Re: question about how to test stub timeout
I've heard that there are some tools to simulate a slow network connection for testing purposes, I've never used it but here is a post about something like that: http://www.kdedevelopers.org/node/3031 On Dec 19, 2007 2:30 PM, Dan Quach [EMAIL PROTECTED] wrote: In the axis wiki page http://wiki.apache.org/ws/FrontPage/Axis/JavaTimeout, this describes how to set a timeout. FooServiceLocator loc = new FooServiceLocator(); FooService binding = loc.getFooService(); org.apache.axis.client.Stub s = (Stub) binding; s.setTimeout(1); // 10 seconds, in miliseconds Is there a way I can actually test a slow connection to verify this bit of functionality is working? If I put in a bad url, it will immediately return me, connection refused which doesn't help. Thanks, -dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web service with REST
Hi I am currently having issue with some of the services I have implemented with REST enabled. With SOAP, all the operations are working fine, but with REST there are couples of operations that do not work. As I understand, axis2 converts the REST/HTTP request to a SOAP message. I have RawXMLINOutMessageReceiver as the message receiver. Requests that work fine have the following xml structure defined in the WSDL. a b/ /a In this case I am able to access the OMElement node b within the saop body. The URL provided in the browser looks like http://domain/service/MyService/a Requests that have issues are of the following structure a b c/ d/ /b /a In this case, the soap message is created with only a and b as the OMElement node. The c and d nodes are not created during the conversion. The URL provided in the browser looks like http://domain/service/MyService/a?c=sampled=free I would like to understand the REST architecture within axis2 and how the request parameters are mapped to the actual xml structure defined in WSDL. Any help will be appreciated. Thanks Shantaram
[axis2] wsdl with policy
Hi all, Can anyone direct me to an example of a WSDL which includes valid policy references, which wsdl2java can interpret and generate an appropriate client stub from? Alternatively, is there a better way to generate the client code? -- Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] SOAP over SIP
Hi, I'm trying to get SIP to be the transport layer for my Axis2 server. Does anyone know where I can find examples of that and if that is possible to do. Thank you.! Samir Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] rampart encryption and multiple clients
thanks very much, Nunny. i understand what you mean .:handshake: Nunny wrote: Hi yueyue, i have a question : if the certificate is in the key store ,how do the server know a client user is who ? There are number of key referencing mechanisms defined in WSS and WS - security policy specifications. You can use a Subject key identifier, issuer serial, Thumbprint key identifier etc. These information are unique, so we can get the referenced certificate from the key store using these references. eg. Key referenced using a subject key identifier reference : KeyInfo xmlns=http://www.w3.org/2000/09/xmldsig#; o:SecurityTokenReference o:KeyIdentifier ValueType= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier Xeg55vRyK3ZhAEhEf+YT0z986L0=/o:KeyIdentifier /o:SecurityTokenReference /KeyInfo Key referenced using a thumbprint reference : KeyInfo xmlns=http://www.w3.org/2000/09/xmldsig#; o:SecurityTokenReference o:KeyIdentifier ValueType= http://docs.oasis-open.org/wss/2005/xx/oasis-2005xx-wss-soap-message-security-1.1#ThumbprintSHA1 NQM0IBvuplAtETQvk+6gn8C13wE=/o:KeyIdentifier /o:SecurityTokenReference /KeyInfo Thanks, Nandana Regards, yueyue Nunny wrote: Hi Kent, This won't work if the client is unknown (being unknown is fine as long as the certificate can be verified by a trusted CA). Is rampart designed to be used for known/fixed clients only? No, Rampart can be used in this kind of scenario. You have to set the encryption user as encryptionUseruseReqSigCert/encryptionUser. Then the certificate used to sign the request message will be used to encrypt the response message. If the certificate is not in the key store it has to be sent with the request as a binary token (according token inclusion property of the security token defined in the security policy). Regards, Nandana Thanks! - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/-Axis2--rampart-encryption-and-multiple-clients-tp14289084p14289084.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Axis2--rampart-encryption-and-multiple-clients-tp14289084p14409381.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Axis2--rampart-encryption-and-multiple-clients-tp14289084p14428302.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] SOAP over SIP
I havent heard the term SIP for over 10 years..I had no idea that anyone was still using it! Its easy to think that a true transport layer is being configured when you see something like this org.apache.axis2.context.ConfigurationContextFactory //To check whether transport level session management is require or not configureTransportSessionManagement(axisConfig); but this mechanism is for managing 'session management' when client *transports* from client to servlet SIP (Serial Interface Protocol is the actual OSI transport and is generally handled by the OS driver when TCP/IP stack is loaded..if Im not mistaken..) Anyone??? Martin-- - Original Message - From: samir shaikh [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Wednesday, December 19, 2007 6:22 PM Subject: [Axis2] SOAP over SIP Hi, I'm trying to get SIP to be the transport layer for my Axis2 server. Does anyone know where I can find examples of that and if that is possible to do. Thank you.! Samir Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help -- want to use JMS transport with axis 1.4 and activeMQ
hi all, i want to use asynchronous messaging between my web service n client. service is deployed on axis 1.4 i have tried a lot for searching examples for the same. can anybody help me by sending guideline to configure activeMQ with axis 1.4 and sample of service for asynchronous messaging. looking for support Thanks and regards Amit Vyas - Bollywood, fun, friendship, sports and more. You name it, we have it.
Re: [Axis2] Release plan and road map for Axis2 1.4 release
Hi! Could you please have a look at the following issue if it can be resolved to the Axis2 1.4 release. I have asked the axis mailing list about this issue a couple of times the last year but the problem has not been solved yet. We will definitely address this , please create a JIRA (if you have not create one already) -Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2] Release plan and road map for Axis2 1.4 release
Hi Deepal, I was facing a problem which I have described in http://www.nabble.com/RE%3A--Axis2--MTOM-Exception-with-Axis2-1.3-%22org.apache.axis2.databinding.ADBException%3A-Unexpected-subelement-Buffer%22-p14287244.html It pertains to the MTOM functionality where I get the error when the attachment element is not the last element in the message. Do you think this is a bug? If yes - I was wondering if it can be included in 1.4? Also in that thread, I have also outlined another MTOM issue (https://issues.apache.org/jira/browse/AXIS2-3196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541070) that has been fixed after 1.3. To get the fix, I am using the axiom jars from a nightly build with my other 1.3 jars. Finally, I am using a few wsdl2java post 1.3 fixes done by Amila. Because of this I am facing the prospect of using a mishmash of jars in production. Axi 1.4 is fine but a bugfix release earlier would be even better? - Vish. -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 7:52 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] Release plan and road map for Axis2 1.4 release Hi! Could you please have a look at the following issue if it can be resolved to the Axis2 1.4 release. I have asked the axis mailing list about this issue a couple of times the last year but the problem has not been solved yet. We will definitely address this , please create a JIRA (if you have not create one already) -Deepal - 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] SOAP over SIP
Hi Martin, SIP is Session Initiation Protocol and not Serial Interface Protocol Google for SIP http://en.wikipedia.org/wiki/Session_Initiation_Protocol SIP is primarily being used as a signalling protocol for VoIP telephony. Its very flexible and quiet popular. As per the wiki, it was designed 10yrs back(1996). :) On 12/20/07, Martin Gainty [EMAIL PROTECTED] wrote: I havent heard the term SIP for over 10 years..I had no idea that anyone was still using it! Its easy to think that a true transport layer is being configured when you see something like this org.apache.axis2.context.ConfigurationContextFactory //To check whether transport level session management is require or not configureTransportSessionManagement(axisConfig); but this mechanism is for managing 'session management' when client *transports* from client to servlet SIP (Serial Interface Protocol is the actual OSI transport and is generally handled by the OS driver when TCP/IP stack is loaded..if Im not mistaken..) Anyone??? Martin-- - Original Message - From: samir shaikh [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Wednesday, December 19, 2007 6:22 PM Subject: [Axis2] SOAP over SIP Hi, I'm trying to get SIP to be the transport layer for my Axis2 server. Does anyone know where I can find examples of that and if that is possible to do. Thank you.! Samir Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Prince Singh Drishti-Soft Solutions Pvt Ltd SCO-36, Sector 31 Gurgaon, INDIA-122001 P: 91 124 4085120 F: 91 124 4039120 W: http://www.drishti-soft.com DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Drishti-Soft Solutions Pvt Ltd (Drishti) unless sent with that express intent and with due authority of Drishti. Drishti has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.