Better way to map from axis generated objects to domain?

2007-03-15 Thread Josh

Hello,

Starting from a wsdl/schema, Axis will generate some plumbing code/objects
to marshal/unmarshal xml.  Is there an easier way to map to/from these
generated object to my corresponding domain objects?  Is anyone using any
mapping layer to do this?  What are the best practices for insulating your
existing java code from changes to the code generated by Axis?

Thanks,

Joshua


Re: Better way to map from axis generated objects to domain?

2007-03-15 Thread Josh

Robert,

My application has an existing domain/service layer that does not map 1:1
with the entities that will be used on the wire.  My process thus far has
been to create a schema for the web service input/output and generate the
java objects that map to them.  What I am left with is still two different
object models.  Just like we use Hibernate/Ibatis to map between objects and
tables, I would like to map between these two layers of objects.  This way,
the web service layer can change independently from my existing
domain/service layer.  What are you using for your mapping layer?

Joshua


On 15 Mar 2007 17:48:58 -, Robert Monical <[EMAIL PROTECTED]> wrote:



I use a mapping layer to go from WSDL generated to Domain Objects.  Since
this is a legacy system and the domain objects are reversed out of a
database with Hibernate we have information in the domain objects that is
not relevent to the Web service interface.

If you have the ability/desire to tightly couple the Web service to your
domain, then maybe you don't need to do a mapping. I'ld be nervous.


>-Original Message-
>From: axis-user@ws.apache.org
>Sent: 03/15/07 - 12:18
>To: axis-user@ws.apache.org
>Subject: RE: Better way to map from axis generated objects to domain?
>
>Hello,
>
>Starting from a wsdl/schema, Axis will generate some plumbing
>code/objects
>to marshal/unmarshal xml.  Is there an easier way to map to/from these
>generated object to my corresponding domain objects?  Is anyone using
>any
>mapping layer to do this?  What are the best practices for insulating
>your
>existing java code from changes to the code generated by Axis?
>
>Thanks,
>
>Joshua



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Strategy for running multiple versions of web services concurrently

2007-03-16 Thread Josh

Hello,

It is inevitable that your services will need to change.  What are the best
practices for running multiple versions of the same axis service
concurrently?

-Joshua


How to deploy services without using axis2-web

2007-03-16 Thread Josh

Hello,

I am looking for some instructions on how to develop/deploy services with
out needing the axis2-web war.  I have not found instructions on how to do
this.  Could someone point me in the right direction?

Thanks,

Josh


Re: How to deploy services without using axis2-web

2007-03-19 Thread Josh

Everyone,

I have an existing web application that I am adding Axis2 web services
into.  I was looking for a minimal list of jar files as well as additional
configuration steps needed to add Axis2 functionality to my existing war.
Could you point me in the right direction?

Regards,

Joshua


On 3/16/07, Josh <[EMAIL PROTECTED]> wrote:


Hello,

I am looking for some instructions on how to develop/deploy services with
out needing the axis2-web war.  I have not found instructions on how to do
this.  Could someone point me in the right direction?

Thanks,

Josh



Re: How to deploy services without using axis2-web

2007-03-21 Thread Josh

Is the axis war required for deployment then?  What if you already have a
web application that you would like to add a web service to?

-Josh


On 3/19/07, Josh <[EMAIL PROTECTED]> wrote:


Everyone,

I have an existing web application that I am adding Axis2 web services
into.  I was looking for a minimal list of jar files as well as additional
configuration steps needed to add Axis2 functionality to my existing war.
Could you point me in the right direction?

Regards,

Joshua


 On 3/16/07, Josh <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I am looking for some instructions on how to develop/deploy services
> with out needing the axis2-web war.  I have not found instructions on how to
> do this.  Could someone point me in the right direction?
>
> Thanks,
>
> Josh
>




Re: How to deploy services without using axis2-web

2007-03-21 Thread Josh

Excellent!  That is exactly what I was looking for.

Thanks,

Joshua


On 3/21/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:


Have you seen this?
http://wso2.org/library/90

-- dims

On 3/21/07, Josh <[EMAIL PROTECTED]> wrote:
> Is the axis war required for deployment then?  What if you already have
a
> web application that you would like to add a web service to?
>
> -Josh
>
>
> On 3/19/07, Josh <[EMAIL PROTECTED]> wrote:
> >
> > Everyone,
> >
> > I have an existing web application that I am adding Axis2 web services
> into.  I was looking for a minimal list of jar files as well as
additional
> configuration steps needed to add Axis2 functionality to my existing
war.
> Could you point me in the right direction?
> >
> > Regards,
> >
> > Joshua
> >
> >
> >
> > On 3/16/07, Josh <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello,
> > >
> > > I am looking for some instructions on how to develop/deploy services
> with out needing the axis2-web war.  I have not found instructions on
how to
> do this.  Could someone point me in the right direction?
> > >
> > > Thanks,
> > >
> > > Josh
> >
> >
>
>


--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




No "And now... Some Services" with Axis 2?

2007-03-21 Thread Josh

Hello,

Is there no longer a "And now... Some Services" page with axis 2?  With axis
1.4 I found this at myapp/services.  Is this a configuration option?

Regards,

Joshua


How to Unit test an axis service that extends Springs ServletEndpointSupport?

2007-03-22 Thread Josh

Hello,

I am trying to figure out how to write a JUnit test case that can test my
service endpoint outside of the servlet container. My axis service endpoint
extends springs ServletEndpointSupport but I cannot seem to find any mock
objects that will help me initialize this object correctly.

To initialize the servlet, I need to call the init method from the
ServiceLifecycle Interface:

init(Object context)

Trouble is, the context here is of the type
javax.xml.rpc.server.ServletEndpointContext. As I mentioned earlier, I have
been unable to find any Mock objects for this class. Can someone point me to
an example?

Regards,

Josh


Re: [AXIS2] AXIS war deployment

2007-03-22 Thread Josh

Martin,

I have tried the same "bare bones" configuration that you mentioned.
Trouble is, when you hit http://yourhost:port/yourappname/services/, you
don't see a list of deployed services anymore.  Any idea how to add this
back in?

Regards,

Joshua

On 3/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Hi Shimpa,

we had the same problem and we do it like this:

1) we add AxisServlet to web.xml


   
   AxisServlet
   Apache-Axis Servlet
   
   org.apache.axis2.transport.http.AxisServlet
   1
   

   AxisServlet
   /services/*



2) we use the services.xml generated by WSDL2java


   
   


3) we deploy the java classes like any other class in our webapp and add
services.xml like this:

\---WEB-INF
   |   web.xml
   |
   \---services
   \---ServiceOne
   \---META-INF
   services.xml

4) We do not deploy a wsdd file

Good luck
Martin

 Original-Nachricht 
Datum: Tue, 20 Mar 2007 10:33:33 -0700 (PDT)
Von: Shimpa Mithal <[EMAIL PROTECTED]>
An: axis-user@ws.apache.org
Betreff: AXIS war deployment

> I have deployed a web service in AXIS under Tomcat and it works well.
Now,
> I want to deploy the same service as a deployable application in
> production where I do not have AXIS. For this I created a war with lib
and web.xml
> from AXIS. When I start Tomcat it comes up without any errors, but how
do I
> deploy this application in Tomcat?
> Do I need a server-config.wsdd?
> What should go in the web.xml ( currently it is AXIS default web.xml).
> Do I need to use java org.apache.axis.client.AdminClient for deployment?
> If yes, then how? Right now it gives me a 404 , I am not sure if the URL
I
> am giving is correct ...
>
>   Thanks
>   Shimpa
>
>
>
>
> -
> It's here! Your new message!
> Get new email alerts with the free Yahoo! Toolbar.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Axis2 - which data binding framework?

2007-03-22 Thread Josh

I would like to see something on this also.  Is there any materiel that
compares ADB with XmlBeans with JiBX etc?

-Joshua


On 3/21/07, feh <[EMAIL PROTECTED]> wrote:



I'm new to Axis and web services. All I've done is a bit of reading.

We have an existing application that we want to make available via
SOAP/ReST, so I'm looking at Axis2.

There are 4 different data binding frameworks supported, and POJO. Is
there
any reference material out there than compares them? Being new to this
world, I have no idea which one to use.

Thanks.
--
View this message in context:
http://www.nabble.com/Axis2---which-data-binding-framework--tf3443668.html#a9602734
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] AXIS war deployment

2007-03-22 Thread Josh

Good Morning,

Just to be sure I understand you correctly, you deployed your axis2 services
similar to what is described here: http://wso2.org/node/90/print

And you are able to go to
http://localhost:8080/axis2-/services/listServices and
see a list of deployed services?  My deployment doesn't seem to work like
yours.  Is there any additional configuration (other than modifying the
web.xml and supplying a services.xml file) that you did?

Thanks,

Joshua


On 3/22/07, Martin Gainty <[EMAIL PROTECTED]> wrote:


 Good Morning Josh-


my index.jsp references the following listing of services
Services

so if I want to list all of the Services for axis2- I would supply this
URL
http://localhost:8080/axis2-/services/listServices

HTH
Martin--
---

This e-mail message (including attachments, if any) is intended for the
use of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.
---

Le présent message électronique (y compris les pièces qui y sont annexées,
le cas échéant) s'adresse au destinataire indiqué et peut contenir des
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
destinataire de ce document, nous vous signalons qu'il est strictement
interdit de le diffuser, de le distribuer ou de le reproduire.

- Original Message -
*From:* Josh <[EMAIL PROTECTED]>
*To:* axis-user@ws.apache.org
*Sent:* Thursday, March 22, 2007 7:38 AM
*Subject:* Re: [AXIS2] AXIS war deployment


Martin,

I have tried the same "bare bones" configuration that you mentioned.
Trouble is, when you hit http://yourhost:port/yourappname/services/, you
don't see a list of deployed services anymore.  Any idea how to add this
back in?

Regards,

Joshua

On 3/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi Shimpa,
>
> we had the same problem and we do it like this:
>
> 1) we add AxisServlet to web.xml
>
> 
>
>AxisServlet
>Apache-Axis Servlet
>
>org.apache.axis2.transport.http.AxisServlet
>1
>
> 
>AxisServlet
>/services/*
> 
> 
>
> 2) we use the services.xml generated by WSDL2java
>
> 
>
>
> 
>
> 3) we deploy the java classes like any other class in our webapp and add
> services.xml like this:
>
> \---WEB-INF
>|   web.xml
>|
>\---services
>\---ServiceOne
>\---META-INF
>services.xml
>
> 4) We do not deploy a wsdd file
>
> Good luck
> Martin
>
>  Original-Nachricht 
> Datum: Tue, 20 Mar 2007 10:33:33 -0700 (PDT)
> Von: Shimpa Mithal <[EMAIL PROTECTED]>
> An: axis-user@ws.apache.org
> Betreff: AXIS war deployment
>
> > I have deployed a web service in AXIS under Tomcat and it works well.
> Now,
> > I want to deploy the same service as a deployable application in
> > production where I do not have AXIS. For this I created a war with lib
> and web.xml
> > from AXIS. When I start Tomcat it comes up without any errors, but how
> do I
> > deploy this application in Tomcat?
> > Do I need a server-config.wsdd?
> > What should go in the web.xml ( currently it is AXIS default web.xml).
> > Do I need to use java org.apache.axis.client.AdminClient for
> deployment?
> > If yes, then how? Right now it gives me a 404 , I am not sure if the
> URL I
> > am giving is correct ...
> >
> >   Thanks
> >   Shimpa
> >
> >
> >
> >
> > -
> > It's here! Your new message!
> > Get new email alerts with the free Yahoo! Toolbar.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



Re: [Axis2] AXIOM or JBIX

2007-03-26 Thread Josh

Just for my own knowledge, is this a true statement?: "This is because
XMLBeans implementation can understand all the XSD (i.e. schema)
constructs."  Does JiBX have mapping limitations?

Regards,

Joshua


On 3/26/07, Nilesh Ghorpade <[EMAIL PROTECTED]> wrote:


 Hi,

As per my understanding AXIS 2 uses AXIOM API's internally for any XML
related activities. Hence as you have mentioned that you are confused to
choose between POJO, AXIOM, JIBX, ADB or XMLBeans, the AXIOM is an invalid
option here.

Secondly in AXIS 2 you can create web services using either the Spring
Framework or POJO.

JiBX, XMLBeans and ADB are more related to the data binding frameworks
which AXIS 2 supports. Hence it depends on your schema on which data binding
framework you would want to select. As per my knowledge XMLBeans is the best
when it comes to complex schemas. This is because XMLBeans implementation
can understand all the XSD (i.e. schema) constructs.

To answer your second question, the answer is YES. If you want to use the
wsdl2java command from AXIS2 for generating your stubs and skeletons you
will need the WSDL. Generating a WSDL is also not a diccficult task. YOu can
have your SEI defined i.e. the Service Endpoint Interface with all the
method signatures which you want to expose as web service operations. On
executing the java2wsdl command from AXIS2 you would be able to get the
WSDL. And using this WSDL you can generate the remaining artifacts of your
web service. WSDL is nothing but an interface and hence even if you have
defined an interface in Java, you can generate a WSDL from it.


Hope that answers your queries.


Regards

Niles

- Original Message 
From: Martin Gainty <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Monday, March 26, 2007 3:15:01 AM
Subject: Re: [Axis2] AXIOM or JBIX

Anil-

I found this whitepaper quite informative
SAX2 processes fastest..with DOM bein
http://www.mail-archive.com/jibx-users@lists.sourceforge.net/msg01044.html

FWIW,
M--
---

This e-mail message (including attachments, if any) is intended for the
use of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.
---

Le présent message électronique (y compris les pièces qui y sont annexées,
le cas échéant) s'adresse au destinataire indiqué et peut contenir des
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
destinataire de ce document, nous vous signalons qu'il est strictement
interdit de le diffuser, de le distribuer ou de le reproduire.
- Original Message -
From: "Anil" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, March 25, 2007 4:37 PM
Subject: [Axis2] AXIOM or JBIX


> Hi,
>
> I'm new to Axis2, what is the criteria to choose
> between POJO, AXIOM, JIBX, ADB or XMLBeans. How do we
> decide architecture wise.
>
> My second question is, is wsdl file mandatory to
> create stub and skeleton interfaces or can we use just
> skeleton file to create wsdl file.
>
> Thanks.
>
>
>
>

> Bored stiff? Loosen up...
> Download and play hundreds of games for free on Yahoo! Games.
> http://games.yahoo.com/games/front
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



--
TV dinner still cooling?
Check out "Tonight's 
Picks"on Yahoo! TV.



JIBX Mapping Question - Void response message?

2007-03-26 Thread Josh

All,

I am having difficulting dealing with an existing WSDL which declares a
"void" response message.  I have the following in my wsdl:

  
   
  

  
 
  

Because this is really a void return, how would I map this using JiBX?

Regards,

Joshua


Re: JIBX Mapping Question - Void response message?

2007-03-27 Thread Josh

Dennis,

To be clear, does this "marker" class need to physically exist?

Josh


On 3/26/07, Dennis Sosnoski <[EMAIL PROTECTED]> wrote:


Hi Josh,

If you're using unwrapped you shouldn't need to map this at all. If
you're using wrapped handling you'd just have a "marker" class with an
empty mapping:



You can see an example of the unwrapped handling for this at
http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/example (with the
WSDL and code at
http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/example/library-service
).

- Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Josh wrote:
> All,
>
> I am having difficulting dealing with an existing WSDL which declares
> a "void" response message.  I have the following in my wsdl:
>
>
> 
>
>
>
>   
>
>
> Because this is really a void return, how would I map this using JiBX?
>
> Regards,
>
> Joshua

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Problem deploying example app on Weblogic 8.1, works on tomcat 5.5.20 though...

2007-03-27 Thread Josh

Is this somehow related to resolved issue AXIS2-577 (
http://issues.apache.org/jira/browse/AXIS2-577)?

Josh


On 3/27/07, Josh <[EMAIL PROTECTED]> wrote:


All,

I read through the Article "How to Embed an Axis2 based Web Service in you
Webapp?" (http://wso2.org/library/90) and downloaded the sample code.
When I deploy this sample code on Tomcat 5.5.20, it works fine.  If I
visit http://localhost:8080/axis2/services/BookService?wsdl, I am
presented with the WSDL for the service mentioned in the article.

I deployed the same war file (I added a weblogic.xml file with the
prefer-web-inf-classes option set to true) to weblogic 8.1 sp4.  When I
hit http://localhost:7001/axis2/services/BookService?wsdl , I receive the
following error:

 

Why would axis be looking for this file when deploying on Weblogic and not
Tomcat?  Any ideas?

Joshua



Problem deploying example app on Weblogic 8.1, works on tomcat 5.5.20 though...

2007-03-27 Thread Josh

All,

I read through the Article "How to Embed an Axis2 based Web Service in you
Webapp?" (http://wso2.org/library/90) and downloaded the sample code.  When
I deploy this sample code on Tomcat 5.5.20, it works fine.  If I visit
http://localhost:8080/axis2/services/BookService?wsdl, I am presented with
the WSDL for the service mentioned in the article.

I deployed the same war file (I added a weblogic.xml file with the
prefer-web-inf-classes option set to true) to weblogic 8.1 sp4.  When I hit
http://localhost:7001/axis2/services/BookService?wsdl, I receive the
following error:



Why would axis be looking for this file when deploying on Weblogic and not
Tomcat?  Any ideas?

Joshua


Are the "services.list" and "modules.list" really required?

2007-03-30 Thread Josh

All,

Are the "services.list" and "modules.list" really required?  I have deployed
a sample service using this document as an example:
http://wso2.org/library/90.  It has worked successfully on tomcat.

When the application starts, it deploys all the "exploded" services in the
/WEB-INF/services directory.  The interesting thing is that this sample
application does not contain the following files:

/WEB-INF/services/services.list
/WEB-INF/modules*
/WEB-INF/conf*

There is no services.list file, modules or conf directory.  Obviously, this
set up implies that I do not want to hot deploy are make use of the admin
console.  What other implications does this have?

Regards,

Joshua


Re: Are the "services.list" and "modules.list" really required?

2007-04-01 Thread Josh

Dims,

Could you please clarify?

Thanks,

Joshua


On 3/30/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:


They are for use in app servers which do not explode the war into a
separate directory.

thanks,
dims

On 3/30/07, Josh <[EMAIL PROTECTED]> wrote:
> All,
>
> Are the "services.list" and "modules.list" really required?  I have
deployed
> a sample service using this document as an example:
> http://wso2.org/library/90 .  It has worked successfully on tomcat.
>
> When the application starts, it deploys all the "exploded" services in
the
> /WEB-INF/services directory.  The interesting thing is that this sample
> application does not contain the following files:
>
> /WEB-INF/services/services.list
> /WEB-INF/modules*
> /WEB-INF/conf*
>
> There is no services.list file, modules or conf directory.  Obviously,
this
> set up implies that I do not want to hot deploy are make use of the
admin
> console.  What other implications does this have?
>
> Regards,
>
> Joshua


--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




[Axis 1.4] More detail please: "Exceptions are represented as wsdl:fault elements"

2007-04-12 Thread Josh

The user guide for Axis 1.4 states:

*"If a method is marked as throwing an Exception that is not an instance or
a subclass of java.rmi.RemoteException, then things are subtly different.
The exception is no longer a SOAP Fault, but described as a wsdl:fault in
the WSDL of the method. According to the JAX-RPC specification, your
subclass of Exception must have accessor methods to access all the fields in
the object to be marshalled and a constructor that takes as parameters all
the same fields (i.e, arguments of the same name and type). This is a kind
of immutable variant of a normal JavaBean. The fields in the object must be
of the datatypes that can be reliably mapped into WSDL.*

*If your exception meets this specification, then the WSDL describing the
method will describe the exception too, enabling callers to create stub
implementations of the exception, regardless of platform."*

Is there more details on how to implement/configure this?  Better yet, is
there an example for this using Axis 1.x?

Regards,

Josh


Data binding frameworks that allow backwards compatible schema changes?

2007-04-13 Thread Josh

All,

I am looking to determine which client side data binding choices (castor,
jibx, jaxb etc) allow backwards compatible schema changes (eg addition of a
new field) without throwing an exception.  I am hoping to recommend some
solutions to my clients that would allow me to make backward compatible
schema changes without causing a ripple effect.  Has anyone come across this
information?

Regards,

Joshua


Re: Data binding frameworks that allow backwards compatible schema changes?

2007-04-16 Thread Josh

Amila,

If I configure a databinding approach to work with the following XML:


   John
   Doe


Which databinding approaches will not break if I pass in the following XML:


   John
   Doe
   25
   M


While most client applications may not want to interpret the new
information, I want to make sure that I can recommend a binding approach
that does not cause a ripple effect when new items are added to the schema.
Does this clarify what I am looking for?

-Joshua


On 4/16/07, Amila Suriarachchi <[EMAIL PROTECTED]> wrote:




On 4/14/07, Josh <[EMAIL PROTECTED]> wrote:
>
> All,
>
> I am looking to determine which client side data binding choices
> (castor, jibx, jaxb etc) allow backwards compatible schema changes (eg
> addition of a new field) without throwing an exception.
>

What you exactly mean by backword compatible schema?
e g.  if you add a new element to a complex type with minOccurs 0 then
this should work properly with  the requests you got earlier as well. But in
this case it the way you write schema and it has nothing to do with the
databinding frame work as far as it correctly interpret the schema.


 I am hoping to recommend some solutions to my clients that would allow me
> to make backward compatible schema changes without causing a ripple effect.
> Has anyone come across this information?
>
> Regards,
>
> Joshua
>



--
Amila Suriarachchi,
WSO2 Inc.


Re: Data binding frameworks that allow backwards compatible schema changes?

2007-04-18 Thread Josh

Dennis/Amila,

The point was to allow for some "backwards compatible" growth of the schema
without requiring the clients to make changes.  Not necessarily to avoid
validation entirely.  If I understand correctly, JAXB 2 is limited to Java
5.  Unfortunately, I am working in a Java 1.4 environment.  Is this a
feasible approach or do most people create new versions of the wsdl and
schema?

-Joshua


On 4/17/07, Dennis Sosnoski <[EMAIL PROTECTED]> wrote:


Hi Amila,

When I try running the 1.2RC2 WSDL2Java with -d jaxbri I get:

[java] Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
[java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
CodeGenerationEngine.java:255)
[java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
[java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
...
[java] Caused by: java.lang.NullPointerException
[java] at
org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(
CodeGenerationUtility.java:105)
[java] ... 8 more

This is the same error I got when I tried with RC1, as reported in Jira:
https://issues.apache.org/jira/browse/AXIS2-2431 The same WSDL (and
schema) works fine with ADB and JiBX data bindings.

- Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Amila Suriarachchi wrote:
>
>
> On 4/17/07, *Dennis Sosnoski* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> JAXB 2.0 should do this, though I was unable to get JAXB to work
with
> the Axis2 1.2RC1 WSDL2Java. Has anyone been successful in using JAXB
> with Axis2?
>
>
> Can you test with RC2? Are you refering the bug which does not include
> jaxb- runtime jars and jaxb template to
> axis2-jaxb.jar?
>
> JiBX will also handle this. Unlike JAXB 2.0, with JiBX it's not the
> default behavior. In the JiBX binding you need to set
> flexible="true" on
> any  or  element where you want to allow unknown
> elements.
>
> In general it's not a good approach to do this kind of schema
> extension
> (especially for web services, where the schema definition should
> be part
> of the service contract). If you want to allow for extensions, use
an
> xs:any element as a wildcard that allows for other elements to be
> added
> in the future. Otherwise you're not actually following the schema,
> which
> defeats the whole purpose of having one in the first place.
>
>   - Dennis
>
> Dennis M. Sosnoski
> SOA and Web Services in Java
> Training and Consulting
> http://www.sosnoski.com - http://www.sosnoski.co.nz
> Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
>
>
>
> Amila Suriarachchi wrote:
> > As I understood you are looking for an databinding framwork
> which does
> > not do any validation. try jaxb.
> >
> > On 4/16/07, *Josh* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>
> > wrote:
> >
> > Amila,
> >
> > If I configure a databinding approach to work with the
> following XML:
> >
> > 
> > John
> > Doe
> > 
> >
> > Which databinding approaches will not break if I pass in the
> > following XML:
> >
> > 
> > John
> > Doe
> > 25
> > M
> > 
> >
> > While most client applications may not want to interpret the
new
> > information, I want to make sure that I can recommend a
binding
> > approach that does not cause a ripple effect when new items
are
> > added to the schema.  Does this clarify what I am looking for?
> >
> > -Joshua
> >
> >
> > On 4/16/07, *Amila Suriarachchi*
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>> wrote:
> >
> >
> >
> > On 4/14/07, *Josh* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>> wrote:
> >
> > All,
> >
> >

[AXIS 1.4] When remote exceptions are thrown, does the response still go through the handler chain?

2007-05-07 Thread Josh

All,

I put together a simple handler that captures the execution time of the web
service and puts the time in ms in the header.  Trouble is, when an
exception occurs, nothing gets put in the header.  Does this mean that when
an exception occurs, it is not process back through the handlers?  Can
someone explain this?

Thanks,

Josh


Do AxisFaults pass through handlers?

2007-05-07 Thread Josh

All,

I am finding that AxisFaults don't pass through handlers like ordinary
messages.  Is this correct?

Joshua


[Axis 1.4] Handler.onFault method only getting called once?

2007-05-07 Thread Josh

If I have three handlers defined in the global responseFlow, why does only
one of the handlers onFault() method get called?  It appears that it is the
last Handler in the list that receives the call to onFault().  Is this by
design?

Regards,

Joshua


Strategy/Pattern for Unit testing web services?

2007-05-11 Thread Josh

Hello,

I am looking for more information on unit testing web services.  I could
generate a client and use Jnit to perform the testing, but is that the best
way?  I would like to hear what others are doing.

Regards,

Joshua


aggregating several generated service.xml files into one file

2007-05-21 Thread Josh

All,

I run wsdl2java several times from my build file.  Each produces a
service.xml file.  Is there a programatic way to aggregate these files into
one file?

Regards,

Josh


Axis 1.4 - When using Java2WSDL, my ip address appears in the impl, intf and targetnamespace. How can I change this?

2008-06-12 Thread Josh
When using Axis 1.4's Java2WSDL, my ip address appears in the impl, intf and
targetnamespace.  How can I change this behaviour so that my name spaces
don't change if I deploy to another server?

Thanks,

josh


Does Axis2 support consuming RPC based services?

2008-03-15 Thread Josh
All,

The last time I had to consumer RPC based services, my only solution was to
use Axis 1.4.x. using the wsdl2java tool.  Does Axis2 support the
consumption of RPC services?  If not, is my only option to use Axis 1.4.x?
Is this still being maintained?

Thanks!


Re: [Axis2] Which is the best data binding method ?

2007-06-26 Thread Josh

Has anyone seen any online comparision of the different data binding
frameworks (Pros, Cons and Performance)?  I really liked the Jibx approach
at first, but had difficulty mapping a schema to my existing java objects.
If I had known about certain limitations earlier, I could have saved lots of
time.

-Joshua


On 6/25/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:


Both those limitations are fixed in latest svn (if not in 1.2). We
recommend ADB and hence it is the default.

thanks,
dims

On 6/25/07, Alick Buckley <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
> I have started looking at using Axis2 1.2 for client side execution as
this
> stage.
>
> Apache generated client program  --- HTTP
> > Web Service
>
> I would like to use WSDL2Java to generate client code
>
> java org.apache.axis2.wsdl.WSDL2Java -uri MyService.wsdl -s -d
adb
>
>
> I want to stick with one databinding method to handle all WSDL's.
>
> ===
>
> http://ws.apache.org/axis2/1_0/adb/adb-howto.html
>
> ADB - (Axis Data Binding) is meant to be a 'Simple' databinding
framework
> and was not meant to compile all types of schemas.
>
> The following limitations are the most highlighted.
>
>1. Complex Extensions and Restrictions, Simple Extensions and
> Restrictions are not supported.
>2. xsi:type based deserialization is not supported. Hence extension
based
> structures that use xsi:type attribute may fail
>
> XMLBeans - http://xmlbeans.apache.org/
>
> Jibx - http://jibx.sourceforge.net/
>
> JaxMe - http://ws.apache.org/jaxme/
>
> Jaxbri -
>
>
==
>
> http://ws.apache.org/axis/java/user-guide.html
>
> Usage: WSDL2Java -uri  : A url or path to a WSDL
>   -o Specify a directory path for the
> generated code.
>   -a   Generate async style code only
(Default:
> off).
>   -s   Generate sync style code only
(Default:
> off). Takes precedence over -a.
>   -p Specify a custom package name for the
> generated code.
>   -l Valid languages are java and csharp
> (Default: java).
>   -t   Generate a test case for the
generated
> code.
>   -ss  Generate server side code (i.e.
> skeletons) (Default: off).
>   -sd  Generate service descriptor (i.e.
> services.xml). (Default: off). Valid with -ss.
>   -d  Valid databinding(s) are adb,
xmlbeans,
> jibx, jaxme and jaxbri (Default: adb).
>   -g   Generates all the classes. Valid only
> with -ss.
>   -pn   Choose a specific port when there are
> multiple ports in the wsdl.
>   -snChoose a specific service when there
are
> multiple services in the wsdl.
>   -u   Unpacks the databinding classes
>   -r Specify a repository against which
code
> is generated.
>   -ns2p ns1=pkg1,ns2=pkg2  Specify a custom package name for
each
> namespace specified in the wsdls schema.
>   -ssi Generate an interface for the service
> implementation (Default: off).
>   -wv  WSDL Version. Valid Options : 2, 2.0,
1.1
>   -S  Specify a directory path for generated
> source
>   -R  Specify a directory path for generated
> resources
>   -em  Specify an external mapping file
>   -f  Flattens the generated files
>   -uw  Switch on un-wrapping.
>   -xsdconfig  Use XMLBeans .xsdconfig file. Valid
only
> with -d xmlbeans.
>
>
==
>
> regards
>
> Alick Buckley
>
> LANSA Research and Development
> LANSA Pty Ltd
>
> Phone: +61289070243
>
> http://www.lansa.com
> mailto:[EMAIL PROTECTED]
>
>
>


--
Davanum Srinivas :: http://davanum.wordpress.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




xmlbeans databinding?

2007-06-26 Thread Josh

Hello,

I saw a section for ADB and Jibx databinding on the apache site.  Did I miss
the section on xmlbeans databinding or does it not exist?  Where can I find
more information on this?

Regards,

Joshua


Re: xmlbeans databinding?

2007-06-29 Thread Josh

Thanks Martin,  I check that out now.




On 6/27/07, Martin Gainty <[EMAIL PROTECTED]> wrote:


 Hi Josh

When you get a chance take a look at this tutorial on Generating
WebServiceClient using XMLBeans
http://ws.apache.org/axis2/1_1_1/userguide-creatingclients-xmlbeans.html

HTH
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:* Josh <[EMAIL PROTECTED]>
*To:* axis-user 
*Sent:* Tuesday, June 26, 2007 11:22 AM
*Subject:* xmlbeans databinding?


Hello,

I saw a section for ADB and Jibx databinding on the apache site.  Did I
miss the section on xmlbeans databinding or does it not exist?  Where can I
find more information on this?

Regards,

Joshua




Help with AXIS bug with complex type and maxOccurs

2007-02-14 Thread josh s

Hi,

I'm a relative newbie to webservices. I'm attempting to do something fairly
straight forward using AXIS 1.4 and AXIS appears to be doing the wrong thing
to me.

An extract of the WSDL which is used with axis-wsdl2java to generate java
is below.

  
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

When I attempt to send a message using the generated code some of the XML
generated by AXIS looks like the following which appears incorrect.

   
   
   DRN
   
   
   

If I do not specifiy maxOccurs in the WSDL then the XML that is produced is
however correct

   
   
   DRN
   
   
   

Is this is a bug in AXIS? Is there a workaround or do I need to specify my
WSDL differently.

I can send the entire WSDL if that helps. This has really got me stumped and
any help would be greatly appreciated. Thanks for you help.

Josh


Passing values to class constructors

2006-05-09 Thread Josh Potter

Greetings,

I have been searching for a few days now and cannot figure out how to 
pass a value to the constructor of my class or web service.  My 
situation is like this, I have a config file that I want to load that 
holds database connection settings.  My service scope will be 
Application.  I would like to pass the location of the config file to 
the service when it starts so it can set up the appropriate connections 
to the database based on the values in the config file.  If any more 
information is needed I would be happy to provide.


Thanks,
Josh Potter


Re: Passing values to class constructors

2006-05-09 Thread Josh Potter
I should probably go into more detail.  I am extremely new to this.  So 
far I have more or less followed the documentation to get stuff up and 
running.  I have tomcat installed with axis copied over to the webapps 
directory of tomcat.  I have my class copied over to the classes section 
of WEB-INF for axis.  I have a deploy.wsdd that I wrote and I used the 
command line tool to deploy my class as a service.  I see no service.xml 
files anywhere.  If there is another process I should be following, a 
point the in the right direction would be greatly appreciated.


Fabian Linz wrote:


Hi Josh,

> would like to pass the location of the config file to the service 
when it starts so it can set up the appropriate connections
From where do you want to pass the information? From the service.xml 
of the service?


If so you can use parameters. See section 6 in 
http://www.developer.com/open/article.php/10930_3589126_2


Regards

Fabian

I can not try it out at the moment but I think it is possible to

Josh Potter wrote, On 09.05.2006 15:50:


Greetings,

I have been searching for a few days now and cannot figure out how to 
pass a value to the constructor of my class or web service.  My 
situation is like this, I have a config file that I want to load that 
holds database connection settings.  My service scope will be 
Application.  I would like to pass the location of the config file to 
the service when it starts so it can set up the appropriate 
connections to the database based on the values in the config file.  
If any more information is needed I would be happy to provide.


Thanks,
Josh Potter