Re: HTTP headers
I have fixed the docs and the headers and added a DEPRECATED note against AXIOM_SOAP_12 and AXIOM_SOAP_11 Samisa... Samisa Abeysinghe wrote: AXIOM_SOAP12 is defined as a member of enum with value 2. AXIOM_SOAP_12 is defined as a constant with value 1 This was the root cause of the problem. We cannot just delete the constant AXIOM_SOAP_12 and AXIOM_SOAP_11, rather deprecate it in the next release and then remove those later. Till then we can fix the problem by changing the value to represent the correct value and also fixing the doc. Samisa... Samisa Abeysinghe wrote: Kaushalye Kapuruge wrote: Stefano Pettini wrote: Thank you Sahan, so AXIS2C-639 can be closed. Can I suggest to change name of internal constants AXIS_SOAP_11 and _12 in axis2_options.h and axis2_stub.h to less misleading names? +1. Seems we don't use 'em anywhere. Do we? +1 form me too. And the axis2/C manual suggests that we have to use these constants, which is wrong... :( http://ws.apache.org/axis2/c/docs/axis2c_manual.html That is a doc bug :( Samisa... -- Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services Developers' Portal) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP headers
Samisa Abeysinghe wrote: AXIOM_SOAP12 is defined as a member of enum with value 2. AXIOM_SOAP_12 is defined as a constant with value 1 This was the root cause of the problem. We cannot just delete the constant AXIOM_SOAP_12 and AXIOM_SOAP_11, rather deprecate it in the next release and then remove those later. Till then we can fix the problem by changing the value to represent the correct value and also fixing the doc. Shouldn't axis2_options_get_soap_version() ideally be returning an axiom_soap_version? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring Axis2 client
Hi All, I am really new to Axis and am using Axis2 1.2. I have to use WS-Security on Axis2. I have deployed the service on server and enabled the service's security but do not know the exact steps to configure the client side for security. Am I supposed to configure a client repository and configure axis2.xml for client too? If yes, then how exactly is the security to be configured there? Can someone please guide me on the same or refer a tutorial or link on configuring the client of Axis2 or a sample web service with security enabled and all the xml sect required. Any help will be most appreciated. Code: Services.xml service name=MyService provider=java:RPC style=document use=literal description This is a sample Web Service with two operations, echo and ping. /description parameter name=ServiceClass locked=false userguide.example1.MyService /parameter parameter name=scope value=application / parameter name=allowedMethods value=echo / parameter name=allowedMethods value=ping / parameter name=OutflowSecurity action itemsTimestamp Signature Encrypt/items userserverKeystore/user passwordCallbackClass userguide.example1.PWCallback /passwordCallbackClass signaturePropFile out-server-signature.properties /signaturePropFile signatureKeyIdentifier SKIKeyIdentifier /signatureKeyIdentifier encryptionKeyIdentifier SKIKeyIdentifier /encryptionKeyIdentifier encryptionUserserverKeystore/encryptionUser /action /parameter parameter name=InflowSecurity action itemsEncrypt Signature Timestamp/items passwordCallbackClass userguide.example1.PWCallback /passwordCallbackClass signaturePropFile in-server-signature.properties /signaturePropFile /action /parameter operation name=echo messageReceiver class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver / actionMappingurn:echo/actionMapping /operation operation name=ping messageReceiver class=org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver / actionMappingurn:ping/actionMapping /operation /service in-server-signature.properties # Server trust store for checking/validating signatures of incoming messages org.apache.ws.security.crypto.provider=org.apache.ws.security.components.cry pto.Merlin org.apache.ws.security.crypto.merlin.keystore.type=jks org.apache.ws.security.crypto.merlin.keystore.password=server org.apache.ws.security.crypto.merlin.alias.password=server org.apache.ws.security.crypto.merlin.keystore.alias=serverTrustStore org.apache.ws.security.crypto.merlin.file=C:/Documents and Settings/ssawhney/serverTrustStore.keystore Client code: public class PingClient { private static EndpointReference targetEPR = new EndpointReference(http://localhost:8090/axis2/services/MyService;); public static void main(String[] args) { try { ServiceClient serviceClient = new ServiceClient(); Options options = new Options(); OMElement payload = ClientUtil.getEchoOMElement(); Properties props = new Properties(); // // props.put(UsernameToken.PASSWORD_TYPE, WSConstants.PASSWORD_TEXT); props.put(WSHandlerConstants.USER, importedServerCert); props.put(WSHandlerConstants.PW_CALLBACK_CLASS, userguide.example1.PWCallback); props.setProperty(WSHandlerConstants.ACTION, WSHandlerConstants.TIMESTAMP); props.setProperty(WSHandlerConstants.ACTION, WSHandlerConstants.SIGNATURE); props.setProperty(WSHandlerConstants.ACTION, WSHandlerConstants.ENCRYPT); props.setProperty(WSHandlerConstants.SIG_PROP_FILE, out-client-signature.properties); props.setProperty(WSHandlerConstants.SIG_KEY_ID, SKIKeyIdentifier); // // serviceClient.setOptions(options); options.setTo(targetEPR); options.setAction(urn:echo); // // OMElement result = serviceClient.sendReceive(payload);
Re: axis and UTF-8
Yes, I understand this, but it shouldn't be #xE9; #xE9 is a Latin representation that means that I won't be able to send eastern characters... It should be #xC3;#xA9 in UTF-8 representation. Alick Buckley a écrit : Hi, #xE9; is an entity http://www.w3.org/TR/REC-xml/#sec-references -Original Message- From: Frédéric Viollet [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 July 2007 2:04 AM To: axis-user@ws.apache.org Subject: axis and UTF-8 Hi everybody, here's my problem. Maybe someone will be able to help me. I'm trying to send accents to my web service. But on the client side, the generated XML contains a strange encoding of these characters. Here's an example: I try to send the 'é' character. The generated XML looks like this: POST /apmadmws HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.4 Host: zembra: Cache-Control: no-cache Pragma: no-cache SOAPAction: Content-Length: 919 Cookie: apmsession=xaNwgUevQncs9ztbdypjrlE1eN+q2Ybr ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body apmSet-Container xmlns=http://evidian.com/security/apmadmws; containerid guidd6a8d2b60475294b8a6221a47ad9507f/guid typeAPMOBJTYPEunknown/type /containerid attrs ns1:arr ns1:mod=APMATTMODREPLACE ns1:type=APMATTTYPESTRING xmlns:ns1=http://evidian.com/security/apmadmws; ns1:nameAPMATTNAMEAPMDISPLAYNAME/ns1:name ns1:value ns1:stringfvi/ns1:string /ns1:value /ns1:arr ns2:arr ns2:mod=APMATTMODREPLACE ns2:type=APMATTTYPESTRING xmlns:ns2=http://evidian.com/security/apmadmws; ns2:nameAPMATTNAMEDESCRIPTION/ns2:name ns2:value ns2:string#xE9;/ns2:string --- Here's the problem /ns2:value /ns2:arr arr xsi:nil=true/ /attrs /apmSet-Container /soapenv:Body /soapenv:Envelope The character is not UTF-8 encoded. It looks like the serialization is not done using UTF-8 encoding. Does anyone have an idea of what I could do? Thanks for your help. Fred begin:vcard fn;quoted-printable:Fr=C3=A9d=C3=A9ric Viollet n;quoted-printable:Viollet;Fr=C3=A9d=C3=A9ric org:Bull, Architect of an Open World (TM);Evidian S.A. adr;quoted-printable:;;Rue Jean Jaur=C3=A8s;Les Clayes Sous Bois;;78340;France email;internet:[EMAIL PROTECTED] title:Software Engineer tel;work:01 30 80 77 34 url:http://www.evidian.com - http://www.bull.com version:2.1 end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
call WS taking complexeType
Hi, how can i call web service taking complexetype using call.invoke(..) / try { Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress( new java.net.URL(uri) ); call.addParameter(new QName(http://www.intalio.com/;, start), new QName(http://www.w3.org/2001/XMLSchema;, string), String.class, ParameterMode.IN); call.setOperationName(method); call.setOperationStyle(org.apache.axis.constants.Style.DOCUMENT); call.setOperationUse(org.apache.axis.constants.Use.LITERAL); call.setReturnType(org.apache.axis.Constants.XSD_STRING); this.result = (String)call.invoke( obj ); System.out.println(Got result : + this.result); } catch(Exception Ex) { System.out.println(Ex.toString()); } / thanks -- View this message in context: http://www.nabble.com/call-WS-taking-complexeType-tf4066579.html#a11555203 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: Timeout Request Problem
Hi! Somebody can helps me?? I don't found information in your mailing list. It's a big problem, because we only are the client of this webservice and it's a big problem 10 of timeout. Thanks! Sergi - Mensaje original De: Sez Sez [EMAIL PROTECTED] Para: axis-user@ws.apache.org Enviado: martes, 10 de julio, 2007 12:15:45 Asunto: Timeout Request Problem Hi people! I am working with Axis 1.3. I am testing timeouts with my project. I tried to send a request to unknow Ip. Axis response timeout correct, in 30 seconds. I defined setTimeout(3); in the Stub Class. But, I write a small server, that read all request and it doesn't response never. I run my application with axis, and the timeout was 10 minutes! Where can I change this request timeout??? Thanks! Sergi __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! http://advision.webevents.yahoo.com/reto/entretenimiento.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: axis and UTF-8
What do the bytes look like 'on the wire', using Ethereal, say? -Original Message- From: Frédéric Viollet [mailto:[EMAIL PROTECTED] Sent: 12 July 2007 08:40 To: axis-user@ws.apache.org Subject: Re: axis and UTF-8 Yes, I understand this, but it shouldn't be #xE9; #xE9 is a Latin representation that means that I won't be able to send eastern characters... It should be #xC3;#xA9 in UTF-8 representation. Alick Buckley a écrit : Hi, #xE9; is an entity http://www.w3.org/TR/REC-xml/#sec-references -Original Message- From: Frédéric Viollet [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 July 2007 2:04 AM To: axis-user@ws.apache.org Subject: axis and UTF-8 Hi everybody, here's my problem. Maybe someone will be able to help me. I'm trying to send accents to my web service. But on the client side, the generated XML contains a strange encoding of these characters. Here's an example: I try to send the 'é' character. The generated XML looks like this: POST /apmadmws HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.4 Host: zembra: Cache-Control: no-cache Pragma: no-cache SOAPAction: Content-Length: 919 Cookie: apmsession=xaNwgUevQncs9ztbdypjrlE1eN+q2Ybr ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body apmSet-Container xmlns=http://evidian.com/security/apmadmws; containerid guidd6a8d2b60475294b8a6221a47ad9507f/guid typeAPMOBJTYPEunknown/type /containerid attrs ns1:arr ns1:mod=APMATTMODREPLACE ns1:type=APMATTTYPESTRING xmlns:ns1=http://evidian.com/security/apmadmws; ns1:nameAPMATTNAMEAPMDISPLAYNAME/ns1:name ns1:value ns1:stringfvi/ns1:string /ns1:value /ns1:arr ns2:arr ns2:mod=APMATTMODREPLACE ns2:type=APMATTTYPESTRING xmlns:ns2=http://evidian.com/security/apmadmws; ns2:nameAPMATTNAMEDESCRIPTION/ns2:name ns2:value ns2:string#xE9;/ns2:string --- Here's the problem /ns2:value /ns2:arr arr xsi:nil=true/ /attrs /apmSet-Container /soapenv:Body /soapenv:Envelope The character is not UTF-8 encoded. It looks like the serialization is not done using UTF-8 encoding. Does anyone have an idea of what I could do? Thanks for your help. Fred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error Running Client
Hi I am new to axis2, when i am trying to run code from the following URL http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=1 When i compile the java client, it says that it can't find OM Libraries import org.apache.axiom.om.OMAbstractFactory; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:2: package org.apache.axiom.om does not exist import org.apache.axiom.om.OMElement; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:3: package org.apache.axiom.om does not exist import org.apache.axiom.om.OMFactory; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:4: package org.apache.axiom.om does not exist import org.apache.axiom.om.OMNamespace; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:5: package org.apache.axis2.addressing does not exist import org.apache.axis2.addressing.EndpointReference; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:6: package org.apache.axis2.client does not exist import org.apache.axis2.client.Options; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:7: package org.apache.axis2.client does not exist import org.apache.axis2.client.ServiceClient; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:25: cannot find symbol symbol : class OMElement location: class Scenario1Client public static OMElement createPayLoad() { ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12: cannot find symbol symbol : class ServiceClient location: class Scenario1Client ServiceClient client = new ServiceClient(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12: cannot find symbol symbol : class ServiceClient location: class Scenario1Client ServiceClient client = new ServiceClient(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14: cannot find symbol symbol : class Options location: class Scenario1Client Options opts = new Options(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14: cannot find symbol symbol : class Options location: class Scenario1Client Options opts = new Options(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:16: cannot find symbol symbol : class EndpointReference location: class Scenario1Client opts.setTo(new EndpointReference( http://127.0.0.1:8080/axis2/services/MyService;)); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:20: cannot find symbol symbol : class OMElement location: class Scenario1Client OMElement res = client.sendReceive(createPayLoad()); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26: cannot find symbol symbol : class OMFactory location: class Scenario1Client OMFactory fac = OMAbstractFactory.getOMFactory(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26: cannot find symbol symbol : variable OMAbstractFactory location: class Scenario1Client OMFactory fac = OMAbstractFactory.getOMFactory(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:27: cannot find symbol symbol : class OMNamespace location: class Scenario1Client OMNamespace omNs = fac.createOMNamespace( http://ws.apache.org/axis2/xsd;, ns1); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:28: cannot find symbol symbol : class OMElement location: class Scenario1Client OMElement method = fac.createOMElement(echo, omNs); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:29: cannot find symbol symbol : class OMElement location: class Scenario1Client OMElement value = fac.createOMElement(value, omNs); ^ 19 errors Can anyone tell me where I can download this API, I am using tomcat6.0.13and axis2 1.2 war files on fedora. Someone suggested that I should install axis2 source, will that solve the problem. Thanks
MTOM attachment handling
Hi, I'm using Axis2. I was wondering if you dont turn on the automatic attachment cache, does this affect how the mtom binary stream is handled by Axis? I mean does it maybe hold reading the MIME parts until user appoints a stream to write this data to or does it cache the whole thing to memory? Not sure if it matters, but in my wsdl from which all the classes are generated from there is a custom complex type which holds some normal types such as s:string / s:int and then the s:b64binary. There is no seperate wrapper element for the binary as i think i saw in a example. I access the data through a DataHandler. Thanks, Igor
Re: [Axis2]How to invoke web service from another
I think there are bugs in Axis. I tested on POJO calling another SOAP. Then I get exception like this; == java.util.MissingResourceException: Can't find resource for bundle org.apache.ax is2.i18n.ProjectResourceBundle, key outboundNoAction at java.util.ResourceBundle.getObject(ResourceBundle.java:386) at java.util.ResourceBundle.getString(ResourceBundle.java:346) at org.apache.axis2.i18n.MessageBundle.getMessage(MessageBundle.java:191) === I tested from Servelet container after adding jars to servelet lib. It worked fine. But not from Axis container per se. I will contact SAAJ developer about this problem. regards. -- View this message in context: http://www.nabble.com/-Axis2-How-to-invoke-web-service-from-another-tf4055013.html#a11556679 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: MTOM attachment handling
I'm using Axis2. I was wondering if you dont turn on the automatic attachment cache, does this affect how the mtom binary stream is handled by Axis? Not much...If it's enabled the attachment will be cached in a file, if not it'll be cached in memory.. I mean does it maybe hold reading the MIME parts until user appoints a stream to write this data to or does it cache the whole thing to memory? In to memory.. Not sure if it matters, but in my wsdl from which all the classes are generated from there is a custom complex type which holds some normal types such as s:string / s:int and then the s:b64binary. There is no seperate wrapper element for the binary as i think i saw in a example. I access the data through a DataHandler. Are you facing any problems with this combination.. thanks, Thilina Thanks, Igor -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Running Client
Hi, I think you can find the required jars in axis2 1.2 war's WEB-INF/lib folder. Add those jars to Java classpath. On 7/12/07, Fatima Shabbir [EMAIL PROTECTED] wrote: Hi I am new to axis2, when i am trying to run code from the following URL http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=1 When i compile the java client, it says that it can't find OM Libraries import org.apache.axiom.om.OMAbstractFactory; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:2: package org.apache.axiom.om does not exist import org.apache.axiom.om.OMElement; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:3: package org.apache.axiom.om does not exist import org.apache.axiom.om.OMFactory; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:4: package org.apache.axiom.om does not exist import org.apache.axiom.om.OMNamespace; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:5: package org.apache.axis2.addressing does not exist import org.apache.axis2.addressing.EndpointReference; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:6: package org.apache.axis2.client does not exist import org.apache.axis2.client.Options; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:7: package org.apache.axis2.client does not exist import org.apache.axis2.client.ServiceClient; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:25: cannot find symbol symbol : class OMElement location: class Scenario1Client public static OMElement createPayLoad() { ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12: cannot find symbol symbol : class ServiceClient location: class Scenario1Client ServiceClient client = new ServiceClient(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12: cannot find symbol symbol : class ServiceClient location: class Scenario1Client ServiceClient client = new ServiceClient(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14: cannot find symbol symbol : class Options location: class Scenario1Client Options opts = new Options(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14: cannot find symbol symbol : class Options location: class Scenario1Client Options opts = new Options(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:16: cannot find symbol symbol : class EndpointReference location: class Scenario1Client opts.setTo(new EndpointReference(http://127.0.0.1:8080/axis2/services/MyService )); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:20: cannot find symbol symbol : class OMElement location: class Scenario1Client OMElement res = client.sendReceive(createPayLoad()); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26: cannot find symbol symbol : class OMFactory location: class Scenario1Client OMFactory fac = OMAbstractFactory.getOMFactory(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26: cannot find symbol symbol : variable OMAbstractFactory location: class Scenario1Client OMFactory fac = OMAbstractFactory.getOMFactory(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:27: cannot find symbol symbol : class OMNamespace location: class Scenario1Client OMNamespace omNs = fac.createOMNamespace( http://ws.apache.org/axis2/xsd;, ns1); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:28: cannot find symbol symbol : class OMElement location: class Scenario1Client OMElement method = fac.createOMElement (echo, omNs); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:29: cannot find symbol symbol : class OMElement location: class Scenario1Client OMElement value = fac.createOMElement(value, omNs); ^ 19 errors Can anyone tell me where I can download this API, I am using tomcat6.0.13and axis2 1.2 war files on fedora. Someone suggested that I should install axis2 source, will that solve the problem. Thanks
RE: MTOM attachment handling
Thanks for your help. How to get a handle to Axis' file cache, to the current file especially. Is the cache file guaranteed to have been fully written and closed when my service skeleton implementation code will be run? From my skeleton impl: FileOutputStream fos = new FileOutputStream(file); MTOMrequest.getDataHandler().writeTo(fos); So what happens here, will I actually be writing the data to disk a second time? -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: 12. heinäkuuta 2007 12:52 To: axis-user@ws.apache.org Subject: Re: MTOM attachment handling I'm using Axis2. I was wondering if you dont turn on the automatic attachment cache, does this affect how the mtom binary stream is handled by Axis? Not much...If it's enabled the attachment will be cached in a file, if not it'll be cached in memory.. I mean does it maybe hold reading the MIME parts until user appoints a stream to write this data to or does it cache the whole thing to memory? In to memory.. Not sure if it matters, but in my wsdl from which all the classes are generated from there is a custom complex type which holds some normal types such as s:string / s:int and then the s:b64binary. There is no seperate wrapper element for the binary as i think i saw in a example. I access the data through a DataHandler. Are you facing any problems with this combination.. thanks, Thilina Thanks, Igor -- 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]
Re: Configuring Axis2 client
Hi, There are two ways to configure security - one method is to use simple configurations and the other is to use Policy. Simple configurations are being deprecated, so better to use Policy. Policy samples are available in Rampart Distribution's sample/policy directory. There are four samples. Cheers, Dimuthu On Thu, 2007-07-12 at 12:03 +0530, Shivani Sawhney wrote: Hi All, I am really new to Axis and am using Axis2 1.2. I have to use WS-Security on Axis2. I have deployed the service on server and enabled the service's security but do not know the exact steps to configure the client side for security. Am I supposed to configure a client repository and configure axis2.xml for client too? If yes, then how exactly is the security to be configured there? Can someone please guide me on the same or refer a tutorial or link on configuring the client of Axis2 or a sample web service with security enabled and all the xml sect required. Any help will be most appreciated. Code: Services.xml service name=MyService provider=java:RPC style=document use=literal description This is a sample Web Service with two operations, echo and ping. /description parameter name=ServiceClass locked=false userguide.example1.MyService /parameter parameter name=scope value=application / parameter name=allowedMethods value=echo / parameter name=allowedMethods value=ping / parameter name=OutflowSecurity action itemsTimestamp Signature Encrypt/items userserverKeystore/user passwordCallbackClass userguide.example1.PWCallback /passwordCallbackClass signaturePropFile out-server-signature.properties /signaturePropFile signatureKeyIdentifier SKIKeyIdentifier /signatureKeyIdentifier encryptionKeyIdentifier SKIKeyIdentifier /encryptionKeyIdentifier encryptionUserserverKeystore/encryptionUser /action /parameter parameter name=InflowSecurity action itemsEncrypt Signature Timestamp/items passwordCallbackClass userguide.example1.PWCallback /passwordCallbackClass signaturePropFile in-server-signature.properties /signaturePropFile /action /parameter operation name=echo messageReceiver class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver / actionMappingurn:echo/actionMapping /operation operation name=ping messageReceiver class=org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver / actionMappingurn:ping/actionMapping /operation /service in-server-signature.properties # Server trust store for checking/validating signatures of incoming messages org.apache.ws.security.crypto.provider=org.apache.ws.security.components.cry pto.Merlin org.apache.ws.security.crypto.merlin.keystore.type=jks org.apache.ws.security.crypto.merlin.keystore.password=server org.apache.ws.security.crypto.merlin.alias.password=server org.apache.ws.security.crypto.merlin.keystore.alias=serverTrustStore org.apache.ws.security.crypto.merlin.file=C:/Documents and Settings/ssawhney/serverTrustStore.keystore Client code: public class PingClient { private static EndpointReference targetEPR = new EndpointReference(http://localhost:8090/axis2/services/MyService;); public static void main(String[] args) { try { ServiceClient serviceClient = new ServiceClient(); Options options = new Options(); OMElement payload = ClientUtil.getEchoOMElement(); Properties props = new Properties(); // // props.put(UsernameToken.PASSWORD_TYPE, WSConstants.PASSWORD_TEXT); props.put(WSHandlerConstants.USER, importedServerCert); props.put(WSHandlerConstants.PW_CALLBACK_CLASS, userguide.example1.PWCallback); props.setProperty(WSHandlerConstants.ACTION, WSHandlerConstants.TIMESTAMP); props.setProperty(WSHandlerConstants.ACTION, WSHandlerConstants.SIGNATURE); props.setProperty(WSHandlerConstants.ACTION, WSHandlerConstants.ENCRYPT);
Re: Error Running Client
Hi I have added the jar files to the Java Class path. When i compile it using javac, there is no error. But now when i do java Scenario1Clinet it gives me this Exception in thread main java.lang.NoSuchMethodError: method javax.xml.stream.XMLStreamReader.getAttributeLocalName with signature (I)Ljava.lang.String; was not found. at org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes( StAXBuilder.java:160) at org.apache.axiom.om.impl.builder.StAXOMBuilder.populateOMElement( StAXOMBuilder.java:227) at org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement( StAXOMBuilder.java:253) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java :135) at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement( OMDocumentImpl.java:127) at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement( StAXOMBuilder.java:328) at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:559) at org.apache.axis2.deployment.DescriptionBuilder.buildOM( DescriptionBuilder.java:93) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig( AxisConfigBuilder.java:76) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration (DeploymentEngine.java:642) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration( FileSystemConfigurator.java:105) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext (ConfigurationContextFactory.java:60) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem (ConfigurationContextFactory.java:174) at org.apache.axis2.client.ServiceClient.initializeTransports( ServiceClient.java:211) at org.apache.axis2.client.ServiceClient.configureServiceClient( ServiceClient.java:140) at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:134) at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:230) at Scenario1Client.main(Scenario1Client.java:12) I am unable to figure out the problem If anyone can help thanks On 7/12/07, Upul Godage [EMAIL PROTECTED] wrote: Hi, I think you can find the required jars in axis2 1.2 war's WEB-INF/lib folder. Add those jars to Java classpath. On 7/12/07, Fatima Shabbir [EMAIL PROTECTED] wrote: Hi I am new to axis2, when i am trying to run code from the following URL http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=1 When i compile the java client, it says that it can't find OM Libraries import org.apache.axiom.om.OMAbstractFactory; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:2:package org.apache.axiom.om does not exist import org.apache.axiom.om.OMElement; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:3:package org.apache.axiom.om does not exist import org.apache.axiom.om.OMFactory; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:4:package org.apache.axiom.om does not exist import org.apache.axiom.om.OMNamespace; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:5:package org.apache.axis2.addressing does not exist import org.apache.axis2.addressing.EndpointReference; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:6:package org.apache.axis2.client does not exist import org.apache.axis2.client.Options; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:7:package org.apache.axis2.client does not exist import org.apache.axis2.client.ServiceClient; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:25:cannot find symbol symbol : class OMElement location: class Scenario1Client public static OMElement createPayLoad() { ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12:cannot find symbol symbol : class ServiceClient location: class Scenario1Client ServiceClient client = new ServiceClient(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12:cannot find symbol symbol : class ServiceClient location: class Scenario1Client ServiceClient client = new ServiceClient(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14:cannot find symbol symbol : class Options location: class Scenario1Client Options opts = new Options(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14:cannot find symbol symbol : class Options location: class Scenario1Client
Re: Axis2: RESTful implementation with Axis2
Hi, I tried with the below urls and got different responses. http://localhost:8080/axis2/services/WeatherService/Weather/Denmark/Herning Exceptionorg.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found is /axis2/services/WeatherService/Weather/Denmark/Herning and the WSA Action = null at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:85) at org.apache.axis2.engine.Phase.invoke(Phase.java:308) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125) at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:119) at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:229) at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:256) at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:163) at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:85) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:803) /Exception http://localhost:8080/axis2/services/WeatherService/getWeather Exceptionjava.lang.StringIndexOutOfBoundsException at java.lang.StringBuffer.substring(StringBuffer.java:881) at org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersUsingHttpLocation(XFormURLEncodedBuilder.java:284) at org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:99) at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:150) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:105) at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:101) at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:229) at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:256) at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:163) at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:85) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:803) /Exception Regards Multi-Support A/S Torben Riis Phone +45 96 600 600, Fax +45 96 600 601 E-mail: [EMAIL PROTECTED] http://www.multi-support.com keith chapman [EMAIL PROTECTED] ail.com To axis-user@ws.apache.org 12-07-2007 11:31 cc Subject Please respond to Re: Axis2: RESTful implementation [EMAIL PROTECTED] with Axis2 he.org You should be able to, provided that the system has the relavant data to return. Did you get back any error or anyhing as such? Thanks, Keith. On 7/12/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Keith, I tried 1.3 RC1, and with success. Axis2 now starts without any errors. But I can't activate the REST service from an url. Should I not be able to reach it with the following url? http://localhost:8080/axis2/services/WeatherService/Weather/Denmark/Herning Or have I misunderstood the new HTTPBinding. operation ref=tns:getWeather whttp:method=GET whttp:location= WeatherServiceHTTPEndpoint/Weather/{country}/{city}/ I have attached my generated code if it can be any help. (See attached file: WeatherService.zip) Regards Multi-Support A/S
Re: Error HTTP STATUS 500
Ho I get the following error when i try to run axis2. It was working fine a few minutes ago. I have restarted the tomcat but it doesn't seem to make any difference. Ay help will be appreciated HTTP Status 500 - -- *type* Exception report *message* *description* *The server encountered an internal error () that prevented it from fulfilling this request.* *exception* org.apache.jasper.JasperException: java.lang.NullPointerException org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:78) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) *root cause* java.lang.NullPointerException org.apache.jsp.axis2_002dweb.include.httpbase_jsp.jspInit(httpbase_jsp.java:22) org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:51) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:78) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) *note* LOG FILE CONTAINS Jul 12, 2007 12:06:43 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:06:44 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Jul 12, 2007 12:06:44 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:06:52 PM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre/lib/amd64/server:/usr/lib/jvm/java- 1.5.0-sun-1.5.0.10/jre/lib/amd64:/usr/lib/jvm/java-1.5.0-sun-1.5.0.10 /jre/../lib/amd64:/var/oracle/oracle/product/10.2.0/client_1/lib Jul 12, 2007 12:06:52 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:06:52 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1221 ms Jul 12, 2007 12:06:52 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 12, 2007 12:06:52 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.13 Jul 12, 2007 12:06:52 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive sample.war Jul 12, 2007 12:06:53 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive axis2.war Jul 12, 2007 12:06:54 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:06:54 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jul 12, 2007 12:06:54 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/23 config=null Jul 12, 2007 12:06:54 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 2189 ms Jul 12, 2007 12:11:11 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:11:11 PM org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed java.net.SocketException: Network is unreachable at java.net.PlainSocketImpl.socketConnect(Native Method)
Re: Error HTTP STATUS 500
Pls redeploy the war and see whether you see different result ? Thanks Deepal Fatima Shabbir wrote: Ho I get the following error when i try to run axis2. It was working fine a few minutes ago. I have restarted the tomcat but it doesn't seem to make any difference. Ay help will be appreciated HTTP Status 500 - *type* Exception report *message* *description* _The server encountered an internal error () that prevented it from fulfilling this request._ *exception* org.apache.jasper.JasperException: java.lang.NullPointerException org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java :803) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:78) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java :70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java :320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) *root cause* java.lang.NullPointerException org.apache.jsp.axis2_002dweb.include.httpbase_jsp.jspInit (httpbase_jsp.java:22) org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:51) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:329) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java :803) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:78) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java :70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java :320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) *note* LOG FILE CONTAINS Jul 12, 2007 12:06:43 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:06:44 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Jul 12, 2007 12:06:44 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:06:52 PM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre/lib/amd64/server:/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre/lib/amd64:/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre/../lib/amd64:/var/oracle/oracle/product/10.2.0/client_1/lib Jul 12, 2007 12:06:52 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:06:52 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1221 ms Jul 12, 2007 12:06:52 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 12, 2007 12:06:52 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.13 Jul 12, 2007 12:06:52 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive sample.war Jul 12, 2007 12:06:53 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive axis2.war Jul 12, 2007 12:06:54 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:06:54 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jul 12, 2007 12:06:54 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/23 config=null Jul 12, 2007 12:06:54 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 2189 ms Jul 12, 2007 12:11:11 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:11:11 PM
Re: Error Running Client
What is the Java version you are using? On 7/12/07, Fatima Shabbir [EMAIL PROTECTED] wrote: Hi I have added the jar files to the Java Class path. When i compile it using javac, there is no error. But now when i do java Scenario1Clinet it gives me this Exception in thread main java.lang.NoSuchMethodError: method javax.xml.stream.XMLStreamReader.getAttributeLocalName with signature (I)Ljava.lang.String; was not found. at org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes( StAXBuilder.java :160) at org.apache.axiom.om.impl.builder.StAXOMBuilder.populateOMElement( StAXOMBuilder.java:227) at org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement( StAXOMBuilder.java:253) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next ( StAXOMBuilder.java:135) at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement( OMDocumentImpl.java:127) at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement( StAXOMBuilder.java:328) at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:559) at org.apache.axis2.deployment.DescriptionBuilder.buildOM( DescriptionBuilder.java:93) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig ( AxisConfigBuilder.java:76) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration( DeploymentEngine.java:642) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration( FileSystemConfigurator.java :105) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext (ConfigurationContextFactory.java:60) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem( ConfigurationContextFactory.java:174) at org.apache.axis2.client.ServiceClient.initializeTransports( ServiceClient.java:211) at org.apache.axis2.client.ServiceClient.configureServiceClient( ServiceClient.java:140) at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:134) at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:230) at Scenario1Client.main(Scenario1Client.java:12) I am unable to figure out the problem If anyone can help thanks On 7/12/07, Upul Godage [EMAIL PROTECTED] wrote: Hi, I think you can find the required jars in axis2 1.2 war's WEB-INF/lib folder. Add those jars to Java classpath. On 7/12/07, Fatima Shabbir [EMAIL PROTECTED] wrote: Hi I am new to axis2, when i am trying to run code from the following URL http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=1 When i compile the java client, it says that it can't find OM Libraries import org.apache.axiom.om.OMAbstractFactory; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:2:package org.apache.axiom.om does not exist import org.apache.axiom.om.OMElement; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:3:package org.apache.axiom.om does not exist import org.apache.axiom.om.OMFactory; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:4:package org.apache.axiom.om does not exist import org.apache.axiom.om.OMNamespace; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:5:package org.apache.axis2.addressing does not exist import org.apache.axis2.addressing.EndpointReference; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:6:package org.apache.axis2.client does not exist import org.apache.axis2.client.Options; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:7:package org.apache.axis2.client does not exist import org.apache.axis2.client.ServiceClient; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:25:cannot find symbol symbol : class OMElement location: class Scenario1Client public static OMElement createPayLoad() { ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12:cannot find symbol symbol : class ServiceClient location: class Scenario1Client ServiceClient client = new ServiceClient(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12:cannot find symbol symbol : class ServiceClient location: class Scenario1Client ServiceClient client = new ServiceClient(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14:cannot find symbol symbol : class Options location: class Scenario1Client Options opts = new Options();
Re: Error Running Client
i am using java 1.5.0 On 7/12/07, Upul Godage [EMAIL PROTECTED] wrote: What is the Java version you are using? On 7/12/07, Fatima Shabbir [EMAIL PROTECTED] wrote: Hi I have added the jar files to the Java Class path. When i compile it using javac, there is no error. But now when i do java Scenario1Clinet it gives me this Exception in thread main java.lang.NoSuchMethodError: method javax.xml.stream.XMLStreamReader.getAttributeLocalName with signature (I)Ljava.lang.String; was not found. at org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes( StAXBuilder.java :160) at org.apache.axiom.om.impl.builder.StAXOMBuilder.populateOMElement( StAXOMBuilder.java:227) at org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement( StAXOMBuilder.java:253) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next ( StAXOMBuilder.java:135) at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement( OMDocumentImpl.java:127) at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement( StAXOMBuilder.java:328) at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:559) at org.apache.axis2.deployment.DescriptionBuilder.buildOM( DescriptionBuilder.java:93) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig ( AxisConfigBuilder.java:76) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration( DeploymentEngine.java:642) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration( FileSystemConfigurator.java :105) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext (ConfigurationContextFactory.java:60) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem( ConfigurationContextFactory.java:174) at org.apache.axis2.client.ServiceClient.initializeTransports( ServiceClient.java:211) at org.apache.axis2.client.ServiceClient.configureServiceClient( ServiceClient.java:140) at org.apache.axis2.client.ServiceClient.init(ServiceClient.java :134) at org.apache.axis2.client.ServiceClient.init(ServiceClient.java :230) at Scenario1Client.main(Scenario1Client.java:12) I am unable to figure out the problem If anyone can help thanks On 7/12/07, Upul Godage [EMAIL PROTECTED] wrote: Hi, I think you can find the required jars in axis2 1.2 war's WEB-INF/lib folder. Add those jars to Java classpath. On 7/12/07, Fatima Shabbir [EMAIL PROTECTED] wrote: Hi I am new to axis2, when i am trying to run code from the following URL http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=1 When i compile the java client, it says that it can't find OM Libraries import org.apache.axiom.om.OMAbstractFactory; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:2:package org.apache.axiom.om does not exist import org.apache.axiom.om.OMElement; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:3:package org.apache.axiom.om does not exist import org.apache.axiom.om.OMFactory; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:4:package org.apache.axiom.om does not exist import org.apache.axiom.om.OMNamespace; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:5:package org.apache.axis2.addressing does not exist import org.apache.axis2.addressing.EndpointReference; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:6:package org.apache.axis2.client does not exist import org.apache.axis2.client.Options; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:7:package org.apache.axis2.client does not exist import org.apache.axis2.client.ServiceClient; ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:25:cannot find symbol symbol : class OMElement location: class Scenario1Client public static OMElement createPayLoad() { ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12:cannot find symbol symbol : class ServiceClient location: class Scenario1Client ServiceClient client = new ServiceClient(); ^ /root/Desktop/invoking- web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12:cannot find symbol symbol : class ServiceClient location: class Scenario1Client ServiceClient client = new ServiceClient(); ^
Sessions
Hi, I've been stuck for a long time with this, searching form information and didn't find the information. I wanted to know how does Axis2 manage timeouts. I though that SessionContext was the one who that but I couldn't get any information to confirm that and don't even know how to manage it. I see in the axis2.xml the timeout interval set as 30 seconds but even though passing a lot of time waiting for it, I never reached that condition. I decided to build my own session control but I don't know which Axis2 resources do I have to release or which methods do I have to call to do that when I want to end a session. Could anybody help me?? Regards, Jorge Fernández - Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!.
Re: Error HTTP STATUS 500
Thanks. Its working now. On 7/12/07, Deepal Jayasinghe [EMAIL PROTECTED] wrote: Pls redeploy the war and see whether you see different result ? Thanks Deepal Fatima Shabbir wrote: Ho I get the following error when i try to run axis2. It was working fine a few minutes ago. I have restarted the tomcat but it doesn't seem to make any difference. Ay help will be appreciated HTTP Status 500 - *type* Exception report *message* *description* _The server encountered an internal error () that prevented it from fulfilling this request._ *exception* org.apache.jasper.JasperException: java.lang.NullPointerException org.apache.jasper.servlet.JspServletWrapper.handleJspException( JspServletWrapper.java:541) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java :803) org.apache.jasper.runtime.JspRuntimeLibrary.include( JspRuntimeLibrary.java:968) org.apache.jsp.axis2_002dweb.index_jsp._jspService (index_jsp.java:78) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java :70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:393) org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java :320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) *root cause* java.lang.NullPointerException org.apache.jsp.axis2_002dweb.include.httpbase_jsp.jspInit (httpbase_jsp.java:22) org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:51) org.apache.jasper.servlet.JspServletWrapper.getServlet( JspServletWrapper.java:159) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:329) org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java :803) org.apache.jasper.runtime.JspRuntimeLibrary.include( JspRuntimeLibrary.java:968) org.apache.jsp.axis2_002dweb.index_jsp._jspService (index_jsp.java:78) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java :70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:393) org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java :320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) *note* LOG FILE CONTAINS Jul 12, 2007 12:06:43 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:06:44 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Jul 12, 2007 12:06:44 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:06:52 PM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.5.0-sun-1.5.0.10 /jre/lib/amd64/server:/usr/lib/jvm/java-1.5.0-sun-1.5.0.10 /jre/lib/amd64:/usr/lib/jvm/java-1.5.0-sun-1.5.0.10 /jre/../lib/amd64:/var/oracle/oracle/product/10.2.0/client_1/lib Jul 12, 2007 12:06:52 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:06:52 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1221 ms Jul 12, 2007 12:06:52 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 12, 2007 12:06:52 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.13 Jul 12, 2007 12:06:52 PM org.apache.catalina.startup.HostConfigdeployWAR INFO: Deploying web application archive sample.war Jul 12, 2007 12:06:53 PM org.apache.catalina.startup.HostConfigdeployWAR INFO: Deploying web application archive axis2.war Jul 12, 2007 12:06:54 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jul 12, 2007 12:06:54 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jul 12, 2007 12:06:54 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/23 config=null Jul 12, 2007 12:06:54 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 2189 ms Jul 12, 2007 12:11:11 PM
Re: Axis2: RESTful implementation with Axis2
[EMAIL PROTECTED] wrote: Should I not be able to reach it with the following url? http://localhost:8080/axis2/services/WeatherService/Weather/Denmark/Herning Or have I misunderstood the new HTTPBinding. operation ref=tns:getWeather whttp:method=GET whttp:location= WeatherServiceHTTPEndpoint/Weather/{country}/{city}/ These two statements are not matching .. you've put WeatherService*HTTPEndpoint* in the whttp:location attribute but the URL doesn't have that. Sanjiva. -- Sanjiva Weerawarana, Ph.D. Founder Director; Lanka Software Foundation; http://www.opensource.lk/ Founder, Chairman CEO; WSO2, Inc.; http://www.wso2.com/ Director; Open Source Initiative; http://www.opensource.org/ Member; Apache Software Foundation; http://www.apache.org/ Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Locating Hibernate resources in AAR
You need to deploy the aar expanded. Just do a jar xf myaar.aar in the services dir , then remove the aar. From there you'll get a rela path you can access. You don't need any axis2 jars in the aar. Just follow the tutorial as is. To put spring in debug mode, the way I do it is to put any recent log4j jar in the WEB-INF/lib dir, then copy and paste the following in the default WEB-INF/classes/log4j.properties: ##INICIO DOS APPENDERs #---# #---# # console2 será um appender de console que exibirá todas as propriedades log4j.appender.console2=org.apache.log4j.ConsoleAppender log4j.appender.console2.layout=org.apache.log4j.PatternLayout log4j.appender.console2.layout.ConversionPattern=%d [%c] - %m%n #---# #INICIO DO ROOTlOGGER log4j.rootLogger=DEBUG, console2 ###FIM DO ROOTlOGGER #INICIO DAS DECLARAÇÕES DE CATEGORIAS log4j.category.org.apache.axis2=DEBUG, console2 log4j.category.org.springframework=DEBUG, console2 That'll put both spring and axis2 in DEBUG, puttting the logs in catalina.out in the tomcat case. HTH, Robert On 7/11/07, Brian Kates [EMAIL PROTECTED] wrote: I see that this is a common problem and I too am struggling with it. I'm trying to locate Hibernate mapping files as defined in my applicationContext. I have one mapping file, called TransferScenario. It is located at /domain/TransferScenario inside the AAR. In my applicationContext, I am looking for it at the following location: property name=mappingResources list valueclasspath*:**/domain/TransferScenario.hbm.xml/value /list /property I have tried various permutations of the above with no luck. I still get the FileNotFoundException. Any ideas? In the documentation it suggests turning the logging to DEBUG. How do I do that? Where is the logger? I'm curious, which jars have to be inside of the AAR? I only have my project jars (i.e. Spring, Hibernate, Oracle, etc) inside of the AAR. Do I need any of the AXIS2 jars? If I decide to deploy my service as a WAR, what is the structure of the WAR file? I assume it's: /WEB-INF/classes/... /WEB-INF/lib/... /WEB-INF/web.xml /WEB-INF/applicationContext /WEB-INF/services.xml Thanks. -Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MTOM attachment handling
To answer my own question: requestObject.getDatahandler().getName() -- name of cache file. Using the xsd:base64Binary and resulting axis mapped DataHandler -object seems to work fine. From my skeleton impl: FileOutputStream fos = new FileOutputStream(file); MTOMrequest.getDataHandler().writeTo(fos); So what happens here, will I actually be writing the data to disk a second time? In this case yes, it would be a bad idea having enabled the file-cache in axis2.xml. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Timeout Request Problem
Are you running in a container? The 10 mins may be some sort fo default http response timeout in your container, or http server. Can you give us more information, such as, the exact layout of what your doing? I believe the setTimeout(3) is for the clientside, not the server side. It is how long the client will wait for a response before giving up. But I think the serverside can also have a timeout, else it drops back to the default timeout (which I suspect is the 10 mins your seeing). (Not sure why the client didn't timoeut at 3ms first). This is just a guess.. -jeff -Original Message- From: Sez Sez [mailto:[EMAIL PROTECTED] Sent: Thursday, July 12, 2007 3:56 AM To: axis-user@ws.apache.org Subject: Re: Timeout Request Problem Hi! Somebody can helps me?? I don't found information in your mailing list. It's a big problem, because we only are the client of this webservice and it's a big problem 10 of timeout. Thanks! Sergi - Mensaje original De: Sez Sez [EMAIL PROTECTED] Para: axis-user@ws.apache.org Enviado: martes, 10 de julio, 2007 12:15:45 Asunto: Timeout Request Problem Hi people! I am working with Axis 1.3. I am testing timeouts with my project. I tried to send a request to unknow Ip. Axis response timeout correct, in 30 seconds. I defined setTimeout(3); in the Stub Class. But, I write a small server, that read all request and it doesn't response never. I run my application with axis, and the timeout was 10 minutes! Where can I change this request timeout??? Thanks! Sergi __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! http://advision.webevents.yahoo.com/reto/entretenimiento.html - 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: call WS taking complexeType
Your supposed to let Axis create the serializer and deserialzer classes, and then use the Stub class to make the calls, It's a lot easier than the DII way your using. But, to answer your question, assuming your complexType can be mapped to, say, a PurchaseOrder Java class, for example, then you would: .. PurchaseOrder po = new PurchaseOrder(NCC-1701, Calendar.getInstance(), new Address(Sam Ruby, Home, Raleigh, NC, 27676)); String receipt = (String) call.invoke( new Object[] {po} ); ... So, you essentially build your Java object and place it into a new array of type Object. -jeff -Original Message- From: zakaria ghandour [mailto:[EMAIL PROTECTED] Sent: Thursday, July 12, 2007 3:49 AM To: axis-user@ws.apache.org Subject: call WS taking complexeType Hi, how can i call web service taking complexetype using call.invoke(..) / try { Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress( new java.net.URL(uri) ); call.addParameter(new QName(http://www.intalio.com/;, start), new QName(http://www.w3.org/2001/XMLSchema;, string), String.class, ParameterMode.IN); call.setOperationName(method); call.setOperationStyle(org.apache.axis.constants.Style.DOCUMENT); call.setOperationUse(org.apache.axis.constants.Use.LITERAL); call.setReturnType(org.apache.axis.Constants.XSD_STRING); this.result = (String)call.invoke( obj ); System.out.println(Got result : + this.result); } catch(Exception Ex) { System.out.println(Ex.toString()); } / thanks -- View this message in context: http://www.nabble.com/call-WS-taking-complexeType-tf4066579.html#a115552 03 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: MTOM attachment handling
From my skeleton impl: FileOutputStream fos = new FileOutputStream(file); MTOMrequest.getDataHandler().writeTo(fos); So what happens here, will I actually be writing the data to disk a second time? In this case yes, Yes... If your use case is to save the attachment to a file, then you can directly access the cached file and move it to the appropriate location.. DataHandler dataHandler = MTOMrequest.getDataHandler() DataSource dataSource=dataHandler.getDataSource(); // For added safety.. You can get rid of this if you specify the caching threshold as 0. if (dataSource instanceof FileDataSource) { FileDataSource fileDataSource = (FileDataSource) dataSource; File file =fileDataSource.getFile(); } it would be a bad idea having enabled the file-cache in axis2.xml. You can specify a larger threshold for file caching to avoid smaller attachments getting cached.. You can disable caching If you are not planning to receive large attachments..But the danger is you would get a outofmemory if you receive a larger one in case. ... Thanks, Thilina - 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: Locating Hibernate resources in AAR
I'm still having troubles here. So I added the logging like you suggest and now I see over a meg of log statements. Nothing in there seemed relevant. Should I be looking for any specific keywords? Maybe to back up a second here, but where inside my AAR should I put my mapping files? Right now it looks like this: .../services/my service/applicationContext.xml Where should the mapping files go relative to the my service root? I've tried just about everywhere. Thanks. -Brian
multiple WSDLs the same XSD's
Hi, I have a bunch of WSDL files which all use (/share) the same xml-element definities (XSD's) for their payloads. I use the axis2-wsdl2code-maven-plugin to generate the necessary clientside code, which includes xmlbeans bindings for everything. That works fine (*) but it is a per-wsdl approach. Is it possible to give the axis2-wsdl2code-maven-plugin a LIST of wsdl files so that the xmlbeans bindings get only generated ones ? Or if not, is there some way to share the xmlbeans generated code amongst all generated axis client stubs ? This is really a blocker for me (and i don't want to abandone the axis2 approach). thx -wil- (*) except for the 'axis2-wsdl2code-maven-plugin which don't get wrapped the jars, along with the xmlbeans XmlObject classes. And since they belong together they should be together in the resulting artifact IMHO (or at least in a separate JAR). DISCLAIMER http://www.schaubroeck.be/maildisclaimer.htm
Re: Locating Hibernate resources in AAR
Try removing the axis2 line to minimize logging. Or simply search for your mapping file in the logs - spring debug will show all the locations its looking at. Your mapping files - as normally done with hibernate - should be in WEB-INF/classes . Then use spring's MappingLocations directive to map that to the location of the expanded AAR. I'll try to make this clearer in time for the 1.3 release. HTH, Robert On 7/12/07, Brian Kates [EMAIL PROTECTED] wrote: I'm still having troubles here. So I added the logging like you suggest and now I see over a meg of log statements. Nothing in there seemed relevant. Should I be looking for any specific keywords? Maybe to back up a second here, but where inside my AAR should I put my mapping files? Right now it looks like this: .../services/my service/applicationContext.xml Where should the mapping files go relative to the my service root? I've tried just about everywhere. Thanks. -Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple WSDLs the same XSD's
Wim, Please download a nightly and use WSDL2Java from ant or command line, you can add -Etypesystemname my_type_system as mentioned here. https://issues.apache.org/jira/browse/AXIS2-926#action_12508868 Just run wsdl2java through each of the wsdl's and make sure it generates the same type system name using the above mentioned switch. After that you can package it up in a separate jar and share it between your stubs. thanks, dims On 7/12/07, Wim Lambrecht [EMAIL PROTECTED] wrote: Hi, I have a bunch of WSDL files which all use (/share) the same xml-element definities (XSD's) for their payloads. I use the axis2-wsdl2code-maven-plugin to generate the necessary clientside code, which includes xmlbeans bindings for everything. That works fine (*) but it is a per-wsdl approach. Is it possible to give the axis2-wsdl2code-maven-plugin a LIST of wsdl files so that the xmlbeans bindings get only generated ones ? Or if not, is there some way to share the xmlbeans generated code amongst all generated axis client stubs ? This is really a blocker for me (and i don't want to abandone the axis2 approach). thx -wil- (*) except for the 'axis2-wsdl2code-maven-plugin which don't get wrapped the jars, along with the xmlbeans XmlObject classes. And since they belong together they should be together in the resulting artifact IMHO (or at least in a separate JAR). DISCLAIMER http://www.schaubroeck.be/maildisclaimer.htm -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Locating Hibernate resources in AAR
Hmm, still can't find any useful logging. The exception I'm seeing in the logs is: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules with an error of Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.io.FileNotFoundException: class path resource [classpath*:**/TransferScenario.hbm.xml] cannot be opened because it does not exist Just to review, I have one mapping file located in services\WeatherSpringService\WEB-INF\classes\TransferScenario.hbm.xml I had the mapping file some place else, so after expanding the AAR I created a WEB-INF/classes directory and dropped the file in there. Any ideas? Thanks. -Brian
Re: Locating Hibernate resources in AAR
Try this as it should work: http://www.springframework.org/docs/api/org/springframework/orm/hibernate/LocalSessionFactoryBean.html#setMappingDirectoryLocations(org.springframework.core.io.Resource[]) HTH, Robert On 7/12/07, Brian Kates [EMAIL PROTECTED] wrote: Hmm, still can't find any useful logging. The exception I'm seeing in the logs is: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules with an error of Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.io.FileNotFoundException: class path resource [classpath*:**/TransferScenario.hbm.xml] cannot be opened because it does not exist Just to review, I have one mapping file located in services\WeatherSpringService\WEB-INF\classes\TransferScenario.hbm.xml I had the mapping file some place else, so after expanding the AAR I created a WEB-INF/classes directory and dropped the file in there. Any ideas? Thanks. -Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MTOM passing multiple files
Thanks for your help, Thilina! One more question: Axis example using MTOM focuses on creating WSDL first and generating server classes with wsdltojava. In other cases (without using MTOM attachements), I could always create a simple POJO class and generate wsdl. If I create a POJO defined a s service with a method something like this and enable MTOM : Public Status getFilesScanStatus(File[] fileArray{ .. } Will javatowsdl generate wsdl with appropriate types or I need to always start with wsdl first when dealing with MTOM. Thanks!! Anna -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 10:20 AM To: axis-user@ws.apache.org Subject: Re: MTOM passing multiple files Hi, Yes... It's possible.. You need to have a array of xs:base64Binary type elements.. thanks, Thilina On 7/11/07, Simonenko, Anna [EMAIL PROTECTED] wrote: Hello: I need to pass collection/array of files to our axis2 web service using MTOM. Can I do that? If yes, how do I need configure WSDL? Thanks!! Anna Simonenko -- 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]
Placement and access of xsd files
Hi, I'm fairly new to Axis. I have a question about what I am seeing. If I place my xsd files in META-INF I can access them in various ways; http://localhost/axis2/services/MyService?xsd=batchquery.xsd http://localhost/axis2/services/batchquery.xsd http://alatar.informatics.jax.org:18080/axis2/services/MGIServiceImpl/batchquery.xsd But if I attempt to nest them in a subdirectory of META-INF I cannot access them as I'd expect. For example, if I nest them in META-INF/xsd the following attempts fail http://localhost/axis2/services/MyService?xsd=batchquery.xsd http://localhost/axis2/services/xsd/batchquery.xsd http://alatar.informatics.jax.org:18080/axis2/services/MGIServiceImpl/xsd/batchquery.xsd The error I get is: XML Parsing Error: no element found http://localhost/axis2/services/xsd/batchquery.xsd Line Number 1, Column 1: The path give matches the path of my request. Do I have the url wrong for the nested xsd, or am I doing something else wrong? Is it a bug? Thanks, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NullPointerException when accessing a service that works in another container
Hi Everyone, I have the same problem. My webservices are working fine in dev environment(Windows), and when I deploy the webservices to a test environment (Linux), I'm getting the same exception in the SOAP response. Any help is appreciated, I'm stuck with this issue for a while. java.lang.NullPointerException org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte r.java:96) Thanks Raghu -Original Message- From: Delimon, Alan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 1:56 PM To: axis-user@ws.apache.org Subject: NullPointerException when accessing a service that works in another container I recently moved my Axis service from my dev environment to a test environment. Both environments are Axis2 version 1.0 running in a Tomcat 5 container under JDK 1.4. In the dev environment it works fine, but in the test environment I get this error (in the localhost log) when trying to access it with a client: 2007-07-11 16:43:34 StandardWrapperValve[AxisServlet]: Servlet.service() for servlet AxisServlet threw exception java.lang.NullPointerException at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Any idea why that would be? The particular line of code it complains about looks to be referencing the request object. Alan Delimon Senior Software Engineer Software Integration Group PAETEC [EMAIL PROTECTED] 585-413-2127 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Locating Hibernate resources in AAR
This is proving to be quite the challenge. At first I put the Hibernate mapping files in domain/mappingfile.hbm.xml. Then I moved it into WEB-INF/classes/domain/mappingfile.hbm.xml. I've tried all kinds of different ways to reference the files in the applicationContext but no such luck. I'm curious if there is a working example of Spring/Hibernate AAR out there somewhere? I'm running out of options! :( As for the link you sent, if I'm prefixing the hibernate mapping with classpath, do I have to do anything special to include those mappings in the classpath? -Brian
Re: Locating Hibernate resources in AAR
The simple answer is that spring mapping locations accepts a real path, ie, c:\yourlocation . Don't use a classloader location for inside the aar nor an expanded aar. Spring in debug shows you where the classloader locations are, and the path you have for the aar won't be one of them. WEB-INF/classes would be a classloader location, but that kind of defeats the purpose of spring in the aar. So use a real path, don't use a classloader path! The link I gave you shows you how. Or google on using mapping locations with a real path for an example. Spring inside the aar is an advanced option, sure you're not better off just putting the spring jars in WEB-INF/lib and your mapping files in WEB-INF/classes ? Sorry its not working for you, but it would work if you are reading what I'm saying carefully. HTH, Robert On 7/12/07, Brian Kates [EMAIL PROTECTED] wrote: This is proving to be quite the challenge. At first I put the Hibernate mapping files in domain/mappingfile.hbm.xml. Then I moved it into WEB-INF/classes/domain/mappingfile.hbm.xml. I've tried all kinds of different ways to reference the files in the applicationContext but no such luck. I'm curious if there is a working example of Spring/Hibernate AAR out there somewhere? I'm running out of options! :( As for the link you sent, if I'm prefixing the hibernate mapping with classpath, do I have to do anything special to include those mappings in the classpath? -Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Locating Hibernate resources in AAR
Ok, I think I get it. Thanks for spelling it out. So according to the logs, my compilation classpath is the following (removed a whole bunch of Jars). Correct me if I'm wrong, but you were suggesting I put the mapping files in axis2/WEB-INF/classes (which is the first entry below). In that case I would have to prefix the mapping files in the application context with classpath (as per the documentation). I would rather avoid using a real path (i.e. c:/path/to/location/myfile.hbm.xml), so I'm wondering if there are any best practices / alternatives to WEB-INF classes? Compilation classpath initialized: /C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/axis2/WEB-INF/classes/; /C:/Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\axis2;
Re: [Axis2] wsdl2java problem with HTTPS
Thanks Keith. After many hours of debugging, it turns out that the server that I was hitting did not have chunking turned on, while Axis2 has chunking enabled by default. After I disable chunking on the client side, the web service finally comes through as expected: Options options = new Options(); options.setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE); Thank you all! -wah - Original Message From: keith chapman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Wednesday, July 11, 2007 12:11:43 AM Subject: Re: [Axis2] wsdl2java problem with HTTPS I havent tried this out. But I guess that this should help. Its a remedy to your problem. http://wso2.org/blog/dims/1906 Thanks, Keith. On 7/11/07, Wah Yim [EMAIL PROTECTED] wrote: Thanks Jennifer. Actually, I found out that I forgot to set the environment variables https.proxyHost and https.proxyPort as well. Once I've set these variables my wsdl2java is running fine =) However, I'm running into the same No route to host: connect error again when I actually tried connecting to the web service over HTTPS. Despite setting the related environment variables using System.setProperty(...) and adding the lines that you have suggested, I'm still getting the same error. It seems like Axis2 is ignoring those system variables. I've also tried the ProxyProperties code as suggested in the documentation (my sample code uses XMLBeans binding): HttpTransportProperties.ProxyProperties proxyProperties = new HttpTransportProperties.ProxyProperties (); proxyProperties.setProxyName(...);// my proxy hostname proxyProperties.setProxyPort(...);// my proxy port stub._getServiceClient().getOptions().setTransportInProtocol( Constants.TRANSPORT_HTTP); stub._getServiceClient().getOptions().setProperty(HTTPConstants.PROXY, proxyProperties); But I still get the same error. Any suggestions? Thanks, -wah - Original Message From: Ford, Jennifer M. [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Tuesday, July 10, 2007 2:00:39 PM Subject: RE: [Axis2] wsdl2java problem with HTTPS Have you tried adding the lines: System.setProperty( java.protocol.handler.pkgs, com.sun.net.ssl.internal.www.protocol); Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() ); System.setProperty(javax.net.ssl.trustStore, path/to/your/java/keystore); //Path is usually HOME_DIRECTORY/.keystore You would also need to use the java keytool to add the site's certificate to the keystore. From: Wah Yim [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 11:54 AM To: axis-user@ws.apache.org Subject: [Axis2] wsdl2java problem with HTTPS Hello, I have been having this issue with wsdl2java over HTTPS for a few days now, I have searched through some of the older posts regarding to this topic, but my problem is a little bit different, so hopefully someone can help me with this. Basically, when I run wsdl2java on a WSDL over HTTP, it works fine. However, when I run it over HTTPS, some give me No trusted certificate found (a common problem based on the archived posts I've seen), but the actual WSDL that I'm interested in always give me No route to host: connect error. I'm able to find a similar WSDL on HTTPS that gives me the same No route to host: connect problem: https://adcenterapi.microsoft.com/v4/Reporting/Reporting.asmx?wsdl Now, here are a few additional piece of information about my issue: 1) I'm running wsdl2java behind a company firewall, but I have already passed in the environment variables http.proxyHost and http.proxyPort and this is working based on the results I'm getting with wsdl2java when running against a WSDL over HTTP. 2) The WSDL over HTTPS that are giving me No route to host: connect error are all .NET services. 3) I know that these services are working because I'm able to view the WSDL through IE, and the HTML version of the web service works (for the Microsoft Ad Center example shown above, I can type in the URL in IE without the ?wsdl suffix to access the HTML version of the web service). Any help is greatly appreciated, thanks!! -wah -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
Re: Locating Hibernate resources in AAR
WEB-INF/classes is fine - that's where spring would look for the hibernate files without axis2. I believe the mapping location could be a relative path from WEB-INF , but if you're ok with using a classpath location outside the AAR then you can't do any better than WEB-INF/classes . Glad it worked out ;-) . Robert On 7/12/07, Brian Kates [EMAIL PROTECTED] wrote: Ok, I think I get it. Thanks for spelling it out. So according to the logs, my compilation classpath is the following (removed a whole bunch of Jars). Correct me if I'm wrong, but you were suggesting I put the mapping files in axis2/WEB-INF/classes (which is the first entry below). In that case I would have to prefix the mapping files in the application context with classpath (as per the documentation). I would rather avoid using a real path (i.e. c:/path/to/location/myfile.hbm.xml), so I'm wondering if there are any best practices / alternatives to WEB-INF classes? Compilation classpath initialized: /C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/axis2/WEB-INF/classes/; /C:/Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\axis2;
Re: Locating Hibernate resources in AAR
I got the file to map by putting them in WEB-INF/classes/domain/transferScenario.hbm.xml. In my applicationContext, the mapping file value is valuedomain/TransferScenario.hbm.xml/value. Thanks a lot of your help and patience! Just to wrap up this conversation, (now that we're both on the same page), what are the alternatives? How can I get the AAR on the classpath (expanded or not)? Are there any best practices? Thanks. -Brian
Re: Context Root Issue using ear format: Spring Aware Web Service using Axis2 1.2
Thanks. axis2.war is also installed on jboss. I can change axis2.xml under conf directory. However, I am using axis2 web services which is embedded in the application. How do I configure axis2. xml and where do I put in my application. -Jaspal Chad DeBauch wrote: In your axis2.xml file you need to have these two properties set as such: parameter name=contextRootemco/alcms/parameter parameter name=servicePathalcms/services/parameter Chad On 7/11/07, Sandhu [EMAIL PROTECTED] wrote: Hi, I have application that uses Spring 2.0.5, Axis2 1.2, JDK 1.4.x. Issue: If I try to deploy as an ear file with context root e.g. /emco/elcms on Jboss 4.0.4 or any other application server, Spring Aware Web Service does not work. Using: Spring 2.0.5, Hiberate 3.x, Struts 1.2, Axis2 1.2 If I deploy as an alcms.ear file to jboss http://localhost:9090/emco/alcms OK http://localhost:9090/emco/alcms/services/SpringAwareService/getValue?val=2 Does not work ??? However, If I try to deploy as an alcms.war file on jboss 4.0.4, tomcat 6.x, it works. http://localhost:9090/alcms OK http://localhost:9090/alcms/services...getValue?val=2 OK Any idea, what could be wrong with context root. Context root works for the whole web application except when I try to access web service I have attached file that has 1) application.xml 2) web services directory services which is included under WEB-INF/services/SpringAwareService/META-INF/services.xml WEB-INF/services/SpringAwareService/services.wsdl http://www.nabble.com/file/p11551142/temp.zip temp.zip -- View this message in context: http://www.nabble.com/Context-Root-Issue-using-ear-format%3A-Spring-Aware-Web-Service-using-Axis2-1.2-tf4065266.html#a11551142 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Context-Root-Issue-using-ear-format%3A-Spring-Aware-Web-Service-using-Axis2-1.2-tf4065266.html#a11568409 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: Locating Hibernate resources in AAR
The whole AAR concept has the purpose - as I understand it - of allowing a completely seperate classloader for each one of them. Two advantages immediately come to mind with AAR's. One advantage is that two classes of the same name and package can be deployed in one instance of axis2. A single classloader doesn't permit two classes of the same name and package in it. So in respect to spring, you can have two or more completely different instances of spring - even with the same beans - running independently. The other immediate advantage is the hot deploy of aar's is a big improvement over what axis1 has, IMHO. With respect to the first point - the relevant point here - is its a feature that allows a lot of flexibility. On the other hand, that flexibility is often not required. What I do most often with spring and axis2 is simply have the AAR contain just the services.xml and the wsdl file if there is one in the META-INF dir - and that's it. No classes, no spring nor hibernate in the aar - nothing. Then I just put the spring config files in WEB-INF, the spring jars in WEB-INF/lib, the hibernate files in WEB-INF/classes, and all the Service classes and its business classes under WEB-INF/classes. And that's all there is to it - works great if you just have one app running in tomcat. In other words, the Einstein approach: as simple as possible, but no simpler. If you really need two or more aar's - you ended up in about the right place. HTH, Robert On 7/12/07, Brian Kates [EMAIL PROTECTED] wrote: I got the file to map by putting them in WEB-INF/classes/domain/transferScenario.hbm.xml. In my applicationContext, the mapping file value is valuedomain/TransferScenario.hbm.xml/value. Thanks a lot of your help and patience! Just to wrap up this conversation, (now that we're both on the same page), what are the alternatives? How can I get the AAR on the classpath (expanded or not)? Are there any best practices? Thanks. -Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NullPointerException when accessing a service that works in another container
I forgot to mention the axis version I'm using. I'm using Axis2 1.2 version. Thanks Raghu From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Thursday, July 12, 2007 11:01 AM To: axis-user@ws.apache.org Subject: RE: NullPointerException when accessing a service that works in another container Hi Everyone, I have the same problem. My webservices are working fine in dev environment(Windows), and when I deploy the webservices to a test environment (Linux), I'm getting the same exception in the SOAP response. Any help is appreciated, I'm stuck with this issue for a while. java.lang.NullPointerException org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte r.java:96) Thanks Raghu -Original Message- From: Delimon, Alan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 1:56 PM To: axis-user@ws.apache.org Subject: NullPointerException when accessing a service that works in another container I recently moved my Axis service from my dev environment to a test environment. Both environments are Axis2 version 1.0 running in a Tomcat 5 container under JDK 1.4. In the dev environment it works fine, but in the test environment I get this error (in the localhost log) when trying to access it with a client: 2007-07-11 16:43:34 StandardWrapperValve[AxisServlet]: Servlet.service() for servlet AxisServlet threw exception java.lang.NullPointerException at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Any idea why that would be? The particular line of code it complains about looks to be referencing the request object. Alan Delimon Senior Software Engineer Software Integration Group PAETEC [EMAIL PROTECTED] 585-413-2127 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2]How to invoke web service from another
hi All, I have developed web service using POJO. This web service is calling second web service. I created stubs for the second service using axis2 and written a client programme. This client is working fine as stand alone application. But when the same cleint code is used in the web service it is not working. Can any one suggest me how to go ahead with calling one service from another. Thankyou for the help provided. Regards, Vittal --- vittal nangunoori [EMAIL PROTECTED] wrote: hi Joe, Can we use both SAAJ classes of jre for SAAJ client and AXIS2 SAAJ related jars in my web service simultaneously. Regards, Vittal --- vittal nangunoori [EMAIL PROTECTED] wrote: hi Joe, I have developed a simple web service using axis2(POJO). In this web service i have incorporated code for invoking another web service using SAAJ. As a standalone SAAJ client i am able to invoke the web service. But when it is included in my web service i am getting the exception. Is there any problem with SAAJ classes of JRE and Axis2. Thanking you, Vittal --- Joe Nathan [EMAIL PROTECTED] wrote: You should make relevant JAR files included in your classpath or in container libs. I use JDK1.6 which includes most of the packages you use. 1.5 is quite different. You have to use many of Axis provided JAR files. If you still have problems, please post versions for; - JDK - Servlet container - Axis And where you run clients? Regards. vittal nangunoori wrote: hi Joe Nathan, I have put the SAAJ code in my web service application and I am getting the following exceptions Please provide solution for this too.. javax.xml.soap.SOAPException: Unable to create SOAP Factory: org.apache.axis2.sa aj.SOAPFactoryImpl at javax.xml.soap.SOAPFactory.newInstance()Ljavax.xml.soap.SOAPFactory;( Unknown Source) -- View this message in context: http://www.nabble.com/-Axis2-How-to-invoke-web-service-from-another-tf4055013.html#a11549923 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. http://new.toolbar.yahoo.com/toolbar/features/norton/index.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more. http://mobile.yahoo.com/go?refer=1GNXIC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WSDL file schema with Complex Type
Hai All, For the given wsdd file, axis has generated a wsdl file. In the wsdl file schema definition following complexType is found complexType name=Handler simpleContent extension/ /simpleContent /complexType As per schema specification base attribute is mandatory. What does the above extension/? Does it mean that we can have any attibute for the element that has the type Handler? What is the default base for such extension? Thanks AnushaJv -- View this message in context: http://www.nabble.com/WSDL-file-schema-with-Complex-Type-tf4072237.html#a11573172 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: MTOM passing multiple files
Hi, . In other cases (without using MTOM attachements), I could always create a simple POJO class and generate wsdl. You can use a pojo approach with MTOM too... If I create a POJO defined a s service with a method something like this and enable MTOM : Public Status getFilesScanStatus(File[] fileArray{ .. } Please use javax.activation.DataHandler as the argument... Public Status getFilesScanStatus(javax.activation.DataHandler[] fileArray) Will javatowsdl generate wsdl with appropriate types or I need to always start with wsdl first when dealing with MTOM. Java2wsdl will generate the correct WSDL, when having DataHandler's as arguments.. thanks, Thilina Thanks!! Anna -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 10:20 AM To: axis-user@ws.apache.org Subject: Re: MTOM passing multiple files Hi, Yes... It's possible.. You need to have a array of xs:base64Binary type elements.. thanks, Thilina On 7/11/07, Simonenko, Anna [EMAIL PROTECTED] wrote: Hello: I need to pass collection/array of files to our axis2 web service using MTOM. Can I do that? If yes, how do I need configure WSDL? Thanks!! Anna Simonenko -- 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: Axis2: RESTful implementation with Axis2
Yes there is a mistake in the WSDL (obvious copy and paste error :)) update the relavant sections as follows, operation ref=tns:getWeather whttp:method=GET whttp:location=WeatherService/Weather/{country}/{city}/ operation ref=tns:setWeather whttp:method=PUT whttp:location=WeatherService/Update/{country}/{city}/ service name=WeatherService interface=tns:Weather endpoint name=WeatherServiceHTTPEndpoint binding=tns:WeatherHTTPBinding address=http://example.org/WeatherService/ /service It was due to the above that you got the dispatching error. Should work now. Thanks, Keith. On 7/12/07, Sanjiva Weerawarana [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Should I not be able to reach it with the following url? http://localhost:8080/axis2/services/WeatherService/Weather/Denmark/Herning Or have I misunderstood the new HTTPBinding. operation ref=tns:getWeather whttp:method=GET whttp:location= WeatherServiceHTTPEndpoint/Weather/{country}/{city}/ These two statements are not matching .. you've put WeatherService*HTTPEndpoint* in the whttp:location attribute but the URL doesn't have that. Sanjiva. -- Sanjiva Weerawarana, Ph.D. Founder Director; Lanka Software Foundation; http://www.opensource.lk/ Founder, Chairman CEO; WSO2, Inc.; http://www.wso2.com/ Director; Open Source Initiative; http://www.opensource.org/ Member; Apache Software Foundation; http://www.apache.org/ Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/