Re: Axis2 and XMLBeans - what is the relationship?

2005-10-27 Thread Ajith Ranabahu
Hi Paul,
See my comments inline
On 10/27/05, Paul Grillo <[EMAIL PROTECTED]> wrote:













Short question:  Can I use XMLBeans as distributed by 
xmlbeans.apache.org
as my serializer/deserializer in Axis2?  If so how? 
Yes. The default databinding framework is XMLBeans :) don't specifiy
any -d flag and the code gen pickes up the XMLBeans databainding






I have a simple WSDL backed up by a few Schemas.  They generate clean
java classes in Axis 1.2
 So I ran them through Axis2, and what I got was about 653 various
uncompiled files generated of which only about 30 reflect the actual beans I'll
be interacting with.  It also appeared to insist on pre-pending "codegen.databinding"
to the package names that are reflective of my chosen namespace.  I guess I was
pretty surprised at all that was generated, the naming etec etc.


Well the XMLBeans integration to Axis2 is such that the Axis2's package
structure decides (to a certain extent) what the XMLBeans packaging
should be. We have not yet done the necessary work to have the
full flexibilty of the scomp but yes, we hope to go there soon. 

I then used scomp from xmlbeans v2 distribution, and it generated a very
nice jar file with pretty much what I expected.  The compiler was much more
powerful and provides me with some other capabilities.  I would like to use
this in "either" Axis 1.2 or Axis2.  Is it possible?
I don't think Axis1 can use XMLBeans generated classes (unless you
manually edit the classes). Sadly your choice will only be Axis2

I do not want to tie my databinding to a web services framework.  I am
willing to use stand-alone XMLBeans.  Is this doable?
oops!  No. At the moment you cannot say  'don't do databinding' 

thanks

 

 

 

 







-- Ajith Ranabahu


Re: Java2WSDL Query

2005-10-27 Thread anshuk pal chaudhuri
Hi Anne,

Thanks for your reply.
What I exactly meant was that according to the WSDL
spec 1.1 we have an option of adding the soap:header
inside the wsdl:binding-->wsdl:operation-->wsdl:input.

But that soap:header can be added or can not
be,depending upon the needs.(meaning soap:header
element is an optional tag in the wsdl)

In that context,does the Java2WSDL allows us,while
creating the wsdl, to add the soap:header, if we want
to?

Thanks,
Anshuk

--- Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

> WSDL doesn't provide the ability to define optional
> headers. Only mandatory
> headers may be defined in WSDL.
> 
> On 10/27/05, anshuk pal chaudhuri
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Does the Java2WSDL tool allow us to add
> soap:header
> > element in the WSDL which is optional?
> >
> > Thanks
> > Anshuk
> >
> >
> >
> > __
> > Yahoo! FareChase: Search multiple travel sites in
> one click.
> > http://farechase.yahoo.com
> >
> 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


Re: [AXIS2] Anyone using spring with axis2 ?

2005-10-27 Thread Saminda Abeyruwan
:) Paul wanna integrate Spring into Axis2. So he came up with this code. 
You can get a good idea outof it and change it according to your 
requirement.


Remember users can implement MessageReceivers anyway they wanted.

Saminda

trebor iksrazal wrote:


Thanks for the reply Saminda - this is what I need and
I'm going to try and use it. 


However, this code does not seem to be in the current
subversion trunk. Anyone know why? 


iksrazal

--- Saminda Abeyruwan <[EMAIL PROTECTED]> wrote:

 


Hi Iksrazal,

Paul Fremantle has done a greate work in integrating
Spring framework to 
Axis2. You can find more info in


   


http://marc.theaimsgroup.com/?l=axis-dev&m=112866697704950&w=2
 


Saminda

trebor iksrazal wrote:

   


Hi all,

We have an app that uses the Spring framework. We
 


now
   


need to have web services with axis2 v .92 -
particularly based off of the
EchoNonBlockingDualClient example in the axis2 user
guide.

Question: Can anyone point me to examples or
documentation using Axis2 with Spring? Googling
 


didn't
   

turn up much. 


iksrazal

"None are more hopelessly enslaved than those who
 


falsely believe they are free. -- Goethe"
   




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com




 

   




"None are more hopelessly enslaved than those who falsely believe they are free. -- 
Goethe"



__ 
Yahoo! FareChase: Search multiple travel sites in one click.

http://farechase.yahoo.com

 





RE: [axis 1.x] Working with enumerations

2005-10-27 Thread Dovholuk, Clint



Hi Cyrille, (and all)
 
Thanks for the response... I agree that there is the 
possibly for name clashing, though as you note, this risk is pretty minor.  
I would say that on creation the enumerations are stuffed into a map and if any 
values do clash, then the name still is created as per the convention, but a 
number is appended to the end of the "close" name... such as _A_VALUE, 
_A_VALUE1, _A_VALUE2 etc.  
 
And I do agree that using the constant naming convention 
would be a nice idea as well...
 
On the same note, has there been any thought to using 
actual Enums in the same fashion?  I assume that a flag could be set via 
wsdd indicating java 5 support (or not) and depending on this flag, enums are 
either generated via typesafe enum pattern (as current) or via the new Enum 
construct.
 
If i wanted to do any of this kind of work, how could I 
contribute?
 
Thanks,
-Clint


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Cyrille Le 
ClercSent: Thursday, October 27, 2005 7:48 PMTo: 
axis-user@ws.apache.orgSubject: Re: [axis 1.x] Working with 
enumerations
Hello Clint,I would also be insterested in such a feature but 
it seems to be pretty complex.Indeed, the current version of axis uses 
the actual value of the enumeration if it is a valid java variable name. 
However, if it is not valid (like spaces in "this is my first value"), then the 
generic name "valueXX" is used.To have meaningful names for such kind of 
values, we need to define the conversion of unsupported characters (more or 
less, everything except letters and numbers). If we replace every non 
supported char by an underscore, we may face collisions.For example "a 
value!" and "a value?" will return "a_value_". I admit the risk is very limited 
but it still exists.Another way to do this may be to try to convert each 
restriction value and see if there are collisions. If yes, go back to "valueXX" 
; if yes, use the converted value.By the way, would it be intereting to 
us java constant naming convention (uppercase with underscore) for such 
variables as they are actual constants ?CyrillePS : the method 
JavaEnumTypeWriter.getEnumValueIds() is in charge of getting names for these 
constants-- Cyrille Le Clerc[EMAIL PROTECTED][EMAIL PROTECTED]
On 10/27/05, Dovholuk, 
Clint <[EMAIL PROTECTED] > wrote:
Hello 
  all,I was wondering if there were some switch on WSDL2Java I haven't 
  comeacross yet which allows it to generate java 5 enum's instead of the 
  typesafe enum pattern.  Or alternatively, if there was another, 
  different switch which allowed the type safe enum pattern to create values 
  one canactually code with.  call me crazy, but _value1, _value2, 
  _value3 isn'tthe easiest to code with...  Sure I could use 
  fromValue, but that's not nearly as nice to code with, and it's not 
  compile-time safe.Are there any plans on getting this feature as an 
  option on wsdl2java?I looked all over the net and jira but I can't get 
  quality hits back... Thanks,-Clint


Re: I give up

2005-10-27 Thread Davanum Srinivas
Kurt,

Looking at your postings, i don't see much from you in terms of
engaging the user or developer community to ask for help.
http://marc.theaimsgroup.com/?l=axis-dev&w=2&r=1&s=olsen&q=b
http://marc.theaimsgroup.com/?l=axis-user&w=2&r=1&s=olsen&q=b

Your specific email to Tom
(http://marc.theaimsgroup.com/?l=axis-dev&m=112801670512125&w=2)...i
have no clue how to help. i did reply back to a prev mail on that
thread (http://marc.theaimsgroup.com/?l=axis-dev&m=112692662128194&w=2)

If you have a problem with Macromedia or eBay folks, We can't really
help. If you have a problem with latest releases of Axis, we can help
if you add JIRA bugs (and chase us!) on the axis-dev@ list. If you
need production/development support, there are avenues for that as
well.

Am sorry you had a bad experience, thanks for the feedback.

-- dims

On 10/27/05, Kurt Olsen <[EMAIL PROTECTED]> wrote:
>
>
>
> Folks, I hate to say it but I had to ditch axis. Way too difficult. And we
> won't be using it in the future.
>
>
>
> Our application has approx 30 vendors we communicate with using SOAP.
>
> Approx 25 of them are implemented by simply creating strings and firing them
> off, then parsing out the reply.
>
> Primitive but fairly easy to do.
>
>
>
> The other 5 used axis. At the moment we're using the ColdFusion server. When
> we upgraded to java 5 and coldfusion mx7 our axis based connectors broke.
>
> It took approximately 2 weeks to diagnose and 'solve' the problem. Axis used
> commons-logging, and commons-logging broke. That required fairly
>
> major surgery to the coldfusion classpath. Pieces of commons-logging we're
> coming in off of different classloaders.
>
>
>
> So technically speaking, commons-logging broke -  not axis but…..since axis
> brought the flaw to life, and has given us grief (probably the CF
> integration)  in the past, it is axis that got the bad reputation due to the
> fact that it was at the top of the food chain. The two weeks solving this
> problem wasn't totally wasted because it exposed a fairly large flaw in the
> overall architecture.
>
>
>
> After getting the existing connectors to work again, I had to turn my
> attention to the next connector in the pipeline – eBay via Soap….
>
> Only one problem – eBay's sdk is written against java 1.4 and axis 1.1 –
> while we upgraded to java 5 and axis 1.2
>
> After another week of trying various 'workarounds' etc I was forced to give
> up and will have to communicate with eBay using the "create strings"
> technique.
>
>
>
> Bottom line is that the overall cost of the 'SOAP' system and it's co-horts
> in crime is un-managable given our quarterly release cycle.
>
> I'm disappointed that after all that effor to modernize – the goal really
> wasn't accomplished.
>
>
>
> I fully understand the various issues involved, most of which aren't really
> axis's fault but – any way I slice it this entire exercise felt exactly like
> trying to use the J2EE 1.3/1.4 ejb specifications. Big, confusing, hard to
> use etc…..And I predict will eventually be abandoned (or at least buried
> beneath a convienence API).
>
>
>
> This is just one co's experience of course but I submit to you that as you
> continue your development you might want to consider the overall 'cost' that
> SOAP and it's tools are exacting on the community. This simply has to get
> easier because as it stands both the other developers (who watched over my
> shoulder so to speak) and myself have simply given up on an 'easy' tool fix.
> Our experience is that SOAP is a diaster and costing virtually everyone in
> corporate programming a lot of money and lost sleep….
>
>
>
> Thanks for listening, and please remember that I'm taking the time to write
> this not to complain (well, maybe a little) but to provide feedback from the
> field.
>
>
>
> Respectfully,
>
> Kurt Olsen
>
>
>
>
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


Axis Server in Weblogic 8.1.2 cluster

2005-10-27 Thread Vipul Sagare

We have WebLogic 8.1.2 cluster which has virtual host and IIS plug-in
for content pages.

Out application with AXIS 1.2 works fine in single server(one machine).
Is there any detailed discussion about dynamically building and
deploying the  service to the above setup? How would client access the
service? What would be address? Any best practice? 

Thank you for your help.

I see some discussion about service end points in Loadbalancer setup  
 http://marc.theaimsgroup.com/?l=axis-user&m=109022875304428&w=2  

and  specifying host and port in autogenerated WSDL
  http://marc.theaimsgroup.com/?t=10817970251&r=1&w=2 




I give up

2005-10-27 Thread Kurt Olsen








Folks, I hate to say it but I had to ditch axis. Way too
difficult. And we won’t be using it in the future.

 

Our application has approx 30 vendors we communicate with
using SOAP. 

Approx 25 of them are implemented by simply creating strings
and firing them off, then parsing out the reply. 

Primitive but fairly easy to do. 

 

The other 5 used axis. At the moment we’re using the ColdFusion
server. When we upgraded to java 5 and coldfusion mx7 our axis based connectors
broke.

It took approximately 2 weeks to diagnose and ‘solve’
the problem. Axis used commons-logging, and commons-logging broke. That
required fairly

major surgery to the coldfusion classpath. Pieces of commons-logging
we’re coming in off of different classloaders.

 

So technically speaking, commons-logging broke -  not axis
but…..since axis brought the flaw to life, and has given us grief
(probably the CF integration)  in the past, it is axis that got the bad
reputation due to the fact that it was at the top of the food chain. The two
weeks solving this problem wasn’t totally wasted because it exposed a
fairly large flaw in the overall architecture.

 

After getting the existing connectors to work again, I had
to turn my attention to the next connector in the pipeline – eBay via
Soap….

Only one problem – eBay’s sdk is written against
java 1.4 and axis 1.1 – while we upgraded to java 5 and axis 1.2

After another week of trying various ‘workarounds’
etc I was forced to give up and will have to communicate with eBay using the “create
strings” technique.

 

Bottom line is that the overall cost of the ‘SOAP’
system and it’s co-horts in crime is un-managable given our quarterly
release cycle.

I’m disappointed that after all that effor to
modernize – the goal really wasn’t accomplished.

 

I fully understand the various issues involved, most of
which aren’t really axis’s fault but – any way I slice it
this entire exercise felt exactly like trying to use the J2EE 1.3/1.4 ejb
specifications. Big, confusing, hard to use etc…..And I predict will
eventually be abandoned (or at least buried beneath a convienence API). 

 

This is just one co’s experience of course but I
submit to you that as you continue your development you might want to consider
the overall ‘cost’ that SOAP and it’s tools are exacting on
the community. This simply has to get easier because as it stands both the
other developers (who watched over my shoulder so to speak) and myself have
simply given up on an ‘easy’ tool fix. Our experience is that SOAP
is a diaster and costing virtually everyone in corporate programming a lot of
money and lost sleep….

 

Thanks for listening, and please remember that I’m
taking the time to write this not to complain (well, maybe a little) but to
provide feedback from the field.

 

Respectfully,

Kurt Olsen

 

 

 








Re: [axis 1.x] Working with enumerations

2005-10-27 Thread Cyrille Le Clerc
Hello Clint,

I would also be insterested in such a feature but it seems to be pretty complex.

Indeed, the current version of axis uses the actual value of the
enumeration if it is a valid java variable name. However, if it is not
valid (like spaces in "this is my first value"), then the generic name
"valueXX" is used.

To have meaningful names for such kind of values, we need to define the
conversion of unsupported characters (more or less, everything except
letters and numbers). 

If we replace every non supported char by an underscore, we may face collisions.

For example "a value!" and "a value?" will return "a_value_". I admit the risk is very limited but it still exists.

Another way to do this may be to try to convert each restriction value
and see if there are collisions. If yes, go back to "valueXX" ; if yes,
use the converted value.

By the way, would it be intereting to us java constant naming
convention (uppercase with underscore) for such variables as they are
actual constants ?

Cyrille

PS : the method JavaEnumTypeWriter.getEnumValueIds() is in charge of getting names for these constants
-- 
Cyrille Le Clerc
[EMAIL PROTECTED]
[EMAIL PROTECTED]


On 10/27/05, Dovholuk, Clint <[EMAIL PROTECTED]
> wrote:
Hello all,I was wondering if there were some switch on WSDL2Java I haven't comeacross yet which allows it to generate java 5 enum's instead of the typesafe enum pattern.  Or alternatively, if there was another, different
switch which allowed the type safe enum pattern to create values one canactually code with.  call me crazy, but _value1, _value2, _value3 isn'tthe easiest to code with...  Sure I could use fromValue, but that's not
nearly as nice to code with, and it's not compile-time safe.Are there any plans on getting this feature as an option on wsdl2java?I looked all over the net and jira but I can't get quality hits back...
Thanks,-Clint



Encountered illegal extension element 'types' in the context of a 'javax.wsdl.Definition'. Extension elements must be in a namespace other than WSDL's.:

2005-10-27 Thread Paul Barry
Hello,

I am trying to run wsdl2java against my WSDL, but I am getting this error:

WSDLException (at /wsdl:definitions/types): faultCode=INVALID_WSDL:
Encountered illegal extension element 'types' in the context of a
'javax.wsdl.Definition'. Extension elements must be in a namespace
other than WSDL's.:
at com.ibm.wsdl.xml.WSDLReaderImpl.parseExtensibilityElement(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516)
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)

Any idea what causes this problem?  I am using a very basic service
and the WSDL is generated by axis.  Here is my WSDL:


http://localhost/axis/services/MyService";
xmlns:intf="http://localhost/axis/services/MyService";
xmlns:apachesoap="http://xml.apache.org/xml-soap";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:tns1="urn:MyService"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
targetNamespace="http://localhost/axis/services/MyService";>

 
  http://www.w3.org/2001/XMLSchema";
targetNamespace="urn:MyService">
   http://schemas.xmlsoap.org/soap/encoding/"/>
   

 


   
  
 

   

  

   

   

   

   

  

 

 

  

   

   

  http://schemas.xmlsoap.org/soap/http"/>

  

 

 

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://paulbarry.com"/>

 

 

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost/axis/services/MyService"/>

 

  

   

   

  

 http://localhost/axis/services/MyService"/>

  

   



The classes involved are very basic.  I have this bean:

package com.paulbarry;

public class MyBean {

private String name;

public MyBean() {}
public MyBean(String name) {
this.name = name;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}


}

And this service:

package com.paulbarry;

public class MyService {

public MyBean getMyBean() {
return new MyBean("My Bean");
}

}

I have this client, which works perfectly fine:

package com.paulbarry;

import javax.xml.namespace.QName;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.ser.BeanDeserializerFactory;
import org.apache.axis.encoding.ser.BeanSerializerFactory;

public class MyClient {

public static void main(String[] args) throws Exception {

String endpoint =
"http://localhost/axis/services/MyService";;

   Service  service = new Service();
   Call call = (Call)service.createCall();

   call.setTargetEndpointAddress( new java.net.URL(endpoint) );
   call.setOperationName(new QName("getMyBean") );

   QName qn = new QName("urn:MyService","MyBean");
   call.registerTypeMapping(MyBean.class, qn,
   new BeanSerializerFactory(MyBean.class, qn),
   new BeanDeserializerFactory(MyBean.class, qn));
   call.setReturnType(qn);

   MyBean bean = (MyBean)call.invoke(new Object[] {});

   System.out.println(bean.getName());

}

}

And here is my deployment descriptor:

http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

  



 




RE: Odd nesting when using arrays

2005-10-27 Thread Ebert, Chris

I'm pretty happy with the (free!) WST plugin for eclipse. XMLSpy is a
little more whiz-bang and does a lot of other nice XML stuff, too, but
the eclipse plugin caught at least one real error that XMLSpy missed
(and my gSOAP customers will never know of my sins.) Mindreef also has a
tool that incorporates the WS-I test suite: it catches some things
XMLSpy does not and sometimes provides more intelligible error messages
for things XML Spy *does* catch.

Chris

Eclipse plugin (for eclipse 3.1+) http://update.eclipse.org/updates/3.1
(look for the WST package)
Mindreef SOAPScope: http://www.mindreef.com

-Original Message-
From: Bell, Douglas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 27, 2005 15:36
To: axis-user@ws.apache.org
Subject: RE: Odd nesting when using arrays

Best tool I've found for testing interoperability is XMLSpy
(http://www.altova.com/products_ide.html). If it works with XMLSpy it's
likely to work with any other client.
 
- Doug



From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 27, 2005 3:20 PM
To: axis-user@ws.apache.org
Subject: Re: Odd nesting when using arrays


For better interoperability, switch to doc/literal wrapped style and
define your schema yourself rather than generating it from Java.

Anne


On 10/27/05, todd runstein <[EMAIL PROTECTED]> wrote: 

I'm concerned that using an array of objects creates a
service that is too "axis specific".  Or, perhaps I'm
not creating my service correctly.  In either case,
any information or suggestions on the following would 
be greatly appreciated.

Consider this simple service.  A Parent class contains
an array of Child objects.  Given this class, I would
expect the client to create a message that looks like:

 

   
  4

   
  5
   
   ..

But the client instead generates this (notice how the
children tags are nested in a children tag): 
  
 

   
  
 4
  
  
 5
  
  ..


While both my axis client and service understand this,
I'm concerned that non-axis clients won't work.  Are 
my concerns unfounded?  Or is this happening because I
haven't built or defined the service correctly?

I'm including the wsdl, the wsdd, code, request and
response.  Sorry if this is too much - I'd rather be 
complete than leave out an important detail.

WSDL:
-
http://localhost:8080/bc_webservice/services/FamilyServ
ice ">
-

-

-
 
http://localhost:8080/bc_webservice/services/FamilyService"/>
http://schemas.xmlsoap.org/soap/encoding/"/
 >
-

-


 

-

-

 




-
http://localhost:8080/bc_webservice/services/FamilyService
 ">

http://schemas.xmlsoap.org/soap/encoding/"/
 >
-

-

-
 






- 



-
 


-

-


 


-

http://schemas.xmlsoap.org/soap/http"/>
-

 
-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://webservices.msei.com";
use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="
http://localhost:8080/bc_webservice/services/FamilyService
 "
use="encoded"/>



-
 
-

http://localhost:8080/bc_webservice/services/FamilyService"/
 >





WSDD:
 







CODE - Service:
 

Re: WSE402: The message does not conform to the policy it was mapped to.

2005-10-27 Thread Anne Thomas Manes
The service is implemented using .NET + WSE.
In addition to the WSDL, the service contract is also defined using
WS-Policy, and I assume there is a policy defined using
WS-SecurityPolicy. You need to make sure that your message contains an
appropriate WS-Security header as defined by the security policy.

AnneOn 10/26/05, Chris Mannion <[EMAIL PROTECTED]> wrote:







Hi all
 
I have a generic webclient build in axis to be able 
to interact with whichever webserivce it is pointed at.  It has worked 
against several services in the past but on trying to hook up with a new 
webservice I'm getting an error message that I don't really understand.  On 
looking up the error message it seems to be somehow linked to X509 certificates 
but, while there is a certificate in my Java keystore to allow SSL interaction 
with the webservice, the (extensive, if not very helpful) documentation I have 
for the webservice makes no mention of having to sign or encrypt or give tokens 
with messages to the operation I'm trying to use (other operations do require 
tokens and the documentation says as much).  The web service is .Net based, 
which I know because the administrators of it can't help me with my problem due 
to knowing nothing about Java.
 
Anyway, the relevant parts of my client code are 
very straight forward as follows:
 
ServiceFactory serviceFactory = 
ServiceFactory.newInstance();webService = 
serviceFactory.createService(wsdlUrl, serviceQName);
...
Call opCall = webService.createCall(portQName, 
operationName);
...
opCall.invoke(values);
 
where values is an object array of the parameters 
to be passed.
 
The relevant parts of the WSDL I'm running against 
are:
 
http://schemas.xmlsoap.org/wsdl/http/
" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:s="http://www.w3.org/2001/XMLSchema" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:tns="urn:GSO-System-Services:external:1.65:PortalInterface" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/
" 
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
targetNamespace="urn:GSO-System-Services:external:1.65:PortalInterface" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">  
      
    
  
    
  
    
  
      
  
    
  
    
  
      
          
                  
      
      
    http://schemas.xmlsoap.org/soap/http" 
style="document" />      
  
      
  
      
      
          
https://secure.gateway.gov.vm/SOAP/Portal/GatewaySoapPortal.asmx
" 
/>      

 
 
So, I'm making a call against the operation named 
RegisterPrincipalUserID and recieving the following error message in 
repsonse:
 
AxisFault faultCode: 
{http://schemas.xmlsoap.org/soap/envelope/}Client faultSubcode: 
 faultString: WSE402: The message does not conform to the policy it was 
mapped to. faultActor: 
urn:GSO-System-Services:external:1.65:PortalInterface faultNode: 
 faultDetail:  {http://xml.apache.org/axis/}stackTrace:WSE402: 
The message does not conform to the policy it was mapped to. at 
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221) at 
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128) at 
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source) at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source) at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source) at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown 
Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source) at javax.xml.parsers.SAXParser.parse(Unknown 
Source) at 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at 
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at 
org.apache.axis.Message.getSOAPEnvelope(Message.java:424) at 
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at 
org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at 
org.apache.axis.client.Call.invokeEngine(Call.java:2765) at 
org.apache.axis.client.Call.invoke(Call.java:2748) at 
org.apache.axis.client.Call.invoke(Call.java:2424) at 
org.apache.axis.client.Call.invoke(Call.java:2347) at 
org.apache.axis.client.Call.invoke(Call.java:1804) at 
govConnect.WebServiceTools.call(WebServiceTools.java:177) at 
govConnect.WebServiceTools.call(WebServiceTools.java:95) at 
govConnect.GovConnect.register(GovConnect.java:77) at 
govConnect.Tests.service(Tests.java:17) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:8

RE: Odd nesting when using arrays

2005-10-27 Thread Bell, Douglas



Best tool I've found for testing interoperability is XMLSpy 
(http://www.altova.com/products_ide.html). 
If it works with XMLSpy it's likely to work with any other 
client.
 
- Doug


From: Anne Thomas Manes 
[mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 3:20 
PMTo: axis-user@ws.apache.orgSubject: Re: Odd nesting when 
using arrays
For better interoperability, switch to doc/literal wrapped style and 
define your schema yourself rather than generating it from 
Java.Anne
On 10/27/05, todd 
runstein <[EMAIL PROTECTED]> 
wrote:
I'm 
  concerned that using an array of objects creates aservice that is too 
  "axis specific".  Or, perhaps I'mnot creating my service 
  correctly.  In either case,any information or suggestions on the 
  following would be greatly appreciated.Consider this simple 
  service.  A Parent class containsan array of Child 
  objects.  Given this class, I wouldexpect the client to create a 
  message that looks like:   
    
     
    4   
   
     
    5   
     
  ..But the client instead generates this (notice how 
  thechildren tags are nested in a children tag): 
     
     
     
  4 
  5..While 
  both my axis client and service understand this,I'm concerned that 
  non-axis clients won't work.  Are my concerns 
  unfounded?  Or is this happening because Ihaven't built or 
  defined the service correctly?I'm including the wsdl, the wsdd, code, 
  request andresponse.  Sorry if this is too much - I'd rather be 
  complete than leave out an important 
  detail.WSDL:-targetNamespace="http://localhost:8080/bc_webservice/services/FamilyService 
  ">--- namespace="http://localhost:8080/bc_webservice/services/FamilyService"/>namespace=" 
  http://schemas.xmlsoap.org/soap/encoding/"/>-- 
  --type="impl:ArrayOf_tns1_Child"/> 
  type="xsd:string"/>-targetNamespace=" 
  http://localhost:8080/bc_webservice/services/FamilyService">namespace=" 
  http://schemas.xmlsoap.org/soap/encoding/"/>--- wsdl:arrayType="tns1:Child[]"/>- 
  - --parameterOrder="parent">name="combinedAgesRequest"/>name="combinedAgesResponse"/> 
  -type="impl:FamilyService">transport="http://schemas.xmlsoap.org/soap/http"/>- 
  -encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"namespace="http://webservices.msei.com"use="encoded"/>-encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"namespace=" 
  http://localhost:8080/bc_webservice/services/FamilyService"use="encoded"/>- 
  -name="FamilyService">location=" 
  http://localhost:8080/bc_webservice/services/FamilyService"/>WSDD: 
  value="com.msei.webservices.FamilyService" 
  />xmlns:ns="urn:FamilyService"languageSpecificType="java:com.msei.webservices.typemapping.Child"/>xmlns:ns="urn:FamilyService" 
  languageSpecificType="java:com.msei.webservices.typemapping.Parent"/>CODE 
  - Service:public class Parent {private String 
  name;private Child[] children; ...standard 
  bean...}public class Child{private int 
  age;...standard bean...}public class 
  FamilyService{ public Integer combinedAges(Parent 
  parent){int retVal = 0; 
  Child[] children = 
  parent.getChildren();if 
  (children!=null){for(int 
  x=0;xretVal 
  += 
  children[x].getAge();}} 
  return new 
  Integer(retVal);}}CODE - 
  Client:public class FamilyClient{public static 
  void main(String[] 
  args){try 
  {String 
  endpointURL = options.getURL 
  ();endpointURL 
  ="http://localhost:/bc_webservice/services/FamilyService";Parent 
  parent = new Parent(); 
  parent.setName("Big 
  Daddy");Child 
  joey = new 
  Child();joey.setAge(4);Child 
  suzie = new 
  Child();suzie.setAge(5);Child 
  stevie = new Child(); 
  stevie.setAge(7);parent.setChildren(newChild[]{joey,suzie,stevie});Service  service 
  = new 
  Service();Call 
  call= 
  (Call)service.createCall();QName 
  soapns = 
  newQName("TheFamily","Family.Service");call.setTargetEndpointAddress( 
  newjava.net.URL(endpointURL) ); 
  call.setOperation(soapns, 
  newQName("Family.Service", "combinedAges") 
  );call.setProperty(Call.SEND_TYPE_ATTR,Boolean.FALSE);call.setOperationStyle(Style.WRAPPED 
  );QName 
  pName = 
  newQName("urn:Family","parent");call.registerTypeMapping(Parent.class,p

RE: Get xml for Object generated with wsdl2java

2005-10-27 Thread Ebert, Chris
If you can handle another tool for comparison: Castor is pretty easy to
use. It 'marshalls' XML input into Java objects and vice versa. It will
generate a set of classes from a Schema file. I'm not a big fan of the
style of the objects it generates (names, etc...) but it works and it
was quick to set up and use. It doesn't do soap envelope stuff -- maybe
does now, but didn't when I used it. Performance was pretty good, so far
as I could tell.

Chris


-Original Message-
From: Kurt Olsen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 27, 2005 14:00
To: axis-user@ws.apache.org
Subject: RE: Get xml for Object generated with wsdl2java


Thanks Meghan I appreciate it and I'll look into it.
Of the 35 xml sites we transmit/receive from, 30 simply create strings.
It's painfull...but...SOAP is simply insane these days. So...I'm putting
a motion on the floor for renaming SOAP as COAP - Complex Object Access
Protocol. And yes, pun intended!



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 27, 2005 10:46 AM
To: [EMAIL PROTECTED]
Subject: Get xml for Object generated with wsdl2java


Have you looked at JAXB?  Much easier to generate and get an XML
snippet,
if that's all you need and you don't need the Axis http transport
support...

With a deadline, I'm sure you're not too happy about the idea of
starting
from scratch with another tool, but I've used XMLBeans, JAXB, and
Axis--and
Axis definitely took the most learning time and if you need to do
anything
special at all, it can be the highest amount of work.  The only reason I
still use it on one project is because we're integration with a
Siebel-generated service, and they will only support rpc/endoded.
XMLBeans
and JAXB can't generate Java objects for rpc/encoded style xml.

My 2 cents, good luck!  If you decide to use JAXB, let me know if you
run
into any difficulties, there's a good chance I've run into them--I won't
be
on this email for the next three days, but you can contact me at
[EMAIL PROTECTED]

Have lots of sympathy for you, it seems like I've spent most of the past
year struggling with trying to connect to new types of web services
under
time pressures--if there's one thing I've learned, it's that you can
laugh
if someone says "standard" and "SOAP" in the same sentence!  Sometimes
(often) I think it would be easier to paste together the strings and
post
them to a URL without any of this fancy junk.

Meghan

_
Meghan Pietila
Java Middleware Architect
Sales & Service Management Program
US Bank
Gold 4
(651) 205-0904
(651) 271-2815 cell
[EMAIL PROTECTED]




--
Electronic Privacy Notice. This e-mail, and any attachments, contains
information that is, or may be, covered by electronic communications
privacy
laws, and is also confidential and proprietary in nature. If you are not
the
intended recipient, please be advised that you are legally prohibited
from
retaining, using, copying, distributing, or otherwise disclosing this
information in any manner. Instead, please reply to the sender that you
have
received this communication in error, and then immediately delete it.
Thank
you in advance for your cooperation.


==




Re: AXIS n UDDI

2005-10-27 Thread Anne Thomas Manes
A UDDI registry is a web service. Its interface is defined by a WSDL.
Therefore you can develop a client application with Axis to access a
UDDI registry just as you would any other web service. 

You might also use the UDDI4J API (see http://uddi4j.sourceforge.net/). 

AnneOn 10/27/05, Alberto Filho <[EMAIL PROTECTED]> wrote:
Hi,how can i use axis with uddi?someone have any example?how can i begin?thanks...[]'sAlberto Filho


Re: Java2WSDL Query

2005-10-27 Thread Anne Thomas Manes
WSDL doesn't provide the ability to define optional headers. Only mandatory headers may be defined in WSDL.On 10/27/05, anshuk pal chaudhuri <
[EMAIL PROTECTED]> wrote:Hi,Does the Java2WSDL tool allow us to add soap:header
element in the WSDL which is optional?ThanksAnshuk__Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


Re: Odd nesting when using arrays

2005-10-27 Thread Anne Thomas Manes
For better interoperability, switch to doc/literal wrapped style and
define your schema yourself rather than generating it from Java.

AnneOn 10/27/05, todd runstein <[EMAIL PROTECTED]> wrote:
I'm concerned that using an array of objects creates aservice that is too "axis specific".  Or, perhaps I'mnot creating my service correctly.  In either case,any information or suggestions on the following would
be greatly appreciated.Consider this simple service.  A Parent class containsan array of Child objects.  Given this class, I wouldexpect the client to create a message that looks like:   
      4   
     5      ..But the client instead generates this (notice how thechildren tags are nested in a children tag):
        

4
5..While both my axis client and service understand this, I'm concerned that non-axis clients won't work.  Are
my concerns unfounded?  Or is this happening because Ihaven't built or defined the service correctly?I'm including the wsdl, the wsdd, code, request andresponse.  Sorry if this is too much - I'd rather be
complete than leave out an important detail.WSDL:-targetNamespace="http://localhost:8080/bc_webservice/services/FamilyService
">---
namespace="http://localhost:8080/bc_webservice/services/FamilyService"/>namespace="
http://schemas.xmlsoap.org/soap/encoding/"/>--
--type="impl:ArrayOf_tns1_Child"/>
type="xsd:string"/>-targetNamespace="
http://localhost:8080/bc_webservice/services/FamilyService">namespace="
http://schemas.xmlsoap.org/soap/encoding/"/>---
wsdl:arrayType="tns1:Child[]"/>-
-
--parameterOrder="parent">name="combinedAgesRequest"/>name="combinedAgesResponse"/>
-type="impl:FamilyService">
transport="http://schemas.xmlsoap.org/soap/http"/>-
-encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://webservices.msei.com"use="encoded"/>-
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"namespace="
http://localhost:8080/bc_webservice/services/FamilyService"use="encoded"/>-
-name="FamilyService">location="
http://localhost:8080/bc_webservice/services/FamilyService"/>WSDD:
value="com.msei.webservices.FamilyService" />xmlns:ns="urn:FamilyService"languageSpecificType="java:com.msei.webservices.typemapping.Child"/>xmlns:ns="urn:FamilyService"
languageSpecificType="java:com.msei.webservices.typemapping.Parent"/> CODE - Service:public class Parent {private String name;private Child[] children;
...standard bean...}public class Child{private int age;...standard bean...}public class FamilyService{ public Integer combinedAges(Parent parent){int retVal = 0;
Child[] children = parent.getChildren();if (children!=null){for(int x=0;xretVal += children[x].getAge();}}
return new Integer(retVal);}}CODE - Client:public class FamilyClient{public static void main(String[] args){try {String endpointURL = options.getURL
();endpointURL ="http://localhost:/bc_webservice/services/FamilyService";Parent parent = new Parent();
parent.setName("Big Daddy");Child joey = new Child();joey.setAge(4);Child suzie = new Child();suzie.setAge(5);Child stevie = new Child();
stevie.setAge(7);parent.setChildren(newChild[]{joey,suzie,stevie});Service  service = new Service();Call
call= (Call)service.createCall();QName soapns = newQName("TheFamily","Family.Service");call.setTargetEndpointAddress( newjava.net.URL(endpointURL) );
call.setOperation(soapns, newQName("Family.Service", "combinedAges") );call.setProperty(Call.SEND_TYPE_ATTR,Boolean.FALSE);call.setOperationStyle(Style.WRAPPED
);QName pName = newQName("urn:Family","parent");call.registerTypeMapping(Parent.class,pName,newBeanSerializerFactory(Parent.class,pName),
newBeanDeserializerFactory(Parent.class,pName));QName cName = newQName("urn:Family","children");call.registerTypeMapping(Child.class,cName,new
BeanSerializerFactory(Child.class,cName),newBeanDeserializerFactory(Child.class,cName));call.addParameter("parent",pName,ParameterMode.IN);call.setReturnType(org.apache.axis.encoding.XMLType.XSD_INT
);Integer ret = (Integer) call.invoke( newObject[] { parent } );System.out.println("Returned : "

Re: classpath

2005-10-27 Thread Ron Reynolds
the "classpath" (the value passed in via -classpath on the cmd line) is only 
used by the application classloader and
it's only read at startup.  i thought this service was being deployed while the 
server is up, in which case it should
work fine in the WEB-INF/lib or WEB-INF/classes directories if the server is 
bounced (assuming they're public classes
and the classname referenced in WEB-INF/server-config.wsdd is correct).  if the 
server has a JSP engine included you
can always write a jsp to test whether or not you can load the class in 
question...

> Did you insert the jar's name in your classpath? Try specify the
> complete local of the jar in your classpath, sample:
> c:\someplace\...\name.jar.
>
> Edson
>
>
> Ron Reynolds wrote:
>
>>you can't modify a classloader's class-finding mechanism internally without 
>>creating a new classloader and using it
>> to
>>load your new class.  very weird that the WEB-INF/lib approach didn't work 
>>(oh, you didn't bounce the tomcat
>> instance,
>>huh?  if you did it'd pick it up right away, right?).  tomcat scans that 
>>directory for all jars only on startup and
>>once the list is loaded it's basically carved in stone.  you might be able to 
>>put the class in your WEB-INF/classes
>>directory, but that'll only work once since once the class is loaded it's 
>>cached in the ClassLoader that loaded it.
>>if you do this seldom consider the bounce-the-server approach.  if you do it 
>>often (hot-swapping classes while the
>>server is up) you'll have to get fancier, but it should still be possible 
>>(similar to the way servlets or
>>jsp-generated-servlets are reloaded based on file change times).  let me know 
>>if you want more details on getting
>>crazy with ClassLoaders...
>>
>>
>>
>>>heh... I just read my own message, allow me to clarify:
>>>
>>>I have a java application deployed on my axis server (the wsdd method,
>>>not the jws method) and the application depends on an outside jar file.
>>>I've tried putting the jar file in the WEB-INF/lib directory but
>>>AxisServlet didn't seem to find it (there is a java.lang.NoClassDefFound
>>>error in my catalina.out log).
>>>
>>>How can I specify to axis or to tomcat where to find classes it needs to
>>>run my applications?
>>>
>>>On Thu, 2005-10-27 at 14:10 -0600, Daniel Miles wrote:
>>>
>>>
I have a java application that depends on some classes in a jar file.
Can I specify a classpath so that the VM can find it?


>>
>>
>>
>>
>>
>
>




Re: classpath

2005-10-27 Thread Edson Camargo
Did you insert the jar's name in your classpath? Try specify the 
complete local of the jar in your classpath, sample: 
c:\someplace\...\name.jar.


Edson


Ron Reynolds wrote:


you can't modify a classloader's class-finding mechanism internally without 
creating a new classloader and using it to
load your new class.  very weird that the WEB-INF/lib approach didn't work (oh, 
you didn't bounce the tomcat instance,
huh?  if you did it'd pick it up right away, right?).  tomcat scans that 
directory for all jars only on startup and
once the list is loaded it's basically carved in stone.  you might be able to 
put the class in your WEB-INF/classes
directory, but that'll only work once since once the class is loaded it's cached in the ClassLoader that loaded it. 
if you do this seldom consider the bounce-the-server approach.  if you do it often (hot-swapping classes while the

server is up) you'll have to get fancier, but it should still be possible 
(similar to the way servlets or
jsp-generated-servlets are reloaded based on file change times).  let me know 
if you want more details on getting
crazy with ClassLoaders...

 


heh... I just read my own message, allow me to clarify:

I have a java application deployed on my axis server (the wsdd method,
not the jws method) and the application depends on an outside jar file.
I've tried putting the jar file in the WEB-INF/lib directory but
AxisServlet didn't seem to find it (there is a java.lang.NoClassDefFound
error in my catalina.out log).

How can I specify to axis or to tomcat where to find classes it needs to
run my applications?

On Thu, 2005-10-27 at 14:10 -0600, Daniel Miles wrote:
   


I have a java application that depends on some classes in a jar file.
Can I specify a classpath so that the VM can find it?
 





 





RE: Get xml for Object generated with wsdl2java

2005-10-27 Thread Kurt Olsen

Thanks Meghan I appreciate it and I'll look into it.
Of the 35 xml sites we transmit/receive from, 30 simply create strings.
It's painfull...but...SOAP is simply insane these days. So...I'm putting a
motion on the floor for renaming SOAP as COAP - Complex Object Access
Protocol. And yes, pun intended!



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 27, 2005 10:46 AM
To: [EMAIL PROTECTED]
Subject: Get xml for Object generated with wsdl2java


Have you looked at JAXB?  Much easier to generate and get an XML snippet,
if that's all you need and you don't need the Axis http transport
support...

With a deadline, I'm sure you're not too happy about the idea of starting
from scratch with another tool, but I've used XMLBeans, JAXB, and Axis--and
Axis definitely took the most learning time and if you need to do anything
special at all, it can be the highest amount of work.  The only reason I
still use it on one project is because we're integration with a
Siebel-generated service, and they will only support rpc/endoded.  XMLBeans
and JAXB can't generate Java objects for rpc/encoded style xml.

My 2 cents, good luck!  If you decide to use JAXB, let me know if you run
into any difficulties, there's a good chance I've run into them--I won't be
on this email for the next three days, but you can contact me at
[EMAIL PROTECTED]

Have lots of sympathy for you, it seems like I've spent most of the past
year struggling with trying to connect to new types of web services under
time pressures--if there's one thing I've learned, it's that you can laugh
if someone says "standard" and "SOAP" in the same sentence!  Sometimes
(often) I think it would be easier to paste together the strings and post
them to a URL without any of this fancy junk.

Meghan

_
Meghan Pietila
Java Middleware Architect
Sales & Service Management Program
US Bank
Gold 4
(651) 205-0904
(651) 271-2815 cell
[EMAIL PROTECTED]



--
Electronic Privacy Notice. This e-mail, and any attachments, contains
information that is, or may be, covered by electronic communications privacy
laws, and is also confidential and proprietary in nature. If you are not the
intended recipient, please be advised that you are legally prohibited from
retaining, using, copying, distributing, or otherwise disclosing this
information in any manner. Instead, please reply to the sender that you have
received this communication in error, and then immediately delete it. Thank
you in advance for your cooperation.

==




Get xml for Object generated with wsdl2java

2005-10-27 Thread Kurt Olsen








Folks, I’m on a tight deadline, I’m trying to
talk to ebay – we use java 5 and axis 1.2 -  they don’t  So I can’t
just ‘use’ soap – errors everywhere.

But….I can use wsdl2java to generate java objects from
the ebay schema.  Given these objects – can anybody tell me exactly how
to generate xml from this object? I have searched and searched and can’t
figure it out – and have run out of time. I may still be able to use the
generate object internally but it’s going to really irritate me if I have
to generate my own xml based on the contents of the object. If anybody can
provide a concrete example that this overworked programmer can understand I
will be deeply in your debt. 

 

If I can get a chunk of xml from one of these objects then I
stand a chance of transmitting it using ebay’s xml interface (as opposed
to the soap interface).

 

Thanks

 

 

 

 

This
message may contain confidential information. If you are not the intended
recipient (or authorized to receive for the recipient) and received this
message in error; any use, distribution or disclosure is strictly prohibited.
Please contact the sender by reply email and delete all copies of this message
from your computer system. The views and opinions expressed in this email are
those of the sender and do not necessarily reflect the views or policies of
EzRez Software, except when the sender expressly and with authority states them
to be so.

 

 








Re: classpath

2005-10-27 Thread Ron Reynolds
you can't modify a classloader's class-finding mechanism internally without 
creating a new classloader and using it to
load your new class.  very weird that the WEB-INF/lib approach didn't work (oh, 
you didn't bounce the tomcat instance,
huh?  if you did it'd pick it up right away, right?).  tomcat scans that 
directory for all jars only on startup and
once the list is loaded it's basically carved in stone.  you might be able to 
put the class in your WEB-INF/classes
directory, but that'll only work once since once the class is loaded it's 
cached in the ClassLoader that loaded it. 
if you do this seldom consider the bounce-the-server approach.  if you do it 
often (hot-swapping classes while the
server is up) you'll have to get fancier, but it should still be possible 
(similar to the way servlets or
jsp-generated-servlets are reloaded based on file change times).  let me know 
if you want more details on getting
crazy with ClassLoaders...

> heh... I just read my own message, allow me to clarify:
>
> I have a java application deployed on my axis server (the wsdd method,
> not the jws method) and the application depends on an outside jar file.
> I've tried putting the jar file in the WEB-INF/lib directory but
> AxisServlet didn't seem to find it (there is a java.lang.NoClassDefFound
> error in my catalina.out log).
>
> How can I specify to axis or to tomcat where to find classes it needs to
> run my applications?
>
> On Thu, 2005-10-27 at 14:10 -0600, Daniel Miles wrote:
>> I have a java application that depends on some classes in a jar file.
>> Can I specify a classpath so that the VM can find it?
>




Re: classpath

2005-10-27 Thread Daniel Miles
heh... I just read my own message, allow me to clarify:

I have a java application deployed on my axis server (the wsdd method,
not the jws method) and the application depends on an outside jar file.
I've tried putting the jar file in the WEB-INF/lib directory but
AxisServlet didn't seem to find it (there is a java.lang.NoClassDefFound
error in my catalina.out log).

How can I specify to axis or to tomcat where to find classes it needs to
run my applications?

On Thu, 2005-10-27 at 14:10 -0600, Daniel Miles wrote:
> I have a java application that depends on some classes in a jar file.
> Can I specify a classpath so that the VM can find it?


signature.asc
Description: This is a digitally signed message part


classpath

2005-10-27 Thread Daniel Miles
I have a java application that depends on some classes in a jar file.
Can I specify a classpath so that the VM can find it?


signature.asc
Description: This is a digitally signed message part


[Axis 2] Some clarifications (wanted)

2005-10-27 Thread Routis Babis

I am relative new to Web Services and I have the following questions:

1) How do I package a service archive ("aar") if the implementation of 
the service needs to access some resource (for example a JMS Queue or a 
 managed jdbc datasource). In Axis1 i could embed the Axis Engine in my 
web application so access to these kind of resources was implied (via 
relative declarations to the web.xml)


2) Axis2 uses the XML-Beans for serialization and deserialization. 
XML-Beans does not produce only java files but also .xsb's. Is there any 
process that can compile these artifacts using Maven 2;




Odd nesting when using arrays

2005-10-27 Thread todd runstein
I'm concerned that using an array of objects creates a
service that is too "axis specific".  Or, perhaps I'm
not creating my service correctly.  In either case,
any information or suggestions on the following would
be greatly appreciated.

Consider this simple service.  A Parent class contains
an array of Child objects.  Given this class, I would
expect the client to create a message that looks like:
   
 

   
  4
   
   
  5
   
   ..

But the client instead generates this (notice how the
children tags are nested in a children tag):
  
 

   
  
 4
  
  
 5
  
  ..
 

While both my axis client and service understand this,
 I'm concerned that non-axis clients won't work.  Are
my concerns unfounded?  Or is this happening because I
haven't built or defined the service correctly?

I'm including the wsdl, the wsdd, code, request and
response.  Sorry if this is too much - I'd rather be
complete than leave out an important detail.

WSDL:
-
http://localhost:8080/bc_webservice/services/FamilyService";>
-

-

-

http://localhost:8080/bc_webservice/services/FamilyService"/>
http://schemas.xmlsoap.org/soap/encoding/"/>
-

-




-

-






-
http://localhost:8080/bc_webservice/services/FamilyService";>

http://schemas.xmlsoap.org/soap/encoding/"/>
-

-

-







-



-



-

-





-

http://schemas.xmlsoap.org/soap/http"/>
-


-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://webservices.msei.com";
use="encoded"/>

-

http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/bc_webservice/services/FamilyService";
use="encoded"/>



-

-

http://localhost:8080/bc_webservice/services/FamilyService"/>





WSDD:





 


CODE - Service:
public class Parent {
private String name;
private Child[] children;
...standard bean...
}

public class Child{
private int age;
...standard bean...
}

public class FamilyService{
 public Integer combinedAges(Parent parent){
int retVal = 0;

Child[] children = parent.getChildren();
if (children!=null){
for(int x=0;xhttp://localhost:/bc_webservice/services/FamilyService";;
  
Parent parent = new Parent();
parent.setName("Big Daddy");
Child joey = new Child();
joey.setAge(4);
Child suzie = new Child();
suzie.setAge(5);
Child stevie = new Child();
stevie.setAge(7);
parent.setChildren(new
Child[]{joey,suzie,stevie});

Service  service = new Service();
Call call= (Call)
service.createCall();

QName soapns = new
QName("TheFamily","Family.Service");

call.setTargetEndpointAddress( new
java.net.URL(endpointURL) );
call.setOperation(soapns, new
QName("Family.Service", "combinedAges") );
   
call.setProperty(Call.SEND_TYPE_ATTR,Boolean.FALSE);
 
call.setOperationStyle(Style.WRAPPED);

QName pName = new
QName("urn:Family","parent");
  
call.registerTypeMapping(Parent.class,pName,
new
BeanSerializerFactory(Parent.class,pName),
new
BeanDeserializerFactory(Parent.class,pName));

QName cName = new
QName("urn:Family","children");
   
call.registerTypeMapping(Child.class,cName,
new
BeanSerializerFactory(Child.class,cName),
new
BeanDeserializerFactory(Child.class,cName));
   
call.addParameter("parent",pName,ParameterMode.IN);
  
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_INT);

Integer ret = (Integer) call.invoke( new
Object[] { parent } );

System.out.println("Returned : " + ret);
} catch (Exception e) {
System.err.println(e.toString());
}
}
}


REQUEST:

   http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
 

   
  
 4
  
  
 5
  
  
 7
  
   
   Big Daddy

 
  
   


RESPONSE:

   http://schemas.xmls

Axis2 and XMLBeans - what is the relationship?

2005-10-27 Thread Paul Grillo








Short question:  Can I use XMLBeans as distributed by xmlbeans.apache.org
as my serializer/deserializer in Axis2?  If so how?  It appears to be different
than what is contained in Axis2>

 

 

I have a simple WSDL backed up by a few Schemas.  They generate clean
java classes in Axis 1.2

 

So I ran them through Axis2, and what I got was about 653 various
uncompiled files generated of which only about 30 reflect the actual beans I’ll
be interacting with.  It also appeared to insist on pre-pending “codegen.databinding”
to the package names that are reflective of my chosen namespace.  I guess I was
pretty surprised at all that was generated, the naming etec etc.

 

I then used scomp from xmlbeans v2 distribution, and it generated a very
nice jar file with pretty much what I expected.  The compiler was much more
powerful and provides me with some other capabilities.  I would like to use
this in “either” Axis 1.2 or Axis2.  Is it possible?

 

I do not want to tie my databinding to a web services framework.  I am
willing to use stand-alone XMLBeans.  Is this doable?

 

thanks

 

 

 

 








GeneratorFactory examples please?

2005-10-27 Thread Mick Knutson
I am trying to see if anyone has any examples of implementing your own 
GeneratorFactory.
I am trying to see if this will allow me to modify the extends or implements 
of my types that are generated.


Please help as I am really frustrated with the issue I have and I have been 
here searching for a solution for over a month now.


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)




RE: Re: Strange WSDL generation

2005-10-27 Thread Alexander Grivnin
Davanum,

 I opened bug in JIRA - AXIS-2272

Thanks,
Alex


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


Re: Strange WSDL generation

2005-10-27 Thread Alexander Grivnin
Davanum,

 I opened bug in JIRA - AXIS-2272

Thanks,
Alex


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


RE: SAXParserException while using Servlet Filter

2005-10-27 Thread Wesley MacDonald
Hi,

After your filter does its work it must pass the request on:

 // Forward the request to the next resource in the chain
chain.doFilter(request, response);

Wes.

-Original Message-
From: Ron Reynolds [mailto:[EMAIL PROTECTED] 
Sent: October 26, 2005 6:46 PM
To: axis-user@ws.apache.org
Subject: RE: SAXParserException while using Servlet Filter

try adding this line:
> public void doFilter(ServletRequest arg0, ServletResponse arg1,
>   FilterChain arg2) throws IOException, ServletException {
>   System.out.println("In Filter doFilter");
 arg2.doFilter(arg0, arg1);
> }
basically your filter isn't passing the request forward.






RE: restrict access to url

2005-10-27 Thread Wesley MacDonald
Hi,

Inside the server-config.wsdd define the following tag inside
your  element

/PathToWSDL/MyWSDL.wsdl   

With the .wsdl file containing an empty  element

Wes.

-Original Message-
From: Plorks mail [mailto:[EMAIL PROTECTED] 
Sent: October 25, 2005 3:35 AM
To: axis-user@ws.apache.org
Subject: restrict access to url


Dear All

I have some web services where the wsdl can be accessed from a url

e.g. https://www.domain.com/servlet/AxisServlet.

Anyone wanting to be malicious could find our url and start accessing
our web services.  Can anyone give me some ideas on how we can
stop/restrict people accessing the url to our wsdl files ?

Thanks for any help

_
The new MSN Search Toolbar now includes Desktop search! 
http://toolbar.msn.co.uk/



Re: WSDL2Java problem

2005-10-27 Thread Jan Bares

Thanks Hansen, I am not sure we are talking about the same thing.

The Web Service method is:
void methodName(BaseClass[]);

I have to pass a ChildClass object that extends BaseClass class as 
argument,

so I do:
methodName(new BaseClass[] {new ChildClass()});

When I look into SOAP request, I see only fields from BaseClass, but no
fields from ChildClass object. Both classes *are* generated by AXIS from
WSDL. Does AXIS/SOAP handle inheritance on input parameters? (it works well
for output parameters, e.g. BaseClass[] anotherMethod() returns ChildClass
objects inside the array)

Thanks, Jan


Hansen, Geir wrote:

I am in control of the server as well, and was using Axis to generate a
client for test purpose when I became aware of this problem. So I
thought that if Axis has such a problem other tools might have as well.
So I generated a dummy message on the server side having absolutely all
classes as arguments. Then at least Axis generates the classes on the
client side as well.

But of course, that won't help you as long as you have no control of the
server side.
Of course you could edit the WSDL file, add a dummy method in there (you
would never call it of course) and try to generate the axis client from
that.

But there should be another solution. Sorry I couldn't help you.



-Original Message-
From: Jan Bares [mailto:[EMAIL PROTECTED] 
Sent: 27. oktober 2005 15:03

To: axis-user@ws.apache.org
Subject: Re: WSDL2Java problem

Thanks, but it doesn't help. Comparing the generated files, nothing
changes with respect to the classes in problem. The QName for the
classes is registered even without -a. Does Axis handle this type of
calls?

Jan


Hansen, Geir wrote:


When generating your client code, are you sure you tried the -a option




("generate code for all elements, even unreferenced ones").

See http://ws.apache.org/axis/java/reference.html WSDL2Java Reference

Geir




-Original Message-
From: Jan Bares [mailto:[EMAIL PROTECTED]
Sent: 27. oktober 2005 11:47
To: axis-user@ws.apache.org
Subject: WSDL2Java problem

Hi,

I am new to Axis/SOAP. We have generated Java files from WSDL and most



of the functions work well (Google AdWords API). However we have a 
trouble with a specific function. That function takes array of objects



of class called Base. There is another class called Sublass, that is 
subclass of Base. We pass array of the Subclass objects. I lloked into




generated SOAP request, and  it contains only data related to the Base




class, all data from Subclass are lost.
Is this problem of generated Java files or in the axis library during 
call?


Thanks, Jan

I think that the wsdl file is correct
(https://adwords.google.com/api/adwords/v2/CriterionService?wsdl). The



function is called addCriteria, it takes array of Criterion objects 
and we pass Keyword objects. The SOAP request doesn't contain Keyword 
object related members.









Java2WSDL Query

2005-10-27 Thread anshuk pal chaudhuri
Hi,

Does the Java2WSDL tool allow us to add soap:header
element in the WSDL which is optional?

Thanks
Anshuk



__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


RE: WSDL2Java problem

2005-10-27 Thread Hansen, Geir
I am in control of the server as well, and was using Axis to generate a
client for test purpose when I became aware of this problem. So I
thought that if Axis has such a problem other tools might have as well.
So I generated a dummy message on the server side having absolutely all
classes as arguments. Then at least Axis generates the classes on the
client side as well.

But of course, that won't help you as long as you have no control of the
server side.
Of course you could edit the WSDL file, add a dummy method in there (you
would never call it of course) and try to generate the axis client from
that.

But there should be another solution. Sorry I couldn't help you.



-Original Message-
From: Jan Bares [mailto:[EMAIL PROTECTED] 
Sent: 27. oktober 2005 15:03
To: axis-user@ws.apache.org
Subject: Re: WSDL2Java problem

Thanks, but it doesn't help. Comparing the generated files, nothing
changes with respect to the classes in problem. The QName for the
classes is registered even without -a. Does Axis handle this type of
calls?

Jan


Hansen, Geir wrote:
> When generating your client code, are you sure you tried the -a option

> ("generate code for all elements, even unreferenced ones").
> 
> See http://ws.apache.org/axis/java/reference.html WSDL2Java Reference
> 
> Geir
> 
> 
> 
> 
> -Original Message-
> From: Jan Bares [mailto:[EMAIL PROTECTED]
> Sent: 27. oktober 2005 11:47
> To: axis-user@ws.apache.org
> Subject: WSDL2Java problem
> 
> Hi,
> 
> I am new to Axis/SOAP. We have generated Java files from WSDL and most

> of the functions work well (Google AdWords API). However we have a 
> trouble with a specific function. That function takes array of objects

> of class called Base. There is another class called Sublass, that is 
> subclass of Base. We pass array of the Subclass objects. I lloked into

> generated SOAP request, and  it contains only data related to the Base

> class, all data from Subclass are lost.
> Is this problem of generated Java files or in the axis library during 
> call?
> 
> Thanks, Jan
> 
> I think that the wsdl file is correct
> (https://adwords.google.com/api/adwords/v2/CriterionService?wsdl). The

> function is called addCriteria, it takes array of Criterion objects 
> and we pass Keyword objects. The SOAP request doesn't contain Keyword 
> object related members.
> 
> 


Re: SOAP:Header question

2005-10-27 Thread Terance Dias
Hi Anne,
 
Is there some way to get the WSDL generation tool in axis to add the header for us?
 
Thanks and Regards,
Terance.Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
Try specifying the body parts before the header parts -- both in the messages and in the binding. That should get rid of the warnings.Anne
On 10/26/05, Tysnes Are Thobias <[EMAIL PROTECTED]> wrote:

Hello Anne! Thanks for your reply :o)
 
When I describe headers like you suggests, wsdl.exe in .NET gives me the warning
I mentioned (R2210)
 
And if I have several operations (example below) declared in the WSDL both wsdl.exe
in .NET and SoapScope Analyzer gives me this warning:
 
"Duplicate Wire Signature
Wsdl:Operation myOperation1 with wsdl:part MyHeader has same wire signature as
wsdl:operation myOperation2 with wsdl:part MyHeader. W013"
 
The code generated in .NET and Axis looks ok, but I don't like the warnings.. ;o)
 
Cheers,
Are T. Tysnes
 














 

 

http://schemas.xmlsoap.org/soap/http"/>
























-Original Message-From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]] Sent: 25. oktober 2005 21:43To: axis-user@ws.apache.orgSubject: Re: SOAP:Header questionDid you specify a parts attribute in the  description?Here's an example of how your should describe headers:
...  transport="
http://schemas.xmlsoap.org/soap/http"/>  
 		part="subscribeheader" use="literal"/>
Anne
On 10/25/05, Tysnes Are Thobias <[EMAIL PROTECTED]> wrote: 
Hello!I have som issues with SOAP:Header.The solution with multiple parts in a message raise a warningin .NET:"Warning: This web reference does not conform to WS-I Basic Profilev1.1 .R2210: If a document-literal binding in a DESCRIPTION does not specifythe parts attribute on a soapbind:body element, the correspondingabstract wsdl:message MUST define zero or one wsdl:parts.  -  Operation 'SLSCreateCase' on binding 'SLSCreateCaseSOAPBinding' from namespace 'http://www.edb.com/sls/webservices/createcase/wsdl'." When i split the parts in two messages:
 element="myheader:AutHeader"/>element="s0:QuerySomething"/>everything is fine in .NET, but AXIS 1.3 (WSDL2Java) refuses to generatethis header for me.Any reason for this !?Cheers;Are T. Tysnes-Original Message-From: Hans Planting (CWEU-USERS/CWNL)[mailto:[EMAIL PROTECTED]]Sen
 t: 20.
 oktober 2005 17:15 To: axis-user@ws.apache.orgSubject: Re: SOAP:Header questionIt should look like: **...   ...soapAction="http://xxx/webservices/GetFinancialDetail " style="document"/>  use="literal" /> ... When running wsdl2java you should get something like'getFinancialData(String clientid, Authorization auth)' as thewebservices endpoint method. The clientid will be sent in the soap:body,the auth in the soap:header of the envelope. The Axis java source distribution contains a good example of this in[axishome]/test/wsdl/headerHans>You got the idea: have t
 he
 endpoint method (getFinancialData) handle>this data - and obviously, it requires extra parameters to do that. The >question is how to transfer this authentication data from the header to>this parameter. Or do I misunderstand?>>Just for clearence:>I got a WSDL from which I created the JAVA sources using WSDL2Java >--server-side, that gave me (amongst others) OrgWebservice.java and>OrgWebServiceImpl.java. The last one is the one that implements the>actual services, amongst the GetFinancialDetails (java.lang.String >clientid). Is that what you call the "endpoint method"?>>Obviously, that one nedds to get the authentication data, and I don't>care if that would be in the form of an object: Object class >Authentication>   java.lang.String region ;>   java.lang.String department ;>   java.lang.String desk ;>  
 java.lang.String username ;>>or whatever, or as separate arguments. Lets assume the first. >>So the service - now generated as:>>FinDetails class getFinancialDetails (java.lang.String clientid)>>would need to be:>>FinDetails class getFinancialDetails (java.lang.String clientid,>Authetication authentication)>>so I could use the data - directly or by a getter.>>Would this be the idea of WSDL:>...>   >  >>  > >  >type="s:string" />>  >type="s:string" />>  >type="s:string" />>  >type="s:string"
 />>>  > >  >   ...>  > >  >...>>  soapAction="http://xxx/webservices/GetFinancialDetail
 ">style="document" />>  >>>part="Authorization" use="literal" />>  >  >>  > >...>>This is in the WSDL already, but the header data is not included in the>generated JAVA code:>>public interface OrgWebServiceSoap extends java.rmi.Remote { ...>public xxx.FinDetails getFinancialDetail(java.lang.String
 clientid);>...>}>>and I don't find any refererence to the

Re: [Axis2] servletContext & service scope

2005-10-27 Thread Deepal Jayasinghe

Hi Wanger;

I agree with you that we do not have much of example and document , and we 
will be fixing them as much as we can.


Thanks,
Deepal

~Future is Open~

- Original Message - 
From: "Wagner Narde" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, October 27, 2005 6:19 PM
Subject: Re: [Axis2] servletContext & service scope


Thanks!

Usually I load a instance of my system facade into servletContext, to
split exclusive WS logic from my own business objects logic.

But I don't know if it's the best code design, because there are not
so many axis2 examples around.


Wagner


On 10/27/05, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

done ,
 now any one can get the ServletContext from msgContxt calling
getProperty("servletContext");

Thanks,
 Deepal

~Future is Open~

- Original Message -
From: "Davanum Srinivas" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, October 27, 2005 9:45 AM
Subject: Re: [Axis2] servletContext & service scope


+1 from me.

On 10/26/05, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> Hi dims;
>
> Then we can put the ServletContext in ConfigurationContext as a property 
> ,

> so if someone want to get that he can get the from the MC and use it. I
> will
> fix that and so Wagner  you do not need to rise a JIRA :)
>
> Thanks,
>  Deepal
> 
> ~Future is Open~
>
> - Original Message -
> From: "Davanum Srinivas" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, October 27, 2005 9:29 AM
> Subject: Re: [Axis2] servletContext & service scope
>
>
> Deepal,
>
> my 2 cents as I've seen many people use it.
>
> - Folks use it to load resources from their webapp
> - Folks use it to load parameters from their Servlet
> - It's there in Axis1. It is needed for supporting a JAX-WS layer
> (when we get around to doing it)
> - etc...
>
> thanks,
> dims
>
> On 10/26/05, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> > Hi ;
> >
> > regarding service scope there is a JIRA and we will fix that in next
> > release.
> >
> > Regarding ServletContext , please create a JIRA explaining your
> > requirement
> > , then we can fix that , we still haven't find any requirement of
> > accessing
> > servletConetxt.
> >
> > Thanks,
> >  Deepal
> > 
> > ~Future is Open~
> >
> > - Original Message -
> > From: "Wagner Narde" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Wednesday, October 26, 2005 6:10 PM
> > Subject: [Axis2] servletContext & service scope
> >
> >
> > Hello,
> >
> > Two questions about Axis2:
> >
> > 1- How can I set service scope like Axis1 (application / request /
> > session...) ?
> >
> > 2- How can I retrieve ServletContext?
> >
> > If documentation covers this topics, please tell me where, because I
> > did not find.
> >
> > Thanks,
> > --
> > Wagner
> >
> >
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
>
>


--
Davanum Srinivas : http://wso2.com/blogs/








Re: WSDL2Java problem

2005-10-27 Thread Jan Bares
Thanks, but it doesn't help. Comparing the generated files, nothing 
changes with respect to the classes in problem. The QName for the 
classes is registered even without -a. Does Axis handle this type of calls?


Jan


Hansen, Geir wrote:

When generating your client code, are you sure you tried the -a option
("generate code for all elements, even unreferenced ones"). 


See http://ws.apache.org/axis/java/reference.html WSDL2Java Reference

Geir




-Original Message-
From: Jan Bares [mailto:[EMAIL PROTECTED] 
Sent: 27. oktober 2005 11:47

To: axis-user@ws.apache.org
Subject: WSDL2Java problem

Hi,

I am new to Axis/SOAP. We have generated Java files from WSDL and most
of the functions work well (Google AdWords API). However we have a
trouble with a specific function. That function takes array of objects
of class called Base. There is another class called Sublass, that is
subclass of Base. We pass array of the Subclass objects. I lloked into
generated SOAP request, and  it contains only data related to the Base
class, all data from Subclass are lost.
Is this problem of generated Java files or in the axis library during
call?

Thanks, Jan

I think that the wsdl file is correct
(https://adwords.google.com/api/adwords/v2/CriterionService?wsdl). The
function is called addCriteria, it takes array of Criterion objects and
we pass Keyword objects. The SOAP request doesn't contain Keyword object
related members.




Re: [AXIS2] Anyone using spring with axis2 ?

2005-10-27 Thread trebor iksrazal
Thanks for the reply Saminda - this is what I need and
I'm going to try and use it. 

However, this code does not seem to be in the current
subversion trunk. Anyone know why? 

iksrazal

--- Saminda Abeyruwan <[EMAIL PROTECTED]> wrote:

> Hi Iksrazal,
> 
> Paul Fremantle has done a greate work in integrating
> Spring framework to 
> Axis2. You can find more info in
>
http://marc.theaimsgroup.com/?l=axis-dev&m=112866697704950&w=2
> 
> Saminda
> 
> trebor iksrazal wrote:
> 
> >Hi all,
> >
> >We have an app that uses the Spring framework. We
> now
> >need to have web services with axis2 v .92 -
> >particularly based off of the
> >EchoNonBlockingDualClient example in the axis2 user
> >guide.
> >
> >Question: Can anyone point me to examples or
> >documentation using Axis2 with Spring? Googling
> didn't
> >turn up much. 
> >
> >iksrazal
> >
> >"None are more hopelessly enslaved than those who
> falsely believe they are free. -- Goethe"
> >
> >
> > 
> > 
> >__ 
> >Yahoo! Mail - PC Magazine Editors' Choice 2005 
> >http://mail.yahoo.com
> >
> >  
> >
> 
> 


"None are more hopelessly enslaved than those who falsely believe they are 
free. -- Goethe"



__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


Re: [axis 1.x] Working with enumerations

2005-10-27 Thread Davanum Srinivas
Please opne a jira bug report requesting an enhancement with your wsdl as well.

thanks,
dims

On 10/27/05, Dovholuk, Clint <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I was wondering if there were some switch on WSDL2Java I haven't come
> across yet which allows it to generate java 5 enum's instead of the type
> safe enum pattern.  Or alternatively, if there was another, different
> switch which allowed the type safe enum pattern to create values one can
> actually code with.  call me crazy, but _value1, _value2, _value3 isn't
> the easiest to code with...  Sure I could use fromValue, but that's not
> nearly as nice to code with, and it's not compile-time safe.
>
> Are there any plans on getting this feature as an option on wsdl2java?
>
> I looked all over the net and jira but I can't get quality hits back...
>
> Thanks,
> -Clint
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


Re: [Axis2] servletContext & service scope

2005-10-27 Thread Wagner Narde
Thanks!

Usually I load a instance of my system facade into servletContext, to
split exclusive WS logic from my own business objects logic.

But I don't know if it's the best code design, because there are not
so many axis2 examples around.


Wagner


On 10/27/05, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> done ,
>  now any one can get the ServletContext from msgContxt calling
> getProperty("servletContext");
>
> Thanks,
>  Deepal
> 
> ~Future is Open~
>
> - Original Message -
> From: "Davanum Srinivas" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, October 27, 2005 9:45 AM
> Subject: Re: [Axis2] servletContext & service scope
>
>
> +1 from me.
>
> On 10/26/05, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> > Hi dims;
> >
> > Then we can put the ServletContext in ConfigurationContext as a property ,
> > so if someone want to get that he can get the from the MC and use it. I
> > will
> > fix that and so Wagner  you do not need to rise a JIRA :)
> >
> > Thanks,
> >  Deepal
> > 
> > ~Future is Open~
> >
> > - Original Message -
> > From: "Davanum Srinivas" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Thursday, October 27, 2005 9:29 AM
> > Subject: Re: [Axis2] servletContext & service scope
> >
> >
> > Deepal,
> >
> > my 2 cents as I've seen many people use it.
> >
> > - Folks use it to load resources from their webapp
> > - Folks use it to load parameters from their Servlet
> > - It's there in Axis1. It is needed for supporting a JAX-WS layer
> > (when we get around to doing it)
> > - etc...
> >
> > thanks,
> > dims
> >
> > On 10/26/05, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> > > Hi ;
> > >
> > > regarding service scope there is a JIRA and we will fix that in next
> > > release.
> > >
> > > Regarding ServletContext , please create a JIRA explaining your
> > > requirement
> > > , then we can fix that , we still haven't find any requirement of
> > > accessing
> > > servletConetxt.
> > >
> > > Thanks,
> > >  Deepal
> > > 
> > > ~Future is Open~
> > >
> > > - Original Message -
> > > From: "Wagner Narde" <[EMAIL PROTECTED]>
> > > To: 
> > > Sent: Wednesday, October 26, 2005 6:10 PM
> > > Subject: [Axis2] servletContext & service scope
> > >
> > >
> > > Hello,
> > >
> > > Two questions about Axis2:
> > >
> > > 1- How can I set service scope like Axis1 (application / request /
> > > session...) ?
> > >
> > > 2- How can I retrieve ServletContext?
> > >
> > > If documentation covers this topics, please tell me where, because I
> > > did not find.
> > >
> > > Thanks,
> > > --
> > > Wagner
> > >
> > >
> > >
> >
> >
> > --
> > Davanum Srinivas : http://wso2.com/blogs/
> >
> >
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
>
>


[axis 1.x] Working with enumerations

2005-10-27 Thread Dovholuk, Clint
Hello all,

I was wondering if there were some switch on WSDL2Java I haven't come
across yet which allows it to generate java 5 enum's instead of the type
safe enum pattern.  Or alternatively, if there was another, different
switch which allowed the type safe enum pattern to create values one can
actually code with.  call me crazy, but _value1, _value2, _value3 isn't
the easiest to code with...  Sure I could use fromValue, but that's not
nearly as nice to code with, and it's not compile-time safe.

Are there any plans on getting this feature as an option on wsdl2java?

I looked all over the net and jira but I can't get quality hits back...

Thanks,
-Clint



SOAP Fault

2005-10-27 Thread Weston, Toby








Hey folks,

 

Sorry for the newbie
question but can you refer me to an article / HOWTO that shows you how to
create SOAP fault's in SAAJ? Or how Axis would do it, I need to manually
create a valid SOAP message that contains a fault. 

 

Hope that makes sense.


Thanks,

Toby








Re: Is axis client session handling thread safe ?

2005-10-27 Thread Carpe Sebastien




OK .. Found out what happened... looked the symptoms, and didn't check
the disease... A good meal, and got my spirits back in...
Well, i'm silly. An instance object that should not have held the Call
object but did was shared amongst the different Thread.
Set the Call object as an parameter along the process stack call, and
everything got back to work...

Sorry for the mess, and thanx a lot for all of your time...
Seb C. (ashamed ;) )

makarand sovani wrote:

  Check the variables you are using. They are probably getting
overwritten by instances of same class in other threads. Check the code
you have written on axis side from what you are describing there
apeears to be some problem on your server side code.
  
   
  Makarand
 
  On 10/27/05, Carpe Sebastien <[EMAIL PROTECTED]>
wrote:
  Well
... i've added a few log traces, and, well.. this is getting me
nuts ...
What i can see, is that, sometimes, the msgContext attribute from the

Call object has a different hashCode () between the constructor method
and the invoke() call...
Even more weird, i can the the same msgContext hashCode() (means : "same
objects" since hasCode is not overridden, AFAIK) shared among different

Call objects ...
So, either, there is something really wrong with my JVM, thread
handling, etc, or there is something i don't catch ...
Gonna try to update my JVM and see if it changes anything...

Carpe Sebastien wrote:


> makarand sovani wrote:
>
>> Are you using wss4j ? We have recently come across non-thread
safe
>> behaviour in wss4j.
>>
>> If you are not using wss4j can you check your handlers to see
if they

>> are threadsafe ?
>> Makarand
>>
>
>
> Well, i'm not sure about what you're pointing me to ...
> my client code for performing call, is as simple as
>
> Service s=new Service();

> Call c=(Call)s.createCall();
> c.setMaintainSession(true);
> // setting parameters/returnType/parameters
> 
> c.invoke(parameters);
>
> No special handler what so ever... No config file to change
default

> behavior.
> Am i using wss4j ? well, no... I don't think so (the closest stuff
i
> got in my classpath is wsdl4j, but an 's' and a 'l' doesn't make a
s,
> do they ;) ) ...
>
>

  
  
  






RE: WSDL2Java problem

2005-10-27 Thread Hansen, Geir
When generating your client code, are you sure you tried the -a option
("generate code for all elements, even unreferenced ones"). 

See http://ws.apache.org/axis/java/reference.html WSDL2Java Reference

Geir




-Original Message-
From: Jan Bares [mailto:[EMAIL PROTECTED] 
Sent: 27. oktober 2005 11:47
To: axis-user@ws.apache.org
Subject: WSDL2Java problem

Hi,

I am new to Axis/SOAP. We have generated Java files from WSDL and most
of the functions work well (Google AdWords API). However we have a
trouble with a specific function. That function takes array of objects
of class called Base. There is another class called Sublass, that is
subclass of Base. We pass array of the Subclass objects. I lloked into
generated SOAP request, and  it contains only data related to the Base
class, all data from Subclass are lost.
Is this problem of generated Java files or in the axis library during
call?

Thanks, Jan

I think that the wsdl file is correct
(https://adwords.google.com/api/adwords/v2/CriterionService?wsdl). The
function is called addCriteria, it takes array of Criterion objects and
we pass Keyword objects. The SOAP request doesn't contain Keyword object
related members.


AXIS n UDDI

2005-10-27 Thread Alberto Filho
Hi,
how can i use axis with uddi?
someone have any example?
how can i begin?

thanks...

[]'s
Alberto Filho


Re: Is axis client session handling thread safe ?

2005-10-27 Thread makarand sovani
Check the variables you are using. They are probably getting overwritten by instances of same class in other threads. Check the code you have written on axis side from what you are describing there apeears to be some problem on your server side code.

 
Makarand 
On 10/27/05, Carpe Sebastien <[EMAIL PROTECTED]> wrote:
Well ... i've added a few log traces, and, well.. this is getting menuts ...What i can see, is that, sometimes, the msgContext attribute from the
Call object has a different hashCode () between the constructor methodand the invoke() call...Even more weird, i can the the same msgContext hashCode() (means : "sameobjects" since hasCode is not overridden, AFAIK) shared among different
Call objects ...So, either, there is something really wrong with my JVM, threadhandling, etc, or there is something i don't catch ...Gonna try to update my JVM and see if it changes anything...Carpe Sebastien wrote:
> makarand sovani wrote:>>> Are you using wss4j ? We have recently come across non-thread safe>> behaviour in wss4j. If you are not using wss4j can you check your handlers to see if they
>> are threadsafe ?>> Makarand> Well, i'm not sure about what you're pointing me to ...> my client code for performing call, is as simple as>> Service s=new Service();
> Call c=(Call)s.createCall();> c.setMaintainSession(true);> // setting parameters/returnType/parameters> > c.invoke(parameters);>> No special handler what so ever... No config file to change default
> behavior.> Am i using wss4j ? well, no... I don't think so (the closest stuff i> got in my classpath is wsdl4j, but an 's' and a 'l' doesn't make a s,> do they ;) ) ...>>



WSDL2Java problem

2005-10-27 Thread Jan Bares

Hi,

I am new to Axis/SOAP. We have generated Java files from WSDL and most 
of the functions work well (Google AdWords API). However we have a 
trouble with a specific function. That function takes array of objects 
of class called Base. There is another class called Sublass, that is 
subclass of Base. We pass array of the Subclass objects. I lloked into 
generated SOAP request, and  it contains only data related to the Base 
class, all data from Subclass are lost.

Is this problem of generated Java files or in the axis library during call?

Thanks, Jan

I think that the wsdl file is correct 
(https://adwords.google.com/api/adwords/v2/CriterionService?wsdl). The 
function is called addCriteria, it takes array of Criterion objects and 
we pass Keyword objects. The SOAP request doesn't contain Keyword object 
related members.


Re: Is axis client session handling thread safe ?

2005-10-27 Thread Carpe Sebastien
Well ... i've added a few log traces, and, well.. this is getting me 
nuts ...
What i can see, is that, sometimes, the msgContext attribute from the 
Call object has a different hashCode () between the constructor method 
and the invoke() call...
Even more weird, i can the the same msgContext hashCode() (means : "same 
objects" since hasCode is not overridden, AFAIK) shared among different 
Call objects ...
So, either, there is something really wrong with my JVM, thread 
handling, etc, or there is something i don't catch ...

Gonna try to update my JVM and see if it changes anything...

Carpe Sebastien wrote:


makarand sovani wrote:

Are you using wss4j ? We have recently come across non-thread safe 
behaviour in wss4j.
 
If you are not using wss4j can you check your handlers to see if they 
are threadsafe ?  
Makarand
 



Well, i'm not sure about what you're pointing me to ...
my client code for performing call, is as simple as

Service s=new Service();
Call c=(Call)s.createCall();
c.setMaintainSession(true);
// setting parameters/returnType/parameters

c.invoke(parameters);

No special handler what so ever... No config file to change default 
behavior.
Am i using wss4j ? well, no... I don't think so (the closest stuff i 
got in my classpath is wsdl4j, but an 's' and a 'l' doesn't make a s, 
do they ;) ) ...







RE: Strange WSDL generation

2005-10-27 Thread Alexander Grivnin
Davanum,

 I opened bug in JIRA - AXIS-2272

Thanks,
Alex

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


Re: Is axis client session handling thread safe ?

2005-10-27 Thread Carpe Sebastien

makarand sovani wrote:

Are you using wss4j ? We have recently come across non-thread safe 
behaviour in wss4j.
 
If you are not using wss4j can you check your handlers to see if they 
are threadsafe ? 
 
Makarand
 


Well, i'm not sure about what you're pointing me to ...
my client code for performing call, is as simple as

Service s=new Service();
Call c=(Call)s.createCall();
c.setMaintainSession(true);
// setting parameters/returnType/parameters

c.invoke(parameters);

No special handler what so ever... No config file to change default 
behavior.
Am i using wss4j ? well, no... I don't think so (the closest stuff i got 
in my classpath is wsdl4j, but an 's' and a 'l' doesn't make a s, do 
they ;) ) ...




Issue with Custom Serializer/Deserializer Factory

2005-10-27 Thread Somendra Paul
Is any issue when we define Custom
Serializers/Deserializers and custom serializer
factory and custom deserializer factory,because when i
use the custom serializer factories and custom
deserializers in typemappings definition in
client-config.wsdd,it giving null serializer factory.

If any one have defined custom serializer factory,they
may really help me out.

/Regards,
Somendra




__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


RE: SOAP:Header question

2005-10-27 Thread Tysnes Are Thobias
Title: Message



 
I 
don't know if I should laugh or cry.. but yes.. it looks like this works 
without warnings..
 
Thanks 
alot Anne! :o)
 
Cheers,
Are T. 
Tysnes

  
  -Original Message-From: Anne Thomas 
  Manes [mailto:[EMAIL PROTECTED] Sent: 26. oktober 2005 
  15:04To: axis-user@ws.apache.orgSubject: Re: SOAP:Header 
  questionTry specifying the body parts before the header 
  parts -- both in the messages and in the binding. That should get rid of the 
  warnings.Anne
  On 10/26/05, Tysnes Are 
  Thobias <[EMAIL PROTECTED]> 
  wrote:
  
Hello Anne! Thanks for your 
reply :o)
 
When I describe headers 
like you suggests, wsdl.exe in .NET gives me the warning
I mentioned 
(R2210)
 
And if I have several 
operations (example below) declared in the WSDL both 
wsdl.exe
in .NET and 
SoapScope Analyzer 
gives me this 
warning:
 
"Duplicate Wire 
Signature
Wsdl:Operation myOperation1 with wsdl:part MyHeader has same wire signature 
as
wsdl:operation myOperation2 with wsdl:part MyHeader. W013"
 
The code generated in .NET 
and Axis looks ok, but I don't like the warnings.. ;o)
 
Cheers,
Are T. 
Tysnes
 














 

 

http://schemas.xmlsoap.org/soap/http"/>























  
  -Original 
  Message-From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]] 
  Sent: 25. oktober 2005 21:43To: axis-user@ws.apache.orgSubject: Re: 
  SOAP:Header questionDid you specify a parts attribute 
  in the  description?Here's an example of how 
  your should describe headers:
...  transport="
http://schemas.xmlsoap.org/soap/http"/>  
 		part="subscribeheader" use="literal"/>
Anne
  On 10/25/05, Tysnes 
  Are Thobias <[EMAIL PROTECTED]> 
  wrote: 
  Hello!I 
have som issues with SOAP:Header.The solution with multiple 
parts in a message raise a warningin .NET:"Warning: This web 
reference does not conform to WS-I Basic Profilev1.1 .R2210: If 
a document-literal binding in a DESCRIPTION does not specifythe 
parts attribute on a soapbind:body element, the 
correspondingabstract wsdl:message MUST define zero or one 
wsdl:parts.  -  Operation 'SLSCreateCase' on 
binding 'SLSCreateCaseSOAPBinding' from namespace 'http://www.edb.com/sls/webservices/createcase/wsdl'." 
When i split the parts in two 
messages: 
element="myheader:AutHeader"/>element="s0:QuerySomething"/>everything 
is fine in .NET, but AXIS 1.3 (WSDL2Java) refuses to generatethis 
header for me.Any reason for this !?Cheers;Are T. 
Tysnes-Original Message-From: Hans Planting 
(CWEU-USERS/CWNL)[mailto:[EMAIL PROTECTED]]Sent: 20. oktober 
2005 17:15 To: axis-user@ws.apache.orgSubject: Re: SOAP:Header 
questionIt should look like: 
**...   
...soapAction="http://xxx/webservices/GetFinancialDetail " 
style="document"/>  use="literal" /> 
... When running wsdl2java you should get something 
like'getFinancialData(String clientid, Authorization auth)' as 
thewebservices endpoint method. The clientid will be sent in the 
soap:body,the auth in the soap:header of the envelope. The Axis java 
source distribution contains a good example of this 
in[axishome]/test/wsdl/headerHans>You 
got the idea: have the endpoint method (getFinancialData) 
handle>this data - and obviously, it requires extra parameters to 
do that. The >question is how to transfer this authentication 
data from the header to>this parameter. Or do I 
misunderstand?>>Just for clearence:>I got a WSDL 
from which I created the JAVA sources using WSDL2Java 
>--server-side, that gave me (amongst others) OrgWebservice.java 
and>OrgWebServiceImpl.java. The last one is the one that 
implements the>actual services, amongst the GetFinancialDetails 
(java.lang.String >clientid). Is that what you call the "endpoint 
method"?>>Obviously, that one nedds to get the 
authentication data, and I don't>care if that would be in the 
form of an object: Object class 
>Authentication>   java.lang.String region 
;>   java.lang.String department ;>   
java.lang.String desk ;>   java.lang.String username 
;>>or whatever, or as separate arguments. Lets assume the 
first. >>So the service - now generated 
as:>>FinDetails class getFinancialDetails