Re: [Axis2] response content
Is it whether my following reply did not answer ur questions or whether you simply missed it.. http://markmail.org/message/lt65mrgnkr7egqjk The earlier mails in axis-dev related to this... http://markmail.org/message/rrtsu7x22pkwya2e IMHO I do not think this as a much of a limitation given that users can enable MTOM per operation wise and also they can use "optional" for enableMTOM.. thanks, Thilina On Wed, Jun 4, 2008 at 10:28 PM, Tony Dean <[EMAIL PROTECTED]> wrote: > Anyone have any answers to the question below. Thanks. > > > -Original Message- > > From: Tony Dean [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, June 03, 2008 4:41 PM > > To: [EMAIL PROTECTED] > > Subject: [Axis2] response content > > > > Hi, > > > > I have a web service that is returning XML... it's schema type is > > xsd:any. I would expect the content to be returned as follows: > > > > HTTP/1.0 200 OK > > Content-Type: text/xml > > > > > > > > > > ... > > > > > > > > > > I would expect this to be returned whether MTOM is enabled or not. > > Wouldn't you? > > > > > > Here's the response from Axis2 service when MTOM is disabled in the > > Axis2.conf server config file: > > > > HTTP/1.0 200 OK > > Proxy-Connection: close > > X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA > > date=200707131605)/Tomcat-5.5 > > X-Cache-Lookup: MISS from inetgw04.unx.sas.com:80 > > Date: Tue, 03 Jun 2008 20:10:23 GMT > > X-Cache: MISS from inetgw04.unx.sas.com > > Content-Type: text/xml;charset=UTF-8 > > Server: Apache-Coyote/1.1 > > > > > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> > > > > . > > > > > > > > > > Looks correct. > > > > --- > > - > > > > Here's the response from Axis2 service when MTOM is enabled in the > > Axis2.conf server config file: > > > > HTTP/1.0 200 OK > > Proxy-Connection: close > > X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA > > date=200707131605)/Tomcat-5.5 > > X-Cache-Lookup: MISS from inetgw04.unx.sas.com:80 > > Date: Tue, 03 Jun 2008 20:27:29 GMT > > X-Cache: MISS from inetgw04.unx.sas.com > > Content-Type: multipart/related; > > boundary=MIMEBoundaryurn_uuid_93D2E13819F92A45691212524849948; > > type="application/xop+xml"; > > start="0.urn:uuid:[EMAIL PROTECTED]<[EMAIL PROTECTED]>"; > start- > > info="text/xml" > > Server: Apache-Coyote/1.1 > > > > --MIMEBoundaryurn_uuid_93D2E13819F92A45691212524849948 > > Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" > > Content-Transfer-Encoding: binary > > Content-ID: <0.urn:uuid:[EMAIL PROTECTED]<[EMAIL PROTECTED]> > > > > > > > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> > > > > > > > > > > > > > > Why use multipart/related content type when there are no attachments? > > That is, why make an attachment out of the SOAP envelope itself when > > there are no real attachments? Is this correct behavior? > > > > I'd like to hear your comments. > > > > Thanks. > > > > > > Tony Dean > > SAS Institute Inc. > > 919.531.6704 > > [EMAIL PROTECTED] > > > > SAS... The Power to Know > > http://www.sas.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://thilinag.blogspot.com
Problem with Loading Properties Files..
Hi, The current task is Integration of Axis with Spring.For this ,Spring Init as the Initialization Class with Axis Service is used, I am able to load the Spring related beans but I am unable to load the properties files and the Some db related xml Queries in the Context. Can You Please suggest me the way to do this. What is the exact location of placing this properties files. The code from Spring Init Startup method Goes Like this.. public void startUp(ConfigurationContext ignore, AxisService service) { try { System.out.println("Starting spring init"); ClassLoader classLoader = service.getClassLoader(); ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext(new String[] { "applicationContext.xml,beans.xml,beans-validation.xml" }, false); //For Setting the Bean Factory to the DroseCentralFactory through a Custom Processsor CustomBeanFactoryPostProcessor postprocessor = new CustomBeanFactoryPostProcessor(); appCtx.addBeanFactoryPostProcessor(postprocessor); appCtx.setClassLoader(classLoader); //Configuration No2 For Properties Loading PropertyPlaceholderConfigurer configurer = new PropertyPlaceholderConfigurer(); //AbstractApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml"); //Configuration No 1 For Properties Loading Properties props = new Properties(); props.load(classLoader.getResourceAsStream( "ApplicationResources.properties")); props.load(classLoader.getResourceAsStream( "query-file-names-conf.properties")); props.load(classLoader.getResourceAsStream( "factory-conf.properties")); configurer.setProperties(properties); appCtx.addBeanFactoryPostProcessor(configurer); //Property.configure( props); appCtx.refresh(); System.out.println("spring loaded"); } catch (Exception ex) { ex.printStackTrace(); } } I got the exception as , the file ApplicationResources.properties does not exist..it is coming..I placed the files in the same path of the applicationContext.xml..Even I tried loading the properties files with the DefaultResourceLoader..but still the same problem persists..Please respond me soon for this Query. Solution in Anticipation.. Thanks & Regards, Chandra Sekhar S.V.R | Programmer Anlayst| Franklin Templeton International Services (India) Pvt Ltd Franklin Templeton Park, Plot No. 18-23,Financial District,Nanakramguda,Hyderabad - 500019 | Tel: +91 40 66972779 | Fax: +91 40 66971010|Mobile: +91 98662 21243 |VOIP: (Extn:32779) | www.franklintempleton.com Notice: All email and instant messages (including attachments) sent to or from Franklin Templeton Investments (FTI) personnel may be retained, monitored and/or reviewed by FTI and its agents, or authorized law enforcement personnel, without further notice or consent.
RE: [AXIS2] - How to control "To" element in the SOAP header?
Hi Eran, Actually, I think Axis2 is fine and is setting the wsa:To properly. It's Victor's createSOAPEnvelope() code that I believe is wrong because it manually adds its own wsa:To element. The end result is a SOAP header with two wsa:To elements. I don't believe this is correct. So if I'm reading this right, Victor is asking for a solution that will allow him to change/override the wsa:To value that Axis2 sets there by default (from the EndpointReference). I don't have the solution, but I'm merely stating that even if there was, using that solution to make wsa:To and EndpointReference.address be different values...may end up in a message that's not WS-Addressing compliant. Designs/implementations that do require non-compliant messages like this probably needs to be re-evaluated closely:) -Vinh From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 9:23 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] - How to control "To" element in the SOAP header? Oh I see.Thanks Vinh for the update ;) Can you please help Axis2 to implement it properly to be WS-Addressing compliant ? On Wed, Jun 4, 2008 at 4:00 PM, Vinh Nguyen (vinguye2) <[EMAIL PROTECTED]> wrote: Hi, The WS-Addressing spec states that the "address" value of the EndpointReference should be copied into the "To" header. If implementations are doing otherwise, they are probably not WS-Addressing compliant. See Section 2.3 of the following link: http://www.w3.org/Submission/ws-addressing/ Hope this helps... -Vinh From: Victor Solakhian [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 3:01 PM To: axis-user@ws.apache.org Subject: RE: [AXIS2] - How to control "To" element in the SOAP header? Hi Chinthaka, Actually createSOAPEnvelope() method is mine. It creates an envelope that has "To" element in the header according to specs of the Web Servcies server. The Axis2 code that sends the message adds another "To" header block using the value that was set in options.setTo() method. The problem is that sometimes servers expect values in the "To" element that differ from the value of the endpoint reference used to send messages. I do not know if this is a bug in Axis2. I know that some developers used Axis1 to successfully implement desired behavior. Thanks From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 5:41 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] - How to control "To" element in the SOAP header? Hi Victor, If createSOAPEnvelope() method adds wsa:To header, then it is a bug, IMO. Please create a bug in JIRA and someone will look in to this (but it might take some time for me to commit in to this :( ) Thanks, Chinthaka On Wed, Jun 4, 2008 at 10:37 AM, Victor Solakhian <[EMAIL PROTECTED]> wrote: I have code that creates a SOAP envelope and sends it using Axis2 ServiceCLient. EndpointReference targetEPR = new EndpointReference("https://...";); String action = "..."; client = new ServiceClient(ctx, null); operationClient = client.createClient(ServiceClient.ANON_OUT_IN_OP); MessageContext outMsgCtx = new MessageContext(); Options options = outMsgCtx.getOptions(); options.setTo(targetEPR); options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); options.setProperty(HTTPConstants.CHUNKED, false); options.setAction(action); outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); operationClient.addMessageContext(outMsgCtx); operationClient.execute(true); Now the createSOAPEnvelope(operation, payload)) method creates an envelope with a header that includes: ... http://schemas.xmlsoap.org/ws/2004/08/addressing";> urn:xxx.yyy.com.zzz which is expected by the web services server, but Axis2 code adds another To" element: https://... to the header (using the endpoint reference set by options.setTo(targetEPR)). We need to set the targetEPR to the options so that message
Re: [AXIS2] - How to control "To" element in the SOAP header?
Hi Victor, WS-Addressing specification implementation is a module within Axis2. If you engage that, then it will put relevant headers in to SOAP messages. So users are not expected to mess with those headers. If you want to set two different values to wsa:To and transport endpoint address, there is a well defined way to do that. options.setProperty(Constants.Configuration.TRANSPORT_URL," http://SOAP/message/should/go/here";); and use options.setTo() method to put the address you want to put into wsa:To header. It should work. HTH. Chinthaka On Wed, Jun 4, 2008 at 3:00 PM, Victor Solakhian <[EMAIL PROTECTED]> wrote: > Hi Chinthaka, > > > > Actually createSOAPEnvelope() method is mine. It creates an envelope that > has "To" element in the header according to specs of the Web Servcies > server. The Axis2 code that sends the message adds another "To" header block > using the value that was set in options.setTo() method. > > > > The problem is that sometimes servers expect values in the "To" element > that differ from the value of the endpoint reference used to send messages. > I do not know if this is a bug in Axis2. I know that some developers used > Axis1 to successfully implement desired behavior. > > > > Thanks > > > -- > > *From:* Eran Chinthaka [mailto:[EMAIL PROTECTED] > *Sent:* Wednesday, June 04, 2008 5:41 PM > *To:* axis-user@ws.apache.org > *Subject:* Re: [AXIS2] - How to control "To" element in the SOAP header? > > > > Hi Victor, > > If createSOAPEnvelope() method adds wsa:To header, then it is a bug, IMO. > Please create a bug in JIRA and someone will look in to this (but it might > take some time for me to commit in to this :( ) > > Thanks, > Chinthaka > > On Wed, Jun 4, 2008 at 10:37 AM, Victor Solakhian <[EMAIL PROTECTED]> > wrote: > > I have code that creates a SOAP envelope and sends it using Axis2 > ServiceCLient. > > > > EndpointReference targetEPR = > > *new* EndpointReference("https://...";); > > > > String action = "..."; > > client = *new* ServiceClient(ctx, *null*); > > operationClient = > client.createClient(ServiceClient.ANON_OUT_IN_OP); > > > > MessageContext outMsgCtx = *new* MessageContext(); > > Options options = outMsgCtx.getOptions(); > > options.setTo(targetEPR); > > > options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); > > options.setProperty(HTTPConstants.CHUNKED, *false*); > > options.setAction(action); > > > > outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); > > operationClient.addMessageContext(outMsgCtx); > > operationClient.execute(*true*); > > > > Now the createSOAPEnvelope(operation, payload)) method creates an envelope > with a header that includes: > > > > > > … > > > xmlns:wsa=" > http://schemas.xmlsoap.org/ws/2004/08/addressing";> > > urn:xxx.yyy.com.zzz > > > > > > which is expected by the web services server, but Axis2 code adds another > To" element: > > > > > > https://... > > > > > > to the header (using the endpoint reference set by > options.setTo(targetEPR)). > > > > We need to set the targetEPR to the options so that messages are sent to > the right place, but we need to have control on what is put in the header. > > > > Is there a way to avoid adding the targetEPR to the header? > > > > Thanks, > > > > Victor > > > > > -- > With Mettha, > Eran Chinthaka > > > Health is the greatest gift; contentment is the greatest wealth; trusting > is the best relationship; nirvana is the highest joy. - Dhammapada > -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
Re: [AXIS2] - How to control "To" element in the SOAP header?
Oh I see.Thanks Vinh for the update ;) Can you please help Axis2 to implement it properly to be WS-Addressing compliant ? On Wed, Jun 4, 2008 at 4:00 PM, Vinh Nguyen (vinguye2) <[EMAIL PROTECTED]> wrote: > Hi, > The WS-Addressing spec states that the "address" value of the > EndpointReference should be copied into the "To" header. If implementations > are doing otherwise, they are probably not WS-Addressing compliant. > > See Section 2.3 of the following link: > http://www.w3.org/Submission/ws-addressing/ > > Hope this helps... > -Vinh > > -- > *From:* Victor Solakhian [mailto:[EMAIL PROTECTED] > *Sent:* Wednesday, June 04, 2008 3:01 PM > *To:* axis-user@ws.apache.org > *Subject:* RE: [AXIS2] - How to control "To" element in the SOAP header? > > Hi Chinthaka, > > > > Actually createSOAPEnvelope() method is mine. It creates an envelope that > has "To" element in the header according to specs of the Web Servcies > server. The Axis2 code that sends the message adds another "To" header block > using the value that was set in options.setTo() method. > > > > The problem is that sometimes servers expect values in the "To" element > that differ from the value of the endpoint reference used to send messages. > I do not know if this is a bug in Axis2. I know that some developers used > Axis1 to successfully implement desired behavior. > > > > Thanks > > > -- > > *From:* Eran Chinthaka [mailto:[EMAIL PROTECTED] > *Sent:* Wednesday, June 04, 2008 5:41 PM > *To:* axis-user@ws.apache.org > *Subject:* Re: [AXIS2] - How to control "To" element in the SOAP header? > > > > Hi Victor, > > If createSOAPEnvelope() method adds wsa:To header, then it is a bug, IMO. > Please create a bug in JIRA and someone will look in to this (but it might > take some time for me to commit in to this :( ) > > Thanks, > Chinthaka > > On Wed, Jun 4, 2008 at 10:37 AM, Victor Solakhian <[EMAIL PROTECTED]> > wrote: > > I have code that creates a SOAP envelope and sends it using Axis2 > ServiceCLient. > > > > EndpointReference targetEPR = > > *new* EndpointReference("https://...";); > > > > String action = "..."; > > client = *new* ServiceClient(ctx, *null*); > > operationClient = > client.createClient(ServiceClient.ANON_OUT_IN_OP); > > > > MessageContext outMsgCtx = *new* MessageContext(); > > Options options = outMsgCtx.getOptions(); > > options.setTo(targetEPR); > > > options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); > > options.setProperty(HTTPConstants.CHUNKED, *false*); > > options.setAction(action); > > > > outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); > > operationClient.addMessageContext(outMsgCtx); > > operationClient.execute(*true*); > > > > Now the createSOAPEnvelope(operation, payload)) method creates an envelope > with a header that includes: > > > > > > … > > > xmlns:wsa=" > http://schemas.xmlsoap.org/ws/2004/08/addressing";> > > urn:xxx.yyy.com.zzz > > > > > > which is expected by the web services server, but Axis2 code adds another > To" element: > > > > > > https://... > > > > > > to the header (using the endpoint reference set by > options.setTo(targetEPR)). > > > > We need to set the targetEPR to the options so that messages are sent to > the right place, but we need to have control on what is put in the header. > > > > Is there a way to avoid adding the targetEPR to the header? > > > > Thanks, > > > > Victor > > > > > -- > With Mettha, > Eran Chinthaka > > > Health is the greatest gift; contentment is the greatest wealth; trusting > is the best relationship; nirvana is the highest joy. - Dhammapada > -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
Getting error when trying to install axis2 to Tomcat 4.1
Hi guys, I'm trying to install an axis2 app into Tomcat 4.1 with the binary source as mentioned in the installation instruction. However I get the following error when I try to startup the app: org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable. at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181) at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207) ... I'm using Tomcat 4.1 and JDK 1.4 Anyone facing the same problem before? Thanx FooShyn
RE: [Axis2] response content
Anyone have any answers to the question below. Thanks. > -Original Message- > From: Tony Dean [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 03, 2008 4:41 PM > To: [EMAIL PROTECTED] > Subject: [Axis2] response content > > Hi, > > I have a web service that is returning XML... it's schema type is > xsd:any. I would expect the content to be returned as follows: > > HTTP/1.0 200 OK > Content-Type: text/xml > > > > > ... > > > > > I would expect this to be returned whether MTOM is enabled or not. > Wouldn't you? > > > Here's the response from Axis2 service when MTOM is disabled in the > Axis2.conf server config file: > > HTTP/1.0 200 OK > Proxy-Connection: close > X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA > date=200707131605)/Tomcat-5.5 > X-Cache-Lookup: MISS from inetgw04.unx.sas.com:80 > Date: Tue, 03 Jun 2008 20:10:23 GMT > X-Cache: MISS from inetgw04.unx.sas.com > Content-Type: text/xml;charset=UTF-8 > Server: Apache-Coyote/1.1 > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> > > . > > > > > Looks correct. > > --- > - > > Here's the response from Axis2 service when MTOM is enabled in the > Axis2.conf server config file: > > HTTP/1.0 200 OK > Proxy-Connection: close > X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA > date=200707131605)/Tomcat-5.5 > X-Cache-Lookup: MISS from inetgw04.unx.sas.com:80 > Date: Tue, 03 Jun 2008 20:27:29 GMT > X-Cache: MISS from inetgw04.unx.sas.com > Content-Type: multipart/related; > boundary=MIMEBoundaryurn_uuid_93D2E13819F92A45691212524849948; > type="application/xop+xml"; > start="0.urn:uuid:[EMAIL PROTECTED]"; start- > info="text/xml" > Server: Apache-Coyote/1.1 > > --MIMEBoundaryurn_uuid_93D2E13819F92A45691212524849948 > Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" > Content-Transfer-Encoding: binary > Content-ID: <0.urn:uuid:[EMAIL PROTECTED]> > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> > > > > > > > Why use multipart/related content type when there are no attachments? > That is, why make an attachment out of the SOAP envelope itself when > there are no real attachments? Is this correct behavior? > > I'd like to hear your comments. > > Thanks. > > > Tony Dean > SAS Institute Inc. > 919.531.6704 > [EMAIL PROTECTED] > > SAS... The Power to Know > http://www.sas.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]
xsd:anyType and OMElement[]
Ok I've already sent this email to the mailing list, but.. I really nedd at least one response, so please try to answer ! whatever the version of axis2 1.3 or 1.4 I use, I've a kind of bud during the wsdl2java operation. why my element "Values" declared as type = anyType become an OMElement[] instead of an Object[]? in the previous versions of axis (axis1 1.3°, it was worked very well! (in fact I'm upgrading a big web service from axis 1 to axis2, this is my last problem I need to slove..) please help me ! or explain me how to convert an OMElement[] into an object[] ? __ Search Clause Fragment is a comparison between a field and a value. comparator FieldName to search. Pay attention, fieldnames that are not defined by a type will throw an exception. Value for the test. When using the Like operator, the wildcard % can be used. Multiples values can be tested (via OR operator) There are some relation between types. ___ public class SearchConditionClauseType implements org.apache.axis2.databinding.ADBBean { /** * field for Comparator */ protected com.vslitc.service._2008.schema._2008.vslcommontypes.SearchComparatorType localComparator; /** * field for FieldName */ protected java.lang.String localFieldName; /** * field for Values * This was an Array! */ * protected org.apache.axiom.om.OMElement[] localValues;* /** * field for RelationName */ protected java.lang.String localRelationName; Maybe if nobody knows why it's doing that, you could send me a piece of code which was well generated for a type=anytype ? with that I can correct mine... thx a lot to answer!
Re: Configuring SSL on Axis2
Hello Friends, TO make the provider available. Check java.security.policy file in jre directory. the Provider jar must be in ext directory.and file should be in lib\security Jeff Greif wrote: Just a guess, but it appears that you do not have a JCE provider on your classpath, or that one that is on the classpath is not the one requested in some configuration properties file. Jeff On Tue, Jun 3, 2008 at 12:26 AM, prashants b <[EMAIL PROTECTED]> wrote: Hi, I am configuring SSL on Axis2 1.3 and using Tomcat 5.5.26 as a server. I followed these steps. 1) I generated server keystore. 2) Exported certificate. 3) Imported this certificate in "cacerts". 4) In my web service client I set the properties as System.setProperty("javax.net.ssl.trustStore", "$JAVA_HOME/../cacerts"); System.setProperty("javax.net.ssl.trustStorePassword", "secretPwd"); After calling web service I am getting this error at client. Can any one suggest if I am missing something Please help Exception in thread "main" java.lang.NoClassDefFoundError at javax.crypto.Cipher.getInstance(DashoA12275) at com.sun.net.ssl.internal.ssl.JsseJce.getCipher(Unknown Source) at com.sun.net.ssl.internal.ssl.RSACipher.(Unknown Source) at com.sun.net.ssl.internal.ssl.RSACipher.getInstance(Unknown Source) at com.sun.net.ssl.internal.ssl.PreMasterSecret.(Unknown Source) at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(Unknown Source) at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.flushBuffer(Unknown Source) at java.io.BufferedOutputStream.flush(Unknown Source) at java.io.FilterOutputStream.flush(Unknown Source) at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:190) at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:99) at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214) at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311) at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:118) at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:422) at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68) at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84) at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163 Thanks in advance --Prash - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using Spring/ArrayList
Further on this problem. After a bunch of experimenting I was getting weird ClassCastException errors from my ArrayList (which I declared as and set with a bunch of string values. I altered my client, adding the following: comments = result.getComments(); // (Check that the variable isn't null - it isn't and has one element.) System.out.println("comments exists and is of type " + comments.getClass()); Object o; o = comments.get(i); System.out.println("comment " + i + " class is " + o.getClass()); This returned: comments exists and is of type class java.util.ArrayList comment 0 class is class org.apache.axiom.om.impl.llom.OMElementImpl (?!?) I'm concluding that for my ArrayList Axis2/Spring is calling the setComments(ArrayList al) method but is populating the ArrayList without converting the transport elements back into String first. I have fallen back on using fixed arrays. These are more hassle but they work right now. _ Stephen Kilburn, GeoPraxis Inc. From: Stephen Kilburn [mailto:[EMAIL PROTECTED] Sent: June 4, 2008 16:40 To: axis-user@ws.apache.org Subject: Problem using Spring/ArrayList Hi, I'm trying to use Axis2 1.4 Spring as a transport for objects containing an ArrayList. This is not working for me. XP SP2/JDK1.6.0_06/Apache 2.2/Tomcat 5.5/Axis 2 1.4 using war install. Using the WeatherSpringService example, I modify the Weather class to contain ArrayList comments. I add getter and setter methods. I set a comment. Generated WSDL shows: When I execute the getWeather method the SOAP passed back shows: it's nice now! le matin 0.1 true 37.2 (i.e. the set value is being transported) During testing, I added a setComments(ArrayList cmt) function to the bean. Later on, I included the following line after setting the internal variable: comments.add("setComments(ArrayList) was called with an array sized " + cmts.size()); This is set and says that the passed array was sized 0, so I conclude that something in the transport is creating an ArrayList and attempting to set the bean with it, but doesn't populate the ArrayList first. Am I missing something here? Has anyone made something like this work successfully? It would make my life easier if I could make this work. _ Stephen Kilburn GeoPraxis Inc.
RE: [AXIS2] - How to control "To" element in the SOAP header?
Hi, The WS-Addressing spec states that the "address" value of the EndpointReference should be copied into the "To" header. If implementations are doing otherwise, they are probably not WS-Addressing compliant. See Section 2.3 of the following link: http://www.w3.org/Submission/ws-addressing/ Hope this helps... -Vinh From: Victor Solakhian [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 3:01 PM To: axis-user@ws.apache.org Subject: RE: [AXIS2] - How to control "To" element in the SOAP header? Hi Chinthaka, Actually createSOAPEnvelope() method is mine. It creates an envelope that has "To" element in the header according to specs of the Web Servcies server. The Axis2 code that sends the message adds another "To" header block using the value that was set in options.setTo() method. The problem is that sometimes servers expect values in the "To" element that differ from the value of the endpoint reference used to send messages. I do not know if this is a bug in Axis2. I know that some developers used Axis1 to successfully implement desired behavior. Thanks From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 5:41 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] - How to control "To" element in the SOAP header? Hi Victor, If createSOAPEnvelope() method adds wsa:To header, then it is a bug, IMO. Please create a bug in JIRA and someone will look in to this (but it might take some time for me to commit in to this :( ) Thanks, Chinthaka On Wed, Jun 4, 2008 at 10:37 AM, Victor Solakhian <[EMAIL PROTECTED]> wrote: I have code that creates a SOAP envelope and sends it using Axis2 ServiceCLient. EndpointReference targetEPR = new EndpointReference("https://...";); String action = "..."; client = new ServiceClient(ctx, null); operationClient = client.createClient(ServiceClient.ANON_OUT_IN_OP); MessageContext outMsgCtx = new MessageContext(); Options options = outMsgCtx.getOptions(); options.setTo(targetEPR); options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); options.setProperty(HTTPConstants.CHUNKED, false); options.setAction(action); outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); operationClient.addMessageContext(outMsgCtx); operationClient.execute(true); Now the createSOAPEnvelope(operation, payload)) method creates an envelope with a header that includes: ... http://schemas.xmlsoap.org/ws/2004/08/addressing";> urn:xxx.yyy.com.zzz which is expected by the web services server, but Axis2 code adds another To" element: https://... to the header (using the endpoint reference set by options.setTo(targetEPR)). We need to set the targetEPR to the options so that messages are sent to the right place, but we need to have control on what is put in the header. Is there a way to avoid adding the targetEPR to the header? Thanks, Victor -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
RE: [AXIS2] - How to control "To" element in the SOAP header?
Hi Chinthaka, Actually createSOAPEnvelope() method is mine. It creates an envelope that has "To" element in the header according to specs of the Web Servcies server. The Axis2 code that sends the message adds another "To" header block using the value that was set in options.setTo() method. The problem is that sometimes servers expect values in the "To" element that differ from the value of the endpoint reference used to send messages. I do not know if this is a bug in Axis2. I know that some developers used Axis1 to successfully implement desired behavior. Thanks From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 5:41 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] - How to control "To" element in the SOAP header? Hi Victor, If createSOAPEnvelope() method adds wsa:To header, then it is a bug, IMO. Please create a bug in JIRA and someone will look in to this (but it might take some time for me to commit in to this :( ) Thanks, Chinthaka On Wed, Jun 4, 2008 at 10:37 AM, Victor Solakhian <[EMAIL PROTECTED]> wrote: I have code that creates a SOAP envelope and sends it using Axis2 ServiceCLient. EndpointReference targetEPR = new EndpointReference("https://...";); String action = "..."; client = new ServiceClient(ctx, null); operationClient = client.createClient(ServiceClient.ANON_OUT_IN_OP); MessageContext outMsgCtx = new MessageContext(); Options options = outMsgCtx.getOptions(); options.setTo(targetEPR); options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); options.setProperty(HTTPConstants.CHUNKED, false); options.setAction(action); outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); operationClient.addMessageContext(outMsgCtx); operationClient.execute(true); Now the createSOAPEnvelope(operation, payload)) method creates an envelope with a header that includes: ... http://schemas.xmlsoap.org/ws/2004/08/addressing";> urn:xxx.yyy.com.zzz which is expected by the web services server, but Axis2 code adds another To" element: https://... to the header (using the endpoint reference set by options.setTo(targetEPR)). We need to set the targetEPR to the options so that messages are sent to the right place, but we need to have control on what is put in the header. Is there a way to avoid adding the targetEPR to the header? Thanks, Victor -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
Re: Soap Header
Check this : http://wso2.org/forum/thread/2608#comment-4298 On Mon, Jun 2, 2008 at 6:57 PM, Priya Agrawal <[EMAIL PROTECTED]> wrote: > Hello, > I am new to web services. I created WSDL file also request and response > parameter. > > Generated soap message have only Body no Header information. I want to > include Header information for user id and password. Please provide me some > point so i will update my WSDL file and how to write server side code for > authorization. > > > Thanks, > Pritesh Agrawal > -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
Re: Minimal set of JARs to embed Axis2 into a webapp?
What is the black list :) ?? On Wed, Jun 4, 2008 at 6:45 AM, Kurt Kavanaugh <[EMAIL PROTECTED]> wrote: > > > Can I please be taken off the black list… J > > > > > -- > > *From:* Kurt Kavanaugh > *Sent:* Monday, June 02, 2008 1:47 PM > *To:* axis-user@ws.apache.org > *Subject:* Re: Minimal set of JARs to embed Axis2 into a webapp? > > > > > > +---lib > > > > > axiom-api-1.2.5.jar > > > > > axiom-impl-1.2.5.jar > > > > > axis2-kernel-1.3.jar > > > > > backport-util-concurrent-2.2.jar > > > > > commons-fileupload-1.1.1.jar > > > > > commons-httpclient-3.0.1.jar > > > > > jax-qname-1.5.jar (QName API part of stax-api) neethi-2.0.2.jar > > > > > wsdl4j-1.6.2.jar wstx-asl-3.2.1.jar xbean-2.3.0.jar > > > > > XmlSchema-1.3.2.jar > > > > Doesn't the AxisServlet depend on annogen-0.1.0.jar.? > > > > import org.codehaus.jam.JMethod; > > > > JMethod[] method = schemaGenerator.getMethods(); > > > > Kurt > -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
Re: how to handle events from webservices for clients?
I am not sure about WS-Polling, but Axis2 has WS-Eventing implementation. Please check for a module "Sawan". It was our WS-Eventing implementation. On Wed, Jun 4, 2008 at 9:12 AM, Newbie <[EMAIL PROTECTED]> wrote: > Hi, > > I'm new with webservices and was wondering about if Axis2 provides the > ability for the webservice to send a event notification to the client. The > client can be behind a symmetric NAT and hence the solution needs to handle > the firewall problem too. > > Also, does axis2 support WS-Polling? > > Thanks > > -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
Re: [AXIS2] - How to control "To" element in the SOAP header?
Hi Victor, If createSOAPEnvelope() method adds wsa:To header, then it is a bug, IMO. Please create a bug in JIRA and someone will look in to this (but it might take some time for me to commit in to this :( ) Thanks, Chinthaka On Wed, Jun 4, 2008 at 10:37 AM, Victor Solakhian <[EMAIL PROTECTED]> wrote: > I have code that creates a SOAP envelope and sends it using Axis2 > ServiceCLient. > > > > EndpointReference targetEPR = > > *new* EndpointReference("https://...";); > > > > String action = "..."; > > client = *new* ServiceClient(ctx, *null*); > > operationClient = > client.createClient(ServiceClient.ANON_OUT_IN_OP); > > > > MessageContext outMsgCtx = *new* MessageContext(); > > Options options = outMsgCtx.getOptions(); > > options.setTo(targetEPR); > > > options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); > > options.setProperty(HTTPConstants.CHUNKED, *false*); > > options.setAction(action); > > > > outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); > > operationClient.addMessageContext(outMsgCtx); > > operationClient.execute(*true*); > > > > Now the createSOAPEnvelope(operation, payload)) method creates an envelope > with a header that includes: > > > > > > … > > > xmlns:wsa=" > http://schemas.xmlsoap.org/ws/2004/08/addressing";> > > urn:xxx.yyy.com.zzz > > > > > > which is expected by the web services server, but Axis2 code adds another > To" element: > > > > > > https://... > > > > > > to the header (using the endpoint reference set by > options.setTo(targetEPR)). > > > > We need to set the targetEPR to the options so that messages are sent to > the right place, but we need to have control on what is put in the header. > > > > Is there a way to avoid adding the targetEPR to the header? > > > > Thanks, > > > > Victor > -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
Re: lib in .aar ignored?
Hello, I had the same problem, and eventually found the same solution as well. The only jars that I am including within the aar are the ones that contain my xmlbeans files (*.xsb). Also, if I drop these xsb-jars in WEB-INF/lib I get some exceptions. Sorry, but I don't remember exactly which exceptions. On Wednesday 04 June 2008 04:30:12 pm Stephen Kilburn wrote: > In my testing of Spring, I added to the WeatherSpringService.aar the three > spring jars used by the service (spring-beans.jar, spring-context.jar, > spring-core.jar) in a /lib directory. However, I get a NoClassDefFound > error using this approach. It goes away if I drop the files into > axis2/WEB-INF/lib. > > Does anyone have any advice? > _ > Stephen Kilburn > GeoPraxis Inc. > > Error: org.apache.axis2.deployment.DeploymentException: Error loading class > [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for > bean with name 'applicationContext' defined in class path resource > [applicationContext.xml]: problem with class file or dependent class; > nested exception is java.lang.NoClassDefFoundError: > org/springframework/context/ApplicationContextAware at > org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGro >u p(ArchiveReader.java:151) at > org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81) > at > org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(Deplo >y mentFileData.java:136) at > org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java >: 597) at > org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.ja >v a:144) at > org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.ja >v a:330) at > org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryList >e ner.java:227) at > org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine. >j ava:131) at > org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedA >x isConfigurator.java:284) at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCon >t ext(ConfigurationContextFactory.java:82) at > org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.j >a va:511) at > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:431) at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1 >1 39) at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java >: 3956) at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java: >7 60) at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831) at > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720) at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo >r t.java:120) at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at > org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at > org.apache.catalina.core.StandardService.start(StandardService.java:448) at > org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at > org.apache.catalina.startup.Catalina.start(Catalina.java:552) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at > java.lang.reflect.Method.invoke(Unknown Source) at > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: > org.apache.axis2.deployment.DeploymentException: Error loading class > [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for > bean with name 'applicationContext' defined in class path resource > [applicationContext.xml]: problem with class file or dependent class; > nested exception is java.lang.NoClassDefFoundError: > org/springframework/context/ApplicationContextAware at > org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(Servic >e GroupBuilder.java:106) at > org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup >( ArchiveReader.java:110) at > org.apache.axis2.deploym
lib in .aar ignored?
In my testing of Spring, I added to the WeatherSpringService.aar the three spring jars used by the service (spring-beans.jar, spring-context.jar, spring-core.jar) in a /lib directory. However, I get a NoClassDefFound error using this approach. It goes away if I drop the files into axis2/WEB-INF/lib. Does anyone have any advice? _ Stephen Kilburn GeoPraxis Inc. Error: org.apache.axis2.deployment.DeploymentException: Error loading class [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for bean with name 'applicationContext' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGrou p(ArchiveReader.java:151) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(Deploy mentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java: 597) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.jav a:144) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.jav a:330) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListe ner.java:227) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.j ava:131) at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAx isConfigurator.java:284) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCont ext(ConfigurationContextFactory.java:82) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.ja va:511) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:431) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11 39) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7 60) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: org.apache.axis2.deployment.DeploymentException: Error loading class [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for bean with name 'applicationContext' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(Service GroupBuilder.java:106) at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup( ArchiveReader.java:110) at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGrou p(ArchiveReader.java:144) ... 37 more Caused by: org.apache.axis2.deployment.DeploymentException: Error loading class [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for bean with name 'applicationContext' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware at org.apache.axis2.deployment.ServiceBuilder
Problem using Spring/ArrayList
Hi, I'm trying to use Axis2 1.4 Spring as a transport for objects containing an ArrayList. This is not working for me. XP SP2/JDK1.6.0_06/Apache 2.2/Tomcat 5.5/Axis 2 1.4 using war install. Using the WeatherSpringService example, I modify the Weather class to contain ArrayList comments. I add getter and setter methods. I set a comment. Generated WSDL shows: When I execute the getWeather method the SOAP passed back shows: it's nice now! le matin 0.1 true 37.2 (i.e. the set value is being transported) During testing, I added a setComments(ArrayList cmt) function to the bean. Later on, I included the following line after setting the internal variable: comments.add("setComments(ArrayList) was called with an array sized " + cmts.size()); This is set and says that the passed array was sized 0, so I conclude that something in the transport is creating an ArrayList and attempting to set the bean with it, but doesn't populate the ArrayList first. Am I missing something here? Has anyone made something like this work successfully? It would make my life easier if I could make this work. _ Stephen Kilburn GeoPraxis Inc.
[AXIS2] - How to control "To" element in the SOAP header?
I have code that creates a SOAP envelope and sends it using Axis2 ServiceCLient. EndpointReference targetEPR = new EndpointReference("https://...";); String action = "..."; client = new ServiceClient(ctx, null); operationClient = client.createClient(ServiceClient.ANON_OUT_IN_OP); MessageContext outMsgCtx = new MessageContext(); Options options = outMsgCtx.getOptions(); options.setTo(targetEPR); options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); options.setProperty(HTTPConstants.CHUNKED, false); options.setAction(action); outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); operationClient.addMessageContext(outMsgCtx); operationClient.execute(true); Now the createSOAPEnvelope(operation, payload)) method creates an envelope with a header that includes: ... http://schemas.xmlsoap.org/ws/2004/08/addressing";> urn:xxx.yyy.com.zzz which is expected by the web services server, but Axis2 code adds another To" element: https://... to the header (using the endpoint reference set by options.setTo(targetEPR)). We need to set the targetEPR to the options so that messages are sent to the right place, but we need to have control on what is put in the header. Is there a way to avoid adding the targetEPR to the header? Thanks, Victor
how to handle events from webservices for clients?
Hi, I'm new with webservices and was wondering about if Axis2 provides the ability for the webservice to send a event notification to the client. The client can be behind a symmetric NAT and hence the solution needs to handle the firewall problem too. Also, does axis2 support WS-Polling? Thanks
Re: Axis2 Service Archiver issue
ok, I realise now that I could have gotten the services.xml by specifying the right parameters in the wsdl2java process. Going there now... Kmany wrote: > > ok, based on Ajith suggestions I stopped using the wizard in Eclipse and > went for a straightforward ant build. That gave me the .aar file, but when > I deploy that .aar file, it doesn't work. On the Axis2 admin pages, I see > that the error is a missing services.xml. > > Checked the .aar file and indeed it's missing. > > I was under the impression that either it would not be needed when > supplying the WSDL or that the build (or wizard for that matters) would > generate it for me. > > Any idea's? > > Tnx in advance, > > Paul > > Ajith Ranabahu wrote: >> >> Hi, >> You seem to be doing the right thing and I'm not sure what could be >> wrong ! However there is another option to generated the aar. Use the >> build file generated from codegen and run the jar.server target >> >> Ajith >> >> On Wed, Jun 4, 2008 at 9:36 AM, Kmany <[EMAIL PROTECTED]> wrote: >>> >>> Hi all, >>> >>> Got a wsdl file and generated the Java classes for it using wsdl2java. >>> Then >>> looked up the mywebserviceService Skeleton file and implemented my >>> business >>> logic in it. And now I want to build the .aar file so I can deploy the >>> mywebservice. >>> >>> I'm trying to build the the Service Archive using the Eclipse Axis2 >>> Service >>> Archiver wizard, but cannot get it to work. >>> >>> I point the Class File Location setting to the directory that contains >>> the >>> directory structure com/ws/mywebservice. The mywebservice directory >>> contains >>> my compiled Java classes that wsdl2java created (including my added >>> business >>> logic), so for example mywebserviceServiceSkeleton.class. >>> >>> On the second screen of the wizard, I skip the WDSL >>> >>> I do not add any additional jars >>> >>> I check the checkbox to generate the service.xml automatically >>> >>> and then I get to the part where I'm getting stuck... >>> >>> I have to specify a Service Name and Class name. So, I try all kind of >>> things here, but the wizard keeps telling me: "error : Class >>> notfoundcom.ws.mywebservice.mywebserviceServiceSkeleton" >>> >>> As you can see, as classname, I put in the full path + the name of the >>> skeleton class (in which my business logic is also implemented). I tried >>> all >>> kind of different options, but nothing seems to work. As Service Name I >>> use >>> the name of the service from the wsdl file i started with, which is >>> "mywebservice" in various combinations: "mywebservice" and >>> "mywebserviceService" for example. >>> >>> Not, nothing seems to work. >>> >>> Where am I going wrong? >>> >>> Tnx in advance, >>> -- >>> View this message in context: >>> http://www.nabble.com/Axis2-Service-Archiver-issue-tp17646914p17646914.html >>> Sent from the Axis - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> -- >> Ajith Ranabahu >> >> Reading, after a certain age, diverts the mind too much from its >> creative pursuits. Any man who reads too much and uses his own brain >> too little falls into lazy habits of thinking - Albert Einstein >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/Axis2-Service-Archiver-issue-tp17646914p17649557.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 Service Archiver issue
ok, based on Ajith suggestions I stopped using the wizard in Eclipse and went for a straightforward ant build. That gave me the .aar file, but when I deploy that .aar file, it doesn't work. On the Axis2 admin pages, I see that the error is a missing services.xml. Checked the .aar file and indeed it's missing. I was under the impression that either it would not be needed when supplying the WSDL or that the build (or wizard for that matters) would generate it for me. Any idea's? Tnx in advance, Paul Ajith Ranabahu wrote: > > Hi, > You seem to be doing the right thing and I'm not sure what could be > wrong ! However there is another option to generated the aar. Use the > build file generated from codegen and run the jar.server target > > Ajith > > On Wed, Jun 4, 2008 at 9:36 AM, Kmany <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> >> Got a wsdl file and generated the Java classes for it using wsdl2java. >> Then >> looked up the mywebserviceService Skeleton file and implemented my >> business >> logic in it. And now I want to build the .aar file so I can deploy the >> mywebservice. >> >> I'm trying to build the the Service Archive using the Eclipse Axis2 >> Service >> Archiver wizard, but cannot get it to work. >> >> I point the Class File Location setting to the directory that contains >> the >> directory structure com/ws/mywebservice. The mywebservice directory >> contains >> my compiled Java classes that wsdl2java created (including my added >> business >> logic), so for example mywebserviceServiceSkeleton.class. >> >> On the second screen of the wizard, I skip the WDSL >> >> I do not add any additional jars >> >> I check the checkbox to generate the service.xml automatically >> >> and then I get to the part where I'm getting stuck... >> >> I have to specify a Service Name and Class name. So, I try all kind of >> things here, but the wizard keeps telling me: "error : Class >> notfoundcom.ws.mywebservice.mywebserviceServiceSkeleton" >> >> As you can see, as classname, I put in the full path + the name of the >> skeleton class (in which my business logic is also implemented). I tried >> all >> kind of different options, but nothing seems to work. As Service Name I >> use >> the name of the service from the wsdl file i started with, which is >> "mywebservice" in various combinations: "mywebservice" and >> "mywebserviceService" for example. >> >> Not, nothing seems to work. >> >> Where am I going wrong? >> >> Tnx in advance, >> -- >> View this message in context: >> http://www.nabble.com/Axis2-Service-Archiver-issue-tp17646914p17646914.html >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > Ajith Ranabahu > > Reading, after a certain age, diverts the mind too much from its > creative pursuits. Any man who reads too much and uses his own brain > too little falls into lazy habits of thinking - Albert Einstein > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Axis2-Service-Archiver-issue-tp17646914p17649491.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis1 and Axis2 Coexistence?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes, they should. Axis1 uses an older wsdl4j jar, but you can use the one in Axis2 and that will work as well. In general if you see an older version in Axis1, use the newer one from Axis2. - -- dims Abhishek Shadangi wrote: | Hi All, | | I would really appreciate if anybody can help me with the answer to this | question. | | Question: *Can Axis1 (1.4 say) and Axis2 clients coexist in the same | web-app?* | | Reason: We need it because we have a lot of legacy code that depend on Axis1 | which we cannot refactor to use Axis2 within fortnight. But moving forward | we want to use Axis2 and have a long term plans to maintain code using | Axis2. Now my concern is if that if they (Axis1 and Axis2) depend on some | other Jars for certain functionality that cannot coexist then it will hinder | us from migrating to Axis2. | | Any help would be great. | | Thanks | Abhishek. | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) iD8DBQFIRrHzgNg6eWEDv1kRAqAlAJoDAEP77JsPN0GwMlEbWiCbQUoPWACg77vX efl9MnTGKjc+yRhNroHdLno= =SB1N -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis1 and Axis2 Coexistence?
Hi All, I would really appreciate if anybody can help me with the answer to this question. Question: *Can Axis1 (1.4 say) and Axis2 clients coexist in the same web-app?* Reason: We need it because we have a lot of legacy code that depend on Axis1 which we cannot refactor to use Axis2 within fortnight. But moving forward we want to use Axis2 and have a long term plans to maintain code using Axis2. Now my concern is if that if they (Axis1 and Axis2) depend on some other Jars for certain functionality that cannot coexist then it will hinder us from migrating to Axis2. Any help would be great. Thanks Abhishek.
Axis 1.4 Client: "Content is not allowed in prolog" if dealing with large XML files
Hello, I have generated a client from wsdl in Eclipse 3.3. The webservice I am calling, can issue large amounts of data (several mb of data) according to the selections specified on calling it. If I choose a selection delivering only a small aount of data everything working fine, if not then I get the following exception: ** AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: Content is not allowed in prolog. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at functions.rfc.sap.document.sap_com.Z_MB_GET_ALL_NOTIFS_WS_EXTBindingStub.z_MB_GET_ALL_NOTIFS_WS_EXT(Z_MB_GET_ALL_NOTIFS_WS_EXTBindingStub.java:1311) at client.test.ClientTest.main(ClientTest.java:160) {http://xml.apache.org/axis/}hostname:HP6710-1 org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at functions.rfc.sap.document.sap_com.Z_MB_GET_ALL_NOTIFS_WS_EXTBindingStub.z_MB_GET_ALL_NOTIFS_WS_EXT(Z_MB_GET_ALL_NOTIFS_WS_EXTBindingStub.java:1311) at client.test.ClientTest.main(ClientTest.java:160) Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSO
Re: Axis2 Service Archiver issue
Hi, You seem to be doing the right thing and I'm not sure what could be wrong ! However there is another option to generated the aar. Use the build file generated from codegen and run the jar.server target Ajith On Wed, Jun 4, 2008 at 9:36 AM, Kmany <[EMAIL PROTECTED]> wrote: > > Hi all, > > Got a wsdl file and generated the Java classes for it using wsdl2java. Then > looked up the mywebserviceService Skeleton file and implemented my business > logic in it. And now I want to build the .aar file so I can deploy the > mywebservice. > > I'm trying to build the the Service Archive using the Eclipse Axis2 Service > Archiver wizard, but cannot get it to work. > > I point the Class File Location setting to the directory that contains the > directory structure com/ws/mywebservice. The mywebservice directory contains > my compiled Java classes that wsdl2java created (including my added business > logic), so for example mywebserviceServiceSkeleton.class. > > On the second screen of the wizard, I skip the WDSL > > I do not add any additional jars > > I check the checkbox to generate the service.xml automatically > > and then I get to the part where I'm getting stuck... > > I have to specify a Service Name and Class name. So, I try all kind of > things here, but the wizard keeps telling me: "error : Class > notfoundcom.ws.mywebservice.mywebserviceServiceSkeleton" > > As you can see, as classname, I put in the full path + the name of the > skeleton class (in which my business logic is also implemented). I tried all > kind of different options, but nothing seems to work. As Service Name I use > the name of the service from the wsdl file i started with, which is > "mywebservice" in various combinations: "mywebservice" and > "mywebserviceService" for example. > > Not, nothing seems to work. > > Where am I going wrong? > > Tnx in advance, > -- > View this message in context: > http://www.nabble.com/Axis2-Service-Archiver-issue-tp17646914p17646914.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Ajith Ranabahu Reading, after a certain age, diverts the mind too much from its creative pursuits. Any man who reads too much and uses his own brain too little falls into lazy habits of thinking - Albert Einstein - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Minimal set of JARs to embed Axis2 into a webapp?
Can I please be taken off the black list... :-) _ From: Kurt Kavanaugh Sent: Monday, June 02, 2008 1:47 PM To: axis-user@ws.apache.org Subject: Re: Minimal set of JARs to embed Axis2 into a webapp? > > +---lib > > > axiom-api-1.2.5.jar > > > axiom-impl-1.2.5.jar > > > axis2-kernel-1.3.jar > > > backport-util-concurrent-2.2.jar > > > commons-fileupload-1.1.1.jar > > > commons-httpclient-3.0.1.jar > > > jax-qname-1.5.jar (QName API part of stax-api) neethi-2.0.2.jar > > > wsdl4j-1.6.2.jar wstx-asl-3.2.1.jar xbean-2.3.0.jar > > > XmlSchema-1.3.2.jar Doesn't the AxisServlet depend on annogen-0.1.0.jar.? import org.codehaus.jam.JMethod; JMethod[] method = schemaGenerator.getMethods(); Kurt
Re: Axis2 (ADB) : Problem with empty RequestBody
Hi when you generated code did you guys specify a port (endpoint->port in the wsdl) ? Could it be that the port used had an HTTP binding ? Ajith On Wed, Jun 4, 2008 at 6:54 AM, Robert Novotny <[EMAIL PROTECTED]> wrote: > > We have succeeded in solving this problem: it was necessary to hand-edit the > generated Stub file > and disable the REST style access to web services: > > addPropertyToOperationClient(_operationClient,org.apache.axis2.Constants.Configuration.ENABLE_REST,false); > > This turned off the option which caused Axis2 to send the payload in the > HTTP header (which corresponds to the REST style) to the traditional mode, > in which the payload was sent in the request body in the XML form. > > > -- Robert Novotny > > > Robert Novotny wrote: >> >> I have the same problem here. I think that the culprit is the >> >> >> >> element in the WSDL. This binding forces the WSDL2Java to generate code >> that sends the application/x-www-form-urlencoded header. This corresponds >> to the REST style of web service invocation. However, I think that this >> REST approach does not support complex objects. >> >> If you look on the >> org.apache.axis2.transport.http.XFormURLEncodedFormatter class, you'd see >> the the getBytes() method which converts the SOAP payload to the byte >> representation sent via wire: >> >> ... >> OMElement omElement = >> messageContext.getEnvelope().getBody().getFirstElement(); >> >> if (omElement != null) { >> Iterator it = omElement.getChildElements(); >> String paraString = ""; >> >> while (it.hasNext()) { >> OMElement ele1 = (OMElement) it.next(); >> String parameter; >> >> parameter = ele1.getLocalName() + "=" + ele1.getText(); >> paraString = "".equals(paraString) ? parameter : >> (paraString + "&" + parameter); >> } >> >> return paraString.getBytes(); >> } >> >> ... >> >> If your message looks like this: >> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> >> >> http://www.example.org/nPVR/";> >> >> >> 1 >> myFolder >> >> >> >> >> >> the only child matched by iterator is the getCustomerFolder. Deeper >> children are simply ignored. This seems quite natural to me, since the >> REST style via POST supports only key=value parameters passed in the HTTP >> header. >> >> >> However, I have heard about a possibility to send the SOAP message via >> both methods: some parameters in the HTTP POST header and some parameters >> in the payload send via XML. Is it possible in Axis2? >> >> The quick hack which remedies your situation can be editing of the stub >> file. Just change content type in the >> >> addPropertyToOperationClient(_operationClient,org.apache.axis2.Constants.Configuration.CONTENT_TYPE,"application/x-www-form-urlencoded"); >> and >> addPropertyToOperationClient(_operationClient,org.apache.axis2.Constants.Configuration.MESSAGE_TYPE,"application/x-www-form-urlencoded"); >> >> "text/xml" as advised. However, this hack would perhaps break your WSDL >> contract. >> >> Robert Novotny >> >> Ajith Ranabahu wrote: >>> >>> The part that I can see as the problem is the last one where the >>> request is written to the wire. I can't understand how >>> the content type became application/x-www-form-urlencoded (should have >>> been text/xml for soap1.1. Since I see the SOAPAction header I suppose >>> its 1.1). Is there any other configuration regarding the httpclient ? >>> (that may have changed its behavior) >>> >>> Ajith >>> >>> >>> On Fri, May 30, 2008 at 8:01 AM, Aljen7 <[EMAIL PROTECTED]> wrote: I can see thanks to dubugging that the soapEnvelope in request is constructed in Stub class correctly and it remains unchainged during axis2 engine which ended in the correct request calling messageContext is OK (afaik). Then why is it changed (empty - no body) when it comes to server. -- View this message in context: http://www.nabble.com/Axis2-%28ADB%29-%3A-Problem-with-empty-RequestBody-tp17532435p17557256.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> -- >>> Ajith Ranabahu >>> >>> Reading, after a certain age, diverts the mind too much from its >>> creative pursuits. Any man who reads too much and uses his own brain >>> too little falls into lazy habits of thinking - Albert Einstein >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> > > -- > View this message in context: > http://www.nabble.com/Axis2-%28ADB%29-%3A-Problem-with-em
Axis2 Service Archiver issue
Hi all, Got a wsdl file and generated the Java classes for it using wsdl2java. Then looked up the mywebserviceService Skeleton file and implemented my business logic in it. And now I want to build the .aar file so I can deploy the mywebservice. I'm trying to build the the Service Archive using the Eclipse Axis2 Service Archiver wizard, but cannot get it to work. I point the Class File Location setting to the directory that contains the directory structure com/ws/mywebservice. The mywebservice directory contains my compiled Java classes that wsdl2java created (including my added business logic), so for example mywebserviceServiceSkeleton.class. On the second screen of the wizard, I skip the WDSL I do not add any additional jars I check the checkbox to generate the service.xml automatically and then I get to the part where I'm getting stuck... I have to specify a Service Name and Class name. So, I try all kind of things here, but the wizard keeps telling me: "error : Class notfoundcom.ws.mywebservice.mywebserviceServiceSkeleton" As you can see, as classname, I put in the full path + the name of the skeleton class (in which my business logic is also implemented). I tried all kind of different options, but nothing seems to work. As Service Name I use the name of the service from the wsdl file i started with, which is "mywebservice" in various combinations: "mywebservice" and "mywebserviceService" for example. Not, nothing seems to work. Where am I going wrong? Tnx in advance, -- View this message in context: http://www.nabble.com/Axis2-Service-Archiver-issue-tp17646914p17646914.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Set nillable=true when axis2 generated wsdl
Hi, I just did a sample service (java first) which returns a book object. book Class has two variables name, author. (both String). Both name and author can be null. Service works fine when values for the name and author are not null.(I hit the service using soapui) If any variable value is null i am getting, org.apache.axis2.AxisFault: java.lang.NullPointerException; nested exception is: org.apache.axiom.om.OMException: java.lang.NullPointerException at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) The wsdl generated by the Axis2 1.4 is not setting the nillable="true" for two element definition. Note : 1 . I worked with Axis1.3 where i am getting nillable="true" in generated wsdl. 2 . I even tried by setting the default variable value in bean as null. ie class Book{ private String name=null; private String author=null; getters and setters } But even then wsdl not showing nillable="true". How to tell Axis2 1.4 that "generate a wsdl with nillable="true" for an element" ? FYR I attached the soap fault, http://schemas.xmlsoap.org/soap/envelope/";> soapenv:Client java.lang.NullPointerException org.apache.axis2.AxisFault: java.lang.NullPointerException; nested exception is: org.apache.axiom.om.OMException: java.lang.NullPointerException at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.axiom.om.OMException: java.lang.NullPointerException at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206) at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:298) at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:584) at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:118) at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:240) at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:197) at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:71) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:130) ... 20 more Caused by: java.lang.NullPointerException at org.apache.axis2.databinding.utils.reader.WrappingXMLStreamReader.getEventType(WrappingXMLStreamReader.java:141) at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:964) at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:826) at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123) ... 27 more ~Barath. -- View this message in context: http://www.nabble.com/Set-nillable%3Dtrue-when-axis2-generated-wsdl-tp17646165p17646165.html Sent from the Axis - User mailing list archive a
Re: wsdl
Thanks Paul. Now I think I am able to build stub classes. Thank you very much for your help. --- On Wed, 4/6/08, Paul Fremantle <[EMAIL PROTECTED]> wrote: From: Paul Fremantle <[EMAIL PROTECTED]> Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 5:01 PM Sorry, I was assuming you had Axis2 (the latest version). I'm not up to speed on Axis1 so I can't help out with that. Basically if you get Axis2-bin zipfile, unzip it, and it should become clear. If you are calling a webservice from your webapp you just need to include the axis2 libs in the webapp\lib directory. Paul On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma <[EMAIL PROTECTED]> wrote: > > Thanks Paul for the quick reply. > > I have got axis-bin-1_4. In which directory I should run this ? I have done > an advnced installation > http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp > > > > Thank you very much, > > > > --- On Wed, 4/6/08, Paul Fremantle <[EMAIL PROTECTED]> wrote: > > From: Paul Fremantle <[EMAIL PROTECTED]> > Subject: Re: wsdl > To: axis-user@ws.apache.org, [EMAIL PROTECTED] > Date: Wednesday, 4 June, 2008, 4:23 PM > > You need to run > > bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o > directory\where\you\want\the\code\generated > > This will create a "stub" which is a class you can embed in your > application. You simply need to create a new instance of this class > and then call methods on it, those methods will call the remote > service. > > Paul > > On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma <[EMAIL PROTECTED]> > wrote: >> Hi, >> >> >> >> I am new to the web services and so as to axis. Please help me. >> >> I have to show something this week. I have been working to sort this out >> since last 4 days. >> >> I am sorry to say this. >> >> >> >> I have an existing web application. To use axis in existing application, >> >> I have done : >> >> 1.copy all jars from axis.lib directory >> >> 2.copy axis's web.xml servlet params and mapping to to my web.xml >> >> >> >> I have got a wsdl url from an external application (to be integrated with > my >> application) >> >> Now what should I do to use this wsdl to access the external application ? >> >> Please kind enough to me. >> >> >> >> Many Thanks, >> >> >> >> >> >> >> Sent from Yahoo! Mail. >> A Smarter Email. > > > > -- > Paul Fremantle > Co-Founder and CTO, WSO2 > Apache Synapse PMC Chair > OASIS WS-RX TC Co-chair > > blog: http://pzf.fremantle.org > [EMAIL PROTECTED] > > "Oxygenating the Web Service Platform", www.wso2.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Sent from Yahoo! Mail. > A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
RE: Problem using java2wsdl
Really, I had testing something as simple as that (please find attached the simple project...) _ De: pierre betz [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:46 Para: axis-user@ws.apache.org Asunto: Re: Problem using java2wsdl i tried the same, and I think it's maybe your code which have a problem. I'm not an expert in java2wsdl, but maybe the problem is in your code files, in fact the interface is not a class, so maybe you need to put the class path after cn, and not the interface. as I don't have your files, I can't test myself. your class will implement this interface, so maybe try to find out the problem by this way. Myproject_specs.rar Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: wsdl
Thank you. I run wsdl2java in Axis2 1.3 version. But I am getting error :- Caused by: javax.wsdl.WSDLException: WSDLException (at /html): faultCode=INVALID_WSDL: Expected element '{http://schemas .xmlsoap.org/wsdl/}definitions'. at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:286) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:105) ... 2 more I don't understand whats the cause of this error ? Is something missing in wsdl document? --- On Wed, 4/6/08, Martin Gainty <[EMAIL PROTECTED]> wrote: From: Martin Gainty <[EMAIL PROTECTED]> Subject: RE: wsdl To: [EMAIL PROTECTED], axis-user@ws.apache.org Date: Wednesday, 4 June, 2008, 5:20 PM #yiv112315369 .hmmessage P { margin:0px;padding:0px;} #yiv112315369 .hmmessage { FONT-SIZE:10pt;FONT-FAMILY:Tahoma;} There are many reasons to adopt Axis2 Ability to use Axis Object Model to represent all of your entities (Axiom) Ability to incorporate more databinding types ADB, XMLBEANS, JIBX, JAXBRI Ability to engage or disengage AOP modules security, addressing, logging Ability to upload services without disrupting other services Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 4 Jun 2008 11:37:09 + From: [EMAIL PROTECTED] Subject: Re: wsdl To: axis-user@ws.apache.org Thanks Paul. I am downloading it. But I am not sure whether the external system accepts axis2. I will try. External system's documentation tells that it works with Axis 1.3. But it is an old documant. They must have updated it. Let me come back. --- On Wed, 4/6/08, Paul Fremantle <[EMAIL PROTECTED]> wrote: From: Paul Fremantle <[EMAIL PROTECTED]> Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 5:01 PM Sorry, I was assuming you had Axis2 (the latest version). I'm not up to speed on Axis1 so I can't help out with that. Basically if you get Axis2-bin zipfile, unzip it, and it should become clear. If you are calling a webservice from your webapp you just need to include the axis2 libs in the webapp\lib directory. Paul On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma <[EMAIL PROTECTED]> wrote: > > Thanks Paul for the quick reply. > > I have got axis-bin-1_4. In which directory I should run this ? I have done > an advnced installation > http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp > > > > Thank you very much, > > > > --- On Wed, 4/6/08, Paul Fremantle <[EMAIL PROTECTED]> wrote: > > From: Paul Fremantle <[EMAIL PROTECTED]> > Subject: Re: wsdl > To: axis-user@ws.apache.org, [EMAIL PROTECTED] > Date: Wednesday, 4 June, 2008, 4:23 PM > > You need to run > > bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o > directory\where\you\want\the\code\generated > > This will create a "stub" which is a class you can embed in your > application. You simply need to create a new instance of this class > and then call methods on it, those methods will call the remote > service. > > Paul > > On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma <[EMAIL PROTECTED]> > wrote: >> Hi, >> >> >> >> I am new to the web services and so as to axis. Please help me. >> >> I have to show something this week. I have been working to sort this out >> since last 4 days. >> >> I am sorry to say this. >> >> >> >> I have an existing web application. To use axis in existing application, >> >> I have done : >> >> 1.copy all jars from axis.lib directory >> >> 2.copy axis's web.xml servlet params and mapping to to my web.xml >> >> >> >> I have got a wsdl url from an external application (to be integrated with > my >> application) >> >> Now what should I do to use this wsdl to access the external application ? >> >> Please kind enough to me. >> >> >> >> Many Thanks, >> >> >> >> >> >> >> Sent from Yahoo! Mail. >> A Smarter Email. > > > > -- > Paul Fremantle > Co-Founder and CTO, WSO2 > Apache Synapse PMC Chair > OASIS WS-RX TC Co-chair > > blog: http://pzf.fremantle.org > [EMAIL PROTECTED] > > "Oxygenating the Web Service Platform", www.wso2.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additio
RE: wsdl
There are many reasons to adopt Axis2 Ability to use Axis Object Model to represent all of your entities (Axiom) Ability to incorporate more databinding types ADB, XMLBEANS, JIBX, JAXBRI Ability to engage or disengage AOP modules security, addressing, logging Ability to upload services without disrupting other services Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 4 Jun 2008 11:37:09 + From: [EMAIL PROTECTED] Subject: Re: wsdl To: axis-user@ws.apache.org Thanks Paul. I am downloading it. But I am not sure whether the external system accepts axis2. I will try. External system's documentation tells that it works with Axis 1.3. But it is an old documant. They must have updated it. Let me come back. --- On Wed, 4/6/08, Paul Fremantle <[EMAIL PROTECTED]> wrote: From: Paul Fremantle <[EMAIL PROTECTED]> Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 5:01 PM Sorry, I was assuming you had Axis2 (the latest version). I'm not up to speed on Axis1 so I can't help out with that. Basically if you get Axis2-bin zipfile, unzip it, and it should become clear. If you are calling a webservice from your webapp you just need to include the axis2 libs in the webapp\lib directory. Paul On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma <[EMAIL PROTECTED]> wrote: > > Thanks Paul for the quick reply. > > I have got axis-bin-1_4. In which directory I should run this ? I have done > an advnced installation > http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp > > > > Thank you very much, > > > > --- On Wed, 4/6/08, Paul Fremantle <[EMAIL PROTECTED]> wrote: > > From: Paul Fremantle <[EMAIL PROTECTED]> > Subject: Re: wsdl > To: axis-user@ws.apache.org, [EMAIL PROTECTED] > Date: Wednesday, 4 June, 2008, 4:23 PM > > You need to run > > bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o > directory\where\you\want\the\code\generated > > This will create a "stub" which is a class you can embed in your > application. You simply need to create a new instance of this class > and then call methods on it, those methods will call the remote > service. > > Paul > > On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma <[EMAIL PROTECTED]> > wrote: >> Hi, >> >> >> >> I am new to the web services and so as to axis. Please help me. >> >> I have to show something this week. I have been working to sort this out >> since last 4 days. >> >> I am sorry to say this. >> >> >> >> I have an existing web application. To use axis in existing application, >> >> I have done : >> >> 1.copy all jars from axis.lib directory >> >> 2.copy axis's web.xml servlet params and mapping to to my web.xml >> >> >> >> I have got a wsdl url from an external application (to be integrated with > my >> application) >> >> Now what should I do to use this wsdl to access the external application ? >> >> Please kind enough to me. >> >> >> >> Many Thanks, >> >> >> >> >> >> >> Sent from Yahoo! Mail. >> A Smarter Email. > > > > -- > Paul Fremantle > Co-Founder and CTO, WSO2 > Apache Synapse PMC Chair > OASIS WS-RX TC Co-chair > > blog: http://pzf.fremantle.org > [EMAIL PROTECTED] > > "Oxygenating the Web Service Platform", www.wso2.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Sent from Yahoo! Mail. > A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sent from Yahoo! Mail. A Smarter Email. _ Now you can invite friends from Facebook and other groups to join you on Windows Live™ Messenger. Add now. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_AddNow_Now
Re: wsdl
Thanks Paul. I am downloading it. But I am not sure whether the external system accepts axis2. I will try. External system's documentation tells that it works with Axis 1.3. But it is an old documant. They must have updated it. Let me come back. --- On Wed, 4/6/08, Paul Fremantle <[EMAIL PROTECTED]> wrote: From: Paul Fremantle <[EMAIL PROTECTED]> Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 5:01 PM Sorry, I was assuming you had Axis2 (the latest version). I'm not up to speed on Axis1 so I can't help out with that. Basically if you get Axis2-bin zipfile, unzip it, and it should become clear. If you are calling a webservice from your webapp you just need to include the axis2 libs in the webapp\lib directory. Paul On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma <[EMAIL PROTECTED]> wrote: > > Thanks Paul for the quick reply. > > I have got axis-bin-1_4. In which directory I should run this ? I have done > an advnced installation > http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp > > > > Thank you very much, > > > > --- On Wed, 4/6/08, Paul Fremantle <[EMAIL PROTECTED]> wrote: > > From: Paul Fremantle <[EMAIL PROTECTED]> > Subject: Re: wsdl > To: axis-user@ws.apache.org, [EMAIL PROTECTED] > Date: Wednesday, 4 June, 2008, 4:23 PM > > You need to run > > bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o > directory\where\you\want\the\code\generated > > This will create a "stub" which is a class you can embed in your > application. You simply need to create a new instance of this class > and then call methods on it, those methods will call the remote > service. > > Paul > > On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma <[EMAIL PROTECTED]> > wrote: >> Hi, >> >> >> >> I am new to the web services and so as to axis. Please help me. >> >> I have to show something this week. I have been working to sort this out >> since last 4 days. >> >> I am sorry to say this. >> >> >> >> I have an existing web application. To use axis in existing application, >> >> I have done : >> >> 1.copy all jars from axis.lib directory >> >> 2.copy axis's web.xml servlet params and mapping to to my web.xml >> >> >> >> I have got a wsdl url from an external application (to be integrated with > my >> application) >> >> Now what should I do to use this wsdl to access the external application ? >> >> Please kind enough to me. >> >> >> >> Many Thanks, >> >> >> >> >> >> >> Sent from Yahoo! Mail. >> A Smarter Email. > > > > -- > Paul Fremantle > Co-Founder and CTO, WSO2 > Apache Synapse PMC Chair > OASIS WS-RX TC Co-chair > > blog: http://pzf.fremantle.org > [EMAIL PROTECTED] > > "Oxygenating the Web Service Platform", www.wso2.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Sent from Yahoo! Mail. > A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
Re: wsdl
Sorry, I was assuming you had Axis2 (the latest version). I'm not up to speed on Axis1 so I can't help out with that. Basically if you get Axis2-bin zipfile, unzip it, and it should become clear. If you are calling a webservice from your webapp you just need to include the axis2 libs in the webapp\lib directory. Paul On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma <[EMAIL PROTECTED]> wrote: > > Thanks Paul for the quick reply. > > I have got axis-bin-1_4. In which directory I should run this ? I have done > an advnced installation > http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp > > > > Thank you very much, > > > > --- On Wed, 4/6/08, Paul Fremantle <[EMAIL PROTECTED]> wrote: > > From: Paul Fremantle <[EMAIL PROTECTED]> > Subject: Re: wsdl > To: axis-user@ws.apache.org, [EMAIL PROTECTED] > Date: Wednesday, 4 June, 2008, 4:23 PM > > You need to run > > bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o > directory\where\you\want\the\code\generated > > This will create a "stub" which is a class you can embed in your > application. You simply need to create a new instance of this class > and then call methods on it, those methods will call the remote > service. > > Paul > > On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma <[EMAIL PROTECTED]> > wrote: >> Hi, >> >> >> >> I am new to the web services and so as to axis. Please help me. >> >> I have to show something this week. I have been working to sort this out >> since last 4 days. >> >> I am sorry to say this. >> >> >> >> I have an existing web application. To use axis in existing application, >> >> I have done : >> >> 1.copy all jars from axis.lib directory >> >> 2.copy axis's web.xml servlet params and mapping to to my web.xml >> >> >> >> I have got a wsdl url from an external application (to be integrated with > my >> application) >> >> Now what should I do to use this wsdl to access the external application ? >> >> Please kind enough to me. >> >> >> >> Many Thanks, >> >> >> >> >> >> >> Sent from Yahoo! Mail. >> A Smarter Email. > > > > -- > Paul Fremantle > Co-Founder and CTO, WSO2 > Apache Synapse PMC Chair > OASIS WS-RX TC Co-chair > > blog: http://pzf.fremantle.org > [EMAIL PROTECTED] > > "Oxygenating the Web Service Platform", www.wso2.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Sent from Yahoo! Mail. > A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wsdl
I am using netbeans with ant to build the web application. --- On Wed, 4/6/08, Jyotsna Varma <[EMAIL PROTECTED]> wrote: From: Jyotsna Varma <[EMAIL PROTECTED]> Subject: Re: wsdl To: axis-user@ws.apache.org Date: Wednesday, 4 June, 2008, 4:56 PM Thanks Paul for the quick reply. I have got axis-bin-1_4. In which directory I should run this ? I have done an advnced installation http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp Thank you very much, --- On Wed, 4/6/08, Paul Fremantle <[EMAIL PROTECTED]> wrote: From: Paul Fremantle <[EMAIL PROTECTED]> Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 4:23 PM You need to run bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o directory\where\you\want\the\code\generated This will create a "stub" which is a class you can embed in your application. You simply need to create a new instance of this class and then call methods on it, those methods will call the remote service. Paul On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma <[EMAIL PROTECTED]> wrote: > Hi, > > > > I am new to the web services and so as to axis. Please help me. > > I have to show something this week. I have been working to sort this out > since last 4 days. > > I am sorry to say this. > > > > I have an existing web application. To use axis in existing application, > > I have done : > > 1.copy all jars from axis.lib directory > > 2.copy axis's web.xml servlet params and mapping to to my web.xml > > > > I have got a wsdl url from an external application (to be integrated with my > application) > > Now what should I do to use this wsdl to access the external application ? > > Please kind enough to me. > > > > Many Thanks, > > > > > > > Sent from Yahoo! Mail. > A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sent from Yahoo! Mail. A Smarter Email. __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
Re: wsdl
Thanks Paul for the quick reply. I have got axis-bin-1_4. In which directory I should run this ? I have done an advnced installation http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp Thank you very much, --- On Wed, 4/6/08, Paul Fremantle <[EMAIL PROTECTED]> wrote: From: Paul Fremantle <[EMAIL PROTECTED]> Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 4:23 PM You need to run bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o directory\where\you\want\the\code\generated This will create a "stub" which is a class you can embed in your application. You simply need to create a new instance of this class and then call methods on it, those methods will call the remote service. Paul On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma <[EMAIL PROTECTED]> wrote: > Hi, > > > > I am new to the web services and so as to axis. Please help me. > > I have to show something this week. I have been working to sort this out > since last 4 days. > > I am sorry to say this. > > > > I have an existing web application. To use axis in existing application, > > I have done : > > 1.copy all jars from axis.lib directory > > 2.copy axis's web.xml servlet params and mapping to to my web.xml > > > > I have got a wsdl url from an external application (to be integrated with my > application) > > Now what should I do to use this wsdl to access the external application ? > > Please kind enough to me. > > > > Many Thanks, > > > > > > > Sent from Yahoo! Mail. > A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
Does wss4j supports WS-Security 1.1?
Hi, Does wss4j supports WS-Security 1.1? Thanks Shripad This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp
Re: Using WSS4J with Axis 1.4
Hello Shirpad, You need to determine first which Token Profile you will be using [1]: Username Token Profile 1.1 X.509 Token Profile 1.1 SAML Token profile 1.1 Kerberos Token Profile 1.1 Also in the distribution of wss4j, there is samples. Hope this helps [1] http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wss#overview On 6/4/08, Shripad Gokhale <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have developed a soap server using axis 1.4 in core java. Now I want to > add security support using ws4j. What are the changes I need to do in order > to achieve this? > > > > Thanks > > Shripad > > This message and the information contained herein is proprietary and > confidential and subject to the Amdocs policy statement, > you may review at http://www.amdocs.com/email_disclaimer.asp > > -- Jose Ferreiro ing.sys.com.dipl.EPFL
Re: Axis2 (ADB) : Problem with empty RequestBody
We have succeeded in solving this problem: it was necessary to hand-edit the generated Stub file and disable the REST style access to web services: addPropertyToOperationClient(_operationClient,org.apache.axis2.Constants.Configuration.ENABLE_REST,false); This turned off the option which caused Axis2 to send the payload in the HTTP header (which corresponds to the REST style) to the traditional mode, in which the payload was sent in the request body in the XML form. -- Robert Novotny Robert Novotny wrote: > > I have the same problem here. I think that the culprit is the > > > > element in the WSDL. This binding forces the WSDL2Java to generate code > that sends the application/x-www-form-urlencoded header. This corresponds > to the REST style of web service invocation. However, I think that this > REST approach does not support complex objects. > > If you look on the > org.apache.axis2.transport.http.XFormURLEncodedFormatter class, you'd see > the the getBytes() method which converts the SOAP payload to the byte > representation sent via wire: > > ... > OMElement omElement = > messageContext.getEnvelope().getBody().getFirstElement(); > > if (omElement != null) { > Iterator it = omElement.getChildElements(); > String paraString = ""; > > while (it.hasNext()) { > OMElement ele1 = (OMElement) it.next(); > String parameter; > > parameter = ele1.getLocalName() + "=" + ele1.getText(); > paraString = "".equals(paraString) ? parameter : > (paraString + "&" + parameter); > } > > return paraString.getBytes(); > } > > ... > > If your message looks like this: > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> > > http://www.example.org/nPVR/";> > > > 1 > myFolder > > > > > > the only child matched by iterator is the getCustomerFolder. Deeper > children are simply ignored. This seems quite natural to me, since the > REST style via POST supports only key=value parameters passed in the HTTP > header. > > > However, I have heard about a possibility to send the SOAP message via > both methods: some parameters in the HTTP POST header and some parameters > in the payload send via XML. Is it possible in Axis2? > > The quick hack which remedies your situation can be editing of the stub > file. Just change content type in the > > addPropertyToOperationClient(_operationClient,org.apache.axis2.Constants.Configuration.CONTENT_TYPE,"application/x-www-form-urlencoded"); > and > addPropertyToOperationClient(_operationClient,org.apache.axis2.Constants.Configuration.MESSAGE_TYPE,"application/x-www-form-urlencoded"); > > "text/xml" as advised. However, this hack would perhaps break your WSDL > contract. > > Robert Novotny > > Ajith Ranabahu wrote: >> >> The part that I can see as the problem is the last one where the >> request is written to the wire. I can't understand how >> the content type became application/x-www-form-urlencoded (should have >> been text/xml for soap1.1. Since I see the SOAPAction header I suppose >> its 1.1). Is there any other configuration regarding the httpclient ? >> (that may have changed its behavior) >> >> Ajith >> >> >> On Fri, May 30, 2008 at 8:01 AM, Aljen7 <[EMAIL PROTECTED]> wrote: >>> >>> I can see thanks to dubugging that the soapEnvelope in request is >>> constructed in Stub class correctly and it remains unchainged during >>> axis2 >>> engine which ended in the correct request calling messageContext is OK >>> (afaik). Then why is it changed (empty - no body) when it comes to >>> server. >>> >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Axis2-%28ADB%29-%3A-Problem-with-empty-RequestBody-tp17532435p17557256.html >>> Sent from the Axis - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> -- >> Ajith Ranabahu >> >> Reading, after a certain age, diverts the mind too much from its >> creative pursuits. Any man who reads too much and uses his own brain >> too little falls into lazy habits of thinking - Albert Einstein >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/Axis2-%28ADB%29-%3A-Problem-with-empty-RequestBody-tp17532435p17644016.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wsdl
You need to run bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o directory\where\you\want\the\code\generated This will create a "stub" which is a class you can embed in your application. You simply need to create a new instance of this class and then call methods on it, those methods will call the remote service. Paul On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma <[EMAIL PROTECTED]> wrote: > Hi, > > > > I am new to the web services and so as to axis. Please help me. > > I have to show something this week. I have been working to sort this out > since last 4 days. > > I am sorry to say this. > > > > I have an existing web application. To use axis in existing application, > > I have done : > > 1.copy all jars from axis.lib directory > > 2.copy axis's web.xml servlet params and mapping to to my web.xml > > > > I have got a wsdl url from an external application (to be integrated with my > application) > > Now what should I do to use this wsdl to access the external application ? > > Please kind enough to me. > > > > Many Thanks, > > > > > > > Sent from Yahoo! Mail. > A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Creating Queue, JNDI.. in Active MQ
Shouldn't this question be posed on the Active MQ mailing list? You should get better hits there. Sanjay From: adisesha [mailto:[EMAIL PROTECTED] Sent: 04 June 2008 11:39 To: axis-user@ws.apache.org Subject: Creating Queue, JNDI.. in Active MQ Hi, Can any one help me in creating queue manager, queue, JNDI in Active MQ? And do we have any utility/tool like MQExplorer for MQseries. Thanks in advance Disclaimer The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by forwarding this email to [EMAIL PROTECTED] and then delete it from your system. Ness technologies is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.
wsdl
Hi, I am new to the web services and so as to axis. Please help me. I have to show something this week. I have been working to sort this out since last 4 days. I am sorry to say this. I have an existing web application. To use axis in existing application, I have done : 1.copy all jars from axis.lib directory 2.copy axis's web.xml servlet params and mapping to to my web.xml I have got a wsdl url from an external application (to be integrated with my application) Now what should I do to use this wsdl to access the external application ? Please kind enough to me. Many Thanks, __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
Re: Problem using java2wsdl
i tried the same, and I think it's maybe your code which have a problem. I'm not an expert in java2wsdl, but maybe the problem is in your code files, in fact the interface is not a class, so maybe you need to put the class path after cn, and not the interface. as I don't have your files, I can't test myself. your class will implement this interface, so maybe try to find out the problem by this way.
Creating Queue, JNDI.. in Active MQ
Hi, Can any one help me in creating queue manager, queue, JNDI in Active MQ? And do we have any utility/tool like MQExplorer for MQseries. Thanks in advance Disclaimer The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by forwarding this email to [EMAIL PROTECTED] and then delete it from your system. Ness technologies is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.
RE: Problem using java2wsdl
I have copied my folder in C:\ and it is the same... C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn C:\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\PruebaWSDL\bin\eu\myproject\mycomponent\myService _ De: Perez Arbulu, Ibai [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:28 Para: axis-user@ws.apache.org Asunto: RE: Problem using java2wsdl I Would try with a different classpath. Documents and settings is not advisable at all. _ De: Adriana Verdejo [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 04 de Junio de 2008 05:23 a.m. Para: axis-user@ws.apache.org Asunto: RE: Problem using java2wsdl Dear Pierre, thanks for your fast answer, but I did it before and the error was the same.. I mean... C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn C:\Documents and Settings\adriana\workspace\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\Documents My interface is like that.. package eu.myproject.mycomponent; import myproject.mycomponent.mymodule1.otherService1; import myproject.mycomponent.mymodule2.otherService2; public interface myService extends otherService1, otherService2 { } Thanks, Adriana. _ De: pierre betz [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:04 Para: axis-user@ws.apache.org Asunto: Re: Problem using java2wsdl a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService is generated when the class is not found. you are using : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService which describe that you class myService is in the folder C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. are you sure that you pu the class in this folder ? if not, you have to explain where is you class, like : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn yourparentclassdirectory\myService like : if my class is located here : c:\myproject\myClass.class C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn c:\myproject\myClass does it work?
Re: Problem using java2wsdl
same answer :) or try with your path beetwen " " like"c:\document and... " 2008/6/4 Perez Arbulu, Ibai <[EMAIL PROTECTED]>: > I Would try with a different classpath. > > > > "Documents and settings" is not advisable at all. > -- > > *De:* Adriana Verdejo [mailto:[EMAIL PROTECTED] > *Enviado el:* Miércoles, 04 de Junio de 2008 05:23 a.m. > *Para:* axis-user@ws.apache.org > *Asunto:* RE: Problem using java2wsdl > > > > Dear Pierre, > > > > thanks for your fast answer, but I did it before and the error was the > same.. > > > > I mean... > > > > C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn C:\Documents > and > Settings\adriana\workspace\PruebaWSDL\bin\eu\myproject\mycomponent\myService > > Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 > Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 > An error occured while generating codejava.lang.ClassNotFoundException: > C:\Documents > > My interface is like that.. > > > > > > package eu.myproject.mycomponent; > > > > import myproject.mycomponent.mymodule1.otherService1; > import myproject.mycomponent.mymodule2.otherService2; > > > > public interface myService extends otherService1, otherService2 { > > > > } > > > > Thanks, > > > > Adriana. > > > -- > > *De:* pierre betz [mailto:[EMAIL PROTECTED] > *Enviado el:* miércoles, 04 de junio de 2008 12:04 > *Para:* axis-user@ws.apache.org > *Asunto:* Re: Problem using java2wsdl > > a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService > is generated when the class is not found. > > you are using : > > C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn > eu.myproject.myComponent.myService > > > > which describe that you class myService is in the folder > C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. > > are you sure that you pu the class in this folder ? > if not, you have to explain where is you class, like : > > > > C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn > yourparentclassdirectory\myService > > > > like : if my class is located here : c:\myproject\myClass.class > > > > C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn > c:\myproject\myClass > > > > does it work? > > > > > > > > > > >
RE: Problem using java2wsdl
I Would try with a different classpath. "Documents and settings" is not advisable at all. De: Adriana Verdejo [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 04 de Junio de 2008 05:23 a.m. Para: axis-user@ws.apache.org Asunto: RE: Problem using java2wsdl Dear Pierre, thanks for your fast answer, but I did it before and the error was the same.. I mean... C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn C:\Documents and Settings\adriana\workspace\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\Documents My interface is like that.. package eu.myproject.mycomponent; import myproject.mycomponent.mymodule1.otherService1; import myproject.mycomponent.mymodule2.otherService2; public interface myService extends otherService1, otherService2 { } Thanks, Adriana. De: pierre betz [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:04 Para: axis-user@ws.apache.org Asunto: Re: Problem using java2wsdl a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService is generated when the class is not found. you are using : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService which describe that you class myService is in the folder C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. are you sure that you pu the class in this folder ? if not, you have to explain where is you class, like : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn yourparentclassdirectory\myService like : if my class is located here : c:\myproject\myClass.class C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn c:\myproject\myClass does it work?
RE: Problem using java2wsdl
Dear Pierre, thanks for your fast answer, but I did it before and the error was the same.. I mean... C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn C:\Documents and Settings\adriana\workspace\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\Documents My interface is like that.. package eu.myproject.mycomponent; import myproject.mycomponent.mymodule1.otherService1; import myproject.mycomponent.mymodule2.otherService2; public interface myService extends otherService1, otherService2 { } Thanks, Adriana. _ De: pierre betz [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:04 Para: axis-user@ws.apache.org Asunto: Re: Problem using java2wsdl a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService is generated when the class is not found. you are using : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService which describe that you class myService is in the folder C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. are you sure that you pu the class in this folder ? if not, you have to explain where is you class, like : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn yourparentclassdirectory\myService like : if my class is located here : c:\myproject\myClass.class C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn c:\myproject\myClass does it work?
Re: Problem using java2wsdl
Adriana Maybe you don't even need to use java2wsdl. Are you deploying a Java class as a service? If so, then Axis2 automatically generates the WSDL for you. Paul On Wed, Jun 4, 2008 at 10:48 AM, Adriana Verdejo <[EMAIL PROTECTED]> wrote: > Hi all, > > I am new using axis and I am very lost. I would like to generate my wsdl > from my java interface. I have used the axis plugin for eclipse (axis 2 code > generator) but I find always this error message: "An error occured while > completing process -java.lang.reflect.InvocationTargetException". I don't > know what is wrong. Because of that I tried to do it by command.. > > > C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn > eu.myproject.myComponent.myService > > Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 > > Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 > > > > And I get this error: > > > > An error occured while generating codejava.lang.ClassNotFoundException: > eu.myproject.myComponent.myService > > > > My class is in my workspace. How I should give this information to axis? > > > > Could you please help me? Thanks in advance. > > > Best regards, > > Adriana. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using java2wsdl
a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService is generated when the class is not found. you are using : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn eu.myproject. myComponent.myService which describe that you class myService is in the folder C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. are you sure that you pu the class in this folder ? if not, you have to explain where is you class, like : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn yourparentclassdirectory\myService like : if my class is located here : c:\myproject\myClass.class C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn c:\myproject\myClass does it work?
Using WSS4J with Axis 1.4
Hi, I have developed a soap server using axis 1.4 in core java. Now I want to add security support using ws4j. What are the changes I need to do in order to achieve this? Thanks Shripad This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp
Problem using java2wsdl
Hi all, I am new using axis and I am very lost. I would like to generate my wsdl from my java interface. I have used the axis plugin for eclipse (axis 2 code generator) but I find always this error message: "An error occured while completing process -java.lang.reflect.InvocationTargetException". I don't know what is wrong. Because of that I tried to do it by command.. C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 And I get this error: An error occured while generating codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService My class is in my workspace. How I should give this information to axis? Could you please help me? Thanks in advance. Best regards, Adriana.
Re: ServiceClient Port Location Versus Options.setTo(EndpointReference)
Hi Jay, This behaviour doesn't sound correct. Please raise a JIRA [1] and add a few more details on how the client is performing the invocation. Thanks [1] http://issues.apache.org/jira/browse/AXIS2 Cheers Brian DePradine Web Services Development IBM Hursley External +44 (0) 1962 816319 Internal 246319 If you can't find the time to do it right the first time, where will you find the time to do it again? jaybytez <[EMAIL PROTECTED]> wrote on 03/06/2008 15:59:48: > > I am doing Stubless Web Service Invocation, using the ServiceClient. I use > the Options to setup information like timeout and also to set where the web > service request should be sent using the Options.setTo(EndpointReference). > Then I use the AxisService.createClientSideAxisService to create an instance > of the ServiceClient class with the Options I configured passed into it. > The WSDL that is being used by the ServiceClient has a different location > identified in the serviceName/port that I am utilizing. It appears that > sometimes the Options.setTo(EndpointReference) does not override the URL > that is located in the WSDL. I have a developer that runs multiple tests > and the first test always uses the WSDLs port URL and the subsequent posts > uses the Options.setTo(EndpointReference). Does the > Options.setTo(EndpointReference) override the URL that is found the the > portName being used? > > Thanks - jay > -- > View this message in context: http://www.nabble.com/ServiceClient- > Port-Location-Versus-Options.setTo%28EndpointReference%29- > tp17625643p17625643.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
memory leak with SOAP12Factory
we use axis2 v1.2 class org/apache/axiom/soap/impl/llom/soap12/SOAP12Factory holds a java/util/HashMap oject which grows over day and totally it need huge amount of memory. Every HaspMap entry contains a string and a org/apache/axiom/om/impl/OMNamespaceImpl object. Does anybody know if there exits a fix in a newer version of axis2?