Re: [Axis2] axis2c - generated skeleton files using WSDL2C for array of structure having a RESET function. how to use it?
Thanks Milind, NOw I have compiled all the the services, put the dll lib's in service folder in AXIS2C and trying to test it using the java client giving the error as 'Failed in creating DLL ' in detail the error message is in below help me to solve the poblem. 1. I am just calling a web service with single input in 2. it talks with some com dll and 3. returns the result and then setting this response in webservices return. xP)rsion=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header/soapenv:Headersoapenv:Bodysoapenv:Faultfaultcodeenv:Receiver/faultcodefaultstringFailed in creating DLL/faultstring/soapenv:Fault/soapenv:Body/soapenv:Envelope the response is not properly tagged . Milinda Pathirage wrote: Hi, Consider a echo example which echo incoming array of integers like this: Request Structure: struct axis2_echoInts { axis2_qname_t* qname; axis2_array_list_t* attrib_input; }; Response Structure: struct axis2_echoIntsResponse { axis2_qname_t* qname; axis2_array_list_t* attrib_echoIntsReturn; }; Business Logic Implementation: axis2_echoIntsResponse_t* axis2_skel_Benchmark_echoInts (const axis2_env_t *env , axis2_echoInts_t* echoInts ) { /* TODO fill this with the necessary business logic */ axis2_echoIntsResponse_t *response = NULL; axis2_array_list_t *input = NULL; response = axis2_echoIntsResponse_create(env); input = AXIS2_ECHOINTS_GET_INPUT(echoInts, env); AXIS2_ECHOINTSRESPONSE_SET_ECHOINTSRETURN(response, env, input); AXIS2_ECHOINTS_RESET_INPUT(echoInts, env); return response; } Code that select correct operation inside service skeleton's invoke function: if ( AXIS2_STRCMP(op_name, echoInts) == 0 ) { input_val11_1 = axis2_echoInts_create( env); AXIS2_ECHOINTS_DESERIALIZE(input_val11_1, env, content_node ); ret_val11 = axis2_skel_Benchmark_echoInts(env, input_val11_1 ); if ( NULL == ret_val11 ) { AXIS2_LOG_ERROR( env-log, AXIS2_LOG_SI, NULL returnted from the business logic from echoInts %d :: %s, env-error-error_number, AXIS2_ERROR_GET_MESSAGE(env-error)); return axis2_svc_skel_Benchmark_on_fault( svc_skeleton, env, NULL); } ret_node = AXIS2_ECHOINTSRESPONSE_SERIALIZE(ret_val11, env, NULL, AXIS2_FALSE); AXIS2_ECHOINTSRESPONSE_FREE(ret_val11, env); AXIS2_ECHOINTS_FREE(input_val11_1, env); return ret_node; } In the service skeleton's invoke function we get payload(axiom_node) of the incoming request as parameter. After that we check which operation we have to execute. After selecting correct operation we desirialize the incoming payload to echoInts structure and give it as a parameter to the axis2_skel_Benchmark_echoInts function. input_val11_1 = axis2_echoInts_create( env); AXIS2_ECHOINTS_DESERIALIZE(input_val11_1, env, content_node ); ret_val11 = axis2_skel_Benchmark_echoInts(env, input_val11_1 ); Inside this function we extract the data inside structure and assign it to the response structure. input = AXIS2_ECHOINTS_GET_INPUT(echoInts, env); AXIS2_ECHOINTSRESPONSE_SET_ECHOINTSRETURN(response, env, input); after that we reset the echoInts structure. AXIS2_ECHOINTS_RESET_INPUT(echoInts, env); This reseting done because inside invoke function we free the two structures created after serving for the request. Inside the logic of free function we free all the elements inside array lists. In this free process, problem occurs when we trying to free bot h structures . Because we share same elements between two structures using pointers. Therefore we have to remove one pointer from pointing to same array lists. After that no double freeing occur, because we remove the reference to that memory location from one structure. Please go through code inside free logics, then you will be able to understand the situation. This reseting mechanism does not require if we don't assign the same attributes to the response structure. Thanks Milinda On 3/27/07, Prem [EMAIL PROTECTED] wrote: Hi, generated skeleton files using WSDL2C for array structures. Request and response generated files for the unbounded structure data type has a RESET function. how to use it? any help who have used the Structure array will be helpful. -Viji. -- View this message in context:
Invalid byte 2 of 2-byte UTF-8 sequence?
Hi, when connecting an Axis-C client (v1.5) to an Axis-java webservice, the return message has the following error: soapenv:Fault faultcodesoapenv:Server.userException/faultcode faultstringjava.io.UTFDataFormatException: Invalid byte 2 of 2-byte UTF-8 sequence./faultstring The only difference with all other working requests, seems the company name containing GÜTER. When debugging, the U-umlaut is showing correctly everywhere, but apparently the receiving webservice isn't getting it correctly. The source message generated by Axis-C++ looks like this in TCPMonitor: Content-Type: text/xml; charset=UTF-8 ?xml version='1.0' encoding='utf-8' ? ... ns1:companyROTTMANN HEINRICH G TER/ns1:company So it seems the character is indeed being encoded incorrectly by Axis-C? Does anyone have any hints to get this working? By the way, I receive this company-name via another webservice, and I notice that they sent me this: employerNameROTTMANN HEINRICH G#xDC;TER/employerName Maybe there is a way to configure Axis-C to do the same, sending a character reference to avoid the encoding-mismatch? Kind regards, Iwan Tomlow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 not putting binary attachment on the wire
Please log a Jira with enough information (a test case would be great) to reproduce this.. thanks, Thilina On 3/28/07, Masin, Valerie [EMAIL PROTECTED] wrote: No it is not working fine with mtom, there is no data attached. Where you said Hope you had your binary data here... there was no data. There was just the 0. I show the soapmonitor output to show that there had been data in the soap message before it was optimized to mtom. From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Tue 3/27/2007 9:29 PM To: axis-user@ws.apache.org Subject: Re: Axis2 not putting binary attachment on the wire It seems it works fine when MTOM is enabled... From tcpmon HTTP/1.1 200 OK Server: Date: Tue, 27 Mar 2007 13:30:16 GMT Content-type: multipart/related; boundary=MIMEBoundaryurn_uuid_E612E8E634E97EAEE61175002216495; type=application/xop+xml; start=0.urn:uuid:[EMAIL PROTECTED]; start-info=text/xml; charset=UTF-8Transfer-encoding: chunked02d7--MIMEBoundaryurn_uuid_E612E8E634E97EAEE61175002216495content -type: application/xop+xml; charset=UTF-8; type=text/xml;content-transfer-encoding: binarycontent-id: 0.urn:uuid:[EMAIL PROTECTED] ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header / soapenv:Body ns1:getDocumentResponse xmlns:ns1=urn:webservices.docharbor.com ns1:return ns1:documentSize198/ns1:documentSize ns1:document xop:Include href=cid:1.urn:uuid:[EMAIL PROTECTED] xmlns:xop=http://www.w3.org/2004/08/xop/include; / /ns1:document /ns1:return /ns1:getDocumentResponse /soapenv:Body /soapenv:Envelope 00cc --MIMEBoundaryurn_uuid_E612E8E634E97EAEE61175002216495 content-type: application/octet-stream content-transfer-encoding: binary content-id: 1.urn:uuid:[EMAIL PROTECTED]0 Hope you had your binary date here... ~Thilina PS: Please use TCPMON when sniffing messages with attachments.. SOAPMonitor will not show you the attachments... -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 5:54 PM To: axis-user@ws.apache.org Subject: Re: Axis2 not putting binary attachment on the wire Opps... Sounds like a bug to me.. Please log a JIRA with more details.. Some source code would be actually better... Then in order to get through this you can try enablingMTOM in your Axis2.xml.. Thanks, Thilina On 3/28/07, Masin, Valerie [EMAIL PROTECTED] wrote: My webservice returns a binary document which I declare in my wsdl as base64Binary. Using SOAPMonitor I see my document in the returned soap message. However, tcpmon shows that the document is empty. I have tried this both with and without MTOM. Without MTOM here is the soap from SOAPMonitor... ?xml version='1.0' encoding='utf-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header / soapenv:Body ns1:getDocumentResponse xmlns:ns1=urn:webservices.docharbor.com ns1:return ns1:documentSize198/ns1:documentSize ns1:documente1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZGVmZjBcZGVmbGFuZzEwMzN7XG ZvbnR0Ymx7XGYwXGZzd2lzc1xmY2hhcnNldDAgQXJpYWw7fX0NCntcKlxnZW5lcmF0b3IgTX NmdGVkaXQgNS40MS4xNS4xNTA3O31cdmlld2tpbmQ0XHVjMVxwYXJkXGYwXGZzMjAgSSdtIH RoZSBkZWZhdWx0IGRvY3VtZW50IGZvciBpbXBvcnRhdGlvbi5ccGFyDQp9DQoA/ns1:docu ment /ns1:return /ns1:getDocumentResponse /soapenv:Body /soapenv:Envelope ... and here is the output of tcpmon HTTP/1.1 200 OK Server: Date: Tue, 27 Mar 2007 18:26:12 GMT Content-type: text/xml; charset=UTF-8 Transfer-encoding: chunked 016f ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header / soapenv:Body ns1:getDocumentResponse xmlns:ns1=urn:webservices.docharbor.com ns1:return ns1:documentSize198/ns1:documentSize ns1:document/ns1:document notice the empty document /ns1:return /ns1:getDocumentResponse /soapenv:Body /soapenv:Envelope 0 Does anyone know why this is happening? Thanks, Valerie -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.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] -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com
Getting started with axis 2
Hi all, I am a new bie in axis 2. I tried to create a services from a wsdl file. however whenever i run the following command: java -cp %axis2_cp% org.apache.axis2.wsdl.WSDL2Java -uri helloAxis2.wsdl -ss -sd -s -d none it always gave me this error message, Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis2/ wsdl/WSDL2Java. what i did for the installation is: 1. extract the axis2-1.1.1 to c:/ 2. create new environment variable for AXIS2_HOME with the value c:/axis2-1.1.1 3. set the PATH variable value to %AXIS2_HOME%/bin 4. include the classpath (in the environment setting window) C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis2\WEB-INF\lib 5. install the apache ant and set the environment variables, create the axis2.war to the C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps 6. restart the tomcat and run the axis2server.bat am i missing something for the initial axis2 setup?or maybe there is several things need to be done before creating the service? I wonder if there is a step by step tutorial about the usage of axis 2. Thank you Regards, Kencana -- View this message in context: http://www.nabble.com/Getting-started-with-axis-2-tf3478674.html#a9708318 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
slow response from server when transporting larger files
Hi, I experinece this behaviour: I am sending files from client to server (without Rampart, using MTOM). I use something like this: Object responseObject = serviceStub.uploadWithResponse(param4); UploadWithResponseResponse response = (UploadWithResponseResponse)responseObject; System.out.println(response.getReturn_value()); At the same time I have System.out.println (or via log4j) on server at the beginning and at the end of the called method. The problem is that when I send small files the server receives attachment and processes it and informs me about the end of the method. Then promptly the client receives the response,... But when I send larger files (~30MB) the server do all his part without any problem, but the client still waits for response. Does anybody know why? Should I change some settings? Thanks Frogg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[AXIS2] EndpointReference Serialization
Hi! I have some trouble with EndpointReference serialization, in particular when i use an Endpoint Reference with ReferenceParameters, i have a notSerializable exception referred to org.apache.axiom.om.impl.llom.OMElementImpl . I guess that the OMElement used ad ReferenceParameters is the origin of the problem, i just take a look to the EndpointReference source of axis2-1.1.1 but i find that there is a Map to collect the OMElement rappresenting ReferenceParameters but there are not in the class the readObject and writeObject method to permit the serialization of this map of OMElement. One possible solution is to transform EndpointReference in the realtive OMElement (by EndpointReferenceHelper), then serializing with OMElement.serialize() and then, after the deserialization, transforming the OMElement in EndpointReference. A little bit complicated..any suggestions? Thanks Francesco Leone
java.net.BindException
Hi, during stress test of ADB service stubs, I got a java.net.BindException: Address already in use: JVM_Bind. I have already read the article at http://wso2.org/library/165, but some things are still a bit unclear. I just want to call a service without asynchronous receiving. Every thread gets his own instance of stub (stored in commons pool) due to thread-safety. - How do I disable Client side Http server? Just uncomment module ref=addressing/ in axis2.xml? I have already tried this, but without effect. - In order to use axis.xml for stubs, do I simply have to put this file into classpath? - Do I have to call cleanup() of stubs before the stub is finalized? If multiple stubs for the same service are used, will this call affect the other stubs? Thanks for answers! Christoph -- Feel free - 5 GB Mailbox, 50 FreeSMS/Monat ... Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[AXIS2] EndpointReference Serialization
Hi! I have some trouble with EndpointReference serialization, in particular when i use an Endpoint Reference with ReferenceParameters, i have a notSerializable exception referred to org.apache.axiom.om.impl.llom .OMElementImpl . I guess that the OMElement used ad ReferenceParameters is the origin of the problem, i just take a look to the EndpointReference source of axis2-1.1.1 but i find that there is a Map to collect the OMElement rappresenting ReferenceParameters but there are not in the class the readObject and writeObject method to permit the serialization of this map of OMElement. One possible solution is to transform EndpointReference in the realtive OMElement (by EndpointReferenceHelper), then serializing with OMElement.serialize() and then, after the deserialization, transforming the OMElement in EndpointReference. A little bit complicated..any suggestions? Thanks Francesco Leone
[Axis2] War file from nightly build
Is the generated axis2.war file not intend to work as standalone application in an application container ? In current state it cannot be used, because many libraries are missing. If i am wrong, i would be grateful, if someone could say me, which libraries are mandatory in axis2.war, without having to refer to an outstanding axis2 folder. thanks for answers, Daniel Kuschow
Re: [Axis2] Axis2 1.2 RC1 Released
Hi Deepal, Any example(annotation) for Axis2-1.2 ? Best regards, Eric On 3/26/07, Deepal Jayasinghe [EMAIL PROTECTED] wrote: Hi all, I uploaded Axis2 1.2 RC1 release artifacts. Please help us by downloading and reviewing them. Download locations : *binary distributions* - http://people.apache.org/~deepal/axis2/1.2-RC1/axis2-1.2-RC1.zip http://people.apache.org/%7Edeepal/axis2/1.2-RC1/axis2-1.2-RC1.zip *source distribution* http://people.apache.org/~deepal/axis2/1.2-RC1/axis2-1.2-RC1-src.zip http://people.apache.org/%7Edeepal/axis2/1.2-RC1/axis2-1.2-RC1-src.zip *docs distribution* http://people.apache.org/~deepal/axis2/1.2-RC1/axis2-1.2-RC1-docs.zip http://people.apache.org/%7Edeepal/axis2/1.2-RC1/axis2-1.2-RC1-docs.zip *war distribution* http://people.apache.org/~deepal/axis2/1.2-RC1/axis2.war http://people.apache.org/%7Edeepal/axis2/1.2-RC1/axis2-1.2-RC1-docs.zip *jars* http://people.apache.org/~deepal/maven/org.apache.axis2/jars/ http://people.apache.org/%7Edeepal/maven/ws/axis2/jars/ *mars* (addressing and soapmonitor) http://people.apache.org/~deepal/maven/org.apache.axis2/mars/ http://people.apache.org/%7Edeepal/maven/ws/axis2/mars/ According to the release plan, I'm expecting to release Axis2 1.2 on 6^th April, 2007. Features included in the release : - WSDL 2.0 fully support (Reading , writing and codegen) - POJO – annotation - JAX-WS integration - JAX-WS -annotation - Un-wrapping (Response) - ADB - missing schema support - Maven2 support - JASON support - Binary serialization - Multiple services support in code gen - HTTP code generation (both WSDL 1.1 and 2.0) - Fix/update helper mode - Custom deployers support - Message formatters - Message Builders In addition to above major features we have fixed numerous JIRA issues. Thanks, Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting started with axis 2
Hi Kencana, To run wsdl2java; Navigate to axis2_home/bin directory and execute wsdl2java as follows, wsdl2java -uri location of wsdl file -o out put folder for the generated classes eg:- wsdl2java.bat -uri C:/webservice/wsdl/test.wsdl -o C:/output Please refer http://ws.apache.org/axis2/1_1_1/quickstartguide.html for more information. regards Charitha Kencana wrote: Hi all, I am a new bie in axis 2. I tried to create a services from a wsdl file. however whenever i run the following command: java -cp %axis2_cp% org.apache.axis2.wsdl.WSDL2Java -uri helloAxis2.wsdl -ss -sd -s -d none it always gave me this error message, Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis2/ wsdl/WSDL2Java. what i did for the installation is: 1. extract the axis2-1.1.1 to c:/ 2. create new environment variable for AXIS2_HOME with the value c:/axis2-1.1.1 3. set the PATH variable value to %AXIS2_HOME%/bin 4. include the classpath (in the environment setting window) C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis2\WEB-INF\lib 5. install the apache ant and set the environment variables, create the axis2.war to the C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps 6. restart the tomcat and run the axis2server.bat am i missing something for the initial axis2 setup?or maybe there is several things need to be done before creating the service? I wonder if there is a step by step tutorial about the usage of axis 2. Thank you Regards, Kencana - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: [AXIS2] - Engaging addressing module on client
Hello, Your code helped. I did not have the below line of code. Adding it did the trick. options.setAction(urn:tryEcho); The Axis2 User's Guide does not mention anything about enabling the addressing module on the client side. Hence, i had no idea that this line had to be added. Thank you for resolving my problem. Regards, Sagar M. Yerunkar Stadelmann Josef [EMAIL PROTECTED] 03/28/2007 10:41 AM Please respond to axis-user@ws.apache.org To axis-user@ws.apache.org cc Subject AW: AW: [AXIS2] - Engaging addressing module on client Hello Sagar, Here is my SOAPClient.java code main() only, which engages 3 modules, Also I run my client and server in scope=soapsession. Therefore MyService5.java has a service.xml which defines service name=MyService5 scope=soapsession It works for me, and hope you can say the same now. Josef public static void main(String[] args) throws AxisFault { try { Options options = new Options(); options.setManageSession(true); options.setTo(new EndpointReference(toEpr)); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); String home = System.getProperty(user.home); // create this folder at your home. This folder could be anything //then create the modules folder //copy the LoggingModule.mar to modules folder. //copy the axis2.xml to the client-repository File repository = new File(home + File.separator + client-repository); if (!repository.exists()) { throw new FileNotFoundException(repository.getAbsolutePath() + does not Exist); }; String str_axis2xml = repository.getAbsolutePath() + File.separator + axis2.xml; File axis2_xml = new File(str_axis2xml); if (!axis2_xml.exists()) { throw new FileNotFoundException(axis2_xml.getAbsolutePath() + does not Exist); }; FileSystemConfigurator fsc = new FileSystemConfigurator( repository.getAbsolutePath(), axis2_xml.getAbsolutePath()); AxisConfiguration er = fsc.getAxisConfig(); ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem( repository.getAbsolutePath(), axis2_xml.getAbsolutePath() ); //ServiceClient sender = new ServiceClient(); ServiceClient sender = new ServiceClient(configContext,null); //sender.engageModule(new QName(Constants.MODULE_LOGGING)); sender.engageModule(new QName(logging)); +++ Sagar, do you have something like that in your code? //sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); sender.engageModule(new QName(addressing-1.1)); //sender.engageModule(new QName(Constants.MODULE_SOAPMONITOR)); sender.engageModule(new QName(soapmonitor-1.1)); +++ Sagar, do you have something like that in your code? // invoke the start method first using it's StartPaylod options.setAction(urn:start); sender.setOptions(options); OMElement start = sender.sendReceive(getStartPayload()); // from now on use this sender so that WS-address stuff i.e. ServiceGroupeContextID info is sent // where in the dark of the code is that? String s = intObj.toString(i); System.out.print(No+s); XMLStreamWriter startWriter = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out); start.serialize(startWriter); startWriter.flush();// write every-thing out System.out.println(); // and add a CRLF +++ Sagar, do you have something like that in your code?start was the initial method called, now lets use echo options.setAction(urn:echo); sender.setOptions(options); for(int i=0;i500;i++){ OMElement result = sender.sendReceive(getPayload()); Thread.sleep(4000); s = intObj.toString(i); System.out.print(No+s); XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out); result.serialize(writer); writer.flush(); // write every-thing out System.out.println(); // and add a CRLF if (i==100){ System.gc();// do an explicit Garbage Collection and get it all back } if (0 == i % 100){ System.gc();// do an explicit Garbage Collection once evry 100 loops-through } } // end-for - so do a cleanup now to give up sender resource
Axis2 versions compatibility question
Hello, is there any backwards compatibility compromise in Axis2 versions? I've seen that a service generated with Axis2 1.0 is no longer compatible with an installation of Axis2 1.1 since org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider(obj, msgContext.getOperationContext()); has been removed from Axis and it's a code that was introduced in every generated skeleton and also the stub code generates errors. Since Axis2 is going to be released in a short time, what kind of backwards compatibility can we expect from that release respecting Axis2 1.0 and 1.1? -- Saludos. José Antonio Sánchez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Define multiple services in services.xml
Is it possible to define more than 1 service in services.xml file? I have 2 services. 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 not putting binary attachment on the wire
~Thilina PS: Please use TCPMON when sniffing messages with attachments.. SOAPMonitor will not show you the attachments... It used to. I'll take a look at that asap. Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: slow response from server when transporting larger files
I managed to find the real source of the problem. When I set enableMTOM on server to false (I upload files from client to server and send back just one string indicating the result of the upload) the response comes back immediately. But when enableMTOM is set to true, the response never returns. But there is the problem, I need to have another WS on the same server which will resend these received data to another client (client makes request...). So I need to have enableMTOM set to true, what can I do? On server I can not use serviceStub, can I? __ Od: [EMAIL PROTECTED] Komu: axis-user@ws.apache.org Datum: 28.03.2007 09:45 Předmět: slow response from server when transporting larger files Hi, I experinece this behaviour: I am sending files from client to server (without Rampart, using MTOM). I use something like this: Object responseObject = serviceStub.uploadWithResponse(param4); UploadWithResponseResponse response = (UploadWithResponseResponse)responseObject; System.out.println(response.getReturn_value()); At the same time I have System.out.println (or via log4j) on server at the beginning and at the end of the called method. The problem is that when I send small files the server receives attachment and processes it and informs me about the end of the method. Then promptly the client receives the response,... But when I send larger files (~30MB) the server do all his part without any problem, but the client still waits for response. Does anybody know why? Should I change some settings? Thanks Frogg - 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]
Unable to configure tcpmon for remote web service
Hello, I am developing a Web Service client for a web service on xmethods.com. The client is able to connect and invoke the web service perfectly. I am using Axis2-1.1.1 I get an error when I configure tcpmon to monitor the messages. Configuration: local post: target host: 62.177.194.231 target port: 80 The sent message as shown in tcpmon - POST /websamples.countryinfo/CountryInfoService.wso HTTP/1.1 SOAPAction: urn:ListOfContinentsByName User-Agent: Axis2 Host: 62.177.194.231: Transfer-Encoding: chunked Content-Type: text/xml; charset=UTF-8 106 ?xml version='1.0' encoding='UTF-8'?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header /soapenv:BodyListOfContinentsByName xmlns=http://www.oorsprong.org/websamples.countryinfo; //soapenv:Body/soapenv:Envelope 0 The received message as shown by tcpmon - HTTP/1.1 100 Continue Server: Microsoft-IIS/5.0 Date: Wed, 28 Mar 2007 12:57:20 GMT X-Powered-By: ASP.NET HTTP/1.1 405 Method not allowed Server: Microsoft-IIS/5.0 Date: Wed, 28 Mar 2007 12:57:20 GMT Connection: close Allow: OPTIONS, TRACE, GET, HEAD Content-Length: 3923 Content-Type: text/html !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN html dir=ltr head style a:link {font:8pt/11pt verdana; color:FF} a:visited {font:8pt/11pt verdana; color:#4e4e4e} /style ... plus lot of html The error message on my console - entered client Mar 28, 2007 8:57:25 AM org.apache.commons.httpclient.HttpMethodBase readResponse INFO: Discarding unexpected response: HTTP/1.1 100 Continue org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method not allowed'; nested exception is: org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method not allowed'; nested exception is: org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method not allowed'; nested exception is: org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method not allowed' at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202) at com.client.country.CountryInfoServiceStub.ListOfContinentsByName(CountryInfoServiceStub.java:773) at com.client.country.CountryClient.ListOfContinentsByName(CountryClient.java:28) at com.client.country.CountryClient.main(CountryClient.java:16) Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method not allowed'; nested exception is: org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method not allowed' at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204) ... 6 more Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method not allowed' at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:144) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335) ... 7 more requestDocument: ListOfContinentsByName xmlns=http://www.oorsprong.org/websamples.countryinfo/ responseDocument: null Exception in thread main java.lang.NullPointerException at com.client.country.CountryClient.ListOfContinentsByName(CountryClient.java:35) at com.client.country.CountryClient.main(CountryClient.java:16) Please help. Thanks Ravi -- View this message in context: http://www.nabble.com/Unable-to-configure-tcpmon-for-remote-web-service-tf3480198.html#a9713268 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 not putting binary attachment on the wire
My understanding (from reading about this somewhere) is when MTOM attachments are viewed with SOAPMonitor they show up embedded (and encoded) directly in the soap message. Then when they are MTOMed (ie optimized) just before sending, that data is rearranged into the multipart mime where the binary data is an attachment. This is exactly the behaviour I see when I use tcpmon and SOAPMonitor at the same time... so I don't think there is any problem with SOAPMonitor. -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 8:41 AM To: axis-user@ws.apache.org Subject: Re: Axis2 not putting binary attachment on the wire ~Thilina PS: Please use TCPMON when sniffing messages with attachments.. SOAPMonitor will not show you the attachments... It used to. I'll take a look at that asap. Robert - 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: Define multiple services in services.xml
yes. On 3/28/07, Milan Tomic [EMAIL PROTECTED] wrote: Is it possible to define more than 1 service in services.xml file? I have 2 services. 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running multiple instances of axis2 in same Tomcat
Yes, each of our Tomcat webapps in their own Tomcat virtual hosts run the same code, in a different application directory and with different configuration - CSS, database connects to different DB's, etc. The corresponding web service(s) under axis2 will also be identical code, but need to be configured (via properrties) file to connect to the correct database.also connect to the correct database (using a properties file). So then I can install axis2 multiple times under tomcat - e.g. as axis2a, axis2b, etc. Each with their own services repository. Right? Thank you. Ajith Ranabahu wrote: Hi, is it the same webapp that is reloaded and available through different virtual hosts ? I mean would they have different configurations but the same libraries ? AFAIS Axis2 should have no problem in this. Ajith On 3/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've a few posts that touched on this, but no answers. We have a web application that is deployed multiple times as separate Tomcat virtual hosts. We would like to structure our axis2 web services in a similar way. For example, - webapp #1 is accessed as http://webapp1.myhost.com - webapp #2 is accessed as http://webapp2.myhost.com We would like to be able to access the web services as: - http://webapp1.myhost.com:9191/axis2/MyApplicationService?... - http://webapp2.myhost.com:9292/axis2/MyApplicationService?... Can axis2 be loaded as multiple webapplications in Tomcat 5.5? Should there be any classloading issues? Or maybe there is an alternate way of doing this - maybe using a different namespace mechanism that axis2 provides that I have not discovered/learned yet? Thanks. -- View this message in context: http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9705315 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9713655 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: base href problems
Please try to set the httpFrontendHostUrl parameter in the axis2.xml (axis2/WEB-INF/conf/axis2.xml) I saw this parameter before i posted the question but i'm not sure to use it to solve my problem. I can change it to put in something like http://ipaddress/blah or http://hostname/blah but how can i set it so that it simply doesn't change the url from what was entered. For example if i access http://ipaddress/axis2/ in my browser i would expect all links to start with http://ipaddress/axis2/ but if i access it with http://hostname/axis2/ i'd expect all links to start with http://hostname/axis2/. Can you give me a hint as to how this is done with this httpFrontendHostUrl parameter? Thanks, Jon. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running multiple instances of axis2 in same Tomcat
Yes, but does axis2 behave well (as expected and without problems) when it is installed as multiple webapps under Tomcat? E.g there might be an tomcat/webapps/axis2a, tomcat/webapps/axis2b, tomcat/webapps/axis2c, Davanum Srinivas wrote: multiple webapps in same tomcat is possible. thanks, dims On 3/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've a few posts that touched on this, but no answers. We have a web application that is deployed multiple times as separate Tomcat virtual hosts. We would like to structure our axis2 web services in a similar way. For example, - webapp #1 is accessed as http://webapp1.myhost.com - webapp #2 is accessed as http://webapp2.myhost.com We would like to be able to access the web services as: - http://webapp1.myhost.com:9191/axis2/MyApplicationService?... - http://webapp2.myhost.com:9292/axis2/MyApplicationService?... Can axis2 be loaded as multiple webapplications in Tomcat 5.5? Should there be any classloading issues? Or maybe there is an alternate way of doing this - maybe using a different namespace mechanism that axis2 provides that I have not discovered/learned yet? Thanks. -- View this message in context: http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9705315 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9713657 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: base href problems
To further clarify, i wouldn't have this problem if the base href=blah tag didn't get stuck into the page being served. Is there a way to tell axis2 not to add this in the head of the page? Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis2 not putting binary attachment on the wire
thanks -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 3:12 AM To: axis-user@ws.apache.org Subject: Re: Axis2 not putting binary attachment on the wire Please log a Jira with enough information (a test case would be great) to reproduce this.. thanks, Thilina On 3/28/07, Masin, Valerie [EMAIL PROTECTED] wrote: No it is not working fine with mtom, there is no data attached. Where you said Hope you had your binary data here... there was no data. There was just the 0. I show the soapmonitor output to show that there had been data in the soap message before it was optimized to mtom. From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Tue 3/27/2007 9:29 PM To: axis-user@ws.apache.org Subject: Re: Axis2 not putting binary attachment on the wire It seems it works fine when MTOM is enabled... From tcpmon HTTP/1.1 200 OK Server: Date: Tue, 27 Mar 2007 13:30:16 GMT Content-type: multipart/related; boundary=MIMEBoundaryurn_uuid_E612E8E634E97EAEE61175002216495; type=application/xop+xml; start=0.urn:uuid:[EMAIL PROTECTED]; start-info=text/xml; charset=UTF-8Transfer-encoding: chunked02d7--MIMEBoundaryurn_uuid_E612E8E634E97EAEE61175002216495conte nt -type: application/xop+xml; charset=UTF-8; type=text/xml;content-transfer-encoding: binarycontent-id: 0.urn:uuid:[EMAIL PROTECTED] ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header / soapenv:Body ns1:getDocumentResponse xmlns:ns1=urn:webservices.docharbor.com ns1:return ns1:documentSize198/ns1:documentSize ns1:document xop:Include href=cid:1.urn:uuid:[EMAIL PROTECTED] xmlns:xop=http://www.w3.org/2004/08/xop/include; / /ns1:document /ns1:return /ns1:getDocumentResponse /soapenv:Body /soapenv:Envelope 00cc --MIMEBoundaryurn_uuid_E612E8E634E97EAEE61175002216495 content-type: application/octet-stream content-transfer-encoding: binary content-id: 1.urn:uuid:[EMAIL PROTECTED]0 Hope you had your binary date here... ~Thilina PS: Please use TCPMON when sniffing messages with attachments.. SOAPMonitor will not show you the attachments... -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 5:54 PM To: axis-user@ws.apache.org Subject: Re: Axis2 not putting binary attachment on the wire Opps... Sounds like a bug to me.. Please log a JIRA with more details.. Some source code would be actually better... Then in order to get through this you can try enablingMTOM in your Axis2.xml.. Thanks, Thilina On 3/28/07, Masin, Valerie [EMAIL PROTECTED] wrote: My webservice returns a binary document which I declare in my wsdl as base64Binary. Using SOAPMonitor I see my document in the returned soap message. However, tcpmon shows that the document is empty. I have tried this both with and without MTOM. Without MTOM here is the soap from SOAPMonitor... ?xml version='1.0' encoding='utf-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header / soapenv:Body ns1:getDocumentResponse xmlns:ns1=urn:webservices.docharbor.com ns1:return ns1:documentSize198/ns1:documentSize ns1:documente1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZGVmZjBcZGVmbGFuZzEwMzN7 XG ZvbnR0Ymx7XGYwXGZzd2lzc1xmY2hhcnNldDAgQXJpYWw7fX0NCntcKlxnZW5lcmF0b3Ig TX NmdGVkaXQgNS40MS4xNS4xNTA3O31cdmlld2tpbmQ0XHVjMVxwYXJkXGYwXGZzMjAgSSdt IH RoZSBkZWZhdWx0IGRvY3VtZW50IGZvciBpbXBvcnRhdGlvbi5ccGFyDQp9DQoA/ns1:do cu ment /ns1:return /ns1:getDocumentResponse /soapenv:Body /soapenv:Envelope ... and here is the output of tcpmon HTTP/1.1 200 OK Server: Date: Tue, 27 Mar 2007 18:26:12 GMT Content-type: text/xml; charset=UTF-8 Transfer-encoding: chunked 016f ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header / soapenv:Body ns1:getDocumentResponse xmlns:ns1=urn:webservices.docharbor.com ns1:return ns1:documentSize198/ns1:documentSize ns1:document/ns1:document notice the empty document /ns1:return /ns1:getDocumentResponse /soapenv:Body /soapenv:Envelope 0 Does anyone know why this is happening? Thanks, Valerie -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com - To unsubscribe,
Re: [AXIS2] EndpointReference Serialization
On 28/03/07, Francesco Leone [EMAIL PROTECTED] wrote: Hi! I have some trouble with EndpointReference serialization, in particular when i use an Endpoint Reference with ReferenceParameters, i have a notSerializable exception referred to org.apache.axiom.om.impl.llom .OMElementImpl . I guess that the OMElement used ad ReferenceParameters is the origin of the problem, i just take a look to the EndpointReference source of axis2-1.1.1 but i find that there is a Map to collect the OMElement rappresenting ReferenceParameters but there are not in the class the readObject and writeObject method to permit the serialization of this map of OMElement. One possible solution is to transform EndpointReference in the realtive OMElement (by EndpointReferenceHelper), then serializing with OMElement.serialize() and then, after the deserialization, transforming the OMElement in EndpointReference. A little bit complicated..any suggestions? Thanks Francesco Leone Yes, try Axis2 1.2-RC1. The EndpointReference class now implements read/writeObject which correctly serialises the EPR to/from XML. David -- David Illsley - IBM Web Services Development - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java2WSDL created invalid file?
Bump - anybody know why the xsaw namespace is not being defined? Thanks. feh wrote: Here it is Deepal; Thanks! wsdl:definitions xmlns:axis2=http://services.hp.ippaging.berbee.com; xmlns:ns=http://services.hp.ippaging.berbee.com/xsd; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; targetNamespace=http://services.hp.ippaging.berbee.com; wsdl:types xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; attributeFormDefault=qualified elementFormDefault=qualified targetNamespace=http://services.hp.ippaging.berbee.com/xsd; xs:element name=getZone xs:complexType xs:sequence xs:element name=number nillable=true type=xs:string /xs:element /xs:sequence /xs:complexType /xs:element xs:element name=getZoneResponse xs:complexType xs:sequence xs:element name=return nillable=true type=xs:double /xs:element /xs:sequence /xs:complexType /xs:element /xs:schema /wsdl:types wsdl:message name=getZoneMessage wsdl:part name=part1 element=ns:getZone /wsdl:part /wsdl:message wsdl:message name=getZoneResponseMessage wsdl:part name=part1 element=ns:getZoneResponse /wsdl:part /wsdl:message wsdl:portType name=ZoneServicePortType wsdl:operation name=getZone wsdl:input message=axis2:getZoneMessage /wsdl:input wsdl:output message=axis2:getZoneResponseMessage /wsdl:output /wsdl:operation /wsdl:portType wsdl:binding name=ZoneServiceSOAP11Binding type=axis2:ZoneServicePortType soap:binding transport=http://schemas.xmlsoap.org/soap/http; style=document /soap:binding wsdl:operation name=getZone soap:operation soapAction=urn:getZone style=document /soap:operation wsdl:input soap:body use=literal namespace=http://services.hp.ippaging.berbee.com; /soap:body /wsdl:input wsdl:output soap:body use=literal namespace=http://services.hp.ippaging.berbee.com; /soap:body /wsdl:output /wsdl:operation /wsdl:binding wsdl:binding name=ZoneServiceSOAP12Binding type=axis2:ZoneServicePortType soap12:binding transport=http://schemas.xmlsoap.org/soap/http; style=document /soap12:binding wsdl:operation name=getZone soap12:operation soapAction=urn:getZone style=document /soap12:operation wsdl:input soap12:body use=literal namespace=http://services.hp.ippaging.berbee.com; /soap12:body /wsdl:input wsdl:output soap12:body use=literal namespace=http://services.hp.ippaging.berbee.com; /soap12:body /wsdl:output /wsdl:operation /wsdl:binding wsdl:service name=ZoneService wsdl:port name=ZoneServiceSOAP11port binding=axis2:ZoneServiceSOAP11Binding soap:address location=http://localhost:8080/axis2/services/ZoneService; /soap:address /wsdl:port wsdl:port name=ZoneServiceSOAP12port binding=axis2:ZoneServiceSOAP12Binding soap12:address location=http://localhost:8080/axis2/services/ZoneService; /soap12:address /wsdl:port /wsdl:service /wsdl:definitions Deepal Jayasinghe wrote: hi feh ; could you please post your wsdl. Thanks Deepal -- View this message in context: http://www.nabble.com/Java2WSDL-created-invalid-file--tf3450416.html#a9714249 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] memory issues on the client side
Hi all, I've reopened JIRA 2328 because, even if the Callback object is removed from the hash map when the asynchronous response is received, I still see a big memory usage. I'm using two ServiceClient objects, configured using the same configuration context. After they have sent a few thousands messages (while the number of waiting responses is low, say about 10) the applications is using more that 1 GB of memory. Any clue? Michele p.s. The cleanup is called only when all responses are received - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running multiple instances of axis2 in same Tomcat
yes it does On 3/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes, but does axis2 behave well (as expected and without problems) when it is installed as multiple webapps under Tomcat? E.g there might be an tomcat/webapps/axis2a, tomcat/webapps/axis2b, tomcat/webapps/axis2c, Davanum Srinivas wrote: multiple webapps in same tomcat is possible. thanks, dims On 3/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've a few posts that touched on this, but no answers. We have a web application that is deployed multiple times as separate Tomcat virtual hosts. We would like to structure our axis2 web services in a similar way. For example, - webapp #1 is accessed as http://webapp1.myhost.com - webapp #2 is accessed as http://webapp2.myhost.com We would like to be able to access the web services as: - http://webapp1.myhost.com:9191/axis2/MyApplicationService?... - http://webapp2.myhost.com:9292/axis2/MyApplicationService?... Can axis2 be loaded as multiple webapplications in Tomcat 5.5? Should there be any classloading issues? Or maybe there is an alternate way of doing this - maybe using a different namespace mechanism that axis2 provides that I have not discovered/learned yet? Thanks. -- View this message in context: http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9705315 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Running-multiple-instances-of-axis2-in-same-Tomcat-tf3476920.html#a9713657 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] wsdl2java Code Generation problem (ADB)
Hi, I'm using Axis2 1.1.1, I have written very simple wsdl wsdl but encountering problem while generating Java classes, could somebody validate the attached wsdl. And here is the error, === org.apache.axis2.wsdl.codegen.CodeGenerationException: apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name setMessage with namespace http://ADBTest/xsd === http://www.nabble.com/file/7486/ADBTest.wsdl ADBTest.wsdl Thanks. Do you need ADBTestSkeleton code too. -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9716015 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] memory issues on the client side
Michele, Could i pester you to attach a profiler to see where the memory gets accumulated? So that we can fix it in time for 1.2.. thanks, dims On 3/28/07, Michele Mazzucco [EMAIL PROTECTED] wrote: Hi all, I've reopened JIRA 2328 because, even if the Callback object is removed from the hash map when the asynchronous response is received, I still see a big memory usage. I'm using two ServiceClient objects, configured using the same configuration context. After they have sent a few thousands messages (while the number of waiting responses is low, say about 10) the applications is using more that 1 GB of memory. Any clue? Michele p.s. The cleanup is called only when all responses are received - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 not putting binary attachment on the wire
My understanding (from reading about this somewhere) is when MTOM attachments are viewed with SOAPMonitor they show up embedded (and encoded) directly in the soap message. Then when they are MTOMed (ie optimized) just before sending, that data is rearranged into the multipart mime where the binary data is an attachment. But lot of people fell in to trouble seeing that they do not have attachments.. Also this will work only with MTOM, cause Axiom OMText object which is the place holder for binary serializes the binary part according to the situation...But this will not work with SwA in anyway... ~Thilina This is exactly the behaviour I see when I use tcpmon and SOAPMonitor at the same time... so I don't think there is any problem with SOAPMonitor. -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 8:41 AM To: axis-user@ws.apache.org Subject: Re: Axis2 not putting binary attachment on the wire ~Thilina PS: Please use TCPMON when sniffing messages with attachments.. SOAPMonitor will not show you the attachments... It used to. I'll take a look at that asap. Robert - 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] -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] wsdl2java Code Generation problem (ADB)
Please create a JIRA issue and upload the wsdl's. thanks, dims On 3/28/07, Anil VVNN [EMAIL PROTECTED] wrote: Hi, I'm using Axis2 1.1.1, I have written very simple wsdl wsdl but encountering problem while generating Java classes, could somebody validate the attached wsdl. And here is the error, === org.apache.axis2.wsdl.codegen.CodeGenerationException: apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name setMessage with namespace http://ADBTest/xsd === http://www.nabble.com/file/7486/ADBTest.wsdl ADBTest.wsdl Thanks. Do you need ADBTestSkeleton code too. -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9716015 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [AXIS2] MTOM problems
Both problems below seem to be fixed by Axis2-1.2-RC1. Thilina was right when he guessed I had not replaced all the jars when I said I had tested with RC1. Betsy -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 12:12 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] MTOM problems Hi, 1. Sometimes 1 extra byte is received. This is a 255 (0xff). It would be great if you can isolate the failing scenario and log a Jira with a test case.. 2. When I set the client option CACHE_ATTACHMENTS to true, a client-side thread loops, appending bytes of 0xff to a .ATT file in the attachments directory. I did some fixes to the Attachment caching after the 1.1 release.. They are available in the latest svn head of Axiom.. And should be available with the Axis2-1.2-RC1.. Can you please retest the 2 with Axis2-1.2-RC1.. Make sure to replace each and every jar with the once that came with 1.2-rc1, specially the Axiom jars.. -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.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, WSDL2Java and Rampart
Hi All! I’m trying to access a .NET service using Axis2. From what I understand, if the WSDL (see policy below) has a WS security policy in it then WSDL2Java will generate the setUsername and setPassword methods in the service stub. Is this correct? Here is the WSDL2Java invocation: sh ${AXIS2_HOME}/bin/axis2.sh \ org.apache.axis2.wsdl.WSDL2Java \ -uri service \ -d xmlbeans -s -r client_repository The client repository has the rampart and addressing mar in it and the axis2.xml. When I run the WSDL2Java above I get the following output and NO username or password stubs are created. WHY? Using AXIS2_HOME: /home/coi/downloads/axis2-1.1.1 Using JAVA_HOME: /usr/jdk1.5.0_03 Retrieving schema at 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP10.xml', relative to 'http://pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP1.xml'. Retrieving schema at 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP12.xml', relative to 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP10.xml'. Retrieving schema at 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP11.xml', relative to 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP10.xml'. Retrieving schema at 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP12.xml', relative to 'http://pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP1.xml'. Retrieving schema at 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP11.xml', relative to 'http://pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP1.xml'. Mar 28, 2007 10:54:01 AM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity INFO: Resolving schema with publicId [beta.va.nortel.com] and systemId [/http:/Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP10.xml] Mar 28, 2007 10:54:02 AM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity INFO: Resolving schema with publicId [http://schemas.microsoft.com/2003/10/Serialization/] and systemId [/http:/Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP11.xml] Mar 28, 2007 10:54:02 AM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity INFO: Resolving schema with publicId [http://schemas.microsoft.com/2003/10/Serialization/Arrays] and systemId [/http:/Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP12.xml] Mar 28, 2007 10:54:12 AM org.apache.axis2.deployment.DeploymentEngine prepareRepository INFO: no services directory found under /home/coi/projects/coi/source_code/coidw/axsysTest/client_repository Mar 28, 2007 10:54:12 AM org.apache.axis2.deployment.DeploymentEngine doDeploy INFO: Deploying module : addressing-1.1.1 Mar 28, 2007 10:54:20 AM org.apache.axis2.deployment.DeploymentEngine doDeploy INFO: Deploying module : rampart-1.1 cannot create repository : policy will not be supported cannot find a PolicyExtension to process http://schemas.xmlsoap.org/ws/2005/07/securitypolicytype assertions cannot find a PolicyExtension to process http://schemas.xmlsoap.org/ws/2005/07/securitypolicytype assertions Mar 28, 2007 10:54:21 AM org.apache.axis2.wsdl.codegen.writer.ClassWriter createOutFile INFO: File ./src/com/nortel/va/beta/ClaimProcessorStub.java will not be overwritten. WS security policy wsp:Policy wsu:Id=BasicHttpBinding_IClaim_policy - wsp:ExactlyOne - wsp:All - sp:TransportBinding xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; - wsp:Policy - sp:TransportToken - wsp:Policy sp:HttpsToken RequireClientCertificate=false / /wsp:Policy /sp:TransportToken - sp:AlgorithmSuite - wsp:Policy sp:Basic256 / /wsp:Policy /sp:AlgorithmSuite - sp:Layout - wsp:Policy sp:Lax / /wsp:Policy /sp:Layout sp:IncludeTimestamp / /wsp:Policy /sp:TransportBinding - sp:SignedSupportingTokens xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; - wsp:Policy - sp:UsernameToken sp:IncludeToken=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient; - wsp:Policy sp:WssUsernameToken10 / /wsp:Policy /sp:UsernameToken /wsp:Policy /sp:SignedSupportingTokens - sp:Wss10 xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; - wsp:Policy sp:MustSupportRefKeyIdentifier / sp:MustSupportRefIssuerSerial / /wsp:Policy /sp:Wss10 /wsp:All /wsp:ExactlyOne /wsp:Policy -- View this message in context: http://www.nabble.com/Axis2%2C-WSDL2Java-and-Rampart-tf3481259.html#a9716824 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with userguide sample
I've deployed the logging module and all services with no exceptions. However, when I try to call a service I get the following error. compile: run.client.ping: [java] Mar 28, 2007 9:53:14 AM org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : addressing-1.1.1 [java] Mar 28, 2007 9:53:14 AM org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : soapmonitor-1.1.1 [java] Mar 28, 2007 9:53:14 AM org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : sample-logging [java] Mar 28, 2007 9:53:14 AM org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying Web service sample-MyService.aar [java] org.apache.axis2.deployment.DeploymentException: Processing Operations Modules logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: Processing Operations Modules logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed [java] at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:139) [java] at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:528) [java] at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196) [java] at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227) [java] at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174) [java] at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:88) [java] at org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSystemConfigurator.java:129) [java] at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:72) [java] at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) [java] at org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.java:189) [java] at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:118) [java] at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:114) [java] at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:207) [java] at userguide.clients.PingClient.main(Unknown Source) [java] Caused by: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules l - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with userguide sample
Richard, can you please post your axis2.xml and services.xml? Michele On Wed, 2007-03-28 at 10:07 -0600, Richard DeGrande wrote: I've deployed the logging module and all services with no exceptions. However, when I try to call a service I get the following error. compile: run.client.ping: [java] Mar 28, 2007 9:53:14 AM org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : addressing-1.1.1 [java] Mar 28, 2007 9:53:14 AM org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : soapmonitor-1.1.1 [java] Mar 28, 2007 9:53:14 AM org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : sample-logging [java] Mar 28, 2007 9:53:14 AM org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying Web service sample-MyService.aar [java] org.apache.axis2.deployment.DeploymentException: Processing Operations Modules logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: Processing Operations Modules logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed [java] at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:139) [java] at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:528) [java] at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196) [java] at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227) [java] at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174) [java] at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:88) [java] at org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSystemConfigurator.java:129) [java] at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:72) [java] at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) [java] at org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.java:189) [java] at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:118) [java] at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:114) [java] at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:207) [java] at userguide.clients.PingClient.main(Unknown Source) [java] Caused by: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules l - 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 make SOAP messages smaller?
Hi there, I am currently making a scientific application web service ready. Since the data that gets transferred can be quite big, I am looking for a good solution to make the SOAP messages small. The input data, which consist mainly of doubles is usually given in binary files. I can use WS-Attachments to transfer those files, but I also have an RPC version, which sends human readable messages with ASCII data. Sadly, the blow-up using RPC style is just incredible, so I am looking into possibilities to make the SOAP messages smaller and still retain clearer interface and easy debugging using RPC. What techniques can I use to compress the data? Is there a better approach then just send binary files? Is it possible to use RPC, but have the doubles sent as binary? TIA, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2] MTOM problems
Great... Nice to hear that... ~Thilina On 3/28/07, Betsy Frey [EMAIL PROTECTED] wrote: Both problems below seem to be fixed by Axis2-1.2-RC1. Thilina was right when he guessed I had not replaced all the jars when I said I had tested with RC1. Betsy -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 12:12 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] MTOM problems Hi, 1. Sometimes 1 extra byte is received. This is a 255 (0xff). It would be great if you can isolate the failing scenario and log a Jira with a test case.. 2. When I set the client option CACHE_ATTACHMENTS to true, a client-side thread loops, appending bytes of 0xff to a .ATT file in the attachments directory. I did some fixes to the Attachment caching after the 1.1 release.. They are available in the latest svn head of Axiom.. And should be available with the Axis2-1.2-RC1.. Can you please retest the 2 with Axis2-1.2-RC1.. Make sure to replace each and every jar with the once that came with 1.2-rc1, specially the Axiom jars.. -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.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] -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with userguide sample
Michele Here is my axis2.xml. I'm only posting the phase portion because that is all I changed. The service.xml is the same as whatever comes with the sample. Does this help ? thx phaseOrder type=InFlow !-- System pre defined phases -- phase name=Transport handler name=RequestURIBasedDispatcher class=org.apache.axis2.engine.RequestURIBasedDispatcher order phase=Transport/ /handler handler name=SOAPActionBasedDispatcher class=org.apache.axis2.engine.SOAPActionBasedDispatcher order phase=Transport/ /handler /phase phase name=Security/ phase name=PreDispatch/ phase name=Dispatch class=org.apache.axis2.engine.DispatchPhase handler name=AddressingBasedDispatcher class=org.apache.axis2.engine.AddressingBasedDispatcher order phase=Dispatch/ /handler handler name=SOAPMessageBodyBasedDispatcher class=org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher order phase=Dispatch/ /handler handler name=InstanceDispatcher class=org.apache.axis2.engine.InstanceDispatcher order phase=Dispatch/ /handler /phase !-- System pre defined phases -- !-- After Postdispatch phase module author or or service author can add any phase he want -- phase name=OperationInPhase/ phase name=soapmonitorPhase/ phase name=loggingPhase/ /phaseOrder phaseOrder type=OutFlow !-- user can add his own phases to this area -- phase name=soapmonitorPhase/ phase name=OperationOutPhase/ phase name=loggingPhase/ !--system predefined phase-- !--these phase will run irrespective of the service-- phase name=PolicyDetermination/ phase name=MessageOut/ phase name=Security/ /phaseOrder phaseOrder type=InFaultFlow phase name=PreDispatch/ phase name=Dispatch class=org.apache.axis2.engine.DispatchPhase handler name=RequestURIBasedDispatcher class=org.apache.axis2.engine.RequestURIBasedDispatcher order phase=Dispatch/ /handler handler name=SOAPActionBasedDispatcher class=org.apache.axis2.engine.SOAPActionBasedDispatcher order phase=Dispatch/ /handler handler name=AddressingBasedDispatcher class=org.apache.axis2.engine.AddressingBasedDispatcher order phase=Dispatch/ /handler handler name=SOAPMessageBodyBasedDispatcher class=org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher order phase=Dispatch/ /handler handler name=InstanceDispatcher class=org.apache.axis2.engine.InstanceDispatcher order phase=PostDispatch/ /handler /phase !-- user can add his own phases to this area -- phase name=OperationInFaultPhase/ phase name=soapmonitorPhase/ phase name=loggingPhase/ /phaseOrder phaseOrder type=OutFaultFlow !-- user can add his own phases to this area -- phase name=soapmonitorPhase/ phase name=OperationOutFaultPhase/ phase name=PolicyDetermination/ phase name=MessageOut/ phase name=loggingPhase/ /phaseOrder /axisconfig Michele Mazzucco [EMAIL PROTECTED] 3/28/2007 10:12:49 AM Richard, can you please post your axis2.xml and services.xml? Michele On Wed, 2007-03-28 at 10:07 -0600, Richard DeGrande wrote: I've deployed the logging module and all services with no exceptions. However, when I try to call a service I get the following error. compile: run.client.ping: [java] Mar 28, 2007 9:53:14 AM org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : addressing-1.1.1 [java] Mar 28, 2007 9:53:14 AM org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : soapmonitor-1.1.1 [java] Mar 28, 2007 9:53:14 AM org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : sample-logging [java] Mar 28, 2007 9:53:14 AM org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying Web service sample-MyService.aar [java] org.apache.axis2.deployment.DeploymentException: Processing Operations Modules logging module is invalid or has not been deployed; nested exception is: [java] org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: [java]
Re: Problem with userguide sample
On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote: The service.xml is the same as whatever comes with the sample. I'm sorry. I meant module.xml. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with userguide sample
On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote: I'm only posting the phase portion because that is all I changed Is the module globally engaged? If so, you have to add something like module ref=module_name / in the global modules section. The module name is the value specified in module.xml as name attribute. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with userguide sample
Michele, module name=logging class=userguide.loggingmodule.LoggingModule InFlow handler name=InFlowLogHandler class=userguide.loggingmodule.LogHandler order phase=loggingPhase/ /handler /InFlow OutFlow handler name=OutFlowLogHandler class=userguide.loggingmodule.LogHandler order phase=loggingPhase/ /handler /OutFlow OutFaultFlow handler name=FaultOutFlowLogHandler class=userguide.loggingmodule.LogHandler order phase=loggingPhase/ /handler /OutFaultFlow InFaultFlow handler name=FaultInFlowLogHandler class=userguide.loggingmodule.LogHandler order phase=loggingPhase/ /handler /InFaultFlow /module Michele Mazzucco [EMAIL PROTECTED] 3/28/2007 10:23:38 AM On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote: The service.xml is the same as whatever comes with the sample. I'm sorry. I meant module.xml. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with userguide sample
Michele, Does it need to be Globally engaged? I just deployed it like they described on http://ws.apache.org/axis2/1_1/modules.html I did engage the module for all Services. Rick Michele Mazzucco [EMAIL PROTECTED] 3/28/2007 10:26:43 AM On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote: I'm only posting the phase portion because that is all I changed Is the module globally engaged? If so, you have to add something like module ref=module_name / in the global modules section. The module name is the value specified in module.xml as name attribute. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compiling XFire 1.2.5 Using Maven
Hi guys! I having problems compiling the src code using maven. I am already using the default POM.xml from the source code. Maven reports: INFO: Couldn't find Java 5 module on classpath. Annotation mappings will not be supported. Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.641 sec FAILURE! What shall I do? The repository is also there and the dependencies are already defined? Thanks again! Charles
Re: [Axis2] wsdl2java Code Generation problem (ADB)
Hi Dims, I think nothing wrong with Axis2 libraries, problem could be with my wsdl file (ADBTest.wsdl attached). Can you please validate. Thanks. - Anil Davanum Srinivas wrote: Please create a JIRA issue and upload the wsdl's. thanks, dims On 3/28/07, Anil VVNN [EMAIL PROTECTED] wrote: Hi, I'm using Axis2 1.1.1, I have written very simple wsdl wsdl but encountering problem while generating Java classes, could somebody validate the attached wsdl. And here is the error, === org.apache.axis2.wsdl.codegen.CodeGenerationException: apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name setMessage with namespace http://ADBTest/xsd === http://www.nabble.com/file/7486/ADBTest.wsdl ADBTest.wsdl Thanks. Do you need ADBTestSkeleton code too. -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9716015 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9717631 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: Problem with userguide sample
Richard, I'm quite sure that if your module is not globally engaged, i.e. if you don't add module ref=logging / in the global modules section, than you have to engage it on the services.xml file of your service (see step #5 of the tutorial) - this is not needed if your module is globally engaged. Michele On Wed, 2007-03-28 at 10:32 -0600, Richard DeGrande wrote: Michele, Does it need to be Globally engaged? I just deployed it like they described on http://ws.apache.org/axis2/1_1/modules.html I did engage the module for all Services. Rick Michele Mazzucco [EMAIL PROTECTED] 3/28/2007 10:26:43 AM On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote: I'm only posting the phase portion because that is all I changed Is the module globally engaged? If so, you have to add something like module ref=module_name / in the global modules section. The module name is the value specified in module.xml as name attribute. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis2 Client Stub not Generating WS-Security Headers
Thank you for the reply Ruchith. I am following these instructions with the exception of the service invocation since I am using my generated client stub. Does the client repository location need to be included in order to generate the proper stub logic for inserting the WS-Security headers? Also, the code sample links are broken on the link you gave me. Thanks, Ted -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 11:04 PM To: axis-user@ws.apache.org Subject: Re: Axis2 Client Stub not Generating WS-Security Headers Hi Ted, Please see this : http://www.wso2.org/library/240 Thanks, Ruchith On 3/28/07, Ted Jones [EMAIL PROTECTED] wrote: I have an Axis2 1.1.1 ADB generated client stub that is instantiated using a client axis2.xml config and pointing to a client repository that has the rampart and addressing mar files. The config file and repository location are loaded via URL. In debug, I can see the rampart and addressing modules are engaged. In my client code, I have added the following properties to the serviceclient's options instance: options.setProperty(WSConstants.WSSE_NS , WSConstants.USERNAME_TOKEN_LN); options.setProperty(WSConstants.USERNAME_LN,getConnectionProperties(). getUserid()); options.setProperty(WSConstants.PASSWORD_LN,getConnectionProperties(). getPassword()); options.setProperty(WSConstants.PASSWORD_TYPE_ATTR, WSConstants.PASSWORD_TEXT); The WS-Security headers are never inserted into the soap request and I receive the ever-popular org.apache.axis2.AxisFault: WSDoAllReceiver: Incoming message does not contain required Security header. This web service and the ws-security logic works using soapUI (a great *free* tool by the way). Is there some other property I need to set in the options or something else I need to be doing? Thanks Ted -- www.ruchith.org www.wso2.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to make SOAP messages smaller?
Ryan Nelsestuen schrieb: It sort of depends on your architecture and who the callers are, but you can put a GZipFilter in front of your AxisServlet and compress it that way... of course, that means the client has to be capable of uncompressing gzip as well as indicating that they support gzip in an HTTP header... Thx for your input! I thought about HTTP compression before, but what I don't like, is that the SOAP message looks like garbage then to the human eye. Maybe I can find a solution to make it optional for the client. That would at least help the client developer to debug. -Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis 1.4 Java2WSDL
Xinjun, Axis can get Parameter names of methods from a compiled class only if the class is compiled in debug mode. If class is not compiled in debug mode, the parameter names are not in the .class file and there is no way to get them. Mj On 3/27/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi Axis users and developers, I cannot understand one thing about Axis 1.4's Java2WSDL. When I use Java2WSDL, my class file is a concrete class compiled with -g option. Then in the generated WSDL, I now do not see those meaningless in0, in1, and etc. Thanks Axis developers! But I don't understand how Axis extracts the parameter names of a method from a class file. I have this question because I want to extract parameter names of a method from a class file using my own program. I googled and two options are using either JDI or BCEL. I searched Axis source but do not see these two APIs. I want to learn from Axis Java2WSDL to get parameter names of a class file. Could any Axis developer or expert user explain the concept how Axis get the parameter names of a method from a class file? Currently I want to choose BCEL to achieve the purpose, but I still want to understand how Axis does it. Regards, Xinjun
Ant wsdl2java command line WSDL2Java generate different code
I have been working with the Axis2UserGuide.wsdl example to find a suitable way to automate our Axis2 web service builds from ant. I successfully generated the client using the batch file (%AXIS2_HOME%\bin\wsdl2java...). I have also successfully generated the service from the java class (java org.apache.axis2.wsdl.WSDL2Java...). When I tried to perform the same exercise using Ant wsdl2java tasks (as per sample quickstartadb), code was generated, however, when I deployed the aar file, it did not respond to the Client. The DoInOnly message was not received by the service (I added print statements to the appropriate Axis2UserGuideServiceSkeleton methods to verify this). Furthermore, the other messages all generated AxisFaults when the execute(true) method is sent to the _operationClient (OutInAxisOperation). I redeployed the original aar file generated by Java command line, restarted Tomcat, and the Client worked fine. I also noticed that the ant wsdl2java task generated an Axis2UserGuideServiceSkeletonInterface class which was never generated by the invocation of WSDL2Java as a Java class. Also, when I compared the generated message receiver service code side by side, I noticed that the versions of Axis2UserGuideServiceMessageReceiverInOnly.java Axis2UserGuideServiceMessageReceiverInOut.java generated by the Ant wsdl2java task reference the skeleton Interface: Axis2UserGuideServiceSkeletonInterface skel = (Axis2UserGuideServiceSkeletonInterface)obj; whereas the those generated via the Java command line reference the Skeleton class itself: Axis2UserGuideServiceSkeleton skel = (Axis2UserGuideServiceSkeleton)obj; My questions are: 1) Why would the ant task generate different code than the Java command line approach? 2) What are the impacts of using the command line generated classes that reference the Skeleton, rather than the Interface? 3) Is there a better way to automate the Ant build? I am using the Axis2UserGuide.wsdl defined in the user's guide, and separate directories for client and source code. Here is how I am generating the code: Command line client code generation (all on one line): == %AXIS2_HOME%\bin\wsdl2java -uri Axis2UserGuide.wsdl -p org.apache.axis2.axis2userguide -o client -d adb -s Ant task client code generation (all on one line): == taskdef name=wsdl2java classname=org.apache.axis2.tool.ant.AntCodegenTask classpathref=axis2.classpath/ wsdl2java wsdlFilename=${wsdl.file} output=${client.dir} packageName=org.apache.axis2.axis2userguide language=java databindingName=adb synconly=true namespaceToPackages=http://apache.org/axis2/Axis2UserGuide=org.apache.axis2.axis2userguide; / Command line service code generation (all on one line): === java org.apache.axis2.wsdl.WSDL2Java -uri Axis2UserGuide.wsdl -p org.apache.axis2.axis2userguide -o service -d adb -s -wv 1.1 -ss -sd Ant task service code generation (all on one line): === taskdef name=wsdl2java classname=org.apache.axis2.tool.ant.AntCodegenTask classpathref=axis2.classpath/ wsdl2java wsdlFilename=${wsdl.file} output=${service.dir} packageName=org.apache.axis2.axis2userguide language=java databindingName=adb synconly=true serverside=true serverSideInterface=true namespaceToPackages=http://apache.org/axis2/Axis2UserGuide=org.apache.axis2.axis2userguide; generateservicexml=true / Client output, including AxisFault stack traces: doInOnly done org.apache.axis2.AxisFault: org.apache.axis2.axis2userguide.Axis2UserGuideServiceSkeleton at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202) at org.apache.axis2.axis2userguide.Axis2UserGuideServiceStub.TwoWayOneParameterEcho(Axis2UserGuideServiceStub.java:277) at org.apache.axis2.axis2userguide.Client.twoWayOneParameterEcho(Client.java:54) at org.apache.axis2.axis2userguide.Client.main(Client.java:19) org.apache.axis2.AxisFault: org.apache.axis2.axis2userguide.Axis2UserGuideServiceSkeleton at
[Axis2] Bean generated WSDL missing ancestor properties in SOAP response
I have a base bean, ClassA with a few properties. The ClassA is extended by ClassB for some additional properties. The generated WSDL for ClassB is correct. However, the SOAP response omits all the elements/values from the ancestor (ClassA) Is this allowed in Axis2? I tried to create additional getters methods in ClassB for the ClassA attributes. That will give me the correct SOAP response, but double the generate WSDL elements for the ClassA attributes. That confuses the WS client. Help is appreciated. Thx, Ken Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with userguide sample
Richard, try to turn out the axis2 logs. Assuming you're using tomcat, open $CATALINA_HOME/webapps/axis2/WEB-INF/classes/commons-logging.properties and uncomment the last line. If you're using log4j, add this section to your log4j (i.e. the log4j.properties which goes into your .aar file) log4j.appender.axis2=org.apache.log4j.RollingFileAppender log4j.appender.axis2.layout=org.apache.log4j.PatternLayout log4j.appender.axis2.layout.ConversionPattern=%-5p %C{1}:%M - %m%n log4j.appender.axis2.File=${catalina.home}/logs/axis2_logs.log log4j.appender.axis2.MaxFileSize=4KB log4j.appender.axis2.MaxBackupIndex=1 # Truncate 'axis2_logs.log' if it aleady exists. log4j.appender.axis2.Append=false log4j.category.org.apache.axis2=TRACE, A1, axis2 Michele On Wed, 2007-03-28 at 10:47 -0600, Richard DeGrande wrote: Michele, I added the logging module to the global section. Doesn't seem to make a difference. The problem is I have no idea where to look to see what the root issue is. All I know is that the module is not configured or deployed. not why. thx rick Michele Mazzucco [EMAIL PROTECTED] 3/28/2007 10:41:21 AM Richard, I'm quite sure that if your module is not globally engaged, i.e. if you don't add module ref=logging / in the global modules section, than you have to engage it on the services.xml file of your service (see step #5 of the tutorial) - this is not needed if your module is globally engaged. Michele On Wed, 2007-03-28 at 10:32 -0600, Richard DeGrande wrote: Michele, Does it need to be Globally engaged? I just deployed it like they described on http://ws.apache.org/axis2/1_1/modules.html I did engage the module for all Services. Rick Michele Mazzucco [EMAIL PROTECTED] 3/28/2007 10:26:43 AM On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote: I'm only posting the phase portion because that is all I changed Is the module globally engaged? If so, you have to add something like module ref=module_name / in the global modules section. The module name is the value specified in module.xml as name attribute. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: How to make SOAP messages smaller?
It sort of depends on your architecture and who the callers are, but you can put a GZipFilter in front of your AxisServlet and compress it that way... of course, that means the client has to be capable of uncompressing gzip as well as indicating that they support gzip in an HTTP header... -Original Message- From: Christian Poecher [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 10:16 AM To: axis-user@ws.apache.org Subject: How to make SOAP messages smaller? Hi there, I am currently making a scientific application web service ready. Since the data that gets transferred can be quite big, I am looking for a good solution to make the SOAP messages small. The input data, which consist mainly of doubles is usually given in binary files. I can use WS-Attachments to transfer those files, but I also have an RPC version, which sends human readable messages with ASCII data. Sadly, the blow-up using RPC style is just incredible, so I am looking into possibilities to make the SOAP messages smaller and still retain clearer interface and easy debugging using RPC. What techniques can I use to compress the data? Is there a better approach then just send binary files? Is it possible to use RPC, but have the doubles sent as binary? TIA, Chris - 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 make SOAP messages smaller?
This should be pretty easy to do...have the servlet filter check the Accept-Encoding before applying GZIP compression. Then, when debugging, have the client turn off this header. -Original Message- From: Christian Poecher [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 10:12 AM To: axis-user@ws.apache.org Subject: Re: How to make SOAP messages smaller? Ryan Nelsestuen schrieb: It sort of depends on your architecture and who the callers are, but you can put a GZipFilter in front of your AxisServlet and compress it that way... of course, that means the client has to be capable of uncompressing gzip as well as indicating that they support gzip in an HTTP header... Thx for your input! I thought about HTTP compression before, but what I don't like, is that the SOAP message looks like garbage then to the human eye. Maybe I can find a solution to make it optional for the client. That would at least help the client developer to debug. -Chris - 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: Problem with userguide sample
Michele, I added the logging module to the global section. Doesn't seem to make a difference. The problem is I have no idea where to look to see what the root issue is. All I know is that the module is not configured or deployed. not why. thx rick Michele Mazzucco [EMAIL PROTECTED] 3/28/2007 10:41:21 AM Richard, I'm quite sure that if your module is not globally engaged, i.e. if you don't add module ref=logging / in the global modules section, than you have to engage it on the services.xml file of your service (see step #5 of the tutorial) - this is not needed if your module is globally engaged. Michele On Wed, 2007-03-28 at 10:32 -0600, Richard DeGrande wrote: Michele, Does it need to be Globally engaged? I just deployed it like they described on http://ws.apache.org/axis2/1_1/modules.html I did engage the module for all Services. Rick Michele Mazzucco [EMAIL PROTECTED] 3/28/2007 10:26:43 AM On Wed, 2007-03-28 at 10:18 -0600, Richard DeGrande wrote: I'm only posting the phase portion because that is all I changed Is the module globally engaged? If so, you have to add something like module ref=module_name / in the global modules section. The module name is the value specified in module.xml as name attribute. Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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 make SOAP messages smaller?
Axis2 has built in GZIP support..[1].. Also you can try the recently added fastinfoset[2] message formatting support in axis2.. thanks, Thilina [1]http://wso2.org/library/230#GZIP [2]http://java.sun.com/developer/technicalArticles/xml/fastinfoset/ On 3/28/07, Ryan Nelsestuen [EMAIL PROTECTED] wrote: There are other binary encryption techniques for xml and there is some effort to create a standard - see http://www.w3.org/XML/EXI/ for some information. I'm not aware of anything additional built in to Axis - you'd probably have to find a commercial or open source add on and write your own Axis module (if using Axis2... not sure about Axis1). -Original Message- From: Christian Poecher [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:11 PM To: axis-user@ws.apache.org Subject: Re: How to make SOAP messages smaller? Spies, Brennan schrieb: This should be pretty easy to do...have the servlet filter check the Accept-Encoding before applying GZIP compression. Then, when debugging, have the client turn off this header. Thanks, good hint! Does anyone know better compression techniques than gzip? I found a paper claiming much better compression than gzip: @inproceedings{Werner:CompressingSOAP, Author = {C. Werner and C. Buschmann and S. Fischer}, Booktitle = {Proceedings of the IEEE International Conference on Web Services}, Month = {July}, Pages = {540-547}, Title = {Compressing SOAP Messages by using Differential Encoding}, Year = {2004}} If my mind serves me right, I have also heard for years now, that people are researching XML compression. Is there any advanced compression algorithm available for Axis? Cheers, Chris - 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] -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to make SOAP messages smaller?
Spies, Brennan schrieb: This should be pretty easy to do...have the servlet filter check the Accept-Encoding before applying GZIP compression. Then, when debugging, have the client turn off this header. Thanks, good hint! Does anyone know better compression techniques than gzip? I found a paper claiming much better compression than gzip: @inproceedings{Werner:CompressingSOAP, Author = {C. Werner and C. Buschmann and S. Fischer}, Booktitle = {Proceedings of the IEEE International Conference on Web Services}, Month = {July}, Pages = {540-547}, Title = {Compressing SOAP Messages by using Differential Encoding}, Year = {2004}} If my mind serves me right, I have also heard for years now, that people are researching XML compression. Is there any advanced compression algorithm available for Axis? Cheers, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to make SOAP messages smaller?
There are other binary encryption techniques for xml and there is some effort to create a standard - see http://www.w3.org/XML/EXI/ for some information. I'm not aware of anything additional built in to Axis - you'd probably have to find a commercial or open source add on and write your own Axis module (if using Axis2... not sure about Axis1). -Original Message- From: Christian Poecher [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 12:11 PM To: axis-user@ws.apache.org Subject: Re: How to make SOAP messages smaller? Spies, Brennan schrieb: This should be pretty easy to do...have the servlet filter check the Accept-Encoding before applying GZIP compression. Then, when debugging, have the client turn off this header. Thanks, good hint! Does anyone know better compression techniques than gzip? I found a paper claiming much better compression than gzip: @inproceedings{Werner:CompressingSOAP, Author = {C. Werner and C. Buschmann and S. Fischer}, Booktitle = {Proceedings of the IEEE International Conference on Web Services}, Month = {July}, Pages = {540-547}, Title = {Compressing SOAP Messages by using Differential Encoding}, Year = {2004}} If my mind serves me right, I have also heard for years now, that people are researching XML compression. Is there any advanced compression algorithm available for Axis? Cheers, Chris - 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: Ant wsdl2java command line WSDL2Java generate different code
Answer to my question #3: Use the Ant java task. This behaves the same way as the User Guide example (no Skeleton Interface, nor references to it) and, best of all, the Client successfully executes against the resulting aar. Here are the tasks for generating the service aar file. Note the copied Skeleton containing method logic. The ant task kicks off the build script created by wsdl2java: java classname=org.apache.axis2.wsdl.WSDL2Java arg line=-uri ${wsdl.file} -p ${package.name} -o ${service.dir} -d ${binding} -s -wv 1.1 -ss -sd / classpath refid=axis2.classpath / /java copy file=${basedir}/Axis2UserGuideServiceSkeleton.java toDir=${service.dir}/src/org/apache/axis2/axis2userguide/ overwrite=yes /copy ant dir=${service.dir} / Here are the tasks for generating the client jar file. The ant task kicks off the build script created by wsdl2java: java classname=org.apache.axis2.wsdl.WSDL2Java arg line=-uri ${wsdl.file} -p ${package.name} -o ${client.dir} -d ${binding} -s / classpath refid=axis2.classpath / /java ant dir=${client.dir} / -- View this message in context: http://www.nabble.com/Ant-wsdl2java---command-line-WSDL2Java-generate-different-code-tf3481674.html#a9718427 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Policy-driven code generation
Hi, I have seen policy-driven code generation as a feature of Axis2, but I couldn't get it to work properly. Is this feature currently supported in Axis2 ? If yes, where can I find a sample demonstrating it? What I assume it means, is to have a policy (let's say UsernameToken auth) in my WSDL, and when I run wsdl2java, I would like to have the rampart module automatically engaged in the generated stubs, and most of the setups of the module - auto generated. To sum it up: 1) given a WSDL with policy definitions in it 2) run wsdl2java 3) the tool generates code in the stub that activates the policy Thanks. Regards, Angel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Ant wsdl2java command line WSDL2Java generate different code
FYI: You can get the skeleton interfaces with the command line wsdl2java using the -ssi flag. The default is off. -Original Message- From: david2 [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 3:32 PM To: axis-user@ws.apache.org Subject: Re: Ant wsdl2java command line WSDL2Java generate different code Answer to my question #3: Use the Ant java task. This behaves the same way as the User Guide example (no Skeleton Interface, nor references to it) and, best of all, the Client successfully executes against the resulting aar. Here are the tasks for generating the service aar file. Note the copied Skeleton containing method logic. The ant task kicks off the build script created by wsdl2java: java classname=org.apache.axis2.wsdl.WSDL2Java arg line=-uri ${wsdl.file} -p ${package.name} -o ${service.dir} -d ${binding} -s -wv 1.1 -ss -sd / classpath refid=axis2.classpath / /java copy file=${basedir}/Axis2UserGuideServiceSkeleton.java toDir=${service.dir}/src/org/apache/axis2/axis2userguide/ overwrite=yes /copy ant dir=${service.dir} / Here are the tasks for generating the client jar file. The ant task kicks off the build script created by wsdl2java: java classname=org.apache.axis2.wsdl.WSDL2Java arg line=-uri ${wsdl.file} -p ${package.name} -o ${client.dir} -d ${binding} -s / classpath refid=axis2.classpath / /java ant dir=${client.dir} / -- View this message in context: http://www.nabble.com/Ant-wsdl2java---command-line-WSDL2Java-generate-di fferent-code-tf3481674.html#a9718427 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]
Re: [Axis2] Policy-driven code generation
Hi, It seems to be broken in latest codebase which is need to be fixed before Axis2-1.2 release. Please log a JIRA and I will follow up. Thanks, Sanka On 3/28/07, Angel Todorov [EMAIL PROTECTED] wrote: Hi, I have seen policy-driven code generation as a feature of Axis2, but I couldn't get it to work properly. Is this feature currently supported in Axis2 ? If yes, where can I find a sample demonstrating it? What I assume it means, is to have a policy (let's say UsernameToken auth) in my WSDL, and when I run wsdl2java, I would like to have the rampart module automatically engaged in the generated stubs, and most of the setups of the module - auto generated. To sum it up: 1) given a WSDL with policy definitions in it 2) run wsdl2java 3) the tool generates code in the stub that activates the policy Thanks. Regards, Angel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
Null pointer exception in xmlbeans setArray
Hi, I'm using xmlbeans as databinding. In some classes I have Array fields and when I call the setter for those with a null value, I get a null pointer exception but I tried the same with a String field and it works perfectly. Is not possible to set an array to null in xmlbeans classes?? Thanks and regards, Jorge Fernández - LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com
How do I debug the StockQuoteService quickstart sample in Eclipse+JBoss
I am trying to understand the steps involved in being able to debug the StockQuoteService.java code in the quickstart sample . Would some one please help me by outline the necessary steps. I have downloaded and installed the following Axis2 1.1.1 Eclipse 3.2.2 and Callisto JBoss 4.0.3SP1 Sincerely, Ian Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html
org.xml.sax.SAXException: Invalid element in ARWSClient.CreateOutputMap - Request_ID
Hi, I am trying to access WSDL created on remedy system , I am getting this error can any one help me on this? My enviroment: Axis 1.4,java 1.5 Please let me know if you need anything else. Thanks, Ding Mar 20, 2007 7:13:47 AM org.apache.axis.client.Call invoke SEVERE: Exception: org.xml.sax.SAXException: Invalid element in ARWSClient.CreateOutputMap - Request_ID at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at ARWSClient.IHD_RemedyWebServiceSoapBindingStub.opCreate(IHD_RemedyWebServiceSoapBindingStub.java:291) at ARWSClient.TestClient.main(TestClient.java:22) Exception in thread main AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXException: Invalid element in ARWSClient.CreateOutputMap - Request_ID faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Invalid element in ARWSClient.CreateOutputMap - Req uest_ID at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at ARWSClient.IHD_RemedyWebServiceSoapBindingStub.opCreate(IHD_RemedyWebServiceSoapBindingStub.java:291) at ARWSClient.TestClient.main(TestClient.java:22) {http://xml.apache.org/axis/}hostname:DINGM20 org.xml.sax.SAXException: Invalid element in ARWSClient.CreateOutputMap - Request_ID at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.client.Call.invoke(Call.java:2470) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at ARWSClient.IHD_RemedyWebServiceSoapBindingStub.opCreate(IHD_RemedyWebServiceSoapBindingStub.java:291) at ARWSClient.TestClient.main(TestClient.java:22) Caused by: org.xml.sax.SAXException: Invalid element in ARWSClient.CreateOutputMap - Request_ID at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) ... 4 more Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front IHD_RemedyWebService.wsdl Description: 97359196-IHD_RemedyWebService.wsdl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiple values for single GET parameter?
I want to be able to access a web service using multiple values for a single GET parameter via REST. As an example, the request may be: http://locahost/app/service/method?param=1param=2param=3 What would the signature of my method need to look like? What would the WSDL look like? I've tried using an array in the service method (ie. public void method(int[] param) ), and that seems to create a decent WSDL, but when I actually make the request, only the first value is being set. Any ideas? Thanks! -- View this message in context: http://www.nabble.com/multiple-values-for-single-GET-parameter--tf3482862.html#a9722268 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Socket error
Hi all, I have a basic question regarding timeouts/keep alive values in relation to socket read/writes. I have a web service using Apache axis as the client and sending a request to a service written in C++ using GSOAP. I am testing the service from different boxes and found that in one case I get intermittent errors of: SOAP FAULT: SOAP-ENV:Client End of file or no input: 'Connection reset by peer' And in my log file I see: error: java.net.SocketException: Broken pipe (errno:32) It appears that the client sends the request but does not wait for the response. Has anyone seen this type of error before? If so how do I fix it? Charlie Vogel Bold Web Development Work (206) 766-3856 Cell (206) 679-2699 M/S 2J-53 Email mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Has anyone seen this ?
org.apache.axis2.deployment.DeploymentException: Processing Operations Modules Error in schema generating Unexpected end of ZLIB input stream; nested exception is: java.io.EOFException: Unexpected end of ZLIB input stream; nested exception is: org.apache.axis2.deployment.DeploymentException: Error in schema generating Unexpected end of ZLIB input stream; nested exception is: java.io.EOFException: Unexpected end of ZLIB input stream; nested exception is: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules Error in schema generating Unexpected end of ZLIB input stream; nested exception is: java.io.EOFException: Unexpected end of ZLIB input stream; nested exception is: org.apache.axis2.deployment.DeploymentException: Error in schema generating Unexpected end of ZLIB input stream; nested exception is: java.io.EOFException: Unexpected end of ZLIB input stream at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:139) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:528) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174) at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:219) at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:61) at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68) at org.apache.axis2.deployment.sch I've googled this and found that it is sometimes caused by not closing the zip stream. I'm using the jar command in Ant to create the .aar file. I've tried to insure that the jar is not being compressed. When I initially deployed the jar it seemed to work. Code and services.xml enclosed... package jeffco.us.service; import org.apache.axiom.om.OMElement; public class HelloService { public HelloService(){ super(); } public void doServiceOne(OMElement e){ System.out.println(This is doServiceOne()); } } service name=HelloService description The Hello Service. /description parameter name=ServiceClass locked=falsejeffco.us.service.HelloService/parameter operation name=doServiceOne messageReceiver class=org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver/ actionMappingurn:doServiceOne/actionMapping /operation /service thanks rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please update your code to use new MEP URI's
Hi all, With WSDL 2.0 moving to PR Axis2 will be deprecating the old MEP URI's in its 1.2 release. Please updated your code to the new MEP URI's which are given below. Ols MEP URI's which are deprecated public String MEP_URI_IN_ONLY = http://www.w3.org/2004/08/wsdl/in-only;; public String MEP_URI_ROBUST_IN_ONLY = http://www.w3.org/2004/08/wsdl/robust-in-only;; public String MEP_URI_IN_OUT = http://www.w3.org/2004/08/wsdl/in-out;; public String MEP_URI_IN_OPTIONAL_OUT = http://www.w3.org/2004/08/wsdl/in-opt-out;; public String MEP_URI_OUT_ONLY = http://www.w3.org/2004/08/wsdl/out-only;; public String MEP_URI_ROBUST_OUT_ONLY = http://www.w3.org/2004/08/wsdl/robust-out-only;; public String MEP_URI_OUT_IN = http://www.w3.org/2004/08/wsdl/out-in;; public String MEP_URI_OUT_OPTIONAL_IN = http://www.w3.org/2004/08/wsdl/out-opt-in;; public String MEP_URI_IN_ONLY = http://www.w3.org/2006/01/wsdl/in-only;; public String MEP_URI_ROBUST_IN_ONLY = http://www.w3.org/2006/01/wsdl/robust-in-only;; public String MEP_URI_IN_OUT = http://www.w3.org/2006/01/wsdl/in-out;; public String MEP_URI_IN_OPTIONAL_OUT = http://www.w3.org/2006/01/wsdl/in-opt-out;; public String MEP_URI_OUT_ONLY = http://www.w3.org/2006/01/wsdl/out-only;; public String MEP_URI_ROBUST_OUT_ONLY = http://www.w3.org/2006/01/wsdl/robust-out-only;; public String MEP_URI_OUT_IN = http://www.w3.org/2006/01/wsdl/out-in;; public String MEP_URI_OUT_OPTIONAL_IN = http://www.w3.org/2006/01/wsdl/out-opt-in;; Instead of these please use the corresponding URI from the list below which can be found in org.apache.axis2.description.WSDL2Constants. public String MEP_URI_IN_ONLY = http://www.w3.org/ns/wsdl/in-only;; public String MEP_URI_ROBUST_IN_ONLY = http://www.w3.org/ns/wsdl/robust-in-only;; public String MEP_URI_IN_OUT = http://www.w3.org/ns/wsdl/in-out;; public String MEP_URI_IN_OPTIONAL_OUT = http://www.w3.org/ns/wsdl/in-opt-out;; public String MEP_URI_OUT_ONLY = http://www.w3.org/ns/wsdl/out-only;; public String MEP_URI_ROBUST_OUT_ONLY = http://www.w3.org/ns/wsdl/robust-out-only;; public String MEP_URI_OUT_IN = http://www.w3.org/ns/wsdl/out-in;; public String MEP_URI_OUT_OPTIONAL_IN = http://www.w3.org/ns/wsdl/out-opt-in;; Thanks, Keith -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
Re: [Axis2] wsdl2java Code Generation problem (ADB)
problem is in here xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; attributeFormDefault=qualified elementFormDefault=qualified targetNamespace= http://ADBTest/xsd; element name=getMessage complexType sequence element name=msg nillable=true type=xs:string/ /sequence /complexType /element element name=getMessageResponse complexType sequence element name=return nillable=true type=xs:string/ /sequence /complexType /element element name=setMessage complexType sequence element name=msg nillable=true type=xs:string/ /sequence /complexType /element /xs:schema either you put xmlns=http://www.w3.org/2001/XMLSchema; to schema element to make xml schema to default namespace or put the xs prefix for all element,complexType, sequence etc.. On 3/29/07, Lahiru Sandakith [EMAIL PROTECTED] wrote: Hi doing it with the Eclipse Codegen Plugin Result the attached error, Thanks Sandakith On 3/29/07, Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi, It seems (from visual inspection) that there is nothing wrong with your WSDL. If Axis2 failed with this then its surely a bug. Have you tried with the nightlies by any chance ? Better yet you can even try with the Axis 1.2 RC Ajith On 3/28/07, Anil VVNN [EMAIL PROTECTED] wrote: Hi Dims, I think nothing wrong with Axis2 libraries, problem could be with my wsdl file (ADBTest.wsdl attached). Can you please validate. Thanks. - Anil Davanum Srinivas wrote: Please create a JIRA issue and upload the wsdl's. thanks, dims On 3/28/07, Anil VVNN [EMAIL PROTECTED] wrote: Hi, I'm using Axis2 1.1.1, I have written very simple wsdl wsdl but encountering problem while generating Java classes, could somebody validate the attached wsdl. And here is the error, === org.apache.axis2.wsdl.codegen.CodeGenerationException: apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name setMessage with namespace http://ADBTest/xsd === http://www.nabble.com/file/7486/ADBTest.wsdl ADBTest.wsdl Thanks. Do you need ADBTestSkeleton code too. -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9716015 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9717631 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Lahiru Sandakith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi, WSO2 Inc.
RE: [AXIS2] Codegen question regarding local
Amila, Thanks. I tried it with the RC build and I was able to generate the code using WSDL2Java. Now I am working my way through the interface. Have you seen the following type of message before (see below)? I noticed a message trail in some AXIS2 discussion group that referred to a problem of chunking but I don't know what this means. Thanks. org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required _ From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 9:22 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Codegen question regarding local seems to be a problem with the nightly build. we are planing to have a RC for Axis2 1.2 on this friday. Please hava a look with it. On 3/20/07, Carlos S. Zamudio [EMAIL PROTECTED] wrote: Here are the messages: C:\Development\Archives\axis2-SNAPSHOT\binwsdl2java Using AXIS2_HOME: C:\Development\Archives\axis2-SNAPSHOT Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_06 Exception in thread main java.lang.NoClassDefFoundError: org/apache/commons/lo gging/LogFactory at org.apache.axis2.i18n.ProjectResourceBundle.clinit(ProjectResourceB undle.java:50) at org.apache.axis2.i18n.MessagesConstants.clinit(MessagesConstants.ja va:29) at org.apache.axis2.wsdl.i18n.CodegenMessages.clinit(CodegenMessages.j ava:35) at org.apache.axis2.wsdl.WSDL2Code.printUsage(WSDL2Code.java:38) at org.apache.axis2.wsdl.WSDL2Code.validateCommandLineOptions(WSDL2Code. java:73) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:31) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) C:\Development\Archives\axis2-SNAPSHOT\bin _ From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 11:02 PM To: axis-user@ws.apache.org mailto:axis-user@ws.apache.org Subject: Re: [AXIS2] Codegen question regarding local you are using axis2-1.1.1-SNAPSHOT not axis2-SNAPSHOT please use the link I gave you. thanks, Amila. On 3/19/07, Carlos S. Zamudio [EMAIL PROTECTED] wrote: Amila, Thanks so much for you patience with this. Maybe I am dense, but below is the command line that I have run to generate the JAR's and I am certain I am using the SNAPSHOT release (see below) as you have suggested. Any additional suggestions?: C:\ C:\Development\Archives\axis2-1.1.1-SNAPSHOT\bin\wsdl2java.bat -uri http://s http://s oap.search.msn.com/webservices.asmx?wsdl -o C:\t1 -s -sd -u -ssi Using AXIS2_HOME: C:\Development\Archives\axis2-1.1.1-SNAPSHOT Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_06 Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener ationEngine.java:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcepti on at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:52) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener ationEngine.java:177) ... 2 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:49) ... 3 more Caused by: org.apache.axis2.schema.SchemaCompilationException: Unsupported conte nt Simple Type List in {http://schemas.microsoft.com/MSNSearch/2005/09/fex}Searc http://schemas.microsoft.com/MSNSearch/2005/09/fex%7DSearc hFlags ! at org.apache.axis2.schema.SchemaCompiler.processSimpleType(SchemaCompil er.java:1868) at org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(Schema Compiler.java:1816) at
Axis2 Web Service
Hi there, With regards to Axis2 web services, does each client get their own instance when they execute code such as the following: StockQuoteServiceStub stub = new StockQuoteServiceStub (http://localhost:8080/axis2/services/StockQuoteService;); In my case all the clients seem to be using just the one instance. This is bad because if one client changes the value of a variable in the web service, then all the other clients see that changes as well. Is there any way I can avoid this? Also, say if my web service was not local, but on another machine in my network. How do I access it? I tried: StockQuoteServiceStub stub = new StockQuoteServiceStub (http://130.216.23.45:8080/axis2/services/StockQuoteService;); However it didnt work. Any help would be much appreciated. -- View this message in context: http://www.nabble.com/Axis2-Web-Service-tf3484692.html#a9727904 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]