How to write a non axis2 client

2008-05-07 Thread Narula, Manish
Hi,

I used a sample given by axis2 to write a webservice called
pojospringguide. The aar file is deployed, now I want to invoke the web
service using non axis2 client. 

 

Regards,

Manish Narula

 




-
This message and any attachments are intended only for the use of
the addressee and may contain information that is privileged and
confidential. If the reader of the message is not the intended
recipient or an authorized representative of the intended
recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this
communication in error, notify the sender immediately by return
email and delete the message and any attachments from your system.

RE: Sharing data among services in same service group.

2008-05-07 Thread Subhro Moitra (smoitra)
Thanks Keith For replying.
I did what you said. Both the scopes are "transportsession".
 
But still the stub2.newOperation1() call is returning null.
 
Please help!!
 
Thanks,
Subhro.



From: keith chapman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 07, 2008 8:54 PM
To: axis-user@ws.apache.org
Subject: Re: Sharing data among services in same service group.


Hi,

I think the problem here is that the two services are in two scopes.
When transport session is used its the underlying transport that depends
how the session is managed. For e.g when http is used the HTTPSession is
used to manage the session. Can you try deploying both services on the
same scope, then this should work.

Thanks,
Keith.


On Wed, May 7, 2008 at 7:18 PM, Subhro Moitra (smoitra)
<[EMAIL PROTECTED]> wrote:


 
Hi All,
 
I have the following services.xml
 



http://www.w3.org/ns/wsdl/in-out";
class="com.xx..z.service.xmlbeans.MultiPortTypes2Message
ReceiverInOut"/>

com.xx..z.service.xmlbeans.MultiPort
Types2Skeleton
service



http://www.w3.org/ns/wsdl/in-out";
class="com.xx..z.service.xmlbeans.MultiPortTypes1Message
ReceiverInOut"/>

com.xx..z.service.xmlbeans.MultiPort
Types1Skeleton
service


 

How can i share data between "MultiPortTypes1" and
"MultiPortTypes2"?
 

In MultiPortTypes1 we have an operation with the below code.
MessageContext mc=MessageContext.getCurrentMessageContext();
 if(mc!=null){
  ServiceGroupContext sgc=mc.getServiceGroupContext();
  if(sgc!=null)sgc.setProperty("sessionId", "10");
  else System.out.println("\t\t SGC is null cannot set
sesionId");
  
  SessionContext sc=mc.getSessionContext();
  if(sc!=null) sc.setProperty("sessionId",
"sessiontransport");
  else System.out.println("\t\t session context is null
cannot set sessionId");
  
 }
 
In MultiPortTypes2 we have an operation with the below code:
 
MessageContext mc=MessageContext.getCurrentMessageContext();
 if(mc!=null){
  System.out.println("\t\t MCCtx:
"+mc.getProperty("sessionId"));
  ServiceGroupContext sgc=mc.getServiceGroupContext();
  if(sgc!=null) System.out.println(" \t\t
ServiceGroupContext: "+sgc.getProperty("sessionId"));
  else System.out.println("\t\t SGC is null");
  
  SessionContext sc=mc.getSessionContext();
  if(sc!=null) System.out.println("\t\t sessionContext:
"+sc.getProperty("sessionId"));
  else System.out.println("\t\t session context is null
cannot set sessionId");
  
 }
 
The output for "MultiPortTypes2 " is null. Please help.
 
Thanks,
Subhro.




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org 


Re: [Rampart] What is the correct way to secure a JAX-WS service?

2008-05-07 Thread Nandana Mihindukulasooriya
Hi Alex,
  Have you looked at  this thread  [1] ?

thanks,
nandana

[1] -
http://markmail.org/message/dkwjvskrh3gysvnw?q=list:org%2Eapache%2Ews%2Eaxis-user+can+I+use+use+rampart


On Wed, May 7, 2008 at 10:26 PM, Savitsky, Alex <
[EMAIL PROTECTED]> wrote:

>  Hi,
>
> Usually, Axis2 services are secured using Rampart, by engaging the module,
> and specifying the policy in services.xml. However, this won't do for
> services deployed via JAX-WS annotations, as there's no services.xml file
> there. The module could still be deployed, as long as it's placed in
> WEB-INF/modules - but where would one have to place the policy file, for it
> to be picked up by the Rampart? Are there any annotations one has to specify
> on the service endpoint, to specify that the service is using WS-Security?
>
> I looked at the @HandlerCHain annotation, but the Rampart handlers are not
> based on the JAX-WS handler interfaces, but on some internal Axis2 ones, and
> thus cannot be used in JAX-WS handler chains
>
> And final question - does Rampart even support JAX-WS style services?
>
> Thanks,
>
> Alex
>
> 
> NOTICE OF CONFIDENTIALITY
> This communication including any information transmitted with it is
> intended only for the use of the addressees and is confidential.
> If you are not an intended recipient or responsible for delivering
> the message to an intended recipient, any review, disclosure,
> conversion to hard copy, dissemination, reproduction or other use
> of any part of this communication is strictly prohibited, as is the
> taking or omitting of any action in reliance upon this communication.
> If you receive this communication in error or without authorization
> please notify us immediately by return e-mail or otherwise and
> permanently delete the entire communication from any computer,
> disk drive, or other storage medium.
>
> If the above disclaimer is not properly readable, it can be found at 
> www.td.com/legal
>
> AVERTISSEMENT DE CONFIDENTIALITE
> Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement
> aux destinataires susmentionnés,  est confidentiel.  Si vous
> n'êtes pas le destinataire prévu ou un agent responsable de la
> livraison de ce courriel, tout examen, divulgation, copie, impression,
> reproduction, distribution, ou autre utilisation d'une partie de ce
> courriel est strictement interdit de même que toute intervention ou
> abstraction à cet égard.  Si vous avez reçu ce message par erreur ou
> sans autorisation, veuillez en aviser immédiatement l'expéditeur par
> retour de courriel ou par un autre moyen et supprimer immédiatement
> cette communication entière de tout système électronique.
>
> Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
> pouvez le consulter à www.td.com/francais/legale
>
>


Re: problem: could not read log4j.properties file

2008-05-07 Thread Michael Bauer
Check the file permissions.  That has bit me more than once on JBoss.   
Make sure the user running the JBoss process can read the file.



On May 7, 2008, at 10:11 AM, neha sood wrote:


hi
i have log4j.properties file but it is not being read..i have that  
file in config directory of my project.i have copied it into project/ 
webapp/WEBINF/but here no classes folder was present ..so i  
created one and copied into dat since...in all projects it is  
available there..

still its not workin...
thanx for reply
cheers
neha


On Wed, May 7, 2008 at 6:21 PM, Michael Bauer <[EMAIL PROTECTED]>  
wrote:
You need a log4j.properties file, else loging doesn't work.  You  
should be able to find a decent example of one on the web.




On May 7, 2008, at 7:28 AM, neha sood wrote:

hi
 i m getting the folloewing error..
 log4j:ERROR Could not read configuration file [/usr/local/apache- 
tomcat-5.5.12/WEB-INF/classes/log4j.properties].
 [createdb] java.io.FileNotFoundException: /usr/local/apache- 
tomcat-5.5.12/WEB-INF/classes/log4j.properties (No such file or  
directory)

 [createdb] at java.io.FileInputStream.open(Native Method)
 [createdb] at  
java.io.FileInputStream.(FileInputStream.java:106)
 [createdb] at  
java.io.FileInputStream.(FileInputStream.java:66)
 [createdb] at  
org 
.apache 
.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:297)
 [createdb] at  
org 
.apache 
.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:315)
 [createdb] at  
org 
.gridlab 
.gridsphere 
.portlet.impl.SportletLog.setConfigureURL(SportletLog.java:33)
 [createdb] at  
org 
.gridlab 
.gridsphere 
.core.persisstence.hibernate.DBTask.setConfigDir(DBTask.java:71)
 [createdb] at  
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [createdb] at  
sun 
.reflect 
.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [createdb] at  
sun 
.reflect 
.DelegatingMethodAccessorImpl 
.invoke(DelegatingMethodAccessorImpl.java:25)

 [createdb] at java.lang.reflect.Method.invoke(Method.java:585)
 [createdb] at org.apache.tools.ant.IntrospectionHelper 
$3.set(IntrospectionHelper.java:939)
 [createdb] at  
org 
.apache 
.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java: 
393)
 [createdb] at  
org 
.apache 
.tools 
.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:370)
 [createdb] at  
org 
.apache 
.tools 
.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:324)

.
what can be the reason..as it says file or dir doesnt exsit  
there..how can i resolve this error


--
Friends are flowers in the garden of life

Michael Bauer
[EMAIL PROTECTED]
http://www.codechimp.net






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




--
Friends are flowers in the garden of life


Michael Bauer
[EMAIL PROTECTED]
http://www.codechimp.net







Axis2 homepage displays without images and links don't work.

2008-05-07 Thread Julian Noye

Hi Guys
I am trying to deploy my web service onto a server.
I am deploying the axis2-web application as well.
The problem is the Axis2 homepage displays without the images and style, 
also the links to listServices etc do not work.

I think it cannot find the images and css directories.
I have renamed the axis2 directory to another name, which I think could 
be causing the problem.

I think I have to change an xml file or similar.
Can anybody help?
Regards
Julian
--

Julian Noye
Project Manager
Nielsen Online

The Nielsen Company
+61 (3) 8606 4036
www.nielsen-online.com




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



RE: remaining 403 errors

2008-05-07 Thread Chris Richmond
OK, to try another implementation of calling the webservice I created a
simple AXIOM client based on the sample, but get this error when I try to
call the service I have been trying to call:

 

SEVERE: null

org.apache.axis2.AxisFault: System.Web.Services.Protocols.SoapException:
Server did not recognize the value of HTTP Header SOAPAction:
urn:anonOutInOp.

 

 

I am not sure what this means exactly or where to begin looking.  

 

This is my test client code: (WSDL at bottom)

 

Thanks,


Chris

 

  OMFactory fac = OMAbstractFactory.getOMFactory();

  OMNamespace omNs =
fac.createOMNamespace("http://Services.Cas.jhu.edu";, "tns");

 

  OMElement method = fac.createOMElement("CreateAccount", omNs);

  OMElement wsid = fac.createOMElement("admin_wsid", omNs);

  OMElement pw = fac.createOMElement("admin_pw", omNs);

  OMElement userid = fac.createOMElement("userid", omNs);

  OMElement name = fac.createOMElement("name", omNs);

  OMElement email = fac.createOMElement("email", omNs);

  OMElement password = fac.createOMElement("password", omNs);

  OMElement priveleges = fac.createOMElement("priveleges", omNs);

  OMElement emaillevel = fac.createOMElement("emaillevel", omNs);

  OMElement gvisible = fac.createOMElement("gvisible", omNs);

//

//

//

  wsid.addChild(fac.createOMText(wsid, "12345678"));

  pw.addChild(fac.createOMText(pw, "password"));

  userid.addChild(fac.createOMText(userid, "hulk"));

  name.addChild(fac.createOMText(name, "the hulk"));

  email.addChild(fac.createOMText(email, "[EMAIL PROTECTED]"));

  password.addChild(fac.createOMText(password, "password"));

  priveleges.addChild(fac.createOMText(priveleges, ""));

  emaillevel.addChild(fac.createOMText(emaillevel, "3"));

  gvisible.addChild(fac.createOMText(gvisible, "1"));

//

//

//

  method.addChild(wsid);

  method.addChild(pw);

  method.addChild(userid);

  method.addChild(name);

  method.addChild(email);

  method.addChild(password);

  method.addChild(priveleges);

  method.addChild(emaillevel);

  method.addChild(gvisible);

//

  Options options = new Options();

  options.setTo(epr);

  options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

//

  ServiceClient sender = new ServiceClient();

  sender.setOptions(options);

//  

  OMElement result = sender.sendReceive(method);

 

(WSDL in follow on email.server wont allow in one message)

 

 



[UPDATE] RE: remaining 403 errors

2008-05-07 Thread Chris Richmond
Ok, I have created a test java application that simple loops and creates an
ADB proxy on each loop.  So it takes my webservice out of the mix, and I
still get this exception after trying to call it several times in
succession, so it appears that trying to create many ADB clients in rapid
succession is a problem alone?  

 

 

UsersStub is the stub generated with wsdl2java using ADB.

 

Here is the code I ran:

 

for (int x = 0; x < 100; x++) {

  try {

UsersStub stub = new UsersStub();

stub._getServiceClient().setTargetEPR(new
EndpointReference("xx"));

CreateAccount req = new CreateAccount();

CreateAccountResponse resp;

 

req.setAdmin_wsid(12345678);

req.setAdmin_pw("password");

req.setEmail(x + "[EMAIL PROTECTED]");

req.setEmaillevel(3);

 

req.setGvisible(Short.parseShort("1"));

 

req.setName(x + "zzz");

req.setPassword("password");

req.setUserid(x + "zzz");

 

 

 

resp = stub.CreateAccount(req);



System.err.println("added user: " + x);

  } catch (AxisFault ex) {

Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);

  } catch (RemoteException ex) {

Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);

 

  }

 

}

 

 

 

added user: 0

added user: 1

added user: 2

added user: 3

added user: 4

added user: 5

added user: 6

added user: 7

added user: 8

added user: 9

May 7, 2008 11:04:14 AM clienttester.Main main

SEVERE: null

org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden

at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:29
8)

at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192)

at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithC
ommons(CommonsHTTPTransportSender.java:327)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTT
PTransportSender.java:206)

at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperatio
n.java:374)

at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisO
peration.java:211)

at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

at comproxies.UsersStub.CreateAccount(UsersStub.java:208)

at clienttester.Main.main(Main.java:57)

 

  _  

From: Chris Richmond [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 07, 2008 9:58 AM
To: axis-user@ws.apache.org
Subject: remaining 403 errors

 

Hello again,

 

I have been working on this issues off an on for weeks now and still cannot
resolve it.  I have a Tomcat Axis2 webservice that provides a CreateUser
method, and when clients call that method my service in turn uses ADB
generated proxies to a third party service and makes calls there.I have
verified I can make calls from a client to the 3rd party service in  loop of
several hundred in a few seconds, no problem.  I commented out the code that
makes the call to the the ADB proxy to 3rd party service in my service
method and have verified that I can call my service endpoint and it does
it's other word(db inserts) besides the ADB stub creation no problem with
several hundred in a few seconds. 

 

  UsersStub us = this.getUsersStub();

 

  req.setAdmin_wsid(admin.getWsid());

  req.setAdmin_pw(Config.getCasJobsSystemPassword());

  req.setEmail(newUser.getEmail());

  req.setEmaillevel(newUser.getEmailLevel());

 

  short gvis = 0;

  if (newUser.isGvisible()) {

gvis = 1;

  }

  req.setGvisible(gvis);

  req.setName(newUser.getName());

  req.setPassword(newUser.getPassword());

  req.setUserid(newUser.getUserID());

 

 // resp = us.CreateAccount(req);

 

 

The code above is what I run(last line, actual call to 3rd party webservice
commented out) and that runs hundreds of time in rapid succession no
problem, so instantiating the stub is not an issue(I think).  When I
uncomment the actual call then I call my service which runs this code, then
after about 15 calls in succession I get the error:

 

org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden

at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.

java:298)

at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.jav

a:192)

at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa

geWithCommons(CommonsHTTPTransportSender.java:327)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com

monsHTTPTransportSender.j

RE: Choosing a path

2008-05-07 Thread Kurt Kavanaugh


-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 07, 2008 2:39 PM
To: axis-user@ws.apache.org
Subject: Re: Choosing a path

I wrote some of the docs you are referring to, so allow me to respond
;-).

First of all, in web services the xml is typically not validated, due
to performance reasons. 
[Kurt Kavanaugh] 

Hmmm mildly disagree. If a HashTree is built based upon XSD at bootstrap
or on demand and cached with a shelf life, binding to various XSD
namespaces, lookup and comparing at the node level is fast and trivial,
with either a push or pull model. 

However, since you mention xmlbeans, you're in
luck as all the generated classes have a validate() method. So you can
actually validate any xmlbeans bound xml before sending it over the
wire. YMMV for other databinding API's.

I think the WSDL2Java bat and sh files may have solved the
ClassNotFoundException problem with xmlbeans, though the WSDL2Java ant
task may expose you to a few unique problems with xmlbeans nuances.

As for your Axiom questions - others may be able to comment better -
what you seem to be getting at is not using xmlbeans via wsdl2java,
but rather the wsdl2java -none option. Maybe trying that may clarify
things for you.

HTH,
Robert

On Wed, May 7, 2008 at 2:54 PM, Kurt Kavanaugh <[EMAIL PROTECTED]>
wrote:
>
>
>
>
> I have been doing some reading... and more reading... J
>
>
>
> So many choices. But all start with business requirements.
>
>
>
> In a nutshell.
>
>
>
> I like the Axiom model and the ability to write code vs generated
code. On
> the other hand I want XSD conformance. We also need to have a fairly
rich
> XML model so we want to use a document vs RPC model. In addition I/we
don't
> just want to have a single graph/XML/Tree like Object we need to be
able to
> have arrays of graph like objects. To me this seems to be the promise,
to
> richly describe via XML and XSD a service interaction. Not RPC simple
type
> in and simple type out, at least for our purposes.
>
>
>
> Questions:
>
>
>
> The Axiom model of server side implementation does not seem to be able
to be
> generated from the WSDL2Java, Am I missing something? Can I be pointed
to
> examples that illustrate non-trivial XSD compliance using the Axiom
server
> side implementation?
>
>
>
> Where is the XML validated? Handler Chain? Servlet, Skelton, Or is the
> validity of interaction the responsibility of the Client and WSDL?
>
>
>
> I used WSDL2Java xmlBeans option and have a working service with the
*.class
> Schema types. How are these used? Should I decompile and take a peek
under
> the hood? Are they used for XSD comfornance?
>
>
>
> Also the documentation says the files are needed at compile time. I am
not
> finding that to be true.
>
>
>
> Excerpt
>
> *
>
> An important detail is that an XMLBean class file is also generated by
> WSDL2Java, TypeSystemHolder.class. That file is placed into
build/classes by
> the above ant task and will be needed to compile the generated
sources. A
> frequent problem is users get an error such as:
>
>
>
> ClassNotFoundException : Cannot load SchemaTypeSystem. Unable to load
class
> with name
>
schemaorg_apache_xmlbeans.system.s68C41DB812F52C975439BA10FE4FEE54.TypeS
ystemHolder.
> Make sure the generated binary files are on the classpath
>
> *
>
>
>
> The classes are used at runtime correct? So this would be a runtime
> ClassNotFoundException. The reference to the "schemaorg_*" String when
> creating the type isn't checked at compile time.
>
>
>
> Finally since the promise of webservices is to *not* have to use Axis
or any
> other implementation specific stack, but the XML XSD, and WSDL
elements, are
> there client examples for invoking Axis created services from .NET,
1.4 JRE,
> etc...clients which in theory bind to the WSDL. I know each of these
> technologies has it's own WSDL2 tools but it would be good
to have
> a library of non Axis clients for compatibility testing.

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



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



remaining 403 errors

2008-05-07 Thread Chris Richmond
Hello again,

 

I have been working on this issues off an on for weeks now and still cannot
resolve it.  I have a Tomcat Axis2 webservice that provides a CreateUser
method, and when clients call that method my service in turn uses ADB
generated proxies to a third party service and makes calls there.I have
verified I can make calls from a client to the 3rd party service in  loop of
several hundred in a few seconds, no problem.  I commented out the code that
makes the call to the the ADB proxy to 3rd party service in my service
method and have verified that I can call my service endpoint and it does
it's other word(db inserts) besides the ADB stub creation no problem with
several hundred in a few seconds. 

 

  UsersStub us = this.getUsersStub();

 

  req.setAdmin_wsid(admin.getWsid());

  req.setAdmin_pw(Config.getCasJobsSystemPassword());

  req.setEmail(newUser.getEmail());

  req.setEmaillevel(newUser.getEmailLevel());

 

  short gvis = 0;

  if (newUser.isGvisible()) {

gvis = 1;

  }

  req.setGvisible(gvis);

  req.setName(newUser.getName());

  req.setPassword(newUser.getPassword());

  req.setUserid(newUser.getUserID());

 

 // resp = us.CreateAccount(req);

 

 

The code above is what I run(last line, actual call to 3rd party webservice
commented out) and that runs hundreds of time in rapid succession no
problem, so instantiating the stub is not an issue(I think).  When I
uncomment the actual call then I call my service which runs this code, then
after about 15 calls in succession I get the error:

 

org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden

at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.

java:298)

at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.jav

a:192)

at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa

geWithCommons(CommonsHTTPTransportSender.java:327)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com

monsHTTPTransportSender.java:206)

at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO

peration.java:374)

at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out

InAxisOperation.java:211)

at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:

163)

at
com.referentia.mleadr.ws.casjobs.proxies.UsersStub.CreateAccount(User

sStub.java:208)

at
com.referentia.mleadr.users.AbstractUserManager.createUser(AbstractUs

erManager.java:115)

at
com.referentia.mleadr.ws.services.UserService.createUser(UserService.

java:76)

at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.jav

a:194)

at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic

(RPCMessageReceiver.java:98)

at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusines

sLogic(AbstractInOutMessageReceiver.java:40)

at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe

ssageReceiver.java:96)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)

at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq

uest(HTTPTransportUtils.java:275)

at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1

20)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

icationFilterChain.java:290)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

ilterChain.java:206)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV

alve.java:233)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV

alve.java:175)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j

ava:128)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j

ava:102)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal

ve.java:109)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav

a:263)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java

:844)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce

ss(Http11Protocol.java:584)

at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(J

Re: Choosing a path

2008-05-07 Thread robert lazarski
I wrote some of the docs you are referring to, so allow me to respond ;-).

First of all, in web services the xml is typically not validated, due
to performance reasons. However, since you mention xmlbeans, you're in
luck as all the generated classes have a validate() method. So you can
actually validate any xmlbeans bound xml before sending it over the
wire. YMMV for other databinding API's.

I think the WSDL2Java bat and sh files may have solved the
ClassNotFoundException problem with xmlbeans, though the WSDL2Java ant
task may expose you to a few unique problems with xmlbeans nuances.

As for your Axiom questions - others may be able to comment better -
what you seem to be getting at is not using xmlbeans via wsdl2java,
but rather the wsdl2java -none option. Maybe trying that may clarify
things for you.

HTH,
Robert

On Wed, May 7, 2008 at 2:54 PM, Kurt Kavanaugh <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I have been doing some reading… and more reading… J
>
>
>
> So many choices. But all start with business requirements.
>
>
>
> In a nutshell.
>
>
>
> I like the Axiom model and the ability to write code vs generated code. On
> the other hand I want XSD conformance. We also need to have a fairly rich
> XML model so we want to use a document vs RPC model. In addition I/we don't
> just want to have a single graph/XML/Tree like Object we need to be able to
> have arrays of graph like objects. To me this seems to be the promise,  to
> richly describe via XML and XSD a service interaction. Not RPC simple type
> in and simple type out, at least for our purposes.
>
>
>
> Questions:
>
>
>
> The Axiom model of server side implementation does not seem to be able to be
> generated from the WSDL2Java, Am I missing something? Can I be pointed to
> examples that illustrate non-trivial XSD compliance using the Axiom server
> side implementation?
>
>
>
> Where is the XML validated? Handler Chain? Servlet, Skelton, Or is the
> validity of interaction the responsibility of the Client and WSDL?
>
>
>
> I used WSDL2Java xmlBeans option and have a working service with the *.class
> Schema types. How are these used? Should I decompile and take a peek under
> the hood? Are they used for XSD comfornance?
>
>
>
> Also the documentation says the files are needed at compile time. I am not
> finding that to be true.
>
>
>
> Excerpt
>
> *
>
> An important detail is that an XMLBean class file is also generated by
> WSDL2Java, TypeSystemHolder.class. That file is placed into build/classes by
> the above ant task and will be needed to compile the generated sources. A
> frequent problem is users get an error such as:
>
>
>
> ClassNotFoundException : Cannot load SchemaTypeSystem. Unable to load class
> with name
> schemaorg_apache_xmlbeans.system.s68C41DB812F52C975439BA10FE4FEE54.TypeSystemHolder.
> Make sure the generated binary files are on the classpath
>
> *
>
>
>
> The classes are used at runtime correct? So this would be a runtime
> ClassNotFoundException. The reference to the "schemaorg_*" String when
> creating the type isn't checked at compile time.
>
>
>
> Finally since the promise of webservices is to *not* have to use Axis or any
> other implementation specific stack, but the XML XSD, and WSDL elements, are
> there client examples for invoking Axis created services from .NET, 1.4 JRE,
> etc…clients which in theory bind to the WSDL. I know each of these
> technologies has it's own WSDL2 tools but it would be good to have
> a library of non Axis clients for compatibility testing.

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



Choosing a path

2008-05-07 Thread Kurt Kavanaugh
I have been doing some reading... and more reading... :-)

 

So many choices. But all start with business requirements.

 

In a nutshell.

 

I like the Axiom model and the ability to write code vs generated code.
On the other hand I want XSD conformance. We also need to have a fairly
rich XML model so we want to use a document vs RPC model. In addition
I/we don't just want to have a single graph/XML/Tree like Object we need
to be able to have arrays of graph like objects. To me this seems to be
the promise,  to richly describe via XML and XSD a service interaction.
Not RPC simple type in and simple type out, at least for our purposes.

 

Questions:

 

The Axiom model of server side implementation does not seem to be able
to be generated from the WSDL2Java, Am I missing something? Can I be
pointed to examples that illustrate non-trivial XSD compliance using the
Axiom server side implementation?

 

Where is the XML validated? Handler Chain? Servlet, Skelton, Or is the
validity of interaction the responsibility of the Client and WSDL?

 

I used WSDL2Java xmlBeans option and have a working service with the
*.class Schema types. How are these used? Should I decompile and take a
peek under the hood? Are they used for XSD comfornance?

 

Also the documentation says the files are needed at compile time. I am
not finding that to be true.

 

Excerpt

*

An important detail is that an XMLBean class file is also generated by
WSDL2Java, TypeSystemHolder.class. That file is placed into
build/classes by the above ant task and will be needed to compile the
generated sources. A frequent problem is users get an error such as:

 

ClassNotFoundException : Cannot load SchemaTypeSystem. Unable to load
class with name
schemaorg_apache_xmlbeans.system.s68C41DB812F52C975439BA10FE4FEE54.TypeS
ystemHolder. Make sure the generated binary files are on the classpath

*

 

The classes are used at runtime correct? So this would be a runtime
ClassNotFoundException. The reference to the "schemaorg_*" String when
creating the type isn't checked at compile time. 

 

Finally since the promise of webservices is to *not* have to use Axis or
any other implementation specific stack, but the XML XSD, and WSDL
elements, are there client examples for invoking Axis created services
from .NET, 1.4 JRE, etc...clients which in theory bind to the WSDL. I
know each of these technologies has it's own WSDL2 tools but
it would be good to have a library of non Axis clients for compatibility
testing.



[Rampart] What is the correct way to secure a JAX-WS service?

2008-05-07 Thread Savitsky, Alex
Hi,

Usually, Axis2 services are secured using Rampart, by engaging the module, and 
specifying the policy in services.xml. However, this won't do for services 
deployed via JAX-WS annotations, as there's no services.xml file there. The 
module could still be deployed, as long as it's placed in WEB-INF/modules - but 
where would one have to place the policy file, for it to be picked up by the 
Rampart? Are there any annotations one has to specify on the service endpoint, 
to specify that the service is using WS-Security?

I looked at the @HandlerCHain annotation, but the Rampart handlers are not 
based on the JAX-WS handler interfaces, but on some internal Axis2 ones, and 
thus cannot be used in JAX-WS handler chains

And final question - does Rampart even support JAX-WS style services?

Thanks,

Alex



NOTICE OF CONFIDENTIALITY
This communication including any information transmitted with it is 
intended only for the use of the addressees and is confidential. 
If you are not an intended recipient or responsible for delivering 
the message to an intended recipient, any review, disclosure, 
conversion to hard copy, dissemination, reproduction or other use 
of any part of this communication is strictly prohibited, as is the 
taking or omitting of any action in reliance upon this communication. 
If you receive this communication in error or without authorization 
please notify us immediately by return e-mail or otherwise and 
permanently delete the entire communication from any computer, 
disk drive, or other storage medium.

If the above disclaimer is not properly readable, it can be found at 
www.td.com/legal
   
AVERTISSEMENT DE CONFIDENTIALITE   
Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement 
aux destinataires susmentionnés,  est confidentiel.  Si vous 
n’êtes pas le destinataire prévu ou un agent responsable de la 
livraison de ce courriel, tout examen, divulgation, copie, impression, 
reproduction, distribution, ou autre utilisation d’une partie de ce 
courriel est strictement interdit de même que toute intervention ou 
abstraction à cet égard.  Si vous avez reçu ce message par erreur ou 
sans autorisation, veuillez en aviser immédiatement l’expéditeur par 
retour de courriel ou par un autre moyen et supprimer immédiatement 
cette communication entière de tout système électronique.

Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous 
pouvez le consulter à www.td.com/francais/legale


Re: wsdl2java generating code that is not compilable

2008-05-07 Thread Aravind . Yarram
can some one help me here pls!

Regards, 
Aravind R Yarram 



[EMAIL PROTECTED] 
05/07/2008 10:03 AM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
wsdl2java generating code that is not compilable







Helo all,

I have a WSDL types defined like below.





































Generated Constructors from the sources

public SimpleParsedAddressType(
   java.lang.String streetPreDirection,
   java.lang.String streetNumber,
   java.lang.String streetName,
   java.lang.String streetType,
   java.lang.String streetPostDirection,
   com.ws.UnitDesignatorType unitDesignator,
   java.lang.String unitNumber,
   java.lang.String city,
   java.lang.String state,
   java.lang.String postalCode,
   java.lang.String country,
   com.ws.SimpleParsedAddressTypeAddressIdentifier 
addressIdentifier) 
{
...
}

public ExtendedAddressType{
   com.ws.SimpleParsedAddressTypeAddressIdentifier 
addressIdentifier,
   java.lang.String streetPreDirection,
   java.lang.String streetNumber,
   java.lang.String streetName,
   java.lang.String streetType,
   java.lang.String streetPostDirection,
   com.ws.UnitDesignatorType unitDesignator,
   java.lang.String unitNumber,
   java.lang.String city,
   java.lang.String state,
   java.lang.String postalCode,
   java.lang.String country,
   java.lang.String zip4,
   java.lang.String phoneNumber,
   com.ws.SimpleDateType reportDate) 
{

super(
addressIdentifier,
streetPreDirection,
streetNumber,
streetName,
streetType,
streetPostDirection,
unitDesignator,
unitNumber,
city,
state,
postalCode,
country);

}

As we can see below , the order of the constructor argument 
"addressIdentifier" is different in the super class and subclass causing a 
compile time error as subclass's constructor calles "super". Really 
appreciate if someone can tell me how to fix this!


Regards, 
Aravind R YarramThis message contains information from Equifax Inc. which 
may be confidential and privileged. If you are not an intended recipient, 
please refrain from any disclosure, copying, distribution or use of this 
information and note that such actions are prohibited. If you have 
received this transmission in error, please notify by e-mail 
[EMAIL PROTECTED]
--

This message contains information from Equifax Inc. which may be confidential 
and privileged.  If you are not an intended recipient, please refrain from any 
disclosure, copying, distribution or use of this information and note that such 
actions are prohibited.  If you have received this transmission in error, 
please notify by e-mail [EMAIL PROTECTED]
--

Re: WSDL2Java Exception

2008-05-07 Thread keith chapman
Hi Fadila,

Would it be possible for you to post your WSDL and schema here please.
That'll make it easy for us to help you out.  And which axis version is your
server using?

Thanks,
Keith.

On Wed, May 7, 2008 at 5:02 PM, <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I'm using axis2 1.3. I've deployed a new webservice and I can see it in
> the list of deployed services.
> I would like to generate the client stub using the wsdl created by axis.
>
> But whenn I call WSDL2Java the following exception is thrown:
>
>  [java] org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> [java] at
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
> [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
> ...
>  [java] Caused by: org.apache.axis2.schema.SchemaCompilationException:
> Missing name attribute! Please check your schema!
> [java] at
> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:2089)
> [java] at
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.ja
> va:1788)
> [java] at
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler
> .java:977)
> [java] at
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
> (SchemaCompiler.java:886)
> [java] at
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java
> :867)
>
> I'm a bit confused because the wsdl is created by axis.
>
> Any help is welcome!
>
> Thanks,
> Fadila
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Sharing data among services in same service group.

2008-05-07 Thread keith chapman
Hi,

I think the problem here is that the two services are in two scopes. When
transport session is used its the underlying transport that depends how the
session is managed. For e.g when http is used the HTTPSession is used to
manage the session. Can you try deploying both services on the same scope,
then this should work.

Thanks,
Keith.

On Wed, May 7, 2008 at 7:18 PM, Subhro Moitra (smoitra) <[EMAIL PROTECTED]>
wrote:

>
>  Hi All,
>
> I have the following services.xml
>
> 
>  class="com.xx..z.service.xmlbeans.MultiPortTypes2Skeleton">
> 
> http://www.w3.org/ns/wsdl/in-out";
> class="com.xx..z.service.xmlbeans.MultiPortTypes2MessageReceiverInOut"/>
> 
>  name="ServiceClass">com.xx..z.service.xmlbeans.MultiPortTypes2Skeleton
> service
> 
>  class="com.xx..z.service.xmlbeans.MultiPortTypes1Skeleton">
> 
> http://www.w3.org/ns/wsdl/in-out";
> class="com.xx..z.service.xmlbeans.MultiPortTypes1MessageReceiverInOut"/>
> 
>  name="ServiceClass">com.xx..z.service.xmlbeans.MultiPortTypes1Skeleton
> service
> 
> 
>
>
> How can i share data between "MultiPortTypes1" and "MultiPortTypes2"?
>
>
> In MultiPortTypes1 we have an operation with the below code.
> MessageContext mc=MessageContext.getCurrentMessageContext();
>  if(mc!=null){
>   ServiceGroupContext sgc=mc.getServiceGroupContext();
>   if(sgc!=null)sgc.setProperty("sessionId", "10");
>   else System.out.println("\t\t SGC is null cannot set sesionId");
>
>   SessionContext sc=mc.getSessionContext();
>   if(sc!=null) sc.setProperty("sessionId", "sessiontransport");
>   else System.out.println("\t\t session context is null cannot set
> sessionId");
>
>  }
>
> In MultiPortTypes2 we have an operation with the below code:
>
> MessageContext mc=MessageContext.getCurrentMessageContext();
>  if(mc!=null){
>   System.out.println("\t\t MCCtx: "+mc.getProperty("sessionId"));
>   ServiceGroupContext sgc=mc.getServiceGroupContext();
>   if(sgc!=null) System.out.println(" \t\t ServiceGroupContext:
> "+sgc.getProperty("sessionId"));
>   else System.out.println("\t\t SGC is null");
>
>   SessionContext sc=mc.getSessionContext();
>   if(sc!=null) System.out.println("\t\t sessionContext:
> "+sc.getProperty("sessionId"));
>   else System.out.println("\t\t session context is null cannot set
> sessionId");
>
>  }
>
> The output for "MultiPortTypes2 " is null. Please help.
>
> Thanks,
> Subhro.
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Provide original WSDL

2008-05-07 Thread keith chapman
Hi Natalia,

When useOriginalWSDL is set to tru axis2 gets it WSDL4JDefinition off a
parameter in the service and serialize it. You can set this parameter as
follows,

axisService.setParameter(WSDLConstants.WSDL_4_J_DEFINITION,
wsdl4JDefinition);

Have a look at the private Definition readInTheWSDLFile(InputStream in) in
axisService to seee how you can build the wsdl4JDefinition object.

And to answere your next question, Type information in the WSDl is genarated
correctly only if the RPCMessegeReceiver is used. In other cases its almost
impossible to infer the type information cause it depends on the
messegeReceiver heavily.

Hope this helps.

Thanks,
Keith.



On Wed, May 7, 2008 at 4:57 PM, Natalia Ignatowicz <
[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'm trying to provide my original WSDL-file for users of my webservice, so
> "useOriginalwsdl" is set to true.
> This works fine when I deploy my service through an AAR. But for several
> reasons, I'm deploying my service programmatically at runtime. Now the WSDL
> is not found and Axis says "Unable to generate WSDL 1.1 for this service".
> Is there any way to tell Axis at runtime that there is a WSDL-file and
> that this file should be used? (Placing the file in META-INF doesn't help.)
>
> Btw: Why are the generated WSDLs (if useOriginalwsdl is set to false) so
> ugly? All types like xs:int etc. have "xs:anyType" then.
>
> Greetings,
> Natalia
> --
> GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
> Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: problem: could not read log4j.properties file

2008-05-07 Thread Rushikesh Thakkar
Neha,

log4j.properties file needs to be present somewhere in the classpath. A
properties file is loaded by class loader at the time of starting the
web-application. So it has to be present
   either in some jar file in WEB-INF/lib folder
   or in WEB-INF/classes folder.
So, if your application doesn't have any of these, then the class loader
won't find it.

I hope this helps. I would also recommend brushing up the basics.

regards,
-Rushikesh

On Wed, May 7, 2008 at 4:11 PM, neha sood <[EMAIL PROTECTED]> wrote:

> hi
> i have log4j.properties file but it is not being read..i have that file in
> config directory of my project.i have copied it into
> project/webapp/WEBINF/but here no classes folder was present ..so i
> created one and copied into dat since...in all projects it is available
> there..
> still its not workin...
> thanx for reply
> cheers
> neha
>
>
> On Wed, May 7, 2008 at 6:21 PM, Michael Bauer <[EMAIL PROTECTED]> wrote:
>
> > You need a log4j.properties file, else loging doesn't work.  You should
> > be able to find a decent example of one on the web.
> >
> >
> >
> > On May 7, 2008, at 7:28 AM, neha sood wrote:
> >
> >  hi
> > >  i m getting the folloewing error..
> > >  log4j:ERROR Could not read configuration file
> > > [/usr/local/apache-tomcat-5.5.12/WEB-INF/classes/log4j.properties].
> > >  [createdb] java.io.FileNotFoundException:
> > > /usr/local/apache-tomcat-5.5.12/WEB-INF/classes/log4j.properties (No such
> > > file or directory)
> > >  [createdb] at java.io.FileInputStream.open(Native Method)
> > >  [createdb] at
> > > java.io.FileInputStream.(FileInputStream.java:106)
> > >  [createdb] at
> > > java.io.FileInputStream.(FileInputStream.java:66)
> > >  [createdb] at
> > > org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:297)
> > >  [createdb] at
> > > org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:315)
> > >  [createdb] at
> > > org.gridlab.gridsphere.portlet.impl.SportletLog.setConfigureURL(SportletLog.java:33)
> > >  [createdb] at
> > > org.gridlab.gridsphere.core.persisstence.hibernate.DBTask.setConfigDir(DBTask.java:71)
> > >  [createdb] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)
> > >  [createdb] at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >  [createdb] at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >  [createdb] at java.lang.reflect.Method.invoke(Method.java:585)
> > >  [createdb] at
> > > org.apache.tools.ant.IntrospectionHelper$3.set(IntrospectionHelper.java:939)
> > >  [createdb] at
> > > org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:393)
> > >  [createdb] at
> > > org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:370)
> > >  [createdb] at
> > > org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:324)
> > > .
> > > what can be the reason..as it says file or dir doesnt exsit there..how
> > > can i resolve this error
> > >
> > > --
> > > Friends are flowers in the garden of life
> > >
> >
> > Michael Bauer
> > [EMAIL PROTECTED]
> > http://www.codechimp.net
> >
> >
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Friends are flowers in the garden of life


Re: problem: could not read log4j.properties file

2008-05-07 Thread neha sood
hi
i have log4j.properties file but it is not being read..i have that file in
config directory of my project.i have copied it into
project/webapp/WEBINF/but here no classes folder was present ..so i
created one and copied into dat since...in all projects it is available
there..
still its not workin...
thanx for reply
cheers
neha


On Wed, May 7, 2008 at 6:21 PM, Michael Bauer <[EMAIL PROTECTED]> wrote:

> You need a log4j.properties file, else loging doesn't work.  You should be
> able to find a decent example of one on the web.
>
>
>
> On May 7, 2008, at 7:28 AM, neha sood wrote:
>
>  hi
> >  i m getting the folloewing error..
> >  log4j:ERROR Could not read configuration file
> > [/usr/local/apache-tomcat-5.5.12/WEB-INF/classes/log4j.properties].
> >  [createdb] java.io.FileNotFoundException:
> > /usr/local/apache-tomcat-5.5.12/WEB-INF/classes/log4j.properties (No such
> > file or directory)
> >  [createdb] at java.io.FileInputStream.open(Native Method)
> >  [createdb] at
> > java.io.FileInputStream.(FileInputStream.java:106)
> >  [createdb] at
> > java.io.FileInputStream.(FileInputStream.java:66)
> >  [createdb] at
> > org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:297)
> >  [createdb] at
> > org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:315)
> >  [createdb] at
> > org.gridlab.gridsphere.portlet.impl.SportletLog.setConfigureURL(SportletLog.java:33)
> >  [createdb] at
> > org.gridlab.gridsphere.core.persisstence.hibernate.DBTask.setConfigDir(DBTask.java:71)
> >  [createdb] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> >  [createdb] at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >  [createdb] at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >  [createdb] at java.lang.reflect.Method.invoke(Method.java:585)
> >  [createdb] at
> > org.apache.tools.ant.IntrospectionHelper$3.set(IntrospectionHelper.java:939)
> >  [createdb] at
> > org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:393)
> >  [createdb] at
> > org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:370)
> >  [createdb] at
> > org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:324)
> > .
> > what can be the reason..as it says file or dir doesnt exsit there..how
> > can i resolve this error
> >
> > --
> > Friends are flowers in the garden of life
> >
>
> Michael Bauer
> [EMAIL PROTECTED]
> http://www.codechimp.net
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Friends are flowers in the garden of life


wsdl2java generating code that is not compilable

2008-05-07 Thread Aravind . Yarram
Helo all,

I have a WSDL types defined like below.





































Generated Constructors from the sources

public SimpleParsedAddressType(
   java.lang.String streetPreDirection,
   java.lang.String streetNumber,
   java.lang.String streetName,
   java.lang.String streetType,
   java.lang.String streetPostDirection,
   com.ws.UnitDesignatorType unitDesignator,
   java.lang.String unitNumber,
   java.lang.String city,
   java.lang.String state,
   java.lang.String postalCode,
   java.lang.String country,
   com.ws.SimpleParsedAddressTypeAddressIdentifier 
addressIdentifier) 
{
...
}

public ExtendedAddressType {
   com.ws.SimpleParsedAddressTypeAddressIdentifier 
addressIdentifier,
   java.lang.String streetPreDirection,
   java.lang.String streetNumber,
   java.lang.String streetName,
   java.lang.String streetType,
   java.lang.String streetPostDirection,
   com.ws.UnitDesignatorType unitDesignator,
   java.lang.String unitNumber,
   java.lang.String city,
   java.lang.String state,
   java.lang.String postalCode,
   java.lang.String country,
   java.lang.String zip4,
   java.lang.String phoneNumber,
   com.ws.SimpleDateType reportDate) 
{

super(
addressIdentifier,
streetPreDirection,
streetNumber,
streetName,
streetType,
streetPostDirection,
unitDesignator,
unitNumber,
city,
state,
postalCode,
country);

}

As we can see below , the order of the constructor argument 
"addressIdentifier" is different in the super class and subclass causing a 
compile time error as subclass's constructor calles "super". Really 
appreciate if someone can tell me how to fix this!


Regards, 
Aravind R Yarram
This message contains information from Equifax Inc. which may be confidential 
and privileged.  If you are not an intended recipient, please refrain from any 
disclosure, copying, distribution or use of this information and note that such 
actions are prohibited.  If you have received this transmission in error, 
please notify by e-mail [EMAIL PROTECTED]
--

Sharing data among services in same service group.

2008-05-07 Thread Subhro Moitra (smoitra)
 
Hi All,
 
I have the following services.xml
 



http://www.w3.org/ns/wsdl/in-out";
class="com.xx..z.service.xmlbeans.MultiPortTypes2Message
ReceiverInOut"/>

com.xx..z.service.xmlbeans.MultiPort
Types2Skeleton
service



http://www.w3.org/ns/wsdl/in-out";
class="com.xx..z.service.xmlbeans.MultiPortTypes1Message
ReceiverInOut"/>

com.xx..z.service.xmlbeans.MultiPort
Types1Skeleton
service


 

How can i share data between "MultiPortTypes1" and "MultiPortTypes2"?
 

In MultiPortTypes1 we have an operation with the below code.
MessageContext mc=MessageContext.getCurrentMessageContext();
 if(mc!=null){
  ServiceGroupContext sgc=mc.getServiceGroupContext();
  if(sgc!=null)sgc.setProperty("sessionId", "10");
  else System.out.println("\t\t SGC is null cannot set sesionId");
  
  SessionContext sc=mc.getSessionContext();
  if(sc!=null) sc.setProperty("sessionId", "sessiontransport");
  else System.out.println("\t\t session context is null cannot set
sessionId");
  
 }
 
In MultiPortTypes2 we have an operation with the below code:
 
MessageContext mc=MessageContext.getCurrentMessageContext();
 if(mc!=null){
  System.out.println("\t\t MCCtx: "+mc.getProperty("sessionId"));
  ServiceGroupContext sgc=mc.getServiceGroupContext();
  if(sgc!=null) System.out.println(" \t\t ServiceGroupContext:
"+sgc.getProperty("sessionId"));
  else System.out.println("\t\t SGC is null");
  
  SessionContext sc=mc.getSessionContext();
  if(sc!=null) System.out.println("\t\t sessionContext:
"+sc.getProperty("sessionId"));
  else System.out.println("\t\t session context is null cannot set
sessionId");
  
 }
 
The output for "MultiPortTypes2 " is null. Please help.
 
Thanks,
Subhro.


Re: encoding of SOAP responses

2008-05-07 Thread Paul Fremantle
No. The "XML" fragment you have sent is invalid XML, and so no XSLT
processor will be able to read it.

Paul

On Wed, May 7, 2008 at 2:08 PM, Stadelmann Josef
<[EMAIL PROTECTED]> wrote:
> Thanks Paul,
>
>  can I do that with an XSL / XSLT approach?
>
>  Josef
>
>
>  -Ursprüngliche Nachricht-
>  Von: Paul Fremantle [mailto:[EMAIL PROTECTED]
>  Gesendet: Mittwoch, 7. Mai 2008 14:59
>
>
> An: axis-user@ws.apache.org
>  Betreff: Re: encoding of SOAP responses
>
>
>  If you read the XML spec http://www.w3.org/TR/2006/REC-xml-20060816/
>
>  You will see that [] \ ^ and a number of other characters are not
>  supported within XML tag names.
>
>  I suggest you change your format to be:
>  
>
>  Paul
>
>
>  On Wed, May 7, 2008 at 1:46 PM, Stadelmann Josef
>  <[EMAIL PROTECTED]> wrote:
>  > Hello Paul,
>  >  hello AXIS2 (J/C) experts
>  >  hello XML, XSL, XSLT, LIBXML2, encoding experts!
>  >
>  >  I have to pass the following result back top my client also receive it at 
> the server later?
>  >
>  >  Regarding encoding (better allowed and non-allowed characters) I have to 
> transive
>  >  the following XML between client and server out from a larger legacy 
> integration.
>  >
>  >  :
>  >  
>  >  
>  >  
>  >  XXX
>  >  FKT_PUTCODES
>  >  AVT
>  >  3X
>  >  ZDK / BMWP
>  >  AVT
>  >  
>  >  
>  >  
>  >
>  >  this should now be converted to a OMElement and without "[" and "]" it 
> works.
>  >  however - today - I was told that "[" and "]" are used very frequently 
> indexing fields.
>  >
>  >  I was further told - today - that we have "<" amd ">" and that we carry 
> "&" as well as a few others.
>  >  According W3C Specs I can find how to substitute "&", "<" ">" and a few 
> more but not "[" and "]"
>  >
>  >  The interesting thing is that I get field-name field-value pairs in to 
> AXIS2/C hash tables, then
>  >  create an OMModel from it, then serialize this model to what you see 
> above, and pass this
>  >  XML string from C Legacy code through JNI back to my Java Axis2 
> Web-Service.
>  >
>  >  And only then, when this string is again converted into an OMElement, 
> AXIS2/C raises
>  >  an exception.
>  >
>  >  I agree that certain characters can be parsed while others must be 
> substituted before
>  >  parsing by an XML reader/parser occures, I ask the following:
>  >
>  >  1. What is the prefered way to substitute this "forbiddent" characters 
> using hopefully AXIS2/C
>  >  and or AXIS2/J AXIOM AXUTIL SW components?
>  >
>  >  2. Is XSLT technic the rigth thing to do it; I am still a novice in this 
> regards.
>  >
>  >  3. Would it be possible that "[" and "]" would not lead to an exception 
> if I would tell AXIS2/J
>  >  webservice server to use for this deserialization a different encoding 
> schema?
>  >
>  >  4. How would you best transive over AXIS2 a PS formatted document?
>  >
>  >  5. How would you best transive over AXIS2 a LaTex document?
>  >
>  >  6. Binary as MTOM OK?
>  >
>  >
>  >  Very thanksfull for a ASAP answer.
>  >  Josef.Stadelmann
>  >  @axa-winterthur.ch
>  >
>  >
>  >
>  >  -Ursprüngliche Nachricht-
>  >  Von: Paul Fremantle [mailto:[EMAIL PROTECTED]
>  >  Gesendet: Mittwoch, 13. Februar 2008 18:42
>  >  An: axis-user@ws.apache.org
>  >  Betreff: Re: encoding of SOAP responses
>  >
>  >
>  >
>  >
>  >  Do you mean you need to use the same encoding as the client sent?
>  >
>  >  Paul
>  >
>  >  On Feb 13, 2008 5:35 PM, Jan Philipp Seng <[EMAIL PROTECTED]> wrote:
>  >  >
>  >  >
>  >  >
>  >  >
>  >  > Hello Rushikesh and Paul,
>  >  >
>  >  >
>  >  >
>  >  > thank you very much for your answers. Unfortunately my question was not
>  >  > precise enough. I am not consuming a web service, but offering it. Can I
>  >  > determine the encoding of the SOAP responses my server delivers at 
> runtime
>  >  > depending on a parameter transmitted in the SOAP Header of the request 
> also?
>  >  >
>  >  >
>  >  >
>  >  > Thanks for your help,
>  >  >
>  >  > Jan
>  >
>  >
>  >
>  >  --
>  >  Paul Fremantle
>  >  Co-Founder and VP of Technical Sales, WSO2
>  >  OASIS WS-RX TC Co-chair
>  >
>  >  blog: http://pzf.fremantle.org
>  >  [EMAIL PROTECTED]
>  >
>  >  "Oxygenating the Web Service Platform", www.wso2.com
>  >
>  >
>  >
>  > -
>  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>  >  -
>  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>
>
>  --
>  Paul Fremantle
>  Co-Founder and CTO, WSO2
>  Apache Synapse PMC Chair
>  OASIS WS-RX TC Co-chair
>
>  blog: http://pzf.fremantle.org
>  [EMAIL PROTECTED]
>
>  "Oxygenating the Web Service Platform", www.wso2.com
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-

AW: encoding of SOAP responses

2008-05-07 Thread Stadelmann Josef
Thanks Paul,

can I do that with an XSL / XSLT approach?

Josef

-Ursprüngliche Nachricht-
Von: Paul Fremantle [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. Mai 2008 14:59
An: axis-user@ws.apache.org
Betreff: Re: encoding of SOAP responses


If you read the XML spec http://www.w3.org/TR/2006/REC-xml-20060816/

You will see that [] \ ^ and a number of other characters are not
supported within XML tag names.

I suggest you change your format to be:


Paul


On Wed, May 7, 2008 at 1:46 PM, Stadelmann Josef
<[EMAIL PROTECTED]> wrote:
> Hello Paul,
>  hello AXIS2 (J/C) experts
>  hello XML, XSL, XSLT, LIBXML2, encoding experts!
>
>  I have to pass the following result back top my client also receive it at 
> the server later?
>
>  Regarding encoding (better allowed and non-allowed characters) I have to 
> transive
>  the following XML between client and server out from a larger legacy 
> integration.
>
>  :
>  
>  
>  
>  XXX
>  FKT_PUTCODES
>  AVT
>  3X
>  ZDK / BMWP
>  AVT
>  
>  
>  
>
>  this should now be converted to a OMElement and without "[" and "]" it works.
>  however - today - I was told that "[" and "]" are used very frequently 
> indexing fields.
>
>  I was further told - today - that we have "<" amd ">" and that we carry "&" 
> as well as a few others.
>  According W3C Specs I can find how to substitute "&", "<" ">" and a few more 
> but not "[" and "]"
>
>  The interesting thing is that I get field-name field-value pairs in to 
> AXIS2/C hash tables, then
>  create an OMModel from it, then serialize this model to what you see above, 
> and pass this
>  XML string from C Legacy code through JNI back to my Java Axis2 Web-Service.
>
>  And only then, when this string is again converted into an OMElement, 
> AXIS2/C raises
>  an exception.
>
>  I agree that certain characters can be parsed while others must be 
> substituted before
>  parsing by an XML reader/parser occures, I ask the following:
>
>  1. What is the prefered way to substitute this "forbiddent" characters using 
> hopefully AXIS2/C
>  and or AXIS2/J AXIOM AXUTIL SW components?
>
>  2. Is XSLT technic the rigth thing to do it; I am still a novice in this 
> regards.
>
>  3. Would it be possible that "[" and "]" would not lead to an exception if I 
> would tell AXIS2/J
>  webservice server to use for this deserialization a different encoding 
> schema?
>
>  4. How would you best transive over AXIS2 a PS formatted document?
>
>  5. How would you best transive over AXIS2 a LaTex document?
>
>  6. Binary as MTOM OK?
>
>
>  Very thanksfull for a ASAP answer.
>  Josef.Stadelmann
>  @axa-winterthur.ch
>
>
>
>  -Ursprüngliche Nachricht-
>  Von: Paul Fremantle [mailto:[EMAIL PROTECTED]
>  Gesendet: Mittwoch, 13. Februar 2008 18:42
>  An: axis-user@ws.apache.org
>  Betreff: Re: encoding of SOAP responses
>
>
>
>
>  Do you mean you need to use the same encoding as the client sent?
>
>  Paul
>
>  On Feb 13, 2008 5:35 PM, Jan Philipp Seng <[EMAIL PROTECTED]> wrote:
>  >
>  >
>  >
>  >
>  > Hello Rushikesh and Paul,
>  >
>  >
>  >
>  > thank you very much for your answers. Unfortunately my question was not
>  > precise enough. I am not consuming a web service, but offering it. Can I
>  > determine the encoding of the SOAP responses my server delivers at runtime
>  > depending on a parameter transmitted in the SOAP Header of the request 
> also?
>  >
>  >
>  >
>  > Thanks for your help,
>  >
>  > Jan
>
>
>
>  --
>  Paul Fremantle
>  Co-Founder and VP of Technical Sales, WSO2
>  OASIS WS-RX TC Co-chair
>
>  blog: http://pzf.fremantle.org
>  [EMAIL PROTECTED]
>
>  "Oxygenating the Web Service Platform", www.wso2.com
>
>
>
> -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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


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



http://schemas.xmlsoap.org/ws/2004/08/addressing/:61:1: error: cvc-enumeration-valid

2008-05-07 Thread Kai Petersen
Hi,
I try to make a Security-Token-Service with a Token form of WS-Security from 
OASIS.

Problem: If I make wsdl2java using xmlbeans I get the following stacktrace. If 
I convert it with adb it works, but I think something should be wrong, and I 
don't want to get problems at a later task.


Versions:
axis2 v1.4
jdk 1.6.0_06


WSDL:
=

http://www.mysts.de/sts";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:soapbind="http://schemas.xmlsoap.org/wsdl/soap/";

xmlns:ns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";

xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing";
xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/09/policy";
xmlns:ns4="http://schemas.xmlsoap.org/ws/2005/02/trust";
xmlns:ns5="http://www.w3.org/2000/09/xmldsig#";
xmlns:ns6="http://www.w3.org/2001/XMLSchema";
xmlns:ns7="http://schemas.xmlsoap.org/soap/encoding/";
targetNamespace="http://www.mysts.de/sts";>


http://www.w3.org/2001/XMLSchema";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
http://schemas.xmlsoap.org/ws/2005/02/trust";

schemaLocation="http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd"; />













Dieser Service gibt nach erfolgreicher 
Authentifizierung
ein Security Token (Security Context Token) 
zurueck. Die
Authentifizierung kann dabei entweder mit 
Benutzername
und Passwort oder mit einem VDG-Ticket erfolgen.







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

http://localhost:8080/sts"; />











Dieser Service stellt Funktionen fuer die 
Authentifizierung
mit Benutzername und Passwort oder mit einem VDG-Ticket 
zur
Verfuegung.



Diese Funktion erledigt die Authentifizierung 
mit
Benutzername und Passwort.

http://host/path/services/UserPasswordLogin"; />



Diese Funktion erledigt die Authentifizierung 
mit einem
VDG-Ticket.

http://host/path/services/VDGTicketLogin"; />










CON-OUT:

wsdl2java -d xmlbeans -s -wv 1.1 -ss -uri sts.wsdl
Using AXIS2_HOME:   D:\_bin\lib\axis2-1.4
Using JAVA_HOME:C:\Programme\Java\jdk1.6.0_06
Retrieving document at 'sts.wsdl'.
Retrieving schema at 
'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd', relative to 
'file:/D:/_ws-diplom/wsdl_sts/sts.wsdl'.
Retrieving schema at 'http://schemas.xmlsoap.org/ws/2004/08/addressing/', 
relative to 'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd'.
Retrieving schema at 
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd',
 relative to 'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd'.
Retrieving schema at 
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd',
 relative to 'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd'.
Retrieving schema at 
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd',
 relative to 
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'.
Retrieving schema at 
'http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd', relative to 
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'.
Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to 
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'.
Retrieving schema at 
'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd', relative to 
'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd'.
Retrieving schema at 
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd',
 relative to 'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-

AW: Basic Axis/Axiom usage question

2008-05-07 Thread Stadelmann Josef

And how would you do this?

In Visual Basic - I have an element with a name-field and a value-field both 
containing strings.

Element-objects are then collected in a collection which is called a 
work-space, and be accessed by a key

And this workspace-objects are collected in a workspace-collection, be accessed 
by a key

How would VB create from such a nested collection the SOAP-document hopefully 
then understood by AXIS2/AXIOM and the like

How would I send this to my AXIS2 Web-Service Server from VB client? .NET V3.0?

I have done it using PocketSoap and AXIS2/J+C AXIOM, AXUTIL, LIBXML, GZIP, etc 
the hard way down.

Now I am very glad to learn about a better easier approach and way to do that.

seriously , what do I have to look at?

How ?

Josef.Stadelmann
@axa-winterthur.ch





-Ursprüngliche Nachricht-
Von: robert lazarski [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. Mai 2008 03:48
An: axis-user@ws.apache.org
Betreff: Re: Basic Axis/Axiom usage question


Well watch out for the premature optimization trap. Measure, don't guess.

If you have a schema and pre-existing objects, I myself would be
looking into sending the objects over the wire as is. JIBX in
particular is pretty good at pre-existing objects and Collections.

Anyways, what Axiom / Stax does that's special is that you don't have
to build the tree. Its been a while since I worked with it, but if you
are determined to go with Axiom and are concerned about performance,
one thing to try might be creating a custom DataSource that implements
OMDataSource that streams the output. To go that way, I'd grep thru
the unit tests from the latest source for OMDataSource for examples
and pay attention to not building the tree in particular if possible.

HTH,
Robert

On Tue, May 6, 2008 at 10:14 PM, Parham, Clinton <[EMAIL PROTECTED]> wrote:
> Robert: thanks for your input and I will keep your suggestions about data 
> binding in mind. That aside, how would I do this the more manual way using 
> OMElement? I have a specific schema to adhere to and already have a Java 
> object model in place that I have to work with.
>
>  To keep things simple, assume each object in the Collection becomes an XML 
> element in the response payload. I want to be sure that I leverage the 
> strengths of AXIOM/StAX and minimize memory usage.
>
>
>
>  -Original Message-
>  From: robert lazarski [mailto:[EMAIL PROTECTED]
>  Sent: Tuesday, May 06, 2008 6:59 PM
>  To: axis-user@ws.apache.org
>  Subject: Re: Basic Axis/Axiom usage question
>
>  Axiom is a good starting way to get to know Axis2, and in fact is
>  involved in many of the low level parts parts of Axis2. However, if
>  its Java Collections you want, you may consider using one of the
>  higher level databinding API's like adb, xmlbeans, jibx, jaxb etc.
>  Those type of API's can give you Java Collections, and when used in
>  Axis2 code generation, hook into Axiom anyways though at a level you
>  generally don't need to worry about unless there's a bug. When using
>  those with Axis2 you need an xml schema and WSDL, hand generated or
>  via reverse engineering existing code.
>
>  One way of looking at things is the xml payload sent over the wire is
>  in Arrays suitable for any language, and not just for Java
>  Collections. With databinding, the xml payload is obstenably the same
>  while the code level implemetation varies widely.
>
>  HTH,
>  Robert
>
>  On Tue, May 6, 2008 at 5:59 PM, Parham, Clinton <[EMAIL PROTECTED]> wrote:
>  >
>  >
>  >
>  >
>  > Hello.
>  >
>  >
>  >
>  > I'm getting my feet wet with Axis & Axiom and something is just not 
> clicking
>  > for me. Let's say I have a web service method that accepts and returns
>  > OMElements. The web service receives some data and builds a
>  > java.util.Collection of results objects that I need to send back as an XML
>  > payload in the response.
>  >
>  >
>  >
>  > What is the correct (most efficient memory-wise) way to do this? Do I 
> merely
>  > use factory.createOMElement / element.addAttribute to recreate the
>  > Collection objects in XML? Or, do I use something more elaborate like
>  > somehow wrapping the Collection with OMSourcedElementImpl and using
>  > OMDataSource?
>  >
>  >
>  >
>  > Some guidance and pointers to a similar example would be appreciated.
>  >
>  >
>  >
>  > Thank you,
>  >
>  > Clinton
>  >
>  >
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


-
To unsubscribe, e-mail: [EMAIL P

Re: encoding of SOAP responses

2008-05-07 Thread Paul Fremantle
If you read the XML spec http://www.w3.org/TR/2006/REC-xml-20060816/

You will see that [] \ ^ and a number of other characters are not
supported within XML tag names.

I suggest you change your format to be:


Paul


On Wed, May 7, 2008 at 1:46 PM, Stadelmann Josef
<[EMAIL PROTECTED]> wrote:
> Hello Paul,
>  hello AXIS2 (J/C) experts
>  hello XML, XSL, XSLT, LIBXML2, encoding experts!
>
>  I have to pass the following result back top my client also receive it at 
> the server later?
>
>  Regarding encoding (better allowed and non-allowed characters) I have to 
> transive
>  the following XML between client and server out from a larger legacy 
> integration.
>
>  :
>  
>  
>  
>  XXX
>  FKT_PUTCODES
>  AVT
>  3X
>  ZDK / BMWP
>  AVT
>  
>  
>  
>
>  this should now be converted to a OMElement and without "[" and "]" it works.
>  however - today - I was told that "[" and "]" are used very frequently 
> indexing fields.
>
>  I was further told - today - that we have "<" amd ">" and that we carry "&" 
> as well as a few others.
>  According W3C Specs I can find how to substitute "&", "<" ">" and a few more 
> but not "[" and "]"
>
>  The interesting thing is that I get field-name field-value pairs in to 
> AXIS2/C hash tables, then
>  create an OMModel from it, then serialize this model to what you see above, 
> and pass this
>  XML string from C Legacy code through JNI back to my Java Axis2 Web-Service.
>
>  And only then, when this string is again converted into an OMElement, 
> AXIS2/C raises
>  an exception.
>
>  I agree that certain characters can be parsed while others must be 
> substituted before
>  parsing by an XML reader/parser occures, I ask the following:
>
>  1. What is the prefered way to substitute this "forbiddent" characters using 
> hopefully AXIS2/C
>  and or AXIS2/J AXIOM AXUTIL SW components?
>
>  2. Is XSLT technic the rigth thing to do it; I am still a novice in this 
> regards.
>
>  3. Would it be possible that "[" and "]" would not lead to an exception if I 
> would tell AXIS2/J
>  webservice server to use for this deserialization a different encoding 
> schema?
>
>  4. How would you best transive over AXIS2 a PS formatted document?
>
>  5. How would you best transive over AXIS2 a LaTex document?
>
>  6. Binary as MTOM OK?
>
>
>  Very thanksfull for a ASAP answer.
>  Josef.Stadelmann
>  @axa-winterthur.ch
>
>
>
>  -Ursprüngliche Nachricht-
>  Von: Paul Fremantle [mailto:[EMAIL PROTECTED]
>  Gesendet: Mittwoch, 13. Februar 2008 18:42
>  An: axis-user@ws.apache.org
>  Betreff: Re: encoding of SOAP responses
>
>
>
>
>  Do you mean you need to use the same encoding as the client sent?
>
>  Paul
>
>  On Feb 13, 2008 5:35 PM, Jan Philipp Seng <[EMAIL PROTECTED]> wrote:
>  >
>  >
>  >
>  >
>  > Hello Rushikesh and Paul,
>  >
>  >
>  >
>  > thank you very much for your answers. Unfortunately my question was not
>  > precise enough. I am not consuming a web service, but offering it. Can I
>  > determine the encoding of the SOAP responses my server delivers at runtime
>  > depending on a parameter transmitted in the SOAP Header of the request 
> also?
>  >
>  >
>  >
>  > Thanks for your help,
>  >
>  > Jan
>
>
>
>  --
>  Paul Fremantle
>  Co-Founder and VP of Technical Sales, WSO2
>  OASIS WS-RX TC Co-chair
>
>  blog: http://pzf.fremantle.org
>  [EMAIL PROTECTED]
>
>  "Oxygenating the Web Service Platform", www.wso2.com
>
>
>
> -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Re: prolem: could not read log4j.properties file

2008-05-07 Thread Michael Bauer
You need a log4j.properties file, else loging doesn't work.  You  
should be able to find a decent example of one on the web.



On May 7, 2008, at 7:28 AM, neha sood wrote:


hi
 i m getting the folloewing error..
 log4j:ERROR Could not read configuration file [/usr/local/apache- 
tomcat-5.5.12/WEB-INF/classes/log4j.properties].
 [createdb] java.io.FileNotFoundException: /usr/local/apache- 
tomcat-5.5.12/WEB-INF/classes/log4j.properties (No such file or  
directory)

 [createdb] at java.io.FileInputStream.open(Native Method)
 [createdb] at  
java.io.FileInputStream.(FileInputStream.java:106)
 [createdb] at  
java.io.FileInputStream.(FileInputStream.java:66)
 [createdb] at  
org 
.apache 
.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:297)
 [createdb] at  
org 
.apache 
.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:315)
 [createdb] at  
org 
.gridlab 
.gridsphere 
.portlet.impl.SportletLog.setConfigureURL(SportletLog.java:33)
 [createdb] at  
org 
.gridlab 
.gridsphere 
.core.persisstence.hibernate.DBTask.setConfigDir(DBTask.java:71)
 [createdb] at  
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [createdb] at  
sun 
.reflect 
.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [createdb] at  
sun 
.reflect 
.DelegatingMethodAccessorImpl 
.invoke(DelegatingMethodAccessorImpl.java:25)

 [createdb] at java.lang.reflect.Method.invoke(Method.java:585)
 [createdb] at org.apache.tools.ant.IntrospectionHelper 
$3.set(IntrospectionHelper.java:939)
 [createdb] at  
org 
.apache 
.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java: 
393)
 [createdb] at  
org 
.apache 
.tools 
.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:370)
 [createdb] at  
org 
.apache 
.tools 
.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:324)

.
what can be the reason..as it says file or dir doesnt exsit  
there..how can i resolve this error


--
Friends are flowers in the garden of life


Michael Bauer
[EMAIL PROTECTED]
http://www.codechimp.net






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



Re: [Axis2] soap:address location is no whats in the WSDL file...Help please

2008-05-07 Thread Michael Bauer
I currently don't have an axis2.xml.  On a JBoss system, with a  
compressed WAR containing all the axis2 jars and files, where would be  
the best place to put one?  I am thinking /conf with the rest  
of the config files.  This way, when I get to an HA setup with  
multiple app servers, I can have appropriate settings in each if  
necessary.


And, in case anyone else runs into this, I fixed my local dev box by  
adding this to my services.xml:

false

Its not a great long-term solution, as one would like to keep non- 
static configuration information out of a compiled WAR for  
portability, but its a quick-fix to get it working.


On May 7, 2008, at 12:32 AM, Deepal Jayasinghe wrote:




I have an interesting problem.  I have an Axis2 service deployed  
with a WSDL file.  The WSDL file has the following service tag:

 
   binding="ns1:BindpointServiceSOAP">

 http://localhost:8080/"/>
   
 

But, when I deploy it, the WSDL I get from the web server is:

binding="ns1:BindpointServiceSOAP">
http://169.254.86.84:8080/bp_server/services/BindpointService 
"/>




What's interesting is that this web service is deployed in JBoss,  
and that JBoss instance is set to bind, by default, to 127.0.0.1.   
What else is interesting is that the IP address that's appearing in  
the location URL is some ICANN address that doesn't even reply to a  
ping.  Where is this coming from?  How do I make Axis2 use my  
actual bind address?

Just add the following parameter into axis2.xml.

myhost.com

-Deepal


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



Michael Bauer
[EMAIL PROTECTED]
http://www.codechimp.net







AW: encoding of SOAP responses

2008-05-07 Thread Stadelmann Josef
Hello Paul,
hello AXIS2 (J/C) experts
hello XML, XSL, XSLT, LIBXML2, encoding experts!

I have to pass the following result back top my client also receive it at the 
server later?

Regarding encoding (better allowed and non-allowed characters) I have to 
transive
the following XML between client and server out from a larger legacy 
integration.

:



XXX
FKT_PUTCODES
AVT
3X
ZDK / BMWP
AVT




this should now be converted to a OMElement and without "[" and "]" it works.
however - today - I was told that "[" and "]" are used very frequently indexing 
fields.

I was further told - today - that we have "<" amd ">" and that we carry "&" as 
well as a few others.
According W3C Specs I can find how to substitute "&", "<" ">" and a few more 
but not "[" and "]"

The interesting thing is that I get field-name field-value pairs in to AXIS2/C 
hash tables, then
create an OMModel from it, then serialize this model to what you see above, and 
pass this
XML string from C Legacy code through JNI back to my Java Axis2 Web-Service.

And only then, when this string is again converted into an OMElement, AXIS2/C 
raises 
an exception.

I agree that certain characters can be parsed while others must be substituted 
before
parsing by an XML reader/parser occures, I ask the following:

1. What is the prefered way to substitute this "forbiddent" characters using 
hopefully AXIS2/C
and or AXIS2/J AXIOM AXUTIL SW components?

2. Is XSLT technic the rigth thing to do it; I am still a novice in this 
regards.

3. Would it be possible that "[" and "]" would not lead to an exception if I 
would tell AXIS2/J
webservice server to use for this deserialization a different encoding schema? 

4. How would you best transive over AXIS2 a PS formatted document?

5. How would you best transive over AXIS2 a LaTex document?

6. Binary as MTOM OK?


Very thanksfull for a ASAP answer.
Josef.Stadelmann
@axa-winterthur.ch



-Ursprüngliche Nachricht-
Von: Paul Fremantle [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 13. Februar 2008 18:42
An: axis-user@ws.apache.org
Betreff: Re: encoding of SOAP responses


Do you mean you need to use the same encoding as the client sent?

Paul

On Feb 13, 2008 5:35 PM, Jan Philipp Seng <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hello Rushikesh and Paul,
>
>
>
> thank you very much for your answers. Unfortunately my question was not
> precise enough. I am not consuming a web service, but offering it. Can I
> determine the encoding of the SOAP responses my server delivers at runtime
> depending on a parameter transmitted in the SOAP Header of the request also?
>
>
>
> Thanks for your help,
>
> Jan



-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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


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



WSDL2Java Exception

2008-05-07 Thread fadila.mumbasic
 
Hi,

I'm using axis2 1.3. I've deployed a new webservice and I can see it in
the list of deployed services. 
I would like to generate the client stub using the wsdl created by axis.

But whenn I call WSDL2Java the following exception is thrown:

 [java] org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
 [java] at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
 [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
...
 [java] Caused by: org.apache.axis2.schema.SchemaCompilationException:
Missing name attribute! Please check your schema!
 [java] at
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:2089)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.ja
va:1788)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler
.java:977)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
(SchemaCompiler.java:886)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java
:867)

I'm a bit confused because the wsdl is created by axis.

Any help is welcome!

Thanks,
Fadila 

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



prolem: could not read log4j.properties file

2008-05-07 Thread neha sood
hi
 i m getting the folloewing error..
 log4j:ERROR Could not read configuration file
[/usr/local/apache-tomcat-5.5.12/WEB-INF/classes/log4j.properties].
 [createdb] java.io.FileNotFoundException:
/usr/local/apache-tomcat-5.5.12/WEB-INF/classes/log4j.properties (No such
file or directory)
 [createdb] at java.io.FileInputStream.open(Native Method)
 [createdb] at java.io.FileInputStream.(FileInputStream.java:106)
 [createdb] at java.io.FileInputStream.(FileInputStream.java:66)
 [createdb] at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:297)
 [createdb] at
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:315)
 [createdb] at
org.gridlab.gridsphere.portlet.impl.SportletLog.setConfigureURL(SportletLog.java:33)
 [createdb] at
org.gridlab.gridsphere.core.persisstence.hibernate.DBTask.setConfigDir(DBTask.java:71)
 [createdb] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [createdb] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [createdb] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [createdb] at java.lang.reflect.Method.invoke(Method.java:585)
 [createdb] at
org.apache.tools.ant.IntrospectionHelper$3.set(IntrospectionHelper.java:939)
 [createdb] at
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:393)
 [createdb] at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:370)
 [createdb] at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:324)
.
what can be the reason..as it says file or dir doesnt exsit there..how can i
resolve this error

-- 
Friends are flowers in the garden of life


Provide original WSDL

2008-05-07 Thread Natalia Ignatowicz
Hi,

I'm trying to provide my original WSDL-file for users of my webservice, so 
"useOriginalwsdl" is set to true.
This works fine when I deploy my service through an AAR. But for several 
reasons, I'm deploying my service programmatically at runtime. Now the WSDL is 
not found and Axis says "Unable to generate WSDL 1.1 for this service".
Is there any way to tell Axis at runtime that there is a WSDL-file and that 
this file should be used? (Placing the file in META-INF doesn't help.)

Btw: Why are the generated WSDLs (if useOriginalwsdl is set to false) so ugly? 
All types like xs:int etc. have "xs:anyType" then.

Greetings,
Natalia
-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]

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



server-config.wsdd File name

2008-05-07 Thread paul.ockleford
Hi,

I am quite new to axis and until now have been using a wsdd file written by
somebody else at my work place, the file name is server-config.wsdd. 

I have now been given another file to deploy on another web application, and
this one is called server-config_LTCA.wsdd. When I deploy this file I get 2
services listed, one called AdminService, which is the name of my web
service which has a method called AdminService, but none of the individual
methods in that class are described, only AdminService (the name of the
service). 

The other service which is available from the axis services page is one
called version with a method called getVersion, I don't know what this is.

If I change the name of the wsdd file to 'server-config.wsdd', from the axis
services page I now have a service called AdminService with the two methods
saveStatus and saveAvailabilityStatus that I would expect to see.

If anybody can make sense of what I have written could they maybe explain
the reason for this? And is it ok to have a wsdd file called something other
than server-config.wsdd? 

Thanks,
 
Paul Ockleford


**
This message  may  contain  confidential  and  privileged information.
If you are not  the intended  recipient please  accept our  apologies.
Please do not disclose, copy or distribute  information in this e-mail
or take any  action in reliance on its  contents: to do so is strictly
prohibited and may be unlawful. Please inform us that this message has
gone  astray  before  deleting it.  Thank  you for  your co-operation.

NHSmail is used daily by over 100,000 staff in the NHS. Over a million
messages  are sent every day by the system.  To find  out why more and
more NHS personnel are  switching to  this NHS  Connecting  for Health
system please visit www.connectingforhealth.nhs.uk/nhsmail
**


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



Re: Slow response for SOAP request passing Strings > few hundred bytes

2008-05-07 Thread Jorgen

After some further effort it still appears to me that this is a TCP issue. As
soon as the transferred String size does not fit into one TCP segment, the
client waits for acknowledgement from the server having received the
segment. For some reason in my case this takes time, could be a server
configuration issue.

Is there a way for me to turn of the client side wait from the Axis level?
If I could access the corresponding Socket object there is a possibility of
toggling the TCP_NODELAY it seems.

Again I would be grateful for any relevant information or directions. This
appears to be a fundamental issue, so I am surprised not to find more
information about it.

Best regards, Jorgen
-- 
View this message in context: 
http://www.nabble.com/Slow-response-for-SOAP-request-passing-Strings-%3E-few-hundred-bytes-tp17093025p17101074.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Facing NULL pointer exception in initializeValues (Axis2-kernel jar)

2008-05-07 Thread Sharma, Sachin
Hi, 
using axis2 jars for past one year in reports project, regarding interaction 
with microsoft reporting webservices. But without any change in axis2 jars, as 
well as without any upgrade in report-server following exception comes, when I 
try to view a report that doesn't exist on reportserver: 
RpcDTOClient - error while calling function getDownloadResult: 
{"description":"","number":0,"code":490,"javaStack":"java.lang.NullPointerException
at org.apache.axis2.AxisFault.initializeValues(AxisFault.java:185)
at org.apache.axis2.AxisFault.initializeValues(AxisFault.java:164)
at org.apache.axis2.AxisFault.(AxisFault.java:158)
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:408)
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:368)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
at 
com.synygy.reports.viewreports.impl.sqlserver.reporting.reportingexecutionservices.ReportExecutionServiceStub.LoadReport(ReportExecutionServiceStub.java:560)
at 
com.synygy.reports.viewreports.impl.ReportingService.ReportExecutionServiceWrapper.loadReport(ReportExecutionServiceWrapper.java:67)
at 
com.synygy.reports.viewreports.impl.LiveReportRenderer.renderReport(LiveReportRenderer.java:68)
at 
com.synygy.reports.viewreports.impl.service.ViewReportServiceImpl.getLiveReportInputStream(ViewReportServiceImpl.java:161)
at 
com.synygy.reports.viewreports.impl.service.ViewReportServiceImpl.getCreatedReportInputStream(ViewReportServiceImpl.java:111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
at $Proxy69.getCreatedReportInputStream(Unknown Source)
at 
com.synygy.reports.viewreports.impl.util.ViewReportUtil.getInputStreamForOnDemandCreatedReport(ViewReportUtil.java:119)
at 
com.synygy.reports.viewreports.api.AbstractDownloadInfoModel.getOnDemandCreatedReportInfo(AbstractDownloadInfoModel.java:359)
at 
com.synygy.reports.viewreports.api.AbstractDownloadInfoModel.validateReport(AbstractDownloadInfoModel.java:256)
at 
com.synygy.reports.viewreports.api.AbstractDownloadInfoModel.validate(AbstractDownloadInfoModel.java:124)
at 
com.synygy.jsf.components.commons.download.DownloadInfoRpcDTO.getDownloadResult(DownloadInfoRpcDTO.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jabsorb.JSONRPCBridge.call(JSONRPCBridge.java:639)
at org.jabsorb.JSONRPCServlet.service(JSONRPCServlet.java:261)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.synygy.settings.general.impl.ui.UserSettingsFilter.doFilter(UserSettingsFilter.java:44)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.synygy.accessclient.impl.AccessFilter.authorizeAndForward(AccessFilter.java:131)
at com.synygy.accessclient.impl.AccessFilter.doFilter(AccessFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at 
java.lang.Thread.run(

EndpointReference parameters

2008-05-07 Thread Vinh Nguyen (vinguye2)
Hi,
 
I have a service that is located via a wsa:EndpointReference.  The
EndpointReference is defined to have a URI as well as several reference
parameters.  Is there an example somewhere that shows how to call this
type of service using this complex EndpointReference?
 
I noticed that in the generated client stubs, the constructors take in a
"String targetEndpoint".  But, there's no constructor that takes in an
EndpointReference.  I thought I could add such a constructor myself, but
I don't think it would work because the SOAP envelope is only created in
the actual service operation/methods.  So I think I'd have to modify the
service methods to manually add the EndpointReference parameters to the
SOAP header right before making the remote call.  The problem though is
that if my service has 20 operations, I'd have to update all those stub
methods, and I don't think this is a clean/feasible approach.
 
I was wondering if there's a better way to support this complex
EndpointReference in Axis2?  Any help is appreciated!
 
Aloha,
-Vinh