Re: [Axis2] How to add outbound headers?

2007-04-13 Thread Thilina Gunarathne

AFAIK currently it's not possible to do that from your service
implementation class...

You may need to write a handler to add those elements to the header of
the outgoing message and engage that handler in the outflow..

On 4/13/07, José Antonio Sánchez <[EMAIL PROTECTED]> wrote:

Hello, I'm developing a service and I have to return some elements in
the header when some operations of my service are invoked but I don't
know how to do this. For the incoming message I can use
MessageContext.getCurrentMessageContext().getEnvelope() but, how do I
add a header to a response?

--
Saludos.
José Antonio Sánchez

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





--
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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



Re: Axis2 and existing client code

2007-04-13 Thread Thilina Gunarathne

Often the clients aren't java clients.  I know there is a php library for
Axis2 -

http://pecl.php.net/package/axis2

AFAIK this is superceded by the WSO2 WSF/PHP...


Suppose I've written Axis2 web services and the non java clients do not have
Axis2 support, is it enough to just look at the wsdl and parse thru the
message.

Yes... Most of the time it should be possible..


Also, it looks like I may be implementing Axis2 web services using the POJO
method because it seems simplest.  It looks like the wsdl is generated using
an "Ant" script.  What do you mean by it might be tricky?

Axis2 and Axis1 to generate slightly different WSDL's for the same
pojo service.. So the client's that depend on axis1 service (described
by the wsdl) will not be able to communicate with the Axis2 service
(described by Axis2 generated wsdl)...

If you designed your WSDL beforehand and used that to create your
service implementation class (using wsdl2java and filling up the
skeleton), chances are high that clients will be able to talk to both
the services, since they both have same WSDL abstract part...

---
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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



Re: Axis2 and Maven

2007-04-13 Thread Thilina Gunarathne

Thanks for the links. When you do a "mvn package" in your project that
depends on Axis2, is the Axis2 JAR that gets put in your local repository ~
14 MB, or is it only 1.5 MB?

1.5 MB

When I do the maven command it's the latter,
but when I download directly from the Axis2 website it's the former, so
clearly it's missing all the  dependencies!

Seems like you are talking about the Axis2 binary distribution... You
cannot make it a dependency as whole to your projects. It is a package
made for the distribution, not to use with maven...  You will need to
get maven to download the individual jars & mars (modules) you
wanted..

Thanks,
Thilina



--
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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



wsa:Action header emitted from client with value ""

2007-04-13 Thread Steven E. Harris
Using a snapshot build of Axis2 from 12 April 2007, my generated
client stub (via wsdl2java) contains the following statement:

  _operationClient.getOptions().setAction("\"\"");

The same statement appears in both the synchronous "operation name"
method and the asynchronous "start operation name" method.

The generated header looks like this:

  ""

As of sometime last week, I recall seeing a valid wsa:Action emitted
for clients generated from the same WSDL file. What could be causing
Axis/wsdl2java to not provide a valid action string?

-- 
Steven E. Harris


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



RE: Problem settin classpath of axis2 jar files --Beginner question

2007-04-13 Thread Inder Dhillon
Hello Martin

 

Well I am using packages like axis2.handlers, axis2.engine and classes like
message context, invocation response etc. Actually I have written handler to
extract the soap messages into a text file.

 

Thanks

Inder

 

  _  

From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 10:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem settin classpath of axis2 jar files --Beginner question

 

Inder-

 

All the jars you need should be located in %AXIS2_HOME%\lib folder

Is there a specific jar you are looking for ?

Martin--

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 

From: Inder Dhillon   

To: [EMAIL PROTECTED] 

Sent: Friday, April 13, 2007 9:00 PM

Subject: RE: Problem settin classpath of axis2 jar files --Beginner question

 

Hello

 

Thanks for your prompt reply. Actually I was asking for this because I am
writing one own handler and one simple web service and I am using inbuilt
axis2 packages, and for that I need to include the inbuilt jar files into
class path.

 

Thanks
Inder

 

-Original Message-
From: Peter Gylling Jørgensen [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 5:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Problem settin classpath of axis2 jar files --Beginner question

 

Check out:

http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html

http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

 

If anymore help is needed you will have to be specific about how you plan to
use the AXIS2 software.

 

\pgj

 

> -Original Message-

> From: Inder Dhillon [mailto:[EMAIL PROTECTED] 

> Sent: Friday, April 13, 2007 10:20 PM

> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]

> Subject: Problem settin classpath of axis2 jar files 

> --Beginner question

> 

> 

> Hello

> 

> I know this is basic question but I am having problem in 

> setting the axis2

> jar files located in lib folder into classpath. I tried to 

> set but its not

> working. I'll really appreciate if someone can help me with this.

> 

> Inder

> 

> 

> 

> -

> To unsubscribe, e-mail: [EMAIL PROTECTED]

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

> 

> 

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

 



Re: Problem settin classpath of axis2 jar files --Beginner question

2007-04-13 Thread Martin Gainty
Inder-

All the jars you need should be located in %AXIS2_HOME%\lib folder
Is there a specific jar you are looking for ?

Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

  - Original Message - 
  From: Inder Dhillon 
  To: [EMAIL PROTECTED] 
  Sent: Friday, April 13, 2007 9:00 PM
  Subject: RE: Problem settin classpath of axis2 jar files --Beginner question


  Hello

   

  Thanks for your prompt reply. Actually I was asking for this because I am 
writing one own handler and one simple web service and I am using inbuilt axis2 
packages, and for that I need to include the inbuilt jar files into class path.

   

  Thanks
  Inder

   

  -Original Message-
  From: Peter Gylling Jørgensen [mailto:[EMAIL PROTECTED] 
  Sent: Friday, April 13, 2007 5:47 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Problem settin classpath of axis2 jar files --Beginner question

   

  Check out:

  http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html

  http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html

  http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

   

  If anymore help is needed you will have to be specific about how you plan to 
use the AXIS2 software.

   

  \pgj

   

  > -Original Message-

  > From: Inder Dhillon [mailto:[EMAIL PROTECTED] 

  > Sent: Friday, April 13, 2007 10:20 PM

  > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]

  > Subject: Problem settin classpath of axis2 jar files 

  > --Beginner question

  > 

  > 

  > Hello

  > 

  > I know this is basic question but I am having problem in 

  > setting the axis2

  > jar files located in lib folder into classpath. I tried to 

  > set but its not

  > working. I'll really appreciate if someone can help me with this.

  > 

  > Inder

  > 

  > 

  > 

  > -

  > To unsubscribe, e-mail: [EMAIL PROTECTED]

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

  > 

  > 

   

  -

  To unsubscribe, e-mail: [EMAIL PROTECTED]

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

   


RE: Problem settin classpath of axis2 jar files --Beginner question

2007-04-13 Thread Inder Dhillon
Hello

 

Thanks for your prompt reply. Actually I was asking for this because I am
writing one own handler and one simple web service and I am using inbuilt
axis2 packages, and for that I need to include the inbuilt jar files into
class path.

 

Thanks
Inder

 

-Original Message-
From: Peter Gylling Jørgensen [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 5:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Problem settin classpath of axis2 jar files --Beginner question

 

Check out:

http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html

http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

 

If anymore help is needed you will have to be specific about how you plan to
use the AXIS2 software.

 

\pgj

 

> -Original Message-

> From: Inder Dhillon [mailto:[EMAIL PROTECTED] 

> Sent: Friday, April 13, 2007 10:20 PM

> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]

> Subject: Problem settin classpath of axis2 jar files 

> --Beginner question

> 

> 

> Hello

> 

> I know this is basic question but I am having problem in 

> setting the axis2

> jar files located in lib folder into classpath. I tried to 

> set but its not

> working. I'll really appreciate if someone can help me with this.

> 

> Inder

> 

> 

> 

> -

> To unsubscribe, e-mail: [EMAIL PROTECTED]

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

> 

> 

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 



Re: Axis2 and Maven

2007-04-13 Thread lightbulb432

Thanks for the links. When you do a "mvn package" in your project that
depends on Axis2, is the Axis2 JAR that gets put in your local repository ~
14 MB, or is it only 1.5 MB? When I do the maven command it's the latter,
but when I download directly from the Axis2 website it's the former, so
clearly it's missing all the  dependencies!



Thilina Gunarathne wrote:
> 
> I'm also a novice level user of Maven2 (still pretty much appreciate
> maven1)..
> May be the pom.xml's in following locations will help you..
> 
> http://wso2.org/repos/wso2/trunk/wsas/java/
> http://wso2.org/repos/wso2/trunk/esb/java/
> http://svn.apache.org/repos/asf/webservices/rampart/trunk/java/
> 
> ~Thilina
> 
> On 4/13/07, lightbulb432 <[EMAIL PROTECTED]> wrote:
>>
>> I tried the repositories you specified, and came across the problems I've
>> noted in a post on the Maven forum. If you could please take a look at it
>> and see where I'm going wrong, it'd be greatly appreciated. Apparently I
>> need a "source" repository that contains a pom.xml...
>>
>> http://www.nabble.com/forum/ViewPost.jtp?post=9964022&framed=y&skin=177
>>
>> Perhaps you might have a sample pom.xml of a file used in a project that
>> would correctly bring in the Axis2 jars and all its dependencies?
>>
>> Thanks so much.
>>
>>
>>
>> Thilina Gunarathne wrote:
>> >
>> >> You can use maven2 safely by pointing to the axis2 maven2 repo..[1]..
>> > Please use this repo
>> > http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/axis2/
>> >
>> > --
>> > Thilina Gunarathne  -  http://www.wso2.com -
>> http://thilinag.blogspot.com
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Axis2-and-Maven-tf3567687.html#a9979680
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axis2-and-Maven-tf3567687.html#a9987758
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: Interoperability issues while using DOT NET client

2007-04-13 Thread Peter Gylling Jørgensen
As long as you don't require any kind of SSL, there should be no issues of not 
automatically writing interoperable code unless of course the WSDL file isn't 
conforming to required standards :-)
 
Each client should be capable of handling the webservice based upon the WSDL 
file alone.
 
I manage two webservice solutions based upon axis2 version 1.1.1 and I know of 
tree different client solutions connecting without any problems. All client 
code is generated based upon the WDSL file I have provided to the client 
developers.
 
\pgj

-Original Message-
From: Vibhor_Sharma [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 9:09 PM
To: [EMAIL PROTECTED]
Subject: Interoperability issues while using DOT NET client


Hi 
   I have developed the web services using axis21.1.1 and they work 
fine till the time i use axis2 generated stubs. 
 
I tried testing it with the Dot Net based client and i get errors.
 
Are there special considerations that have to be taken while writing an 
interoperable code?
 
 
Thanks
Vibhor
 



RE: Problem settin classpath of axis2 jar files --Beginner question

2007-04-13 Thread Peter Gylling Jørgensen
Check out:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

If anymore help is needed you will have to be specific about how you plan to 
use the AXIS2 software.

\pgj

> -Original Message-
> From: Inder Dhillon [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 13, 2007 10:20 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Problem settin classpath of axis2 jar files 
> --Beginner question
> 
> 
> Hello
> 
> I know this is basic question but I am having problem in 
> setting the axis2
> jar files located in lib folder into classpath. I tried to 
> set but its not
> working. I'll really appreciate if someone can help me with this.
> 
> Inder
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re: Axis2: soap/jms question

2007-04-13 Thread Shantanu Sen
Asankha,

Sorry for being unclear about this. Let me try to explain.

I built axis.war from the source pulled from the trunk today. Then I made just 
the following modification in axis2.xml - basically added the jms transport 
receiver.
---

  
  


  
  
   .


.


---

At this point the axis2.war has just one service that gets generated by default 
with the build - version.aar.
When I deployed the war on jboss, I see the following trace on the jboss console

==
13:16:20,750 INFO  [ModuleDeployer] Deploying module: soapmonitor
13:16:21,203 INFO  [ServiceDeployer] Deploying Web service: version.aar
13:16:21,359 WARN  [JMSConnectionFactory] Error looking up destination with JNDI
 name : Version to map its corresponding provider specific Destination name
13:16:21,375 WARN  [JMSConnectionFactory] JMS Destination with JNDI name : Versi
on does not exist
13:16:21,500 ERROR [JMSConnectionFactory] Unable to create a Destination with JN
DI name : Version
javax.jms.JMSException: This destination does not exist !QUEUE.Version
at org.jboss.mq.server.JMSDestinationManager.createQueue(JMSDestinationM
anager.java:613)
at org.jboss.mq.server.JMSServerInterceptorSupport.createQueue(JMSServer
InterceptorSupport.java:111)
at org.jboss.mq.server.TracingInterceptor.createQueue(TracingInterceptor
.java:259)
at org.jboss.mq.server.JMSServerInvoker.createQueue(JMSServerInvoker.jav
a:117)
at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocke
tManagerHandler.java:136)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.j
ava:395)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
utor.java:748)
at java.lang.Thread.run(Thread.java:595)
13:16:21,515 INFO  [ListenerManager]


Is this the expected behavior? If so, then if we have jms transport enabled, 
every service deployed must explicitly set the transport mechanism in the 
services.xml? This means all the sample services that axis2 provides need to be 
modified since in most of them the services.xml does not contain any specific 
transport.

Or should the behavior be that if no transport is specified in the services.xml 
then axis2 will assume that it is http by default? IMO this should be the 
expected behavior.

Shantanu
- Original Message 
From: Asankha C. Perera <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2007 9:44:52 AM
Subject: Re: Axis2: soap/jms question




  

Hi Shantanu


  
  One
issue that I am having now is that if I have multiple services
deployed, for each of the services that do not have the transport
specified in the services.xml, such as the version.aar, the code is
assuming that enableAllTransports variable is true.

  

  


I think this is the default Axis2 behavior and nothing specific to the
JMS transport


  
  So,
if I have another service deployed, say version.aar, that do not have
any transport specific elements specified in the services.xml, the 
JMSListener line 122 code that checks to see if it is a JMS service as
shown below, is returning true.

  

  


What to you mean "another service..." do you have more than one
version.aar file? or version.aar and version1.aar with different
services.xmls? if so do they share the same service name?


  
   if
(JMSUtils.isJMSService(service)) {

processService(service);

}

  

  


I think the implementation of the above method is correct

public static boolean isJMSService(AxisService service) {

boolean process = service.isEnableAllTransports();

if (process) {

return true;

} else {

List transports = service.getExposedTransports();

for (int i = 0; i < transports.size(); i++) {

if (Constants.TRANSPORT_JMS.equals(transports.get(i))) {

return true;

}

}

}

return false;

}




  
  The
reason being that enableAllTransports in the AxisService is set to true
for the Version service.

  

I have enabled only one service explicitly to be jms using the
services.xml and that service is being deployed fine and the
JMSListener correctly configured for it. 

  

 I would assume that all other services that do not specify any
transport specific configurations in the services.xml, the code would
would not try to enable it for all transports and it was working fine
previously. Has anything changed in AxisService code that sets the
enableAllTransports to be true by default?

  

As a result of the above issue, the listener throws the following
exception that is stopping JMSListener from listening to any queue at
all. Note that it is trying to deploy the Version service as a JMS

Axis2. 1.1.1 cannot generate code from wsdl generated by WCF web service

2007-04-13 Thread shantanu chawla

I developed a WCF web service and now I am trying to create a client
to consume WCF service in java using axis2 1.1.1 version. I am using
Axis2 code generator version 1.2.1 compatible with axis2 version 1.1.1
for eclipse.

When I am trying to generate client code I am gettting the error the
following error

An error occured while completing proecess -
java.lang.InterruptedException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.langRuntimeException:
WSHttpBinding_IMyService_MyOperation1_Input_policy can't be resolved

The wsdl I am using is


http://tempuri.org/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tns="http://tempuri.org/";
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:wsa10="http://www.w3.org/2005/08/addressing";
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex";>



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient";>

 



 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 

 
 




http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient";>

 
 
 
 
 


 
 
 


 
 
 
 
 
 
 
 


 
 
 
 
 
 


 
 
 
 
 
 
 
 
 
 
 


 
 
 


 
 
 
 
 
 
 
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>

 
 
 
 
 
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>

 
 
 
 
 
 
 
 
 



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 
 
 
 



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 
 
 
 



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 
 
 
 



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 
 
 
 

http://tempuri.org/Imports";>
 http://svr11.lab.interface.local/WCFService/Service.svc?xsd=xsd0";
namespace="http://tempuri.org/"; />
 http://svr11.lab.interface.local/WCFService/Service.svc?xsd=xsd1";
namespace="http://schemas.microsoft.com/2003/10/Serialization/"; />
 http://svr11.lab.interface.local/WCFService/Service.svc?xsd=xsd2";
namespace="http://schemas.datacontract.org/2004/07/"; />
 
 

 
 

 
 

 
 

 
 


 http://tempuri.org/IMyService/MyOperation1";
message="tns:IMyService_MyOperation1_InputMessage" />
 http://tempuri.org/IMyService/MyOperation1Response";
message="tns:IMyService_MyOperation1_OutputMessage" />
 

 http://tempuri.org/IMyService/MyOperation2";
message="tns:IMyService_MyOperation2_InputMessage" />
 http://tempuri.org/IMyService/MyOperation2Response";
message="tns:IMyService_MyOperation2_OutputMessage" />
 
 

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

 http://tempuri.org/IMyService/MyOperation1";
style="document" />

 
 
 

 
 
 
 

 http://tempuri.org/IMyService/MyOperation2";
style="document" />

 
 
 

 
 
 
 
 


 http://svr11.lab.i

Problem settin classpath of axis2 jar files --Beginner question

2007-04-13 Thread Inder Dhillon
Hello

I know this is basic question but I am having problem in setting the axis2
jar files located in lib folder into classpath. I tried to set but its not
working. I'll really appreciate if someone can help me with this.

Inder



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



Axis2. 1.1.1 cannot generate code from wsdl generated by WCF web service

2007-04-13 Thread shantanu chawla

I developed a WCF web service and now I am trying to create a client
to consume WCF service in java using axis2 1.1.1 version. I am using
Axis2 code generator version 1.2.1 compatible with axis2 version 1.1.1
for eclipse.

When I am trying to generate client code I am gettting the error the
following error

An error occured while completing proecess -
java.lang.InterruptedException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.langRuntimeException:
WSHttpBinding_IMyService_MyOperation1_Input_policy can't be resolved

The wsdl I am using is


http://tempuri.org/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tns="http://tempuri.org/";
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:wsa10="http://www.w3.org/2005/08/addressing";
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex";>



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient";>

 



 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 

 
 




http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient";>

 
 
 
 
 


 
 
 


 
 
 
 
 
 
 
 


 
 
 
 
 
 


 
 
 
 
 
 
 
 
 
 
 


 
 
 


 
 
 
 
 
 
 
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>

 
 
 
 
 
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>

 
 
 
 
 
 
 
 
 



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 
 
 
 



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 
 
 
 



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 
 
 
 



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 
 
 
 

http://tempuri.org/Imports";>
 http://svr11.lab.interface.local/WCFService/Service.svc?xsd=xsd0";
namespace="http://tempuri.org/"; />
 http://svr11.lab.interface.local/WCFService/Service.svc?xsd=xsd1";
namespace="http://schemas.microsoft.com/2003/10/Serialization/"; />
 http://svr11.lab.interface.local/WCFService/Service.svc?xsd=xsd2";
namespace="http://schemas.datacontract.org/2004/07/"; />
 
 

 
 

 
 

 
 

 
 


 http://tempuri.org/IMyService/MyOperation1";
message="tns:IMyService_MyOperation1_InputMessage" />
 http://tempuri.org/IMyService/MyOperation1Response";
message="tns:IMyService_MyOperation1_OutputMessage" />
 

 http://tempuri.org/IMyService/MyOperation2";
message="tns:IMyService_MyOperation2_InputMessage" />
 http://tempuri.org/IMyService/MyOperation2Response";
message="tns:IMyService_MyOperation2_OutputMessage" />
 
 

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

 http://tempuri.org/IMyService/MyOperation1";
style="document" />

 
 
 

 
 
 
 

 http://tempuri.org/IMyService/MyOperation2";
style="document" />

 
 
 

 
 
 
 
 


 http://svr11.lab.i

Interoperability issues while using DOT NET client

2007-04-13 Thread Vibhor_Sharma
Hi 
   I have developed the web services using axis21.1.1 and they work fine till 
the time i use axis2 generated stubs. 
 
I tried testing it with the Dot Net based client and i get errors.
 
Are there special considerations that have to be taken while writing an 
interoperable code?
 
 
Thanks
Vibhor
 


Data binding frameworks that allow backwards compatible schema changes?

2007-04-13 Thread Josh

All,

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

Regards,

Joshua


Axis2. 1.1.1 cannot generate code from wsdl generated by WCF web service

2007-04-13 Thread shantanu chawla

I developed a WCF web service and now I am trying to create a client
to consume WCF service in java using axis2 1.1.1 version. I am using
Axis2 code generator version 1.2.1 compatible with axis2 version 1.1.1
for eclipse.

When I am trying to generate client code I am gettting the error the
following error

An error occured while completing proecess -
java.lang.InterruptedException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.langRuntimeException:
WSHttpBinding_IMyService_MyOperation1_Input_policy can't be resolved

The wsdl I am using is


http://tempuri.org/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tns="http://tempuri.org/";
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:wsa10="http://www.w3.org/2005/08/addressing";
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex";>



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient";>

 



 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 

 
 




http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient";>

 
 
 
 
 


 
 
 


 
 
 
 
 
 
 
 


 
 
 
 
 
 


 
 
 
 
 
 
 
 
 
 
 


 
 
 


 
 
 
 
 
 
 
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>

 
 
 
 
 
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>

 
 
 
 
 
 
 
 
 



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 
 
 
 



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 
 
 
 



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 
 
 
 



http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 http://www.w3.org/2005/08/addressing"; />
 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
 
 
 
 
 

http://tempuri.org/Imports";>
 http://svr11.lab.interface.local/WCFService/Service.svc?xsd=xsd0";
namespace="http://tempuri.org/"; />
 http://svr11.lab.interface.local/WCFService/Service.svc?xsd=xsd1";
namespace="http://schemas.microsoft.com/2003/10/Serialization/"; />
 http://svr11.lab.interface.local/WCFService/Service.svc?xsd=xsd2";
namespace="http://schemas.datacontract.org/2004/07/"; />
 
 

 
 

 
 

 
 

 
 


 http://tempuri.org/IMyService/MyOperation1";
message="tns:IMyService_MyOperation1_InputMessage" />
 http://tempuri.org/IMyService/MyOperation1Response";
message="tns:IMyService_MyOperation1_OutputMessage" />
 

 http://tempuri.org/IMyService/MyOperation2";
message="tns:IMyService_MyOperation2_InputMessage" />
 http://tempuri.org/IMyService/MyOperation2Response";
message="tns:IMyService_MyOperation2_OutputMessage" />
 
 

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

 http://tempuri.org/IMyService/MyOperation1";
style="document" />

 
 
 

 
 
 
 

 http://tempuri.org/IMyService/MyOperation2";
style="document" />

 
 
 

 
 
 
 
 


 http://svr11.lab.i

[axis2] Specification about the service.xml and ANT taskdef

2007-04-13 Thread Hardi Sukrisman
Hi,
 
I've just start to use Axis2 and I have problem on finding the
specification of service.xml and the ANT taskdef available for axis.
Can anyone tell me the URL of  the specification??
 
I need the syntax definition e.g for defining service group, etc.
 
Thank you.
 
Regards,
 
Hardi


Re: Axis2 and existing client code

2007-04-13 Thread Jenn Chen

Thilina, thanks for your response...

Often the clients aren't java clients.  I know there is a php library for Axis2 
-

http://pecl.php.net/package/axis2

Suppose I've written Axis2 web services and the non java clients do not have 
Axis2 support, is it enough to just look at the wsdl and parse thru the message.

Also, it looks like I may be implementing Axis2 web services using the POJO 
method because it seems simplest.  It looks like the wsdl is generated using an 
"Ant" script.  What do you mean by it might be tricky?

Jennifer


> Above are features provided by the Axis2 client API.. They do not have
> any ties with the service implementation...Supporting the above
> features will depend on whether your ws-client in php or python
> supports them...

- Original Message 
From: Thilina Gunarathne <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Friday, April 13, 2007 4:49:35 AM
Subject: Re: Axis2 and existing client code

> I've written web services using an older version of Axis, 1.2, and I am
> wondering if the same clients can access the same duplicate web services
> written using Axis2.
That'll depend on the way you implemented the service.. If you
followed a contract fisrt approach (wsdl first) then yes it's
possible...  or in other words if the abstract part of Axis2 service
wsdl is identical to the axis1 service wsdl..

Things can be bit tricky if you followed a POJO approach...
> My clients are in php, python, and java.  I am also
> wondering if other clients besides java can be written to utilize the new
> Axis2 features -
>
> EchoBlockingClient
> EchoNonBlockingClient
> EchoNonBlockingDualClient
> EchoBlockingDualClient
Above are features provided by the Axis2 client API.. They do not have
any ties with the service implementation...Supporting the above
features will depend on whether your ws-client in php or python
supports them...
AFAIK WSO2 WSF/PHP[1] supports the above...

thanks,
Thilina
[1]http://wso2.org/projects/wsf/php
>
> Thank you,
>
> Jennifer
>
>
>
>
>
>  
> Food fight? Enjoy some healthy debate
> in the Yahoo! Answers Food & Drink Q&A.


-- 
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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







__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Using wsdl with XMLbeans

2007-04-13 Thread Johannes . Kjellgren
Hi!You seem to have the same problem I have. Is it correct that the wsdl document is supposed to be available when the param  true is set? If so something seems to be wrong.I refer to my earlier post:http://www.nabble.com/Exposing-wsdl-using-xmlbeans-as-data-binding-framwork-t3558475.htmlI never got any response on my post so I might not have been clear enough./Johannes
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis2 and Maven

2007-04-13 Thread Thilina Gunarathne

I'm also a novice level user of Maven2 (still pretty much appreciate maven1)..
May be the pom.xml's in following locations will help you..

http://wso2.org/repos/wso2/trunk/wsas/java/
http://wso2.org/repos/wso2/trunk/esb/java/
http://svn.apache.org/repos/asf/webservices/rampart/trunk/java/

~Thilina

On 4/13/07, lightbulb432 <[EMAIL PROTECTED]> wrote:


I tried the repositories you specified, and came across the problems I've
noted in a post on the Maven forum. If you could please take a look at it
and see where I'm going wrong, it'd be greatly appreciated. Apparently I
need a "source" repository that contains a pom.xml...

http://www.nabble.com/forum/ViewPost.jtp?post=9964022&framed=y&skin=177

Perhaps you might have a sample pom.xml of a file used in a project that
would correctly bring in the Axis2 jars and all its dependencies?

Thanks so much.



Thilina Gunarathne wrote:
>
>> You can use maven2 safely by pointing to the axis2 maven2 repo..[1]..
> Please use this repo
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/axis2/
>
> --
> Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/Axis2-and-Maven-tf3567687.html#a9979680
Sent from the Axis - User mailing list archive at Nabble.com.


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





--
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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



Re: [AXIS2] How to deploy service without .aar

2007-04-13 Thread Martin Gainty

Good Morning Jackie-

In your /WEB-INF/web.xml Please display your url-mapping for the 
servlet-mapping you have for servlet-name of AxisServlet
for example my url-pattern for servlet-name of AxisServlet specifies only 
the services folder e.g.

  
   AxisServlet
   /services/*
   

Thanks
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Jacky Rymasz-Maillot" <[EMAIL PROTECTED]>

To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, April 13, 2007 9:18 AM
Subject: RE: [AXIS2] How to deploy service without .aar


Thank you :)
Just another question concerning your response:
What should be "MyServices"? Can it be anything? Or is it defined somewhere?

Jack

-Message d'origine-
De : Davanum Srinivas [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 13 avril 2007 14:49
À : [EMAIL PROTECTED]
Cc : [EMAIL PROTECTED]
Objet : Re: [AXIS2] How to deploy service without .aar

Here's how it should be if you have entries for all 3 services in the
same services.xml.

WEB-INF
  |
  +-- services
|
+-- MyServices
|
+-- META-INF
   |
   + services.xml
   |
   + ServiceName1.wsdl
   |
   + ServiceName2.wsdl
   |
   + ServiceName3.wsdl



On 4/13/07, Jacky Rymasz-Maillot <[EMAIL PROTECTED]> wrote:

I have a question about the same topic but concerning multiple services.
I don't want to use .aar and I managed to generate Java classes for all my 
services with Axis2 1.2RC.

It generated me one services.xml and several .wsdl (one per service)

What should look like the repository tree in services?
Should it look like some thing like that?:

WEB-INF
  |__services
|_ services.xml
| 
|_ServiceName1

|_ META-INF
   |_ ServiceName1.wsdl 
|_ServiceName2

|_ META-INF
   |_ ServiceName2.wsdl
|_ServiceName3
|_ META-INF
   |_ ServiceName3.wsdl
|_etc

Thanks for your help to all... all is very useful ;)

Jack


-Message d'origine-
De: Masin, Valerie [mailto:[EMAIL PROTECTED]
Envoyé: mercredi 11 avril 2007 23:07
À: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet: RE: [AXIS2] How to deploy service without .aar

Voila, you have answered my question. I didn't realize I needed to
create a directory with my servicename in the services directory with
the meta-inf under it. Thanks

-Original Message-
From: Alistair Young [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 11, 2007 4:07 PM
To: [EMAIL PROTECTED]
Subject: Re: [AXIS2] How to deploy service without .aar

I did this today. I didn't use an aar. Instead I put all the classes in
WEB-INF/classes, including schemaorg_apache_xmlbeans from resources. The
only thing I have in WEB-INF/services/ServiceName is:

META-INF/
Service.wsdl
services.xml

I tried putting some of the classes in Axis2 and the rest in
WEB-INF/classes but the classloader hierarchy (Axis2 = URLClassLoader,
Tomcat=WebappClassLoader) caused real problems along the lines you have
reported.

Put ALL classes in WEB-INF/classes. Message receivers, service skeletons
etc. and all clases from the resources directory.

hope this helps,

Alistair


--
mov eax,1
mov ebx,0
int 80h

> Hello,
> I need to have some of my .class files live in the web-inf/classes
> directory since other non-axis apps use them. I would prefer to not
> have to put some of them there and the rest in the .aar so I would
> like to put them all in web-inf/classes. I tried not using the .aar at

> all but couldn't figure out how to let axis know what service was
supported.
> Then I tried putting only the manifest and services.xml in the .aar
> and having the rest be in web-inf/classes. When I do this the
> webserver complains on startup that it can't find my MessageReceiver
> for each service in services.xml. (Strangely, though, despite these
> errors I am able to access my service.)
>
> What is the right way to deploy an axis2 app without an .aar.
> And while I am on the subject, since there are a lot of axis files
> that need to be deployed into one's webapp, what is the best approach
> to combine one's own files with the axis files into a single war?
> Should I just add my files to the axis war?
>
> Invalid service  docHarborWebServices.aar due to Processing Operations

> 

[Axis2] How to add outbound headers?

2007-04-13 Thread José Antonio Sánchez

Hello, I'm developing a service and I have to return some elements in
the header when some operations of my service are invoked but I don't
know how to do this. For the incoming message I can use
MessageContext.getCurrentMessageContext().getEnvelope() but, how do I
add a header to a response?

--
Saludos.
José Antonio Sánchez

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



Re: Axis2 and Maven

2007-04-13 Thread lightbulb432

I tried the repositories you specified, and came across the problems I've
noted in a post on the Maven forum. If you could please take a look at it
and see where I'm going wrong, it'd be greatly appreciated. Apparently I
need a "source" repository that contains a pom.xml...

http://www.nabble.com/forum/ViewPost.jtp?post=9964022&framed=y&skin=177

Perhaps you might have a sample pom.xml of a file used in a project that
would correctly bring in the Axis2 jars and all its dependencies?

Thanks so much.



Thilina Gunarathne wrote:
> 
>> You can use maven2 safely by pointing to the axis2 maven2 repo..[1]..
> Please use this repo
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/axis2/
> 
> -- 
> Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axis2-and-Maven-tf3567687.html#a9979680
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: [AXIS2] How to deploy service without .aar

2007-04-13 Thread Davanum Srinivas

Yes, it can be anything you want.

On 4/13/07, Jacky Rymasz-Maillot <[EMAIL PROTECTED]> wrote:

Thank you :)
Just another question concerning your response:
What should be "MyServices"? Can it be anything? Or is it defined somewhere?

Jack

-Message d'origine-
De: Davanum Srinivas [mailto:[EMAIL PROTECTED]
Envoyé: vendredi 13 avril 2007 14:49
À: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Objet: Re: [AXIS2] How to deploy service without .aar

Here's how it should be if you have entries for all 3 services in the
same services.xml.

WEB-INF
   |
   +-- services
 |
 +-- MyServices
 |
 +-- META-INF
|
+ services.xml
|
+ ServiceName1.wsdl
|
+ ServiceName2.wsdl
|
+ ServiceName3.wsdl



On 4/13/07, Jacky Rymasz-Maillot <[EMAIL PROTECTED]> wrote:
> I have a question about the same topic but concerning multiple services.
> I don't want to use .aar and I managed to generate Java classes for all my 
services with Axis2 1.2RC.
> It generated me one services.xml and several .wsdl (one per service)
>
> What should look like the repository tree in services?
> Should it look like some thing like that?:
>
> WEB-INF
>   |__services
> |_ services.xml
> | 
  |_ServiceName1
> |_ META-INF
>|_ ServiceName1.wsdl   
  |_ServiceName2
> |_ META-INF
>|_ ServiceName2.wsdl
> |_ServiceName3
> |_ META-INF
>|_ ServiceName3.wsdl
> |_etc
>
> Thanks for your help to all... all is very useful ;)
>
> Jack
>
>
> -Message d'origine-
> De: Masin, Valerie [mailto:[EMAIL PROTECTED]
> Envoyé: mercredi 11 avril 2007 23:07
> À: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Objet: RE: [AXIS2] How to deploy service without .aar
>
> Voila, you have answered my question. I didn't realize I needed to
> create a directory with my servicename in the services directory with
> the meta-inf under it. Thanks
>
> -Original Message-
> From: Alistair Young [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 11, 2007 4:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [AXIS2] How to deploy service without .aar
>
> I did this today. I didn't use an aar. Instead I put all the classes in
> WEB-INF/classes, including schemaorg_apache_xmlbeans from resources. The
> only thing I have in WEB-INF/services/ServiceName is:
>
> META-INF/
> Service.wsdl
> services.xml
>
> I tried putting some of the classes in Axis2 and the rest in
> WEB-INF/classes but the classloader hierarchy (Axis2 = URLClassLoader,
> Tomcat=WebappClassLoader) caused real problems along the lines you have
> reported.
>
> Put ALL classes in WEB-INF/classes. Message receivers, service skeletons
> etc. and all clases from the resources directory.
>
> hope this helps,
>
> Alistair
>
>
> --
> mov eax,1
> mov ebx,0
> int 80h
>
> > Hello,
> > I need to have some of my .class files live in the web-inf/classes
> > directory since other non-axis apps use them. I would prefer to not
> > have to put some of them there and the rest in the .aar so I would
> > like to put them all in web-inf/classes. I tried not using the .aar at
>
> > all but couldn't figure out how to let axis know what service was
> supported.
> > Then I tried putting only the manifest and services.xml in the .aar
> > and having the rest be in web-inf/classes. When I do this the
> > webserver complains on startup that it can't find my MessageReceiver
> > for each service in services.xml. (Strangely, though, despite these
> > errors I am able to access my service.)
> >
> > What is the right way to deploy an axis2 app without an .aar.
> > And while I am on the subject, since there are a lot of axis files
> > that need to be deployed into one's webapp, what is the best approach
> > to combine one's own files with the axis files into a single war?
> > Should I just add my files to the axis war?
> >
> > Invalid service  docHarborWebServices.aar due to Processing Operations
>
> > Modules ClassNotFoundException Error in loading message receiver
> > com.docharbor.webservices.DocHarborServicesMessageReceiverInOut;
> > nested exception is:
> >  java.lang.ClassNotFoundException:
> > com.docharbor.webservices.DocHarborServicesMessageReceiverInOut;
> >
> >
> > Thanks, Valerie
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> 

Re: Using wsdl with XMLbeans

2007-04-13 Thread Davanum Srinivas

That should work! please try the nightly build if you still see the
same problem, please log a jira bug.

-- dims

On 4/13/07, Neil Blue <[EMAIL PROTECTED]> wrote:

Sure, here it is:

  

  http://localhost:8080/axis2/services/SessionService";>

  



  http://localhost:8080/axis2/services/SessionService";>

  

  


On Friday 13 April 2007 14:12, Davanum Srinivas wrote:
> Can you post the service element at the bottom of your SessionService.wsdl?
>
> On 4/13/07, Neil Blue <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I have built a service using xmlbeans. I would like to display the
> > generated wsdl file with {service}?wsdl.
> >
> > I have added the use original wsdl parameter to services:
> >
> > 
> >   
> > ...
> > true
> > ...
> >   
> > 
> >
> > I have then put the wsdl file in:
> > webapps/axis2/WEB-INF/services/SessionService/META-INF/SessionService.wsd
> >l
> >
> > The service names match as they were generated with the wsdl3code tool.
> >
> > Please can anyone tell me what I am doing wrong.
> >
> > Thanks
> > Neil
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]

--
Neil Blue
Software Architect,
Telephone: +44 (0)1223 420 414
Mobile: +44 (0)7973 183 010

Join us at the 1Spatial Conference 2007: 'Fit For Purpose'
http://www.1spatial.com/conference

1Spatial Group Limited. Registered in England No. 4785688 VAT, Reg. No.
816329821
Registered Office: Cavendish House, 6 Cambridge Business Park, Cambridge,
CB4 0WZ, UK

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





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

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



RE: [AXIS2] How to deploy service without .aar

2007-04-13 Thread Jacky Rymasz-Maillot
Thank you :)
Just another question concerning your response:
What should be "MyServices"? Can it be anything? Or is it defined somewhere?

Jack

-Message d'origine-
De : Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 13 avril 2007 14:49
À : [EMAIL PROTECTED]
Cc : [EMAIL PROTECTED]
Objet : Re: [AXIS2] How to deploy service without .aar

Here's how it should be if you have entries for all 3 services in the
same services.xml.

WEB-INF
   |
   +-- services
 |
 +-- MyServices
 |
 +-- META-INF
|
+ services.xml
|
+ ServiceName1.wsdl
|
+ ServiceName2.wsdl
|
+ ServiceName3.wsdl



On 4/13/07, Jacky Rymasz-Maillot <[EMAIL PROTECTED]> wrote:
> I have a question about the same topic but concerning multiple services.
> I don't want to use .aar and I managed to generate Java classes for all my 
> services with Axis2 1.2RC.
> It generated me one services.xml and several .wsdl (one per service)
>
> What should look like the repository tree in services?
> Should it look like some thing like that?:
>
> WEB-INF
>   |__services
> |_ services.xml
> | 
>   |_ServiceName1
> |_ META-INF
>|_ ServiceName1.wsdl   
>   |_ServiceName2
> |_ META-INF
>|_ ServiceName2.wsdl
> |_ServiceName3
> |_ META-INF
>|_ ServiceName3.wsdl
> |_etc
>
> Thanks for your help to all... all is very useful ;)
>
> Jack
>
>
> -Message d'origine-
> De: Masin, Valerie [mailto:[EMAIL PROTECTED]
> Envoyé: mercredi 11 avril 2007 23:07
> À: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Objet: RE: [AXIS2] How to deploy service without .aar
>
> Voila, you have answered my question. I didn't realize I needed to
> create a directory with my servicename in the services directory with
> the meta-inf under it. Thanks
>
> -Original Message-
> From: Alistair Young [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 11, 2007 4:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [AXIS2] How to deploy service without .aar
>
> I did this today. I didn't use an aar. Instead I put all the classes in
> WEB-INF/classes, including schemaorg_apache_xmlbeans from resources. The
> only thing I have in WEB-INF/services/ServiceName is:
>
> META-INF/
> Service.wsdl
> services.xml
>
> I tried putting some of the classes in Axis2 and the rest in
> WEB-INF/classes but the classloader hierarchy (Axis2 = URLClassLoader,
> Tomcat=WebappClassLoader) caused real problems along the lines you have
> reported.
>
> Put ALL classes in WEB-INF/classes. Message receivers, service skeletons
> etc. and all clases from the resources directory.
>
> hope this helps,
>
> Alistair
>
>
> --
> mov eax,1
> mov ebx,0
> int 80h
>
> > Hello,
> > I need to have some of my .class files live in the web-inf/classes
> > directory since other non-axis apps use them. I would prefer to not
> > have to put some of them there and the rest in the .aar so I would
> > like to put them all in web-inf/classes. I tried not using the .aar at
>
> > all but couldn't figure out how to let axis know what service was
> supported.
> > Then I tried putting only the manifest and services.xml in the .aar
> > and having the rest be in web-inf/classes. When I do this the
> > webserver complains on startup that it can't find my MessageReceiver
> > for each service in services.xml. (Strangely, though, despite these
> > errors I am able to access my service.)
> >
> > What is the right way to deploy an axis2 app without an .aar.
> > And while I am on the subject, since there are a lot of axis files
> > that need to be deployed into one's webapp, what is the best approach
> > to combine one's own files with the axis files into a single war?
> > Should I just add my files to the axis war?
> >
> > Invalid service  docHarborWebServices.aar due to Processing Operations
>
> > Modules ClassNotFoundException Error in loading message receiver
> > com.docharbor.webservices.DocHarborServicesMessageReceiverInOut;
> > nested exception is:
> >  java.lang.ClassNotFoundException:
> > com.docharbor.webservices.DocHarborServicesMessageReceiverInOut;
> >
> >
> > Thanks, Valerie
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PR

Re: Using wsdl with XMLbeans

2007-04-13 Thread Neil Blue
Sure, here it is:

  

  http://localhost:8080/axis2/services/SessionService";>

  



  http://localhost:8080/axis2/services/SessionService";>

  

  


On Friday 13 April 2007 14:12, Davanum Srinivas wrote:
> Can you post the service element at the bottom of your SessionService.wsdl?
>
> On 4/13/07, Neil Blue <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I have built a service using xmlbeans. I would like to display the
> > generated wsdl file with {service}?wsdl.
> >
> > I have added the use original wsdl parameter to services:
> >
> > 
> >   
> > ...
> > true
> > ...
> >   
> > 
> >
> > I have then put the wsdl file in:
> > webapps/axis2/WEB-INF/services/SessionService/META-INF/SessionService.wsd
> >l
> >
> > The service names match as they were generated with the wsdl3code tool.
> >
> > Please can anyone tell me what I am doing wrong.
> >
> > Thanks
> > Neil
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Neil Blue
Software Architect,
Telephone: +44 (0)1223 420 414
Mobile: +44 (0)7973 183 010

Join us at the 1Spatial Conference 2007: 'Fit For Purpose'
http://www.1spatial.com/conference

1Spatial Group Limited. Registered in England No. 4785688 VAT, Reg. No.
816329821
Registered Office: Cavendish House, 6 Cambridge Business Park, Cambridge,
CB4 0WZ, UK

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



Re: Using wsdl with XMLbeans

2007-04-13 Thread Davanum Srinivas

Can you post the service element at the bottom of your SessionService.wsdl?

On 4/13/07, Neil Blue <[EMAIL PROTECTED]> wrote:

Hello,

I have built a service using xmlbeans. I would like to display the generated
wsdl file with {service}?wsdl.

I have added the use original wsdl parameter to services:


  
...
true
...
  


I have then put the wsdl file in:
webapps/axis2/WEB-INF/services/SessionService/META-INF/SessionService.wsdl

The service names match as they were generated with the wsdl3code tool.

Please can anyone tell me what I am doing wrong.

Thanks
Neil

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





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

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



Using wsdl with XMLbeans

2007-04-13 Thread Neil Blue
Hello,

I have built a service using xmlbeans. I would like to display the generated 
wsdl file with {service}?wsdl.

I have added the use original wsdl parameter to services:


  
...
true
...
  


I have then put the wsdl file in:
webapps/axis2/WEB-INF/services/SessionService/META-INF/SessionService.wsdl

The service names match as they were generated with the wsdl3code tool.

Please can anyone tell me what I am doing wrong.

Thanks
Neil

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



Re: [Axis2] Problems with Axis2 and Windows 2000

2007-04-13 Thread [EMAIL PROTECTED]
Thank
you very much - it works!Best regards,Guido
-Original Message-
Date: Fri, 13 Apr 2007 14:53:29 +0200
Subject: Re: [Axis2] Problems with Axis2 and Windows 2000
From: "Davanum Srinivas" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]

Please edit the bat file and use the following. where you need to
replace "c:\axis2\lib" with your path and replace
"org.apache.axis2.xxx.yyy.zzz" with the actual class mentioned
in the
bat file.

java -Djava.ext.dirs=c:\axis2\lib org.apache.axis2.xxx.yyy.zzz

thanks,
dims

On 4/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> I have searched the mail archive many times now and found many
similar mail
> posts but always without any practicle solution.
>
> The problem is simple: Almost ANY *.bat from the Axis2 bundle does
not work
> due to limitations of W2k variable lengths in batch-files. I.e.,
the
> classpath for the java-call (created by a for-statement) is cut and
a
> NoClassDefFoundError occurs!
>
> Even the hint to jar all %AXIS2_HOME%\lib\*.jar into a single
Axis2.jar did
> not work (even with proper manifest entries).
>
> So, is there a solution for Windows 2000? Or do I have to migrate
to XP? On
> Windows XP everything works fine (but my company laptop still has
W2k
> installed and migration would be too time-consuming for me at the
moment).
>
> Thank you very much for a working hint!
>
> Best regards,
> Guido Adolphi
>
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

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





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



Re: [Axis2] Problems with Axis2 and Windows 2000

2007-04-13 Thread Davanum Srinivas

Please edit the bat file and use the following. where you need to
replace "c:\axis2\lib" with your path and replace
"org.apache.axis2.xxx.yyy.zzz" with the actual class mentioned in the
bat file.

java -Djava.ext.dirs=c:\axis2\lib org.apache.axis2.xxx.yyy.zzz

thanks,
dims

On 4/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hello,

I have searched the mail archive many times now and found many similar mail
posts but always without any practicle solution.

The problem is simple: Almost ANY *.bat from the Axis2 bundle does not work
due to limitations of W2k variable lengths in batch-files. I.e., the
classpath for the java-call (created by a for-statement) is cut and a
NoClassDefFoundError occurs!

Even the hint to jar all %AXIS2_HOME%\lib\*.jar into a single Axis2.jar did
not work (even with proper manifest entries).

So, is there a solution for Windows 2000? Or do I have to migrate to XP? On
Windows XP everything works fine (but my company laptop still has W2k
installed and migration would be too time-consuming for me at the moment).

Thank you very much for a working hint!

Best regards,
Guido Adolphi

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



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

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



Re: [AXIS2] How to deploy service without .aar

2007-04-13 Thread Davanum Srinivas

Here's how it should be if you have entries for all 3 services in the
same services.xml.

WEB-INF
  |
  +-- services
|
+-- MyServices
|
+-- META-INF
   |
   + services.xml
   |
   + ServiceName1.wsdl
   |
   + ServiceName2.wsdl
   |
   + ServiceName3.wsdl



On 4/13/07, Jacky Rymasz-Maillot <[EMAIL PROTECTED]> wrote:

I have a question about the same topic but concerning multiple services.
I don't want to use .aar and I managed to generate Java classes for all my 
services with Axis2 1.2RC.
It generated me one services.xml and several .wsdl (one per service)

What should look like the repository tree in services?
Should it look like some thing like that?:

WEB-INF
  |__services
|_ services.xml
|   
|_ServiceName1
|_ META-INF
   |_ ServiceName1.wsdl 
|_ServiceName2
|_ META-INF
   |_ ServiceName2.wsdl
|_ServiceName3
|_ META-INF
   |_ ServiceName3.wsdl
|_etc

Thanks for your help to all... all is very useful ;)

Jack


-Message d'origine-
De: Masin, Valerie [mailto:[EMAIL PROTECTED]
Envoyé: mercredi 11 avril 2007 23:07
À: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet: RE: [AXIS2] How to deploy service without .aar

Voila, you have answered my question. I didn't realize I needed to
create a directory with my servicename in the services directory with
the meta-inf under it. Thanks

-Original Message-
From: Alistair Young [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 11, 2007 4:07 PM
To: [EMAIL PROTECTED]
Subject: Re: [AXIS2] How to deploy service without .aar

I did this today. I didn't use an aar. Instead I put all the classes in
WEB-INF/classes, including schemaorg_apache_xmlbeans from resources. The
only thing I have in WEB-INF/services/ServiceName is:

META-INF/
Service.wsdl
services.xml

I tried putting some of the classes in Axis2 and the rest in
WEB-INF/classes but the classloader hierarchy (Axis2 = URLClassLoader,
Tomcat=WebappClassLoader) caused real problems along the lines you have
reported.

Put ALL classes in WEB-INF/classes. Message receivers, service skeletons
etc. and all clases from the resources directory.

hope this helps,

Alistair


--
mov eax,1
mov ebx,0
int 80h

> Hello,
> I need to have some of my .class files live in the web-inf/classes
> directory since other non-axis apps use them. I would prefer to not
> have to put some of them there and the rest in the .aar so I would
> like to put them all in web-inf/classes. I tried not using the .aar at

> all but couldn't figure out how to let axis know what service was
supported.
> Then I tried putting only the manifest and services.xml in the .aar
> and having the rest be in web-inf/classes. When I do this the
> webserver complains on startup that it can't find my MessageReceiver
> for each service in services.xml. (Strangely, though, despite these
> errors I am able to access my service.)
>
> What is the right way to deploy an axis2 app without an .aar.
> And while I am on the subject, since there are a lot of axis files
> that need to be deployed into one's webapp, what is the best approach
> to combine one's own files with the axis files into a single war?
> Should I just add my files to the axis war?
>
> Invalid service  docHarborWebServices.aar due to Processing Operations

> Modules ClassNotFoundException Error in loading message receiver
> com.docharbor.webservices.DocHarborServicesMessageReceiverInOut;
> nested exception is:
>  java.lang.ClassNotFoundException:
> com.docharbor.webservices.DocHarborServicesMessageReceiverInOut;
>
>
> Thanks, Valerie
>


-
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]





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

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



RE: [AXIS2] How to deploy service without .aar

2007-04-13 Thread Jacky Rymasz-Maillot
I have a question about the same topic but concerning multiple services.
I don't want to use .aar and I managed to generate Java classes for all my 
services with Axis2 1.2RC.
It generated me one services.xml and several .wsdl (one per service)

What should look like the repository tree in services?
Should it look like some thing like that?:

WEB-INF
  |__services
|_ services.xml
|   
|_ServiceName1
|_ META-INF
   |_ ServiceName1.wsdl 
|_ServiceName2
|_ META-INF
   |_ ServiceName2.wsdl
|_ServiceName3
|_ META-INF
   |_ ServiceName3.wsdl
|_etc

Thanks for your help to all... all is very useful ;)

Jack


-Message d'origine-
De : Masin, Valerie [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 11 avril 2007 23:07
À : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : RE: [AXIS2] How to deploy service without .aar

Voila, you have answered my question. I didn't realize I needed to
create a directory with my servicename in the services directory with
the meta-inf under it. Thanks

-Original Message-
From: Alistair Young [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 11, 2007 4:07 PM
To: [EMAIL PROTECTED]
Subject: Re: [AXIS2] How to deploy service without .aar

I did this today. I didn't use an aar. Instead I put all the classes in
WEB-INF/classes, including schemaorg_apache_xmlbeans from resources. The
only thing I have in WEB-INF/services/ServiceName is:

META-INF/
Service.wsdl
services.xml

I tried putting some of the classes in Axis2 and the rest in
WEB-INF/classes but the classloader hierarchy (Axis2 = URLClassLoader,
Tomcat=WebappClassLoader) caused real problems along the lines you have
reported.

Put ALL classes in WEB-INF/classes. Message receivers, service skeletons
etc. and all clases from the resources directory.

hope this helps,

Alistair


--
mov eax,1
mov ebx,0
int 80h

> Hello,
> I need to have some of my .class files live in the web-inf/classes 
> directory since other non-axis apps use them. I would prefer to not 
> have to put some of them there and the rest in the .aar so I would 
> like to put them all in web-inf/classes. I tried not using the .aar at

> all but couldn't figure out how to let axis know what service was
supported.
> Then I tried putting only the manifest and services.xml in the .aar 
> and having the rest be in web-inf/classes. When I do this the 
> webserver complains on startup that it can't find my MessageReceiver 
> for each service in services.xml. (Strangely, though, despite these 
> errors I am able to access my service.)
>
> What is the right way to deploy an axis2 app without an .aar.
> And while I am on the subject, since there are a lot of axis files 
> that need to be deployed into one's webapp, what is the best approach 
> to combine one's own files with the axis files into a single war? 
> Should I just add my files to the axis war?
>
> Invalid service  docHarborWebServices.aar due to Processing Operations

> Modules ClassNotFoundException Error in loading message receiver 
> com.docharbor.webservices.DocHarborServicesMessageReceiverInOut;
> nested exception is:
>  java.lang.ClassNotFoundException:
> com.docharbor.webservices.DocHarborServicesMessageReceiverInOut;
>
>
> Thanks, Valerie
>


-
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]



Axis2 1.2RC1 WSA mustUnderstand attribut to true

2007-04-13 Thread Jerome Camilleri

Hi,

Does someone try and arrived to used WSAddressing with attribut 
mustUnderstand to true.


I have an exception on the server side :
SEVERE: Exception :

org.apache.axis2.AxisFault: Must Understand check failed soapenv : 
MustUnderstand
   at 
org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:112)
   at 
org.apache.axis2.engine.AxisEngine.resumeReceive(AxisEngine.java:551)
   at 
org.apache.sandesha2.workers.InvokerWorker.run(InvokerWorker.java:114)
   at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
   at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)

   at java.lang.Thread.run(Thread.java:595)
Apr 12, 2007 5:08:03 PM org.apache.sandesha2.workers.InvokerWorker run

Regards

Jérôme

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



Re: Problems with Inheritance

2007-04-13 Thread Stefano Emilio Campanini

On 4/13/07, Hackl Ingo <[EMAIL PROTECTED]> wrote:

Hi,


Hi, Also I have seen that the tool dosen't work with abtract classes...

Bye



I have a problem when I create the wsdl-file for the following class
hierachy.

public abstract class WsSetPointDto  implements java.io.Serializable
{
...
}

public abstract class WsSetPointDtoV1 extends WsSetPointDto implements
Serializable {
  private String typeNumber;
  private String machineStructureName;

...
}

public abstract class WsSetPointMachineStructureComponentDtoV1 extends
WsSetPointDtoV1 implements Serializable
{
  private int cycleTime;
  private float quantityPerCycle;
  private float maxNotOk;
  private float availability;
  private double desiredQuantityPerHour;
  private int timePerQuantity;

...
}

public class WsSetPointBasicSystemDtoV1 extends
WsSetPointMachineStructureComponentDtoV1 implements Serializable { }

The generated wsdl-file looks like the following:

   

   
   

 
  
 

   
   

 
  
 

   
   

 
  
 

   
  

So the -tags for all attributes are missing. This error
only occurs if the class hierarchie has more than two levels. Is there a
general restriction that class hierachies can only have two levels or is
this a bug ? Is there a work around for this problem ?

I can't really believe that no one else has expirienced this problem.

Thanks

Ingo





-
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]



Problem with hot deployed service - RPCServiceClient, when having null arrays as properties of arguments / return types (or in their tree)

2007-04-13 Thread Nicolae Marasoiu
Hi;
 
I have the following questions, I hope this is not too verbose:
 
1. NullPointerException on (de)serializing array bean property and the tweak
found to work around this by manually changing the domain object(s) with
such a property (uh).
 
So I run the axis2-1.1.1\samples\pojo\src\sample\addressbook Axis 2 example,
with RPC client and modified Entry to contain a Entry[] property.
 
So this works, pre-initializing arrays in type (domain) objects like this:
 
//staticly cached empty arrays, one per type
private static final Entry[] EMPTY_ENTRIES = new Entry[0];
//preinit
private  Entry entries[] = EMPTY_ENTRIES;
 
If I don't do this, the following NPE occurs both on client XML generation
and on the server one:
 
Client:

org.apache.axiom.om.OMException: java.lang.NullPointerException
 at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:194)
 at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:318)
 at
org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:632)
 at
org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:599)
 at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:117)
 at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:249)
 at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:202)
 at
org.apache.axis2.client.ServiceClient.fillSOAPEnvelope(ServiceClient.java:69
8)
 at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:450)
 at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:380)
 at
org.apache.axis2.rpc.client.RPCServiceClient.invokeRobust(RPCServiceClient.j
ava:131)
 at
sample.addressbook.rpcclient.AddressBookRPCClient.main(AddressBookRPCClient.
java:76)
Caused by: java.lang.NullPointerException
 at
org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:135)
 at
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProp
erties(ADBXMLStreamReaderImpl.java:948)
 at
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXML
StreamReaderImpl.java:821)
 at
org.apache.axis2.databinding.utils.reader.WrappingXMLStreamReader.next(Wrapp
ingXMLStreamReader.java:45)
 at
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXML
StreamReaderImpl.java:824)
 at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
 at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:111)
 ... 11 more

Server (of course, after one tweaks the client with above workaround):
 
[4/13/07 11:09:14:321 GMT] 0036 RPCMessageRec E   Exception occurred
while trying to invoke service method findEntry
[4/13/07 11:09:14:321 GMT] 0036 RPCMessageRec E   TRAS0014I: The
following exception was logged:
org.apache.axiom.om.OMException: java.lang.NullPointerException
 at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:194)
 at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:318)
 at
org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:632)
 at
org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:599)
 at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:117)
 at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:249)
 at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:202)
 at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:97)
 at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
 at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMes
sageReceiver.java:136)
 at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abstract
InOutSyncMessageReceiver.java:39)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
 at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
TPTransportUtils.java:328)
 at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1
212)
 at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1
173)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.
java:92)
 at CatchFilter.doFilter(CatchFilter.java:21)
 at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstance
Wrapper.java:142)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.
java:77)
 at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.
java:626)
 at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServl
etWrapper.java:80)
 at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
 at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:7

[Axis2] Problems with Axis2 and Windows 2000

2007-04-13 Thread [EMAIL PROTECTED]
Hello,I have searched the mail archive many times now and found many
similar mail posts but always without any practicle solution.The problem is simple: Almost ANY *.bat from the Axis2 bundle does not
work due to limitations of W2k variable lengths in batch-files. I.e.,
the classpath for the java-call (created by a for-statement) is cut and
a NoClassDefFoundError occurs!Even the hint to jar all
%AXIS2_HOME%\lib\*.jar into a single Axis2.jar did not work (even with
proper manifest entries).So, is there a solution for Windows
2000? Or do I have to migrate to XP? On Windows XP everything works fine
(but my company laptop still has W2k installed and migration would be
too time-consuming for me at the moment).Thank you very much
for a working hint!Best regards,Guido Adolphi 



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



Problems with Axis2 and Windows 2000

2007-04-13 Thread [EMAIL PROTECTED]
Hello,I have searched the mail archive many times
now and found many similar mail posts but always without any practicle
solution.The problem is simple: Almost ANY *.bat from the
Axis2 bundle does not work due to limitations of W2k variable lengths in
batch-files. I.e., the classpath for the java-call (created by a
for-statement) is cut and a NoClassDefFoundError occurs!Even
the hint to jar all %AXIS2_HOME%\lib\*.jar into a single Axis2.jar did
not work (even with proper manifest entries).So, is there a
solution for Windows 2000? Or do I have to migrate to XP? On Windows XP
everything works fine (but my company laptop still has W2k installed and
migration would be too time-consuming for me at the moment).Thank you very much for a working hint!Best regards,Guido Adolphi






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



Re: Axis2 and Maven

2007-04-13 Thread Thilina Gunarathne

You can use maven2 safely by pointing to the axis2 maven2 repo..[1]..

Please use this repo
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/axis2/

--
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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



Re: Axis2 and existing client code

2007-04-13 Thread Thilina Gunarathne

I've written web services using an older version of Axis, 1.2, and I am
wondering if the same clients can access the same duplicate web services
written using Axis2.

That'll depend on the way you implemented the service.. If you
followed a contract fisrt approach (wsdl first) then yes it's
possible...  or in other words if the abstract part of Axis2 service
wsdl is identical to the axis1 service wsdl..

Things can be bit tricky if you followed a POJO approach...

My clients are in php, python, and java.  I am also
wondering if other clients besides java can be written to utilize the new
Axis2 features -

EchoBlockingClient
EchoNonBlockingClient
EchoNonBlockingDualClient
EchoBlockingDualClient

Above are features provided by the Axis2 client API.. They do not have
any ties with the service implementation...Supporting the above
features will depend on whether your ws-client in php or python
supports them...
AFAIK WSO2 WSF/PHP[1] supports the above...

thanks,
Thilina
[1]http://wso2.org/projects/wsf/php


Thank you,

Jennifer





 
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.



--
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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



Re: Axis2 and Maven

2007-04-13 Thread Thilina Gunarathne

AFAIK 1.2 release will also be done using maven1 build. But we will
upload the artifacts to maven2 repository too...


Is Maven2 support expected to be added anytime soon?

It's there, but not 100% complete...

If no, is there any way for this to be compatible with the rest of my
project that uses Maven2?

You can use maven2 safely by pointing to the axis2 maven2 repo..[1]..
I know quite a number of axis2 dependent maven2 build projects like
Apache Synapse, Apache Rampart, WSO2 WSAS etc

Thanks,
Thilina

[1] http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/axis2/
--
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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



Re: Delivering Swing component?

2007-04-13 Thread Philipp Leitner
I think what Anne wanted to say was not so much that it is not 
/possible/ to use SOAP to exchange Swing components (I see no general 
problem with that), but that it frankly is against the idea of Web 
Services to mis-use it like a distributed object middleware. There might 
be much better (read: more performant, easier) ways to do what you want 
to do without SOAP.


/philipp

Ross Allard schrieb:
Thanks Anne, 

That seems rather harsh.  I have in fact delivered Java objects via SOAP and Axis, albeit simple ones.  And the Axis doc mentioned the ability to exchange "arbitrary" Java objects.  However, I realize a Swing object is a bit of a stretch.  I was just curious.  Now on to Plan B. 


Ross

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 12, 2007 8:39 PM

To: [EMAIL PROTECTED]
Subject: Re: Delivering Swing component?

SOAP does not "deliver objects". It exchanges XML messages. Don't think of SOAP 
as a distributed object system.

Anne

On 4/12/07, Ross Allard <[EMAIL PROTECTED]> wrote:

Has anyone created a service that delivers a Swing component (e.g. Jpanel)?

Thanks,
Ross

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




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


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


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