Re: Unable to engage module : rampart [RESOLVED]

2010-01-28 Thread Dennis Sosnoski
You should be able to do this much more simply by just adding the rampart.mar directly to your classpath. That way you can skip all the repository setup (including the ConfigurationContextFactory call) and just need to call engageModule("rampart"); in your code. - Dennis -- Dennis M. Sosnosk

Re: WS-Security

2009-11-22 Thread Dennis Sosnoski
http://www.ibm.com/developerworks/java/library/j-jws4/index.html http://www.ibm.com/developerworks/java/library/j-jws5/index.html http://www.ibm.com/developerworks/java/library/j-jws6/index.html http://www.ibm.com/developerworks/java/library/j-jws7.html - Dennis -- Dennis M. Sosnoski Java XML a

Re: Axis2 - Rampart performance

2009-11-18 Thread Dennis Sosnoski
Hi Rajan, See http://www.ibm.com/developerworks/java/library/j-jws6/index.html WS-Security overhead is very high, and you're best off limiting its use for high-volume web services to cases where it's really needed. And it's not just Axis2/Rampart that has this kind of overhead - the second nex

Re: Axis2, Rampart and Tomcat

2009-11-12 Thread Dennis Sosnoski
Rogan Creswick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rogan Creswick wrote: Error: java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at ... I've been building with java 1.6, but I've been using

Re: Axis2, Rampart and Tomcat

2009-11-12 Thread Dennis Sosnoski
Hi Rogan, I don't know why you'd be experiencing this problem, but at least under Tomcat you probably want to have the .mar files in the /WEB-INF/modules directory, rather than the /WEB-INF/lib directory. My article at http://www.ibm.com/developerworks/java/library/j-jws4/index.html discusses

Re: "ADBException: Unexpected subelement " - error caused by space after element name in schema

2009-11-09 Thread Dennis Sosnoski
It turns out JAXB is actually treating the whitespace as part of the name, just like ADB (and JiBX, at present). The funny part is JAXB actually reports an error if the name contains any invalid non-whitespace characters. I'll point out this problem on the JAXB list. - Dennis D

Re: "ADBException: Unexpected subelement " - error caused by space after element name in schema

2009-11-09 Thread Dennis Sosnoski
Ellecer Valencia wrote: Thanks for the suggestion Dennis. I have also used it to generate client code via CXF (which defaults to JAXB), and didn't fail on generation of code as well. JAXB may be stripping off the whitespace. That's what I initially assumed should be done, but from looking at t

Re: "ADBException: Unexpected subelement " - error caused by space after element name in schema

2009-11-08 Thread Dennis Sosnoski
Hi Ellecer, I'd say this is an error in your schema definition and should be reported as such by the schema processing. Schema says the value of the name attribute should be of type NCName, which only allows name characters in the value. Have you tried this schema with any other schema tools

Re: Using base64Binary instead of hexBinary for binary fields - when and why?

2009-11-02 Thread Dennis Sosnoski
Hi Ellecer, Schema is a mish-mash of features, many of which do not make any sense. xs:hexBinary is pretty much in this category. It's always going to be bulkier than xs:base64Binary, and has no compensating advantages. Just ignore it, and always use xs:base64Binary - that way, in cases where

Re: Regarding XMLBeans generation Of files

2009-10-22 Thread Dennis Sosnoski
Certainly you can do this - XMLBeans is open source code, so get a copy of the source and modify it to generate the kind of class structure you want in your own custom version. Otherwise, follow Amila's suggestion and go with another data binding approach. ADB is very easy to use with Axis2 an

Re: Axis2 1.5 javadocs - no index.html in docs download

2009-09-14 Thread Dennis Sosnoski
See http://issues.apache.org/jira/browse/AXIS2-4434 Feel free to add a comment... :-) - Dennis -- Dennis M. Sosnoski Java XML and Web Services Axis2 Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Damian

Re: Adding WSS Headers to the WSDL

2009-08-18 Thread Dennis Sosnoski
Oh, and set the "useOriginalwsdl" parameter "false" in your services.xml so that Axis2 will generate the WSDL, rather than just using the one you supplied originally. - Dennis Dennis Sosnoski wrote: If you're using Axis2 and WS-Policy configuration of the securit

Re: Adding WSS Headers to the WSDL

2009-08-18 Thread Dennis Sosnoski
If you're using Axis2 and WS-Policy configuration of the security the policy information should be automatically added to the generated WSDL. Try a browser request to your service endpoint + "?wsdl" (e.g. "http://localhost:8080/axis2/services/myservice?wsdl";) and see if the policy is present.

Re: Axis2 and Java 5 Enum

2009-08-04 Thread Dennis Sosnoski
e?? Thanks, Greg On Mon, Aug 3, 2009 at 3:03 PM, Dennis Sosnoski <mailto:d...@sosnoski.com>> wrote: Hi Matt, There's some sort of inconsistency here. Your interface defines methods taking and returning objects of type Status, yet the definition you've prov

Re: Axis2 and Java 5 Enum

2009-08-03 Thread Dennis Sosnoski
g.jibx.ws.wsdl.tools.Jibx2Wsdl com.test.matt.PojoClass which gives me the following xsd: (the wsdl looks ok) http://www.w3.org/2001/XMLSchema"; xmlns:tns="http://com.test/matt"; elementFormDefault="qualified" targetNamespace="http://com.test/matt";&

Re: WSS Web Services with Eclipse

2009-08-03 Thread Dennis Sosnoski
Hi Lorenzo, You can see my recent articles on developerWorks for examples of using policy-based WS-Security with Axis2/Rampart: http://www.ibm.com/developerworks/java/library/j-jws4/index.html?S_TACT=105AGX02&S_CMP=EDU http://www.ibm.com/developerworks/java/library/j-jws5/index.html?S_TACT=105

Re: Axis2 and Java 5 Enum

2009-07-31 Thread Dennis Sosnoski
I finally got around to trying out Jibx2Wsdl. Unfortunately, it does not produce the correct schema for enums either. My simple status enum produces the following xml: How can I generate this correctly? On Tue, Jul 21, 2009 at 12:59 PM, Dennis Sosnoski <mailto:d...@sosnoski.co

Re: Axis2 and Java 5 Enum

2009-07-21 Thread Dennis Sosnoski
robert lazarski wrote: Yes, use Jibx2Wsdl from jibx instead of java2wsdl. jibx seems to support enums: http://jibx.sourceforge.net/tutorial/binding-advanced.html A somewhat dated article here shows how to use Jibx2Wsdl - try googling for something with the latest release. http://www.infoq.com/

Re: A generally [silly] Q

2009-07-17 Thread Dennis Sosnoski
There can be many types of differences between XML documents which are not considered to be significant (whitespace, prefixes used for namespaces, etc.), so if by "exactly identical" you mean the same exact sequence of characters the answer is very likely "no". If you mean they'll be equivalent

Re: Axis WS on mobile devices

2009-07-16 Thread Dennis Sosnoski
tutorials on this - is the kSOAP/kSOAP2 engine along the lines of Axis? I mean, beyond the general implementation of the specification, does it offer tools to generate stubs from WSDL files etc? I don't seem to be able to find even these basic documentations on their web site. Thanks ve

Re: [Axis2] Null array

2009-07-16 Thread Dennis Sosnoski
I'm not sure what Martin meant in his reply. This sounds like it's an ADB-specific problem. Assuming the schema is along these lines: the expected handling would be to generate when the array is null. If ADB is not doing this it should be considered a bug. Lik

Re: New Line character is escaped in the created SOAP message in Axis2 1.4 web service.

2009-07-16 Thread Dennis Sosnoski
Hi Andreas, Calling this "the correct behavior" seems a stretch to me. It's the expected behavior using the Woodstox output handling, but it leads to strange results in practice. There's no justification in terms of the XML specification for escaping the LF character, since the specification

Re: Axis WS on mobile devices

2009-06-26 Thread Dennis Sosnoski
sting WS on J2ME devices? Thanks Dennis Sosnoski wrote: Hi Demetris, Part of the problem is that J2ME compatibility is not the easiest thing to determine - it's not like you can just set a compiler option and have any compatibility problems reported during the build. JiBX used to work on

Re: Axis WS on mobile devices

2009-06-25 Thread Dennis Sosnoski
Hi Demetris, Part of the problem is that J2ME compatibility is not the easiest thing to determine - it's not like you can just set a compiler option and have any compatibility problems reported during the build. JiBX used to work on mobile devices, though I think the J2ME compatibility for t

Re: SSL : setting up truststore (and keystore?)

2009-06-24 Thread Dennis Sosnoski
oxy(Axis2), and I am providing the endpoint to the stub, my code does't handle connections thanks again On Wed, Jun 24, 2009 at 10:12 AM, Dennis Sosnoski <mailto:d...@sosnoski.com>> wrote: I'm surprised this works at all in an app server environment. The app server

Re: SSL : setting up truststore (and keystore?)

2009-06-24 Thread Dennis Sosnoski
;); System.setProperty("javax.net.ssl.trustStorePassword", "changeit"); First time, when I deploy the application on weblogic server everything works, but after restarting the application server then I get "no trust certificate found" any idea pl

Re: SSL : setting up truststore (and keystore?)

2009-06-23 Thread Dennis Sosnoski
Hi Shasta, I've never had any problems setting the client truststore using the javax.net.ssl.truststore property, so I suspect something is wrong with your actual truststore/keystore files. You might want to check what's actually in the stores using a tool such as http://portecle.sourceforge.n

Re: Trusting entire certificate chain?

2009-06-04 Thread Dennis Sosnoski
that server. - Dennis Dennis Sosnoski wrote: Hi Glen, It really depends on what you want to do. If the server is just using a self-signed key there's no actual chain involved, so this issue only arises when the server is using a certificate issued by a private certificate authority

Re: Trusting entire certificate chain?

2009-06-04 Thread Dennis Sosnoski
Hi Glen, It really depends on what you want to do. If the server is just using a self-signed key there's no actual chain involved, so this issue only arises when the server is using a certificate issued by a private certificate authority (since if they're using one of the "official" public au

Re: use a specific type for the tag and turn off xsi:type

2009-05-27 Thread Dennis Sosnoski
Hi Dennis, You can change your schema (assuming it's under your control) to use element substitution groups. With a substitution group, each element name can be tied to a specific extension of the base type. I realize that if you're not schema-knowledgeable this suggestion may not make much

Re: Large Web Services responses - how do you deal with them?

2009-05-19 Thread Dennis Sosnoski
} } P.S. If I had more time, I would love to look at ADB or JiBX, but for now there is no chance, a lesson learned for now. On Tue, May 19, 2009 at 3:29 PM, Dennis Sosnoski <mailto:d...@sosnoski.com>> wrote: Ah, I hadn't seen noticed/remembered this

Re: Large Web Services responses - how do you deal with them?

2009-05-18 Thread Dennis Sosnoski
ge can only return inline base64. Regards, Andreas On Mon, May 18, 2009 at 13:22, Dennis Sosnoski wrote: Hi Andrew, Your best starting point is to get rid of XMLBeans. XMLBeans always stores raw XML in memory, so there's no way to avoid the memory issues with large messages. ADB would

Re: Large Web Services responses - how do you deal with them?

2009-05-18 Thread Dennis Sosnoski
Hi Andrew, Your best starting point is to get rid of XMLBeans. XMLBeans always stores raw XML in memory, so there's no way to avoid the memory issues with large messages. ADB would avoid some of the overhead, in that it would convert the XML message to an object graph, which would typically

Re: Streaming large XML documents

2009-05-07 Thread Dennis Sosnoski
Hi Frederick, Unless you have some very special needs, you probably want to be using data binding rather than going through AXIOM directly. Using data binding is both easier from the programming standpoint, and more efficient in that AXIOM is relatively slow to construct and uses a lot of mem

Re: [Axis2] RuntimeException on timestamp = "" when timestamp minOccurs="0",

2009-05-07 Thread Dennis Sosnoski
Your server is generating invalid XML. minOccurs="0" means that the element can be left out of the XML document, but if the element is present the content must match the TimeStampType. The empty string does not match this type, even ignoring the regular expression part, because the type definit

Re: Handling Large data in a method call

2009-05-05 Thread Dennis Sosnoski
we have not evaluated other binding options as of now. Thanks, Sudhir On Wed, May 6, 2009 at 3:01 AM, Dennis Sosnoski mailto:d...@sosnoski.com>> wrote: Hi Sudhir, Are you using WS-Security for the service? WS-Security builds an in-memory model of th

Re: Handling Large data in a method call

2009-05-05 Thread Dennis Sosnoski
ave not evaluated other binding options as of now. Thanks, Sudhir On Wed, May 6, 2009 at 3:01 AM, Dennis Sosnoski <mailto:d...@sosnoski.com>> wrote: Hi Sudhir, Are you using WS-Security for the service? WS-Security builds an in-memory model of the XML if you're using sig

Re: Handling Large data in a method call

2009-05-05 Thread Dennis Sosnoski
Hi Sudhir, Are you using WS-Security for the service? WS-Security builds an in-memory model of the XML if you're using signatures (and perhaps at other times - I haven't checked, but there appeared to be some issues in this area). If you're not using WS-Security this type of data should not

Re: Best way to add a function to an existing Axis 2 service

2009-05-02 Thread Dennis Sosnoski
Hi Richard, The best way to handle this is by keeping your implementation code separate from the generated codes. For the server code, the easy way to do this is by extending the generated XXXSkeleton class with your own implementation class, which overrides all the methods of the skeleton. T

Re: How to monitor SOAP messages in the Client without changing the server?

2009-04-21 Thread Dennis Sosnoski
GetObject(deployeingmodule) INFO AWT-EventQueue-0 org.apache.axis2.deployment.ModuleDeployer - Deploying module: sample-logging DEBUG AWT-EventQueue-0 org.apache.axis2.i18n.ProjectResourceBundle - org.apache.axis2.i18n.resource::handleGetObject(invalidphase) Thanks again for your help. Joe

Re: How to monitor SOAP messages in the Client without changing the server?

2009-04-20 Thread Dennis Sosnoski
#x27;s manifest file, recompiled and ran the client, still gives the error: "Unable to engage module : logging". Any idea what might be wrong? Thanks again. Joe. On Sat, Apr 18, 2009 at 2:12 AM, Dennis Sosnoski <mailto:d...@sosnoski.com>> wrote: Hi Joe, Try includin

Re: How to monitor SOAP messages in the Client without changing the server?

2009-04-20 Thread Dennis Sosnoski
#x27;s manifest file, recompiled and ran the client, still gives the error: "Unable to engage module : logging". Any idea what might be wrong? Thanks again. Joe. On Sat, Apr 18, 2009 at 2:12 AM, Dennis Sosnoski <mailto:d...@sosnoski.com>> wrote: Hi Joe, Try includin

Re: How to monitor SOAP messages in the Client without changing the server?

2009-04-20 Thread Dennis Sosnoski
d and ran the client, still gives the error: "Unable to engage module : logging". Any idea what might be wrong? Thanks again. Joe. On Sat, Apr 18, 2009 at 2:12 AM, Dennis Sosnoski <mailto:d...@sosnoski.com>> wrote: Hi Joe, Try including the logging.mar in your clas

Re: How to monitor SOAP messages in the Client without changing the server?

2009-04-17 Thread Dennis Sosnoski
Hi Joe, Try including the logging.mar in your classpath. You can also use a repository structure on the client side, but the classpath approach is easier. Cheers, - Dennis -- Dennis M. Sosnoski SOA and Web Services in Java Axis2 Training and Consulting http://www.sosnoski.com - http://www.sos

Re: ADB alternatives

2009-03-26 Thread Dennis Sosnoski
JiBX now includes support for generating classes from schemas, which can easily be customized to remove unnecessary schema components (and their associated classes). You do need to do this as a separate step from running WSDL2Java, and need to have the schemas separate from the WSDL. You can re

Re: Regarding validating SOAP responses against the WSDL

2009-03-19 Thread Dennis Sosnoski
Hi Sneha, Validating against a schema definition is easy. I developed a validation module for Axis2 to demonstrate how this can be done using a handler, which you can find at http://www.sosnoski.co.nz/validation.zip Doing this against a WSDL is a little more difficult, in that you need to ex

Re: Example for WS-SecurityPolicy in WSDL?

2009-03-16 Thread Dennis Sosnoski
agree, I will look in to that and see whether we can handle this more gracefully. There was an issue [1] and it is now fixed in the trunk. thanks, nandana [1] - http://issues.apache.org/jira/browse/RAMPART-176 On Mon, Mar 16, 2009 at 12:37 PM, Dennis Sosnoski <mailto:d...@sosnoski.com

Re: Example for WS-SecurityPolicy in WSDL?

2009-03-16 Thread Dennis Sosnoski
L seem to be invalid. thanks, Nandana [1] - http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf On Mon, Mar 16, 2009 at 9:30 AM, Dennis Sosnoski <mailto:d...@sosnoski.com>> wrote: Hi Nandana, Yes, I understand that the Transport assertion is not contri

Re: Example for WS-SecurityPolicy in WSDL?

2009-03-15 Thread Dennis Sosnoski
y and have only the SupportingTokens assertion in the policy. If you also need to enforce https transport, you can add a HttpsToken as a transport token. thanks, Nandana On Mon, Mar 16, 2009 at 4:12 AM, Dennis Sosnoski <mailto:d...@sosnoski.com>> wrote: Hi Nandana, I'

Re: Example for WS-SecurityPolicy in WSDL?

2009-03-15 Thread Dennis Sosnoski
st the WSDL you are code generating against ? thanks, nandana On Fri, Mar 13, 2009 at 3:09 AM, Dennis Sosnoski <mailto:d...@sosnoski.com>> wrote: I've been trying to use the client-side code generation support for WS-SecurityPolicy in WSDL, with Axis2 1.4.1 and Rampart 1.

Re: Example for WS-SecurityPolicy in WSDL?

2009-03-12 Thread Dennis Sosnoski
one of the new features of 1.4, I'm hoping one of the developers at some point actually tried it out. :-) - Dennis Alexis Midon wrote: similar question here [1], some examples would be appreciated. Thanks! [1] http://markmail.org/thread/qsn6t4qwepoialud Alexis On Thu, Mar 12, 2009 at

Example for WS-SecurityPolicy in WSDL?

2009-03-12 Thread Dennis Sosnoski
I've been trying to use the client-side code generation support for WS-SecurityPolicy in WSDL, with Axis2 1.4.1 and Rampart 1.4. I've tried several variations of where I place the policy in the WSDL, including using reference and embedding it directly in the , but each time I get: [java] Exce

Re: Java2WSDL and abstract classes

2009-03-11 Thread Dennis Sosnoski
Hi Alex, You'll probably have a much easier time of it if you use Jibx2Wsdl (included in the current 1.2.1 release of JiBX) rather than Java2WSDL. Jibx2Wsdl has a number of nice features, including Java 5 typed collection and enum support, automatic JavaDoc extraction to WSDL and schema docum

Re: Daylight savings problem in Australia

2009-03-10 Thread Dennis Sosnoski
Hi Felix, There's really no correct result on this, since your dateTime value doesn't specify a time zone offset. If you want a dateTime value to be handled consistently, always use a time zone offset (which may be 'Z', meaning 0 offset from UTC) in the XML representation - so fix the web ser

Re: WSDL2Java - Skip Classes options

2009-02-28 Thread Dennis Sosnoski
to figure out the xml tags for this particular scenario. I know there is some way to skip these classes as they are not their in the production environment but I don't know how. On Sun, Mar 1, 2009 at 2:56 AM, Dennis Sosnoski <mailto:d...@sosnoski.com>> wrote: Hi Amit, Wh

Re: WSDL2Java - Skip Classes options

2009-02-28 Thread Dennis Sosnoski
Hi Amit, Why do you want to skip generating the element? You could do this using JiBX, but any XML documents you generated without this element would be invalid (since the schema says it's a required element). - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting

Re: [axis2] Automatic schema validation

2008-10-04 Thread Dennis Sosnoski
Thoughts? Paul On Thu, Oct 2, 2008 at 9:28 PM, Dennis Sosnoski <[EMAIL PROTECTED]> wrote: Hi Jake, I wrote a handler for schema validation some time ago, as an example for my training classes. Here's the information on it: http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/val

Re: [axis2] Automatic schema validation

2008-10-02 Thread Dennis Sosnoski
Hi Jake, I wrote a handler for schema validation some time ago, as an example for my training classes. Here's the information on it: http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/validation - Dennis -- Dennis M. Sosnoski SOA and Web Services in Java Axis2 Training and Consulting http:/

Re: AxisFault when using jibx

2008-09-30 Thread Dennis Sosnoski
Looks like the JiBX code for Wsdl2Java may be having a problem with the schema generated by the JAXWS service. Can you provide the full schema portion of the WSDL, so that I can see the namespace usage? By default, JAXB does not use elementFormDefault="qualified" in schema definitions, meaning

Re: AxisFault when using jibx

2008-09-30 Thread Dennis Sosnoski
Hi Sagi, From your exception stack trace, it appears that you're still using ADB, rather than JiBX: samples.quickstart.service.adb.HelloServiceStub.fromOM(HelloServiceStub.java:641) at samples.quickstart.service.adb.HelloServiceStub.testOneArg(HelloServiceStub.java:215) at sample

Re: AXIS2 wsdl2java limitations using jibx and xmlbeans databinding

2008-03-07 Thread Dennis Sosnoski
Hi Jonathan, Since you didn't provide the modified WSDL it's difficult to say what's going wrong with this. Does your WSDL work with ADB? I gather you're using a header part, which probably has not been tested thoroughly. If you want to enter a Jira on this I'll take a look at the JiBX handl

Re: [Axis2] Moving Axis2 code base into JDK 1.5

2008-02-28 Thread Dennis Sosnoski
Andreas Veithen wrote: ... Moving to Java 1.5 doesn't necessarily mean to abandon support for Java 1.4. I am currently working on a project for a company that still uses Java 1.4 (and I think there are lots of them). We needed a library to generate MS Project files, but the only one we could

Re: [Axis2] Moving Axis2 code base into JDK 1.5

2008-02-26 Thread Dennis Sosnoski
From my experiences working with companies moving to Axis2 I'd say about half are still using JDK 1.4. If they can't count on that support being maintained I think they're likely to reconsider adopting Axis2. Just having an archived 1.3 version of Axis2 won't be enough to convince them, unless

Re: NoSuchMethodError when service classes and JiBX data binding classes are located in WEB-INF/classes

2008-01-13 Thread Dennis Sosnoski
Hi Gerry, Are you certain you didn't have another copy of the classes somewhere in your classpath? This looks like you had a copy of the com.taw.cca.data.languages.DataLanguagesResult class somewhere which had not been processed by the binding compiler, and that copy was being loaded in prefe

Re: [Axis2] Java2WSDL with JAX-WS and JAXB annotations

2007-12-20 Thread Dennis Sosnoski
Hi Ben, You may have better luck using Jibx2Wsdl: http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/jibx2wsdl You can also see the article at http://www.infoq.com/articles/sosnoski-code-first discussing "code first" approaches in general, and Jibx2Wsdl in particular. Jibx2Wsdl handles a wid

Re: Looking for AXIOM experts

2007-12-20 Thread Dennis Sosnoski
Hi Chandru, I haven't stayed completely current on the latest changes, but AFAIK you're not going to get what you want by using AXIOM. By design, AXIOM will hold on to the constructed elements as you move through the list, so that you'll end up building the entire list in memory. To process

Re: Real time axis performance - Any case studies available?

2007-12-11 Thread Dennis Sosnoski
avid E wrote: > Have you looked at using Intel(r) XML Suite and Intel(r) SOA Security > Toolkit (beta available with AXIS2 API) to enhance performance? > www.intel.com/software/xml . > > Dave > > -Original Message- > From: Dennis Sosnoski [mailto:[EMAIL PROTE

Re: Real time axis performance - Any case studies available?

2007-12-11 Thread Dennis Sosnoski
When I've run time comparisons using Axis2 with and without SSL I've found the SSL time is generally about 40-50% higher than the ordinary HTTP time. I haven't had to tweak anything on the client to obtain that speed, though I do use a self-signed certificate and a local trust store (passed to the

Re: Real time axis performance - Any case studies available?

2007-12-11 Thread Dennis Sosnoski
Hi Natraj, Response under heavy load is going to depend on a number of issues, including the servlet engine used for deployment. Since you're talking about payments, security may also be an issue - WS-Security processing overhead will generally cut your performance by a factor of 2-4x (depending o

Re: [Axis2] Problem with axis2 modules

2007-12-10 Thread Dennis Sosnoski
Hi Michele, I had no problem doing this last week, using my validation module (http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/validation) with the 1.3 release. In your case, it looks like the module is being located but without the class. Have you looked inside the mar to make sure the class i

Re: Axis2 workshops/classes

2007-12-10 Thread Dennis Sosnoski
Hi Michael, I offer in-house Axis2 training classes for organizations worldwide, and just returned from a training trip to the U.S. and Mexico. I'm planning my next training trip to the U.S. for February. Courses generally last three days, with the content customized based on the outline at http:/

Re: So... UDDI?

2007-12-08 Thread Dennis Sosnoski
Hi Paul, Great to see this! It's something that I've thought was needed for a long time. UDDI was designed for a world that doesn't now exist, and is unlikely to develop within our lifetimes, where AI-type applications are able to analyze services based on simple descriptions and link them togethe

Re: Question : Turning Off XSD Validation in Axis 2

2007-10-09 Thread Dennis Sosnoski
Hi Ritesh, I'm surprised to see this, since as I said in my prior email XMLBeans does very little in the way of schema validation by default. You can manually validate the data, but unless the generated code includes the validation I don't know why you'd be running into problems. What kind of err

Re: Question : Turning Off XSD Validation in Axis 2

2007-10-09 Thread Dennis Sosnoski
XMLBeans actually does very little in the way of schema enforcement, not even checking for required elements and attributes. For anyone who *does* want to validate messages (generally a good idea at least in testing), there's a validation module I wrote for use in Axis2 training classes and made p

Re: [axis2] Fine grained control over WSDL generated with java2wsdl

2007-10-07 Thread Dennis Sosnoski
Jibx2Wsdl (http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/jibx2wsdl) is a more powerful and effective alternative to Java2Wsdl, even if you don't want to use JiBX data binding for your service implementation. It allows you to specify which properties (or fields) are or are not included in the d

Re: problem using adb in axis2

2007-10-05 Thread Dennis Sosnoski
Hi Abhijat, It sounds like you'd be much better off using JiBX rather than ADB, since you would prefer to work with existing classes. If you look at the Jibx2Wsdl tool at http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/jibx2wsdl (and discussed in this article: http://www.infoq.com/article

Re: *SPAM*: 08.50/4.0 - Re: Problem building available services

2007-10-05 Thread Dennis Sosnoski
Anne Thomas Manes wrote: ... As a general rule, it's best to avoid directly exposing language-specific types through a web services interface, though. The purpose of a web services interface is to enable interoperability with other languages. Other languages don't support Java collections and ge

Re: Problem with return HashMap.

2007-10-04 Thread Dennis Sosnoski
Hi Santosh, You can certainly do a JiBX binding using one of the org.jibx.extras marshaller/unmarshaller classes for HashMaps. Jibx2Wsdl won't currently use these to handle HashMaps when starting from Java code, though. As far as the issue of using a map in the first place, and Anne's feelin

Re: Axis2 + ADB + Asynchronous

2007-09-20 Thread Dennis Sosnoski
Hi @jr@, See the ADB example from my devWorks article: http://www.ibm.com/developerworks/webservices/library/ws-java3/ You probably want to look at the ADB wrapped example code, since you're not unwrapping the messages. The example includes an asynchronous call, and the article also has some discu

Re: Fast Webservices with Axis?

2007-09-19 Thread Dennis Sosnoski
"Fast Infoset" and "Fast Web Services" are two separate terms originated by Sun. "Fast Infoset" is similar to my own XBIS (http://www.xbis.org) representation for XML (which preceded Sun's public efforts), and basically reduces the size and processing overhead of XML by using binary representations

Re: Fast Webservices with Axis?

2007-09-18 Thread Dennis Sosnoski
Sun's "Fast Web Services" are really not all that fast, considering that it's using binary data rather than text. I have a comparison I did back around the same time as the Sun article was written which compares the speed of my earlier JibxSoap project to both other SOAP stacks and RMI. JibxSoap ac

Re: [Axis2] Creating Bottom up service with documentation?

2007-09-14 Thread Dennis Sosnoski
Jibx2Wsdl (http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/jibx2wsdl) has supported this for some time, and generates WSDLs which are compatible with Axis2. - Dennis -- Dennis M. Sosnoski SOA and Web Services in Java Axis2 Training and Consulting http://www.sosnoski.com - http://www.sosnosk

Re: Developing Axis2 web services starting from code

2007-08-29 Thread Dennis Sosnoski
gt; 1. Does this compatible with java 1.4? >> 2. I saw this your article >> > >> optionals="orderId orderDate shipDate"> >> >> >> So it is manadatory to declare the item-type for an List? >> >> >> Amila. >> >>

Re: Developing Axis2 web services starting from code

2007-08-29 Thread Dennis Sosnoski
item-type for an List? > > > Amila. > > | > > > On 8/29/07, *Paul Fremantle* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Well to be fair you brought more than balance!! A whackload of > good code goes a lnn

Re: Developing Axis2 web services starting from code

2007-08-28 Thread Dennis Sosnoski
Glad you enjoyed it, Paul! There's been so much bashing of the idea of web service development starting from code that I thought it was time to bring a bit of balance to the discussion. - Dennis Paul Fremantle wrote: > Great article! Thanks Dennis. > > Paul > > On 8/28/

Developing Axis2 web services starting from code

2007-08-28 Thread Dennis Sosnoski
My article on "Code First" Web Services Reconsidered has been published by InfoQ: http://www.infoq.com/articles/sosnoski-code-first I've also made some updates to Jibx2Wsdl to fix a few problems found, and with one more set of enhancements coming up will be making it part of the upcoming JiBX 1.1.6

Re: Axis2 article with databinding comparison

2007-08-01 Thread Dennis Sosnoski
rticle It would be nice if you give this picture as it is to the user. But it try to compare ADB, Xmlbeans and jibx with out clearly defining the context. ( i.e the user approach code first, contract first or both and them map). thanks Amila. On 7/31/07, *Dennis Sosnoski * <

Re: Axis2 article with databinding comparison

2007-07-31 Thread Dennis Sosnoski
is2 Wsdl2Java tool, because I find Wsdl2Java very difficult to work with. I thought this was all clearly spelled out in the article, especially the Summary at the end. Hope this makes things clearer. - Dennis please correct me I have misunderstood any thing. Thanks, Amila. On 7

Re: Axis2 article with databinding comparison

2007-07-27 Thread Dennis Sosnoski
The article has now been updated with the changes discussed in this thread and the one with Deepal. I'll add a link to the article in the docs. - Dennis Dennis Sosnoski wrote: Hi Amila, Amila Suriarachchi wrote: On 7/27/07, *Dennis Sosnoski* <[EMAIL PROTECTED] <mailto:[EMAI

Re: Axis2 article with databinding comparison

2007-07-27 Thread Dennis Sosnoski
epal Jayasinghe wrote: Dennis Sosnoski wrote: Hi Deepal, I don't really consider POJO support as appropriate for web services of any complexity, since it directly exports the object model as part of the service definition. It also is generally unable to cope with data structures of any

Re: Axis2 article with databinding comparison

2007-07-27 Thread Dennis Sosnoski
Hi Amila, Amila Suriarachchi wrote: On 7/27/07, *Dennis Sosnoski* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: My devWorks article comparing ADB, XMLBeans, and JiBX data binding with Axis2 has now been published: http://www.ibm.com/developerworks

Re: Axis2 article with databinding comparison

2007-07-27 Thread Dennis Sosnoski
Hi Deepal, I don't really consider POJO support as appropriate for web services of any complexity, since it directly exports the object model as part of the service definition. It also is generally unable to cope with data structures of any complexity, such as hash maps and even collections (

Axis2 article with databinding comparison

2007-07-26 Thread Dennis Sosnoski
My devWorks article comparing ADB, XMLBeans, and JiBX data binding with Axis2 has now been published: http://www.ibm.com/developerworks/webservices/library/ws-java3 I *am* the primary developer for JiBX, but tried to give a fair representation of all three frameworks in the article. It also inc

Re: Collapsing Whitespace with Axis2

2007-06-11 Thread Dennis Sosnoski
Hi John, This is really a JiBX issue, and you might want to enter it in the Jira (http://jira.codehaus.org/secure/BrowseProject.jspa?id=10410) so I don't forget to deal with it. For schema compatibility, JiBX should really support trimming whitespace from text values being converted to the va

Re: Recommendations for a new project?

2007-05-29 Thread Dennis Sosnoski
that mean that Java 5 is required? I have to stick with Java 1.4.2 for now because working for the Canadian government means working amongst glaciers and dinosaurs! cheers md -Original Message----- From: Dennis Sosnoski [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 29, 2007 3:16 P

Re: Recommendations for a new project?

2007-05-29 Thread Dennis Sosnoski
Hi Michael, There are no magic bullets when it comes to doing WSDL. Contract-first is great in theory, and is pretty much the only way to do things in cases where you're dealing with different groups in developing services to be used organization wide. However, the tools that are available to

Re: [Axis2] Axis2 1.2 JiBX update

2007-05-29 Thread Dennis Sosnoski
ub or in my server message receiver. I wouldn't like to continue using the old distribution as I see some important bugs fixed in the new one. Could you please give me any hint on what is going on? Thank you a lot in advance! Pavel -Original Message- From: Dennis Sosnoski [mailto:[EMAI

Re: Axis2 1.2 sanity check: Can generated POJO service/client handle 0-length array?

2007-05-25 Thread Dennis Sosnoski
Jarek Kucypera wrote: Dennis Sosnoski wrote: I haven't tried out the Axis2 POJO support, but in general anything you do using POJOs directly is going to be both inflexible and very limited in terms of the XML support. With all respect, xml here is the tool, not the purpose. I would

Re: MTOM error "java.lang.OutOfMemoryError: Java heap space"

2007-05-24 Thread Dennis Sosnoski
reamReader xsrOut = ... StAXOMBuilder builder = new StAXOMBuilder(xsrOut); return builder.getDocumentElement(); } On 5/24/07, *Dennis Sosnoski* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: The easiest way to write data to the output without first creating a co

Re: MTOM error "java.lang.OutOfMemoryError: Java heap space"

2007-05-24 Thread Dennis Sosnoski
ut string into memory. Are you telling me I can't use this method of service building and must use the WSDL way? Tammy Dennis Sosnoski wrote: Hi Tammy, OMDataSource is the technique used by data binding code to tie into the Axis2 output serialization. This allows the data binding t

  1   2   3   >