Re: ApacheCon EU 2006 - Secure Web Services with Apache Axis2 and Apache WSS4J
For those who can't make it to ApacheCon, can you make slides/sources available if possible? :-) Thanks, Bhaskar On 6/1/06, Ruchith Fernando <[EMAIL PROTECTED]> wrote: Hi All, Want to find out how to secure Apache Axis2? Apache Rampart as the ideal module for the job !!! If you are anywhere near Ireland on the 26th of June or really want to know how it all works, come on over to ApacheCon EU 2006 where I will be presenting a tutorial on "Secure Web Services with Apache Axis2 and Apache WSS4J". see http://www.eu.apachecon.com/konferenzen/psecom,id,488,track,5,nodeid,,_language,uk.html#session-moh7 for details. Early bird registration is now open till the 6th of June. So hurry and register now! http://eu.apachecon.com/konferenzen/divers/psecom,id,368,nodeid,484.html Thanks, Ruchith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with code generated by WSDL2Code
Hi Paul, I had a similar problem, and I have created a JIRA yesterday. key: AXIS2-784. Could you verify if you had the same problem? I believe my wsdl is valid. Thanks, Bhaskar On 5/30/06, Martin Gainty <[EMAIL PROTECTED]> wrote: Good Evening Warren What is bungholeio? Martin - This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Warren Crossing" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 30, 2006 7:07 PM Subject: Re: Problem with code generated by WSDL2Code > use adb databinding instread of xmlbeans > > > > > > > > > > > > > > > > > > > For some reason the code is bungholeio. > > Martin Gainty wrote: >> Good Monring >> >> In 1.3 the name of the code generator is WSDL2Java >> Here is the example I use >> >> java -classpath $CLASSPATH. org.apache.axis.wsdl.WSDL2Java >> NameOfService.wsdl >> >> Martin -- >> >> * >> This email message and any files transmitted with it contain confidential >> information intended only for the person(s) to whom this email message is >> addressed. If you have received this email message in error, please >> notify >> the sender immediately by telephone or email and destroy the original >> message without making a copy. Thank you. >> >> >> >> - Original Message - >> From: "Paul Gonchar" <[EMAIL PROTECTED]> >> To: >> Sent: Thursday, May 25, 2006 6:47 PM >> Subject: Problem with code generated by WSDL2Code >> >> >> >>>Hi guys, >>>I've just started using Axis2. I need to generate >>>server skeletons. I used the following command: >>> >>>call WSDL2Code.bat -uri >>>C:\project\cvs\gazoo\src\share\xml\webservice\userprofile\ver2.0\userProfile.wsdl >>>-ss -sd -d adb -p com.test.generated -o output/server >>> >>>and I got a bunch of generated code that can't be >>>compiled. I've noticed things like calls to >>>org.apache.axis2.databinding.utils.ConverterUtil.convertToToken(content) >>>(there is no method convertToToken in ConverterUtil) >>>which may be fixed by replacing convertToToken with >>>convertTotoken >>> >>>The same thing with >>>org.apache.axis2.databinding.utils.ConverterUtil.convertToCalendar(content) >>>-> must be replaced with convertTodateTime >>> >>>Finally I got into problem I can't fix : >>> >>> >>> private java.lang.Object fromOM( >>> org.apache.axiom.om.OMElement param, >>>java.lang.Class >>>type, >>>java.util.Map >>>extraNamespaces) { >>> >>> try { >>> >>> if >>>(org.apache.axiom.om.OMElement.class.equals(type)){ return >>>org.apache.axiom.om.OMElement.Factory.parse(param.getXMLStreamReaderWithoutCaching()); >>> } >>> >>> } catch (Exception e) { >>> throw new RuntimeException(e); >>> } >>> >>> return null; >>> } >>> >>> >>>The problem is in line >>>org.apache.axiom.om.OMElement.Factory - there is no >>>variable Factory in class OMElement. >>> >>> >>>Am i doing something wrong or Axis2 is indeed that >>>buggy? >>> >>> >>>Thanks! >>>Paul Gonchar >>> >>> >>> >>> >>> >>> >>>__ >>>Do You Yahoo!? >>>Tired of spam? Yahoo! Mail has the best spam protection around >>>http://mail.yahoo.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] > > - 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: WSDL2Java generates code but fails compile
Created JIRA (key: AXIS2-784) as a bug. Please let me know if any more info is needed. Thanks, Bhaskar On 5/30/06, B R <[EMAIL PROTECTED]> wrote: Thanks, Robert. Will do that. Are there any alternatives to create custom headers? Bhaskar On 5/30/06, robert lazarski <[EMAIL PROTECTED]> wrote: > I tested your wsdl and it's failing here too with the nightly build ... so > to file a jira, go here: > > http://issues.apache.org/jira/ > > And create an account. Then create the issue under axis2, and follup up by > uploading your wsdl . > > Robert > http://www.braziloutsource.com/ > > > On 5/30/06, B R <[EMAIL PROTECTED] > wrote: > > > Hello, > > I have created a WSDL file (see below), and I am trying to generate > and compile java code for my web service. I can generate code, but ant > build fails with complains about org.apache.axiom.om.OMelement. The > errors are about the method newXMLStreamReader() and variable Factory > within this interface. > > Specifically, I am trying to add a custom soap header in my request > and response. > > I noticed a mail from Davanum Srinivas for a similar problem to make > it a JIRA, but I don't know what JIRA is :-) > > I appreciate any insights/alternatives. > Thanks, > Bhaskar > > I use JDK1.5.03, Axis2-std-1.0-bin and ant 1.6.5 on a windows XP > professional. > My wsdl: > ---sample-address.wsdl- > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; > xmlns:tns=" http://foo.bar/service"; > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; > xmlns:xsd=" http://www.w3.org/2001/XMLSchema"; > name="TtsSgsTitleTransfer" > targetNamespace="http://foo.bar/service";> > > http://foo.bar/service"; >xmlns:xsd="http://www.w3.org/2001/XMLSchema"; >xmlns:tns=" http://foo.bar/service"; >xmlns="http://foo.bar/service"; > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > minOccurs="0"/> > > > > default="USA" minOccurs="0"/> > > > > > > > > > > > > > > > > > > > type="tns:ResponseType"/> > type="tns:AddressType"/> > type="tns:HeaderType"/> > type="tns:HeaderType"/> > > > > >name="addressRequest" /> >element="tns:updateAddressRequestHeader" /> > > > >name="addressResponse" /> >element="tns:updateAddressResponseHeader" /> > > > > > message="tns:updateAddressRequest" /> > message="tns:updateAddressResponse" /> > > > > >transport="http://schemas.xmlsoap.org/soap/http " /> > > > > part="updateAddressRequestHeader" use="literal"/> > > > > > message="tns:updateAddressResponse" > part="updateAddressResponseHeader" use="literal"/> > > > > > > > > binding="tns:addressBinding"> > location="http://localhost:8080/AddressService " /> > > > > --- > My stack trace on compile error: > -- > C:\devtools\axis2-std-1.0-bin\samples\wsdl>WSDL2Java -uri > sample-address.wsdl -sd -s -ss -d xmlbeans -p test.address -o > address_src > Using AXIS2_HOME: c:\devtools\axis2- std-1.0-bin > Using JAVA_HOME:C:\devtools\jdk1.5.0_03 &g
Re: WSDL2Java generates code but fails compile
Thanks, Robert. Will do that. Are there any alternatives to create custom headers? Bhaskar On 5/30/06, robert lazarski <[EMAIL PROTECTED]> wrote: I tested your wsdl and it's failing here too with the nightly build ... so to file a jira, go here: http://issues.apache.org/jira/ And create an account. Then create the issue under axis2, and follup up by uploading your wsdl . Robert http://www.braziloutsource.com/ On 5/30/06, B R <[EMAIL PROTECTED] > wrote: > Hello, I have created a WSDL file (see below), and I am trying to generate and compile java code for my web service. I can generate code, but ant build fails with complains about org.apache.axiom.om.OMelement. The errors are about the method newXMLStreamReader() and variable Factory within this interface. Specifically, I am trying to add a custom soap header in my request and response. I noticed a mail from Davanum Srinivas for a similar problem to make it a JIRA, but I don't know what JIRA is :-) I appreciate any insights/alternatives. Thanks, Bhaskar I use JDK1.5.03, Axis2-std-1.0-bin and ant 1.6.5 on a windows XP professional. My wsdl: ---sample-address.wsdl- http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns=" http://foo.bar/service"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd=" http://www.w3.org/2001/XMLSchema"; name="TtsSgsTitleTransfer" targetNamespace="http://foo.bar/service";> http://foo.bar/service"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:tns=" http://foo.bar/service"; xmlns="http://foo.bar/service"; > http://schemas.xmlsoap.org/soap/http " /> http://localhost:8080/AddressService " /> --- My stack trace on compile error: -- C:\devtools\axis2-std-1.0-bin\samples\wsdl>WSDL2Java -uri sample-address.wsdl -sd -s -ss -d xmlbeans -p test.address -o address_src Using AXIS2_HOME: c:\devtools\axis2- std-1.0-bin Using JAVA_HOME:C:\devtools\jdk1.5.0_03 log4j:WARN No appenders could be found for logger (org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter). log4j:WARN Please initialize the log4j system properly. C:\devtools\axis2-std-1.0-bin\samples\wsdl>cd address_src C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src>ant Buildfile: build.xml init: [mkdir] Created dir: C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build [mkdir] Created dir: C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build\classes [mkdir] Created dir: C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build\lib [mkdir] Created dir: C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\test jar.xbeans: [jar] Building jar: C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build\lib\XBeans-packaged.jar pre.compile.test : [echo] XmlBeans Availability = true [echo] Stax Availability= true [echo] Axis2 Availability= true compile.src: [javac] Compiling 230 source files to C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build\classes [javac] C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\src\test\address\AddressServiceMessageReceiverInOut.java:77: cannot find symbol [javac] symbol : method newXMLStreamReader() [javac] location: interface org.apache.axiom.om.OMElement [javac] (org.apache.axiom.om.OMAbstractFactory.getOMFactory(),new org.apache.axis2.util.StreamWrapper(param.newXMLStream Reader())) ; [javac] ^ [javac] C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\src\test\address\AddressServiceMessageReceiverInOut.java:160: cannot find symbol [javac] symbol : variable Factory [javac] location: interface org.apache.axiom.
WSDL2Java generates code but fails compile
Hello, I have created a WSDL file (see below), and I am trying to generate and compile java code for my web service. I can generate code, but ant build fails with complains about org.apache.axiom.om.OMelement. The errors are about the method newXMLStreamReader() and variable Factory within this interface. Specifically, I am trying to add a custom soap header in my request and response. I noticed a mail from Davanum Srinivas for a similar problem to make it a JIRA, but I don't know what JIRA is :-) I appreciate any insights/alternatives. Thanks, Bhaskar I use JDK1.5.03, Axis2-std-1.0-bin and ant 1.6.5 on a windows XP professional. My wsdl: ---sample-address.wsdl- http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="http://foo.bar/service"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; name="TtsSgsTitleTransfer" targetNamespace="http://foo.bar/service";> http://foo.bar/service"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:tns="http://foo.bar/service"; xmlns="http://foo.bar/service"; > http://schemas.xmlsoap.org/soap/http"; /> http://localhost:8080/AddressService"; /> --- My stack trace on compile error: -- C:\devtools\axis2-std-1.0-bin\samples\wsdl>WSDL2Java -uri sample-address.wsdl -sd -s -ss -d xmlbeans -p test.address -o address_src Using AXIS2_HOME: c:\devtools\axis2-std-1.0-bin Using JAVA_HOME:C:\devtools\jdk1.5.0_03 log4j:WARN No appenders could be found for logger (org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter). log4j:WARN Please initialize the log4j system properly. C:\devtools\axis2-std-1.0-bin\samples\wsdl>cd address_src C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src>ant Buildfile: build.xml init: [mkdir] Created dir: C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build [mkdir] Created dir: C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build\classes [mkdir] Created dir: C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build\lib [mkdir] Created dir: C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\test jar.xbeans: [jar] Building jar: C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build\lib\XBeans-packaged.jar pre.compile.test: [echo] XmlBeans Availability = true [echo] Stax Availability= true [echo] Axis2 Availability= true compile.src: [javac] Compiling 230 source files to C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build\classes [javac] C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\src\test\address\AddressServiceMessageReceiverInOut.java:77: cannot find symbol [javac] symbol : method newXMLStreamReader() [javac] location: interface org.apache.axiom.om.OMElement [javac] (org.apache.axiom.om.OMAbstractFactory.getOMFactory(),new org.apache.axis2.util.StreamWrapper(param.newXMLStream Reader())) ; [javac] ^ [javac] C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\src\test\address\AddressServiceMessageReceiverInOut.java:160: cannot find symbol [javac] symbol : variable Factory [javac] location: interface org.apache.axiom.om.OMElement [javac] return org.apache.axiom.om.OMElement.Factory.parse( [javac] ^ [javac] C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\src\test\address\AddressServiceMessageReceiverInOut.java:164: cannot find symbol [javac] symbol : variable Factory [javac] location: interface org.apache.axiom.om.OMElement [javac] return org.apache.axiom.om.OMElement.Factory.parse( [javac] ^ [javac] Note: * uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: C:\devtools\axis2-std-1.0-bin\samples\wsdl\ad
Re: maven2 packaging, archetype, etc for axis2?
Wow that should help a lot. I will try this out and keep the list posted. Thanks much, Bhaskar On 5/17/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote: Here's a maven2 example: "Embedding an Axis2 based Web Service in your Webapp" [1] thanks, dims [1] http://www.wso2.net/2006/05/embedding_an_axis2_based_web_service_in_your_webapp On 5/16/06, B R <[EMAIL PROTECTED]> wrote: > > Hi, > > does anybody know of any maven2 support for developing web services using > Axis2? > > Thanks, > Bhaskar -- Davanum Srinivas : http://wso2.com/blogs/
Re: FactoryConfigurationError on running client from Eclipse
RESOLVED: I saw a comment by Davanum Srinivas querying somebody if they had woodstox jar (http://issues.apache.org/jira/browse/AXIS2-668#action_12377946) in the classpath. So I added this to my maven2 pom.xml after hunting for it for a while. Then I did a clean install and updated my .classpath using mvn eclipse:eclipse. Then I ran the PingClient again, and lo and behold, it worked. Thanks, Bhaskar On 5/16/06, B R <[EMAIL PROTECTED]> wrote: Hello. When I try to run PingClient from Eclipse 3.1, I get the FactoryConfigurationError. My code builds without errors with maven2. My classpath has almost all the jar files that exist in Aixs2 war's WEB-INF/lib directory (except wstx-asl-2.9.3, jibx-run1.1-beta-8 and axis2-soapmonitor, that my pom.xml can not pull from anywhere). Note however that when I manually add all the jar files from axis2 war/WEB-INF/lib to the classpath, there are no errors, and everything runs great. I noticed that there is a similar issue (#AXIS2-668) at http://issues.apache.org/jira/browse/AXIS2-668. Can anybody shed some light? Thanks much :-) Bhaskar Detailed error: - javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72) at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176) at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92) at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136) at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:35) at org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:59) at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:81) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:63) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:769) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:113) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:38) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:90) at org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.java:185) at org.apache.axis2.client.ServiceClient.(ServiceClient.java:83) at org.apache.axis2.client.ServiceClient.(ServiceClient.java:197) at com.copart.ws.client.ping.PingClient.main(PingClient.java:25) Exception in thread "main" -- classpath: -
FactoryConfigurationError on running client from Eclipse
Hello. When I try to run PingClient from Eclipse 3.1, I get the FactoryConfigurationError. My code builds without errors with maven2. My classpath has almost all the jar files that exist in Aixs2 war's WEB-INF/lib directory (except wstx-asl-2.9.3, jibx-run1.1-beta-8 and axis2-soapmonitor, that my pom.xml can not pull from anywhere). Note however that when I manually add all the jar files from axis2 war/WEB-INF/lib to the classpath, there are no errors, and everything runs great. I noticed that there is a similar issue (#AXIS2-668) at http://issues.apache.org/jira/browse/AXIS2-668. Can anybody shed some light? Thanks much :-) Bhaskar Detailed error: - javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72) at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176) at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92) at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136) at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:35) at org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:59) at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:81) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:63) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:769) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:113) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:38) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:90) at org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.java:185) at org.apache.axis2.client.ServiceClient.(ServiceClient.java:83) at org.apache.axis2.client.ServiceClient.(ServiceClient.java:197) at com.copart.ws.client.ping.PingClient.main(PingClient.java:25) Exception in thread "main" -- classpath: -
maven2 packaging, archetype, etc for axis2?
Hi, does anybody know of any maven2 support for developing web services using Axis2? Thanks, Bhaskar