Custom module in serviceGroup

2008-08-27 Thread Florian Astl
Hi all, 

In the services.xml of my (axis2 1.2)webservice i have defined a servicegroup 
with two services. one named myserviceDefault and one named myserviceSecure. 
They're both using the same webservice-implementation. 

for the second service i've enabled rampart(1.2) with usernametoken and 
timestamp. the result is that i now can access the first service 
(myserviceDefault ) without security header and the second service 
(myserviceSecure) only with usernametoken & timestamp in the soap-message - 
just as i expected.

i now have developed my own simple module which checks the ip-addess in the 
incomming soap-message and denies access to the serviceoperation if necessary.
The inflow order phase in the module.xml is set to 

When i enable this module in the second service (myserviceSecure) the first 
service is affected too. Axis-Administration is saying that my module is only 
engaged for myserviceSecure but when trying to access the first service the 
ip-address of the soap-message is evaluated by the module.

Another thing is that I can't figure out how to configure the module separately 
for each service.
In final stage I want two files containing ip-addresses. one for the module in 
the first service and one for the module in the second service.

thanks four your help, 

Florian
-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

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



RE: changing the Http request URI

2008-08-27 Thread Shehan Simen
You can put many aar files in to the WEB-INF\services folder. I am doing this 
at the moment.
So you can have something like this:
http://url:18080/NameOfTheProject/services/ServiceName1
http://url:18080/NameOfTheProject/services/ServiceName2
http://url:18080/NameOfTheProject/services/ServiceName3

I don't understand the problem you have.


From: pierre betz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 27 August 2008 1:05 PM
To: axis-user@ws.apache.org
Subject: Re: changing the Http request URI

Hi,
htank you for the answers.

In fact, I have 3 projects, so 3 aar files, which need to be deployed in some 
folders like : http://url:18080/NameOfTheProject/services/ServiceName

I think there is no possibility to do something in this case. Ok, I can rename 
the axis2 directory, and use some parameters in the axis2 configuration to 
change the axis2 root folder name and the services name, but it will do that 
for every aar file deployed.

Anyway, thanks maybe it will help someone else :)



Re: changing the Http request URI

2008-08-27 Thread pierre betz
The NameOfTheProject have to be changed too..
so, if I rename axis2 folder, it will just work for 1 project, and not the
others.

I need something like :
 http://url:prot/Project1/services/ServicesNames
 http://url:prot/Project2/services/ServicesNames
...




2008/8/27 Shehan Simen <[EMAIL PROTECTED]>

>  You can put many aar files in to the WEB-INF\services folder. I am doing
> this at the moment.
>
> So you can have something like this:
>
> *http://url:18080/NameOfTheProject/services/ServiceName1*
>
> *http://url:18080/NameOfTheProject/services/ServiceName2*
>
> *http://url:18080/NameOfTheProject/services/ServiceName3*
>
> * *
>
> I don't understand the problem you have.
>
>
>
>
>
> *From:* pierre betz [mailto:[EMAIL PROTECTED]
> *Sent:* Wednesday, 27 August 2008 1:05 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: changing the Http request URI
>
>
>
> Hi,
> htank you for the answers.
>
> In fact, I have 3 projects, so 3 aar files, which need to be deployed in
> some folders like : http://url:18080/NameOfTheProject/services/ServiceName
>
> I think there is no possibility to do something in this case. Ok, I can
> rename the axis2 directory, and use some parameters in the axis2
> configuration to change the axis2 root folder name and the services name,
> but it will do that for every aar file deployed.
>
> Anyway, thanks maybe it will help someone else :)
>
>


RE: changing the Http request URI

2008-08-27 Thread Shehan Simen
You can just rename the axis2.war file to project1.war, project2.war, .. 
and then just deploy. No need to change any xml config files. Then you can copy 
the .aar files in to the extracted project1, project2, ...folders. I think it 
is very easy and won't take much time.

From: pierre betz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 27 August 2008 5:11 PM
To: axis-user@ws.apache.org
Subject: Re: changing the Http request URI

The NameOfTheProject have to be changed too..
so, if I rename axis2 folder, it will just work for 1 project, and not the 
others.

I need something like :
 http://url:prot/Project1/services/ServicesNames
 http://url:prot/Project2/services/ServicesNames
...



2008/8/27 Shehan Simen <[EMAIL PROTECTED]>

You can put many aar files in to the WEB-INF\services folder. I am doing this 
at the moment.

So you can have something like this:

http://url:18080/NameOfTheProject/services/ServiceName1

http://url:18080/NameOfTheProject/services/ServiceName2

http://url:18080/NameOfTheProject/services/ServiceName3



I don't understand the problem you have.





From: pierre betz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 27 August 2008 1:05 PM

To: axis-user@ws.apache.org
Subject: Re: changing the Http request URI



Hi,
htank you for the answers.

In fact, I have 3 projects, so 3 aar files, which need to be deployed in some 
folders like : http://url:18080/NameOfTheProject/services/ServiceName

I think there is no possibility to do something in this case. Ok, I can rename 
the axis2 directory, and use some parameters in the axis2 configuration to 
change the axis2 root folder name and the services name, but it will do that 
for every aar file deployed.

Anyway, thanks maybe it will help someone else :)



Re: changing the Http request URI

2008-08-27 Thread pierre betz
yep I agree.. but I will have 3 axis plugins running... no ?


Re: Can I transfer/response an JPG or PDF file from server to client via AXIS 1.x?

2008-08-27 Thread thomas2004

Hi Jose,

Thanks for the reply.

Do you think I can transfer the PDF file in the same way?

Regards

Thomas




José Ferreiro wrote:
> 
> Hello Thomas,
> 
> It is possible to transfer other data from the server to the client than
> XML.
> This can be done by sending binary data within the SOAP message.
> 
> See an example for Axis 1.x here:
> http://www.agileskills2.org/DWSAA/v10pub/source.zip
> 
> Unzip the folder and refer to the folder *image service* : which shows the
> example of uploading a JPG image from the client to the web service in the
> server. For your example you only need to switch the request and the
> response in the wsdl file.
> 
> Hope this helps.
> 
> Jose Ferreiro
> 
> On Tue, Aug 26, 2008 at 9:11 PM, thomas2004 <[EMAIL PROTECTED]> wrote:
> 
>>
>> What I am going to do is:
>>
>> I get some datas from client and will return/transfer/response an JPG or
>> PDF
>> file to the client. Is it possible?
>>
>> So far I understand, the Web Service can only transfer XML-file. Is that
>> right? Any example or infos?
>>
>> Regards
>>
>> Thomas
>> --
>> View this message in context:
>> http://www.nabble.com/Can-I-transfer-response-an-JPG-or-PDF-file-from-server-to-client-via-AXIS-1.x--tp19168366p19168366.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]
>>
>>
> 
> 
> 
> -- 
> José Ferreiro
> EPFL Communication Systems engineer
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-I-transfer-response-an-JPG-or-PDF-file-from-server-to-client-via-AXIS-1.x--tp19168366p19179073.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]



Re: Custom module in serviceGroup

2008-08-27 Thread Florian Astl
i've solved it by myself.

public InvocationResponse invoke(MessageContext ctx)
throws AxisFault {

if(ctx.isEngaged("mymodulename")) {
return this.processMessage(ctx);
} 
 
return InvocationResponse.CONTINUE; 
}

in my Handler avoids execution of the module if not engaged (servicegroup).

and  
ctx.getAxisService().getParameter("myModuleParameter").getValue().toString(); 
lets me read parameters from my services.xml and configure the module for each 
service


 Original-Nachricht 
> Datum: Wed, 27 Aug 2008 09:00:56 +0200
> Von: "Florian Astl" <[EMAIL PROTECTED]>
> An: axis-user@ws.apache.org
> Betreff: Custom module in serviceGroup

> Hi all, 
> 
> In the services.xml of my (axis2 1.2)webservice i have defined a
> servicegroup with two services. one named myserviceDefault and one named
> myserviceSecure. They're both using the same webservice-implementation. 
> 
> for the second service i've enabled rampart(1.2) with usernametoken and
> timestamp. the result is that i now can access the first service
> (myserviceDefault ) without security header and the second service 
> (myserviceSecure)
> only with usernametoken & timestamp in the soap-message - just as i expected.
> 
> i now have developed my own simple module which checks the ip-addess in
> the incomming soap-message and denies access to the serviceoperation if
> necessary.
> The inflow order phase in the module.xml is set to  phase="Security"/>
> 
> When i enable this module in the second service (myserviceSecure) the
> first service is affected too. Axis-Administration is saying that my module is
> only engaged for myserviceSecure but when trying to access the first
> service the ip-address of the soap-message is evaluated by the module.
> 
> Another thing is that I can't figure out how to configure the module
> separately for each service.
> In final stage I want two files containing ip-addresses. one for the
> module in the first service and one for the module in the second service.
> 
> thanks four your help, 
> 
> Florian
> -- 
> GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry
> Passion!
> http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

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



Preserving CDATA Section

2008-08-27 Thread Walker, Carleton
Hi,

I'm writing a web service for a legacy client.  The legacy client sends
embedded XML in string elements that are escaped by a CDATA section.  My
web service needs to echo these sections back to the client in the
original form.  However, Axis2 (or a subcomponent) is replacing the
CDATA section with a string containing 

For example,

 
<
/app-specific-contents>

Is replaced with 

 
myevent<
/app-specific-contents>

I put some debug messages in the MessageReceiver and it looks like the
escaping is taking place when the SOAP envelope is formed.
"wrappedParam" and my XMLBeans response object look okay.  Printing the
envelope from the toEnvelope() method shows the escaped contents.

Any help is appreciated.

-Carl

---
Carl Walker, Consultant
FINRA Data Services
(240) 386-6793
Key West Ave (Rockville)



Confidentiality Notice:  This email, including attachments, may include 
non-public, proprietary, confidential or legally privileged information.  If 
you are not an intended recipient or an authorized agent of an intended 
recipient, you are hereby notified that any dissemination, distribution or 
copying of the information contained in or transmitted with this e-mail is 
unauthorized and strictly prohibited.  If you have received this email in 
error, please notify the sender by replying to this message and permanently 
delete this e-mail, its attachments, and any copies of it immediately.  You 
should not retain, copy or use this e-mail or any attachment for any purpose, 
nor disclose all or any part of the contents to any other person. Thank you



Axis 2 - SSL with Client Authentication

2008-08-27 Thread StrongSteve

Hi Everybody!

I am really stuck with the problem below, but I am looking forward that
someone can help me! ;)
(Or give me at least a useful hint on were to search for more
information...)

Basically I have a running webservice based on AXIS 2. 

Now I have to make it secure. Be secure I mean the following to things:
   - Transport via SSL (Https)
   - Client Authentication using a Client Certificate

Basically all messages have to be transferred over https and only "trusted"
clients - whoses certificates reside in the server's .truststore - shall be
worked with.

After one and a half day of browsing the internet, I have no really come
across a solution.

What I did till now is the following:
   - Enable https in Tomcat 6 after generating a server key
   - If I import this server key into the client's .truststore I can call me
webservice by passing a https in the existing endpointreference

The problem I am really stuck with is the part with the client certificates
and I have nearly no clue on which steps are to be performed... :(

I already tried uncommenting the following block in the Axis2.xml, as I
think that this is the part that I need, but I just results in a
NullPointerException when starting my tomcat.

 


 


[INFO]
java.lang.NullPointerException
at
org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener.getSSLContext(HttpCoreNIOSSLListener.java:9
6)
at
org.apache.axis2.transport.nhttp.HttpCoreNIOListener.init(HttpCoreNIOListener.java:151)
at
org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:125)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:442)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Thanks in Advance for both your time and your knowledge!

Greetings
Stefan
-- 
View this message in context: 
http://www.nabble.com/Axis-2---SSL-with-Client-Authentication-tp19180080p19180080.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]



Re: Custom module in serviceGroup

2008-08-27 Thread Deepal Jayasinghe
Cool, I was about to ask you to do this.

-Deepal

Florian Astl wrote:
> i've solved it by myself.
>
> public InvocationResponse invoke(MessageContext ctx)
> throws AxisFault {
>   
>   if(ctx.isEngaged("mymodulename")) {
>   return this.processMessage(ctx);
>   } 
>  
>   return InvocationResponse.CONTINUE; 
> }
>
> in my Handler avoids execution of the module if not engaged (servicegroup).
>
> and  
> ctx.getAxisService().getParameter("myModuleParameter").getValue().toString(); 
> lets me read parameters from my services.xml and configure the module for 
> each service
>
>
>  Original-Nachricht 
>   
>> Datum: Wed, 27 Aug 2008 09:00:56 +0200
>> Von: "Florian Astl" <[EMAIL PROTECTED]>
>> An: axis-user@ws.apache.org
>> Betreff: Custom module in serviceGroup
>> 
>
>   
>> Hi all, 
>>
>> In the services.xml of my (axis2 1.2)webservice i have defined a
>> servicegroup with two services. one named myserviceDefault and one named
>> myserviceSecure. They're both using the same webservice-implementation. 
>>
>> for the second service i've enabled rampart(1.2) with usernametoken and
>> timestamp. the result is that i now can access the first service
>> (myserviceDefault ) without security header and the second service 
>> (myserviceSecure)
>> only with usernametoken & timestamp in the soap-message - just as i expected.
>>
>> i now have developed my own simple module which checks the ip-addess in
>> the incomming soap-message and denies access to the serviceoperation if
>> necessary.
>> The inflow order phase in the module.xml is set to > phase="Security"/>
>>
>> When i enable this module in the second service (myserviceSecure) the
>> first service is affected too. Axis-Administration is saying that my module 
>> is
>> only engaged for myserviceSecure but when trying to access the first
>> service the ip-address of the soap-message is evaluated by the module.
>>
>> Another thing is that I can't figure out how to configure the module
>> separately for each service.
>> In final stage I want two files containing ip-addresses. one for the
>> module in the first service and one for the module in the second service.
>>
>> thanks four your help, 
>>
>> Florian
>> -- 
>> GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry
>> Passion!
>> http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>
>   

-- 
Thanks,
Deepal

http://blogs.deepal.org/


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



Re: Axis 2 - SSL with Client Authentication

2008-08-27 Thread SGruverman
First, I haven't used any of the Axis2 HTTPS support you mentioned. I don't
know if this is typical of Axis2 web services, but most references I've
seen to SSL use the facilities of the app server and javax.net.

Couple of questions to get started:
   Is the "standard" SSL working (other than the client authentication)?
   Does your Tomcat config include clientAuth="true"?
   Does your Tomcat config include settings for keystorefile and
   keystorepass as well as truststorefile and truststorepass?
   On the server, the keystore contains the SSL certificate and the
   truststore contains the certificate *of the Certificate Authority that
   signed the certificate that the client is using for client
   authentication.*
   (I find this confusing - to keep it simple, I use the same keystore for
   both. Not a "best practice", I think).

   Does your client System.setProperty() for javax.net.ssl.trustStore,
   trustStorePassword, keyStore and keyStorePassword?
   Here.  the keystore contains the SSL client authentication certificate
   and the truststore contains the certificate *of the Certificate
   Authority that signed the server SSL certificate*.

Another useful property to set is javax.net.debug - set it to "ssl" to get
a bunch of SSL diagnostics.

I'm still pretty new to this stuff, so I'm not certain of this information
(but it seems to work for us). Please jump in and correct me if I'm wrong!

Anyway, I hope this helps.

- Steve

__
Steve Gruverman, Programmer
IntelliCare, Inc. | A Medco Health Solutions Company

500 Southborough Drive | South Portland ME 04106


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



RES: Axis 2 - SSL with Client Authentication

2008-08-27 Thread Fernando Cesar Silva
Hi Stefan,

I will assume that your server configuration is OK (that I don't know very
well) and I will focus on the client part.

Here, I had to call a secure webservice from the Brazilian government that
requires client authentication.

Before I call the secure webservice, I only set in my client the necessary
system properties that JSSE will consider to do the SSL.

final Properties props = System.getProperties();
props.setProperty("javax.net.ssl.trustStore", "C:/Certificados
/sefazrssef.jks");
props.setProperty("javax.net.ssl.trustStorePassword", "xxx");
props.setProperty("javax.net.ssl.trustStoreType", "JKS");

props.setProperty("javax.net.ssl.keyStore",
"C:/Certificados/transpamericana.jks");
props.setProperty("javax.net.ssl.keyStorePassword", "xxx");
props.setProperty("javax.net.ssl.keyStoreType", "JKS");

System.setProperties(props);

Your truststore have to contain the server certificate (public key) and his
certificate chain.

Your keystore have to contain the client private key (issued by a trusted
CA).

You can work with another key and truststore's types as well, changing "JKS"
for another type (e.g. "PKCS12").

You can turn on the SSL debug passing the parameter:
props.setProperty("javax.net.debug", "ssl");

For more information take a look at:
http://wiki.apache.org/ws/FrontPage/Axis/AxisClientConfiguration/Ssl

http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html#Cu
stomization

Hope this helps.

Fernando Cesar


-Mensagem original-
De: StrongSteve [mailto:[EMAIL PROTECTED] 
Enviada em: quarta-feira, 27 de agosto de 2008 09:39
Para: axis-user@ws.apache.org
Assunto: Axis 2 - SSL with Client Authentication


Hi Everybody!

I am really stuck with the problem below, but I am looking forward that
someone can help me! ;)
(Or give me at least a useful hint on were to search for more
information...)

Basically I have a running webservice based on AXIS 2. 

Now I have to make it secure. Be secure I mean the following to things:
   - Transport via SSL (Https)
   - Client Authentication using a Client Certificate

Basically all messages have to be transferred over https and only "trusted"
clients - whoses certificates reside in the server's .truststore - shall be
worked with.

After one and a half day of browsing the internet, I have no really come
across a solution.

What I did till now is the following:
   - Enable https in Tomcat 6 after generating a server key
   - If I import this server key into the client's .truststore I can call me
webservice by passing a https in the existing endpointreference

The problem I am really stuck with is the part with the client certificates
and I have nearly no clue on which steps are to be performed... :(

I already tried uncommenting the following block in the Axis2.xml, as I
think that this is the part that I need, but I just results in a
NullPointerException when starting my tomcat.

 


 


[INFO]
java.lang.NullPointerException
at
org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener.getSSLContext(HttpCo
reNIOSSLListener.java:9
6)
at
org.apache.axis2.transport.nhttp.HttpCoreNIOListener.init(HttpCoreNIOListene
r.java:151)
at
org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:125)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:442)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11
72)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
4058)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
91)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:117)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.jav

Re: Axis 2 - SSL with Client Authentication

2008-08-27 Thread StrongSteve

Hi Everyone!

First of all, thanks for the quick answers.

I think now I am a step further, but I haven't quite reached the goal.

Thanks for the introduction on the client side, this is exactly what I am
doing! ;)

On the server side I have two file:

   - The .keystore contains my server certificate (key)
   - The .truststore contains the certificate (key) [This key comes from the
client's .keystore]

I was missing the entry "clientAuth=true" in the Tomcat's server.xml. Thanks
for the tip!

After changing this and restarting the Tomcat I have come accross two
problems:

1.) When browsing to the WSDL-File with Firefox, I can not see anything, as
I do not have a valid client certificate. I tried to import a certificate,
that I exported with the keytool from the client's .keystore, but it is
rejected as it is not a valid PK-12. Any hints?

2.) My client can connect to the server, and I think that everything is
working - at least from the view of SSL. But the problem is that I get the
following error message: "Exception in thread "main"
org.apache.axis2.AxisFault: The service cannot be found for the endpoint
reference (EPR) https://:8443/axis2/services/RepositoryService";

How can I configure this EPR in the services.xml?

Thanks in Advance!
Stefan


SGruverman wrote:
> 
> First, I haven't used any of the Axis2 HTTPS support you mentioned. I
> don't
> know if this is typical of Axis2 web services, but most references I've
> seen to SSL use the facilities of the app server and javax.net.
> 
> Couple of questions to get started:
>Is the "standard" SSL working (other than the client authentication)?
>Does your Tomcat config include clientAuth="true"?
>Does your Tomcat config include settings for keystorefile and
>keystorepass as well as truststorefile and truststorepass?
>On the server, the keystore contains the SSL certificate and the
>truststore contains the certificate *of the Certificate Authority that
>signed the certificate that the client is using for client
>authentication.*
>(I find this confusing - to keep it simple, I use the same keystore for
>both. Not a "best practice", I think).
> 
>Does your client System.setProperty() for javax.net.ssl.trustStore,
>trustStorePassword, keyStore and keyStorePassword?
>Here.  the keystore contains the SSL client authentication certificate
>and the truststore contains the certificate *of the Certificate
>Authority that signed the server SSL certificate*.
> 
> Another useful property to set is javax.net.debug - set it to "ssl" to get
> a bunch of SSL diagnostics.
> 
> I'm still pretty new to this stuff, so I'm not certain of this information
> (but it seems to work for us). Please jump in and correct me if I'm wrong!
> 
> Anyway, I hope this helps.
> 
> - Steve
> 
> __
> Steve Gruverman, Programmer
> IntelliCare, Inc. | A Medco Health Solutions Company
> 
> 500 Southborough Drive | South Portland ME 04106
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axis-2---SSL-with-Client-Authentication-tp19180080p19181697.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]



Re: Can I transfer/response an JPG or PDF file from server to client via Spring WS?

2008-08-27 Thread Thilina Gunarathne
No idea about Spring WS... But following articles will give u a general idea
about MTOM & SwA as well as how to use them in Axis2. MTOM & SwA are two
methods to send/receive binary data with web services..

http://ws.apache.org/axis2/1_4_1/mtom-guide.html
http://wso2.org/library/1148
http://wso2.org/library/1675

thanks,
Thilina

On Tue, Aug 26, 2008 at 7:22 PM, Deepal jayasinghe <[EMAIL PROTECTED]>wrote:

> thomas2004 wrote:
> > What I am going to do is:
> >
> > I get some datas from client and will return/transfer/response an JPG or
> PDF
> > file to the client. Is it possible?
> >
> You mean at the server side you receive a request from a client , that
> SOAP message contains binary data like JPG or PDF file. And you need to
> send that back to the client ?
> > So far I understand, the WS can only transfer XML-file. Is that right?
> Any
> > example or infos?
> >
> Nope WS is to send and receive SOAP messages (most of the cases) , but
> one can send binary data with the message. And they use approaches like
> MTOM and base64 for that.
>
> If you can explain about your problem somewhat more , then I would be
> able to give you a better answer than this.
>
> Thank you!
> Deepal
> > Regards
> >
> > Thomas
> >
>
>
> --
> Thanks,
> Deepal
> 
> http://blogs.deepal.org/
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Axis elements

2008-08-27 Thread Simon Oldham
 Hi,

I had an issue on a project recently with Apache Axis sending Multi
Reference values to a JWSDP 1.1 Web Service. The problem was solved by
advising the client to turn off multiRefs in Axis. (I know RPC/Encoded is
deprecated but this is legacy tech).

Anyway, this incident got me curious and investigating what these
"multirefs" were. I can see from reading the SOAP 1.1 spec that they fall
under the (now deprecated) Section 5 Encoding.

However, one thing still puzzles me when Googling on this subject and that
is the existence of a "multiRef" element in SOAP responses - I believe they
would be referred to as "property accessors"? Are these purely an Apache
Axis invention (I certainly can't find any trace of them in the SOAP spec)
and, if so, why (given that they are not in the SOAP specification)?

If somebody could explain this in detail I would very grateful as I am the
type of guy that can't rest until I fully understand something. :-)

Thanks in advance,

Si


Re: Axis 2 - SSL with Client Authentication

2008-08-27 Thread StrongSteve

I kinda seem to have solved problem 2.) by removing the part
http from the services.xml.

Is this the right way to do?



StrongSteve wrote:
> 
> Hi Everyone!
> 
> First of all, thanks for the quick answers.
> 
> I think now I am a step further, but I haven't quite reached the goal.
> 
> Thanks for the introduction on the client side, this is exactly what I am
> doing! ;)
> 
> On the server side I have two file:
> 
>- The .keystore contains my server certificate (key)
>- The .truststore contains the certificate (key) [This key comes from
> the client's .keystore]
> 
> I was missing the entry "clientAuth=true" in the Tomcat's server.xml.
> Thanks for the tip!
> 
> After changing this and restarting the Tomcat I have come accross two
> problems:
> 
> 1.) When browsing to the WSDL-File with Firefox, I can not see anything,
> as I do not have a valid client certificate. I tried to import a
> certificate, that I exported with the keytool from the client's .keystore,
> but it is rejected as it is not a valid PK-12. Any hints?
> 
> 2.) My client can connect to the server, and I think that everything is
> working - at least from the view of SSL. But the problem is that I get the
> following error message: "Exception in thread "main"
> org.apache.axis2.AxisFault: The service cannot be found for the endpoint
> reference (EPR) https://:8443/axis2/services/RepositoryService";
> 
> How can I configure this EPR in the services.xml?
> 
> Thanks in Advance!
> Stefan
> 
> 
> SGruverman wrote:
>> 
>> First, I haven't used any of the Axis2 HTTPS support you mentioned. I
>> don't
>> know if this is typical of Axis2 web services, but most references I've
>> seen to SSL use the facilities of the app server and javax.net.
>> 
>> Couple of questions to get started:
>>Is the "standard" SSL working (other than the client authentication)?
>>Does your Tomcat config include clientAuth="true"?
>>Does your Tomcat config include settings for keystorefile and
>>keystorepass as well as truststorefile and truststorepass?
>>On the server, the keystore contains the SSL certificate and the
>>truststore contains the certificate *of the Certificate Authority that
>>signed the certificate that the client is using for client
>>authentication.*
>>(I find this confusing - to keep it simple, I use the same keystore
>> for
>>both. Not a "best practice", I think).
>> 
>>Does your client System.setProperty() for javax.net.ssl.trustStore,
>>trustStorePassword, keyStore and keyStorePassword?
>>Here.  the keystore contains the SSL client authentication certificate
>>and the truststore contains the certificate *of the Certificate
>>Authority that signed the server SSL certificate*.
>> 
>> Another useful property to set is javax.net.debug - set it to "ssl" to
>> get
>> a bunch of SSL diagnostics.
>> 
>> I'm still pretty new to this stuff, so I'm not certain of this
>> information
>> (but it seems to work for us). Please jump in and correct me if I'm
>> wrong!
>> 
>> Anyway, I hope this helps.
>> 
>> - Steve
>> 
>> __
>> Steve Gruverman, Programmer
>> IntelliCare, Inc. | A Medco Health Solutions Company
>> 
>> 500 Southborough Drive | South Portland ME 04106
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axis-2---SSL-with-Client-Authentication-tp19180080p19182082.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]



Re: Can I transfer/response an JPG or PDF file from server to client via AXIS 1.x?

2008-08-27 Thread José Ferreiro
Hi Thomas,

Yes you may send a PDF file as it is a binary file as well.
For that you need to adapt the MIME in the SOAP message ( Multipurpose
Internet Mail Extensions) type.

e.g.

   
  
 
  
  
 
  
   

For more info about the MIME types pleaser refer [1] [2].

Hope this helps.

Jose

[1] - Format of Internet Message Bodies (
ftp://ftp.isi.edu/in-notes/rfc2045.txt)
[2] - Media Types (ftp://ftp.isi.edu/in-notes/rfc2046.txt).

On Wed, Aug 27, 2008 at 1:27 PM, thomas2004 <[EMAIL PROTECTED]> wrote:

>
> Hi Jose,
>
> Thanks for the reply.
>
> Do you think I can transfer the PDF file in the same way?
>
> Regards
>
> Thomas
>
>
>
>
> José Ferreiro wrote:
> >
> > Hello Thomas,
> >
> > It is possible to transfer other data from the server to the client than
> > XML.
> > This can be done by sending binary data within the SOAP message.
> >
> > See an example for Axis 1.x here:
> > http://www.agileskills2.org/DWSAA/v10pub/source.zip
> >
> > Unzip the folder and refer to the folder *image service* : which shows
> the
> > example of uploading a JPG image from the client to the web service in
> the
> > server. For your example you only need to switch the request and the
> > response in the wsdl file.
> >
> > Hope this helps.
> >
> > Jose Ferreiro
> >
> > On Tue, Aug 26, 2008 at 9:11 PM, thomas2004 <[EMAIL PROTECTED]>
> wrote:
> >
> >>
> >> What I am going to do is:
> >>
> >> I get some datas from client and will return/transfer/response an JPG or
> >> PDF
> >> file to the client. Is it possible?
> >>
> >> So far I understand, the Web Service can only transfer XML-file. Is that
> >> right? Any example or infos?
> >>
> >> Regards
> >>
> >> Thomas
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Can-I-transfer-response-an-JPG-or-PDF-file-from-server-to-client-via-AXIS-1.x--tp19168366p19168366.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]
> >>
> >>
> >
> >
> >
> > --
> > José Ferreiro
> > EPFL Communication Systems engineer
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Can-I-transfer-response-an-JPG-or-PDF-file-from-server-to-client-via-AXIS-1.x--tp19168366p19179073.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]
>
>


-- 
José Ferreiro
EPFL Communication Systems engineer
ing.sys.com.dipl.EPFL


Axis generated WSDL not importing schema correctly

2008-08-27 Thread Davefeeder

I am writing an application which uses Axis2 and I'm having a problem with
the WSDL that Axis generates using "?wsdl" at the webservice url.
The imported schemas are referenced as relative to the hosting machine,
rather than fully qualified with a complete url, eg:

   http://example.co.uk/namespace/1";
schemaLocation="Example?xsd=example.xsd"/>
  
 
Instead of:

   http://example.co.uk/namespace/1";
schemaLocation="Example?xsd=http://192.0.0.1/example.xsd"/>
  

I can't hard code the IP address and force Axis to return the WSDL I've
written, as it's going to be run on different machines each time.

I've found people that have had similar issues, but none which were resolved
without hard coding the fully qualified schema location in the original
WSDL.

Can anyone help?

Many thanks, 

Dave
-- 
View this message in context: 
http://www.nabble.com/Axis-generated-WSDL-not-importing-schema-correctly-tp19182932p19182932.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]



Re: Axis2 REST client and server questions (Data bindings, Headers, Performance)

2008-08-27 Thread Nick Steel

I havn't been able to progress any further with Axis2 and REST, doesn't
anyone have any ideas about these issues?

Nick
-- 
View this message in context: 
http://www.nabble.com/Axis2-REST-client-and-server-questions-%28Data-bindings%2C-Headers%2C-Performance%29-tp19087933p19183617.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]



Re: Friendly API for calling a RESTful webservice

2008-08-27 Thread Arnout Engelen
On Tue, Aug 26, 2008 at 11:43:42PM +1000, Rahul Devgan wrote:
> Not sure what you are looking for exactly but have you tried www.restlet.org.
> Also, I am implementing RESTful WS for a major project but its all hand
> written Servlet based code.

I can't tell for sure from the website - does this library take care of
both the server and the client side?

For now I'm only interested in consuming web services, though it's of
course very convenient if the same tool can also be used for implementing 
the server side.


Arnout

> On Tue, Aug 26, 2008 at 8:26 PM, Arnout Engelen <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> >
> > I'm trying to generate some friendly client code for accessing a
> > REST-ish webservice.
> >
> > To that end, I wrote a WSDL2.0 description of the webservice, containing
> > the following operation:
> >
> > >   pattern="http://www.w3.org/ns/wsdl/in-out";
> >   style="http://www.w3.org/ns/wsdl/style/iri";
> >   wsdlx:safe="true">
> >  
> >  
> >
> >
> > The request type is defined as follows:
> >
> >  
> >
> >  
> > The request element for the getEvents service.
> >  
> >
> >  
> >
> >  
> >
> >  
> >  
> >
> >  
> >
> > I called wsdl2code on this (adb bindings), which generated a GeoStub. This
> > already works, like this:
> >
> >GeoStub stub = new GeoStub("
> > http://ws.audioscrobbler.com/2.0/?method=geo.getevents";);
> >
> >GetEventsRequestType request = new
> > GetEventsRequestType();
> >request.setApi_key(apiKey);
> >request.setLocation(location);
> >
> >GetEventsRequest requestDoc = new
> > GetEventsRequest();
> >requestDoc.setGetEventsRequest(request);
> >LfmType response =
> > stub.getEvents(requestDoc).getLfm();
> >
> > However, it would of course be much nicer if it could look something like
> > this:
> >
> >GeoStub stub = new GeoStub("
> > http://ws.audioscrobbler.com/2.0/?method=geo.getevents";);
> >LfmType response = stub.getEvents(apiKey, location);
> >
> > Would it be possible to generate a friendly interface like this?
> >
> >
> > Kind regards,
> >
> > Arnout
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> warm regards,
> Rahul Devgan
> Cell: +61-412163412
> --- there is no pleasure in life like music ---

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



Re: Friendly API for calling a RESTful webservice

2008-08-27 Thread Arnout Engelen
On Tue, Aug 26, 2008 at 07:55:56PM +0530, keith chapman wrote:
> If you use the -uw options when generating the stub it becomes more
> user friendly. -uw instructs the code generator to unwrap the
> parameters. hence you will be able to call the stub as,
> 
> GeoStub stub = new GeoStub();
> LfmType response = stub.getEvents(apiKey, location).getLfm();

Many thanks, that was exactly what I was hoping for.


Arnout

> On Tue, Aug 26, 2008 at 3:56 PM, Arnout Engelen <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm trying to generate some friendly client code for accessing a
> > REST-ish webservice.
> >
> > To that end, I wrote a WSDL2.0 description of the webservice, containing
> > the following operation:
> >
> > >   pattern="http://www.w3.org/ns/wsdl/in-out";
> >   style="http://www.w3.org/ns/wsdl/style/iri";
> >   wsdlx:safe="true">
> >  
> >  
> >
> >
> > The request type is defined as follows:
> >
> >  
> >
> >  
> > The request element for the getEvents service.
> >  
> >
> >  
> >
> >  
> >
> >  
> >  
> >
> >  
> >
> > I called wsdl2code on this (adb bindings), which generated a GeoStub. This
> > already works, like this:
> >
> >GeoStub stub = new 
> > GeoStub("http://ws.audioscrobbler.com/2.0/?method=geo.getevents";);
> >
> >GetEventsRequestType request = new 
> > GetEventsRequestType();
> >request.setApi_key(apiKey);
> >request.setLocation(location);
> >
> >GetEventsRequest requestDoc = new GetEventsRequest();
> >requestDoc.setGetEventsRequest(request);
> >LfmType response = 
> > stub.getEvents(requestDoc).getLfm();
> >
> > However, it would of course be much nicer if it could look something like 
> > this:
> >
> >GeoStub stub = new 
> > GeoStub("http://ws.audioscrobbler.com/2.0/?method=geo.getevents";);
> >LfmType response = stub.getEvents(apiKey, location);
> >
> > Would it be possible to generate a friendly interface like this?
> >
> >
> > Kind regards,
> >
> > Arnout
> >
> > -
> > 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
> 
> -
> 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: Axis 2 - SSL with Client Authentication

2008-08-27 Thread SGruverman
StrongSteve <[EMAIL PROTECTED]> wrote on 08/27/2008 10:06:57 AM:
>
> 1.) When browsing to the WSDL-File with Firefox, I can not see anything,
as
> I do not have a valid client certificate. I tried to import a
certificate,
> that I exported with the keytool from the client's .keystore, but it is
> rejected as it is not a valid PK-12. Any hints?

If SSL is set up correctly, then browsing to the WSDL should prompt you to
trust the SSL cert the first time you go to that server.
I have only worked with JKS stores, but I don't think the type of store
would affect this behavior.

__
Steve Gruverman, Programmer
IntelliCare, Inc. | A Medco Health Solutions Company

500 Southborough Drive | South Portland ME 04106





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



Re: Axis2 REST client and server questions (Data bindings, Headers, Performance)

2008-08-27 Thread keith chapman
Hi Nick,

Sorry I missed this. I'll have a look at this and get back to you.

Thanks,
Keith.

On Wed, Aug 27, 2008 at 9:06 PM, Nick Steel
<[EMAIL PROTECTED]> wrote:
>
> I havn't been able to progress any further with Axis2 and REST, doesn't
> anyone have any ideas about these issues?
>
> Nick
> --
> View this message in context: 
> http://www.nabble.com/Axis2-REST-client-and-server-questions-%28Data-bindings%2C-Headers%2C-Performance%29-tp19087933p19183617.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]
>
>



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

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

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



[Axis2]

2008-08-27 Thread SivaKrishna Kumar
Hi,

I am trying to add MTOM support to ZSI. When I send a request which is
processed for MTOM, on the server side I am getting the below error.


org.apache.http.MalformedChunkCodingException: Bad chunk header
at
org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:232)
at
org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:183)
at
org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:155)
at
org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:175)
at
org.apache.http.impl.io.ChunkedInputStream.exhaustInputStream(ChunkedInputStream.java:289)
at
org.apache.http.impl.io.ChunkedInputStream.close(ChunkedInputStream.java:262)
at
org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:192)
at
org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:619)

On the client side I am getting the below SOAP fault

invalid literal for int() with base 16: ''

Here are my headers and body sent to Axis's MTOM Sample Service.

Can some one point me where is the problem. ?

Thanks & Regards
Siva

[mtom:apply_mtom]: mtomheaders:
{'SOAPAction': '"attachment"', 'Content-Type': 'multipart/related;
boundary="==ZSI_MIME_BOUNDARY=="; start-info="text/xml";
start=""'}
[mtom:apply_mtom]: mtombody:
--==ZSI_MIME_BOUNDARY==
Content-Transfer-Encoding: binary
Content-ID: 
Content-Type: text/xml; charset=utf-8

http://schemas.xmlsoap.org/soap/envelope/";>http://ws.apache.org/axis2/mtom
sample/">c:\Sample_mtom.ziphttp://www.w3.org/2004/08/xop/incl
ude" />
--==ZSI_MIME_BOUNDARY==
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-ID: 

ìë7í"3?9?»ñ(?┘►S‼K3É3 PK☺☻¶ ¶  ⌡h←93▬Wçh   ╚   ←   ☺   ╢ü
Sample_txt_mtom_clieent.txtPK♣♠☺ ☺ I   í
--==ZSI_MIME_BOUNDARY==--


Re: Axis2 REST client and server questions (Data bindings, Headers, Performance)

2008-08-27 Thread jaybytez

Working with Axis2 and REST differs a little based on whether you are doing
POSTs or GETs.  I have been using Axis2 for REST as well as SOAP, but I
don't use code generated stubs.  I am using the ServiceClient to invoke my
services.  In that context, I set the following Options on the ServiceClient
(these depend on GET or POST...GET being the full url with params and the
POST being just the url with params sent in the body of the request):

Options options = new Options();
options.setProperty(HTTPConstants.SO_TIMEOUT, new
Integer(timeout));
options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, new
Integer(timeout));
options.setProperty(Constants.Configuration.ENABLE_REST,
Boolean.TRUE);
options.setProperty(Constants.Configuration.HTTP_METHOD,
Constants.Configuration.HTTP_METHOD_GET);
options.setProperty(Constants.Configuration.MESSAGE_TYPE,
   
org.apache.axis2.transport.http.HTTPConstants.MEDIA_TYPE_X_WWW_FORM);
options.setProperty(Constants.Configuration.DISABLE_SOAP_ACTION,
Constants.VALUE_TRUE);
options.setCallTransportCleanup(true);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
options.setTo(new EndpointReference(myCustomUrl...based on GET
or POST);

Then when I call sendReceive on the ServiceClient, my param depends on GET
or POST.  For GET, the EndpointReference has all the params so you can send
a null to the sendReceive.  For a POST, you need to send the XML message
onto the sendReceive.

//POST request parameters are in OMElement
mReply=client.sendReceive(myRequest);

//GET request parameters were already appended to
endpoint URL 
// in RestServiceClientHandler (parent class)
mReply=client.sendReceive(null);

This may not answer your questions directly, but I have used this and
successfully integrated Axis2 to call Google's Geocoding Service (GET only)
and Yahoo's Search Service (GET or POST model).

- jay


Nick Steel wrote:
> 
> I havn't been able to progress any further with Axis2 and REST, doesn't
> anyone have any ideas about these issues?
> 
> Nick
> 

-- 
View this message in context: 
http://www.nabble.com/Axis2-REST-client-and-server-questions-%28Data-bindings%2C-Headers%2C-Performance%29-tp19087933p19186773.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]



RE: [Axis2]

2008-08-27 Thread Martin Gainty

in /WEB-INF/conf/axis2.xml
Sender and Receiver check the 1.1 protocol and chunked encoding parms are set

HTTP/1.1
chunked

 HTTP/1.1
chunked


Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


Date: Wed, 27 Aug 2008 23:23:51 +0530
From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Subject: [Axis2]

Hi,

I am trying to add MTOM support to ZSI. When I send a request which is 
processed for MTOM, on the server side I am getting the below error.


org.apache.http.MalformedChunkCodingException: Bad chunk header

at 
org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:232)
at 
org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:183)
at 
org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:155)

at 
org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:175)
at 
org.apache.http.impl.io.ChunkedInputStream.exhaustInputStream(ChunkedInputStream.java:289)
at 
org.apache.http.impl.io.ChunkedInputStream.close(ChunkedInputStream.java:262)

at 
org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:192)
at 
org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)

at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:619)

On the client side I am getting the below SOAP fault


invalid literal for int() with base 16: ''

Here are my headers and body sent to Axis's MTOM Sample Service.

Can some one point me where is the problem. ?

Thanks & Regards
Siva


[mtom:apply_mtom]: mtomheaders:
{'SOAPAction': '"attachment"', 'Content-Type': 'multipart/related; 
boundary="==ZSI_MIME_BOUNDARY=="; start-info="text/xml"; 
start=""'}

[mtom:apply_mtom]: mtombody:
--==ZSI_MIME_BOUNDARY==
Content-Transfer-Encoding: binary
Content-ID: 
Content-Type: text/xml; charset=utf-8

http://schemas.xmlsoap.org/soap/envelope/";>http://ws.apache.org/axis2/mtom

sample/">c:\Sample_mtom.ziphttp://www.w3.org/2004/08/xop/incl

ude" />
--==ZSI_MIME_BOUNDARY==
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-ID: 


ìë7í"3?9?»ñ(?┘►S‼K3É3 PK☺☻¶ ¶  ⌡h←93▬Wçh   ╚   ←   ☺   ╢ü
Sample_txt_mtom_clieent.txtPK♣♠☺ ☺ I   í
--==ZSI_MIME_BOUNDARY==--


_
Talk to your Yahoo! Friends via Windows Live Messenger.  Find out how.
http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008

[Axis2] Proxy Authentication

2008-08-27 Thread Sean Cote
I get the following exception whenever I try to connect to my web-service via a 
proxy server:

[INFO] HTTPSender - Unable to sendViaPost to url[http://mywebservice]
org.apache.axis2.AxisFault: Transport error: 407 Error: Proxy 
Authentication Required
at 
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
at 
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
at 
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

I am using Axis2-1.4 with Java6u7. I just switched my client application from 
using Axis1 to Axis2. With Axis1, I was just using the system properties 
(http.proxyHost, http.proxyPort, http.proxyUser, and http.proxyPassword), but 
they don't seem to work anymore. So, I tried using ProxyProperties, like this, 
but to no avail:

final HttpTransportProperties.ProxyProperties pp = new 
HttpTransportProperties.ProxyProperties();
pp.setProxyName(System.getProperty("http.proxyHost"));
pp.setProxyPort(Integer.parseInt(System.getProperty("http.proxyPort")));
pp.setUserName(System.getProperty("http.proxyUser"));
pp.setPassWord(System.getProperty("http.proxyPassword"));
options.setProperty(HTTPConstants.PROXY, pp);

I do have it working with a non-authenticating proxy server. I got it to work 
with Axis2 by adding this line:

options.setProperty(HTTPConstants.HTTP_PROTOCOL_VERSION, 
HTTPConstants.HEADER_PROTOCOL_10);

What is it that I don't understand about connecting to a web-service through an 
authenticating proxy server in Axis2?

Thanks!
Sean



Axis2 Web App on Geronimo?

2008-08-27 Thread jcaristi

I understand that Axis2 is integrated into Geronimo, but I could not find the
Axis2 web app.  

Is it possible to deploy the web app to Geronimo?  I noticed multiple web
posts stating that this doesn't work (without any solutions).  It didn't
work for me either.  When I attempt to deploy the Axis2.war file, it results
in an out-of-memory error.  It seems to have the following exception as a
root cause:

java.lang.NoClassDefFoundError:
org/apache/commons/fileupload/FileUploadException

Is this a supported configuration, or must we do without the Axis2 web app
on Geronimo?
-- 
View this message in context: 
http://www.nabble.com/Axis2-Web-App-on-Geronimo--tp19188874p19188874.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]



RES: Problems trying to access a secure WS using PKCS#11

2008-08-27 Thread Fernando Cesar Silva
Steve,

Answering your questions:

"Does your PKCS11 keystore have the same contents as the Java keystore?"
Exactly the same.


"How does Axis/Java know where to look for certificates if the keystore is
set to "NONE"?"
According to the JSSE Reference Guide, when a HSM or token is used, the
keystore have to be set to NONE. Java knows where to look for certificates
because there is a PKCS#11 Provider registered in the java.security file:

security.provider.7=sun.security.pkcs11.SunPKCS11 c:/pkcs11.cfg

And my pkcs11.cfg file point to the PKCS#11 Provider implementation, the
alias inside the HSM to be used and the HSM Slot to be used.


"Did the HSM come with its own implementation of parts of Java Cryptography?
The documentation might indicate different properties to set."
Yes. All required properties are already set.


Fernando Cesar

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 26 de agosto de 2008 14:03
Para: axis-user@ws.apache.org
Assunto: Re: Problems trying to access a secure WS using PKCS#11

I've not worked with an HSM and not used client certificates much, but a
couple of things that may be helpful:

Does your PKCS11 keystore have the same contents as the Java keystore?

How does Axis/Java know where to look for certifucates if the keystore is
set to "NONE"?

Did the HSM come with its own implementation of parts of Java Cryptography?
The documentation might indicate different properties to set.

- Steve


"Fernando Cesar Silva" <[EMAIL PROTECTED]> wrote on 08/26/2008 11:01:52
AM:

> I'm experiencing some problems trying to connect to a WS using SSL with a
> PKCS#11 Provider and a HSM (Hardware Security Module). The destination WS
is
> returning a message "HTTP 403.7 - Forbidden: Client certificate
required".
>
> When I try to connect the same WS, but using a JKS KeyStore, the
connection
> and handshake is done without any problem.
>
> Before I call the WS, I basically set the JCA system variables like that:
>
> Using a JKS KeyStore:
>
>
props.setProperty("javax.net.ssl.keyStore","C:/Certificados_TA/transpamerica

> na.jks");
> props.setProperty("javax.net.ssl.keyStorePassword", "x");
> props.setProperty("javax.net.ssl.keyStoreType", "JKS");
>
>
> Using HSM and PKCS #11:
>
> props.setProperty("javax.net.ssl.keyStore", "NONE");
> props.setProperty("javax.net.ssl.keyStorePassword", "");
> props.setProperty("javax.net.ssl.keyStoreType", "PKCS11");
>
> The server certificate where I'm trying to connect and his certificate
chain
> was imported to the \jre\lib\security\cacerts.
>
> Since I'm receiving the message "Client certificate required", I can
> conclude that Axis for some reason cannot get the private key from inside
> HSM. Hence, I'd like to know what exactly Axis is trying to do to read
this
> private key. Axis is trying to export the private key? If so, we've got a
> problem because the key isn't exportable.
>
> Any clue will be very helpful.
>
> Thanks.
>
> Fernando Cesar
> developer / researcher
>
> Phone:  +55 19 3794 1608
> Mobile: +55 19 9839 9989
> www.synchro.com.br
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>


-
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: Axis elements

2008-08-27 Thread Anne Thomas Manes
The use of multiple references is defined in "The rules for
serialization" in Section 5.1 [1] of the SOAP 1.1 spec:

The rules for serialization are as follows:

   1. All values are represented as element content. A multi-reference
value MUST be represented as the content of an independent element. A
single-reference value SHOULD not be (but MAY be).
   2. For each element containing a value, the type of the value MUST
be represented by at least one of the following conditions: (a) the
containing element instance contains an xsi:type attribute, (b) the
containing element instance is itself contained within an element
containing a (possibly defaulted) SOAP-ENC:arrayType attribute or (c)
or the name of the element bears a definite relation to the type, that
type then determinable from a schema.
   3. A simple value is represented as character data, that is,
without any subelements. Every simple value must have a type that is
either listed in the XML Schemas Specification, part 2 [11] or whose
source type is listed therein (see also section 5.2).
   4. A Compound Value is encoded as a sequence of elements, each
accessor represented by an embedded element whose name corresponds to
the name of the accessor. Accessors whose names are local to their
containing types have unqualified element names; all others have
qualified names (see also section 5.4).
   5. A multi-reference simple or compound value is encoded as an
independent element containing a local, unqualified attribute named
"id" and of type "ID" per the XML Specification [7]. Each accessor to
this value is an empty element having a local, unqualified attribute
named "href" and of type "uri-reference" per the XML Schema
Specification [11], with a "href" attribute value of a URI fragment
identifier referencing the corresponding independent element.
   6. Strings and byte arrays are represented as multi-reference
simple types, but special rules allow them to be represented
efficiently for common cases (see also section 5.2.1 and 5.2.3). An
accessor to a string or byte-array value MAY have an attribute named
"id" and of type "ID" per the XML Specification [7]. If so, all other
accessors to the same value are encoded as empty elements having a
local, unqualified attribute named "href" and of type "uri-reference"
per the XML Schema Specification [11], with a "href" attribute value
of a URI fragment identifier referencing the single element containing
the value.
   7. It is permissible to encode several references to a value as
though these were references to several distinct values, but only when
from context it is known that the meaning of the XML instance is
unaltered.
   8. Arrays are compound values (see also section 5.4.2). SOAP arrays
are defined as having a type of "SOAP-ENC:Array" or a type derived
there from.

[1] http://www.w3.org/TR/2000/NOTE-SOAP-2508/#_Toc478383513

Anne

On Wed, Aug 27, 2008 at 10:20 AM, Simon Oldham <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I had an issue on a project recently with Apache Axis sending Multi
> Reference values to a JWSDP 1.1 Web Service. The problem was solved by
> advising the client to turn off multiRefs in Axis. (I know RPC/Encoded is
> deprecated but this is legacy tech).
>
> Anyway, this incident got me curious and investigating what these
> "multirefs" were. I can see from reading the SOAP 1.1 spec that they fall
> under the (now deprecated) Section 5 Encoding.
>
> However, one thing still puzzles me when Googling on this subject and that
> is the existence of a "multiRef" element in SOAP responses - I believe they
> would be referred to as "property accessors"? Are these purely an Apache
> Axis invention (I certainly can't find any trace of them in the SOAP spec)
> and, if so, why (given that they are not in the SOAP specification)?
>
> If somebody could explain this in detail I would very grateful as I am the
> type of guy that can't rest until I fully understand something. :-)
>
> Thanks in advance,
>
> Si

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



Re: Preserving CDATA Section

2008-08-27 Thread Andreas Veithen

Carl,

We had the same issue in Apache Synapse (which is based on Axis2). You  
may have a look at the following JIRA issue to get an idea about the  
cause of this behavior, a possible workaround and the risks of that  
workaround:


https://issues.apache.org/jira/browse/SYNAPSE-280

Regards,

Andreas

On 27 août 08, at 13:55, Walker, Carleton wrote:


Hi,

I'm writing a web service for a legacy client.  The legacy client  
sends embedded XML in string elements that are escaped by a CDATA  
section.  My web service needs to echo these sections back to the  
client in the original form.  However, Axis2 (or a subcomponent) is  
replacing the CDATA section with a string containing


For example,




Is replaced with

myevent


I put some debug messages in the MessageReceiver and it looks like  
the escaping is taking place when the SOAP envelope is formed.   
"wrappedParam" and my XMLBeans response object look okay.  Printing  
the envelope from the toEnvelope() method shows the escaped contents.


Any help is appreciated.

-Carl

---
Carl Walker, Consultant
FINRA Data Services
(240) 386-6793
Key West Ave (Rockville)

Confidentiality Notice:  This email, including attachments, may  
include non-public, proprietary, confidential or legally privileged  
information.  If you are not an intended recipient or an authorized  
agent of an intended recipient, you are hereby notified that any  
dissemination, distribution or copying of the information contained  
in or transmitted with this e-mail is unauthorized and strictly  
prohibited.  If you have received this email in error, please notify  
the sender by replying to this message and permanently delete this e- 
mail, its attachments, and any copies of it immediately.  You should  
not retain, copy or use this e-mail or any attachment for any  
purpose, nor disclose all or any part of the contents to any other  
person. Thank you






AXIS error

2008-08-27 Thread sarika pramod
Hi Anne,

When I run my client to talk to the WSDL file, the following error is
generated in the console.


15:34:20,036 ERROR [EngineConfigurationFactoryServlet] Unable to find config
file.  Creating new servlet engine config file: /WEB-INF/server-config.w
dd
15:38:38,965 ERROR [STDERR] java.lang.NullPointerException
15:38:38,981 ERROR [STDERR] at
com.fci.server.ws.FCIPlannerServiceImpl.getHealthCheck(FCIPlannerServiceImpl.java:26)
15:38:38,981 ERROR [STDERR] at
com.fci.server.ws.FinanceplansSoapBindingImpl.getHealthCheck(FinanceplansSoapBindingImpl.java:14)
15:38:38,981 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:38:38,981 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:38:38,981 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:38:38,981 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:324)
15:38:38,981 ERROR [STDERR] at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
15:38:38,981 ERROR [STDERR] at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
15:38:38,981 ERROR [STDERR] at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
15:38:38,981 ERROR [STDERR] at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
15:38:38,981 ERROR [STDERR] at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
15:38:38,981 ERROR [STDERR] at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
15:38:38,981 ERROR [STDERR] at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
15:38:38,981 ERROR [STDERR] at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
15:38:38,981 ERROR [STDERR] at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
15:38:38,981 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
15:38:38,981 ERROR [STDERR] at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
15:38:38,981 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
15:38:38,981 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
15:38:38,981 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
15:38:38,981 ERROR [STDERR] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
15:38:38,981 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
15:38:38,981 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
15:38:38,981 ERROR [STDERR] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
15:38:38,981 ERROR [STDERR] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
15:38:38,981 ERROR [STDERR] at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
15:38:38,981 ERROR [STDERR] at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
15:38:38,981 ERROR [STDERR] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
15:38:38,981 ERROR [STDERR] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
15:38:38,981 ERROR [STDERR] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
15:38:38,981 ERROR [STDERR] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
15:38:38,981 ERROR [STDERR] at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
15:38:38,981 ERROR [STDERR] at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
15:38:38,981 ERROR [STDERR] at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
15:38:38,981 ERROR [STDERR] at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
15:38:38,981 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)


I am having AXIS on JBOSS and am not able to figure out what this error
means? All help appreciated.

Regards,
Sarika


Want to use the same message receiver for all operations!!

2008-08-27 Thread murugess

I want the same message reciever to be invoked for a service regardless of
whatever the soap action comes in the request. Basically I am trying to
simulate a servlet which will get all the requests targeted to it. I dont
have any service implementation class and no wsdl in the services folder. 

Here is what I have in services.xml:



http://www.w3.org/ns/wsdl/in-out";
class="com.xyz.GenericMessageReceiverInOut"/>

   



I can't put any opertions name as I want the same
GenericMessageReceiverInOut to be invoked for all operations  ( or requests
with any soapaction or wsa action).


When I send the request using a client, I get following exception:

org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
Operation not found is
http://localhost:8080/CRMGWServer/services/GenericFeedService and the WSA
Action = null
at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:86)
at org.apache.axis2.engine.Phase.invoke(Phase.java:308)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)


I really appreciate if any one can point me to the right solution. I wish i
could put wild card character (*) in the operation tag inside services.xml.



-- 
View this message in context: 
http://www.nabble.com/Want-to-use-the-same-message-receiver-for-all-operations%21%21-tp19191943p19191943.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]



RE: AXIS error

2008-08-27 Thread Martin Gainty

you should see a server-config.wsdd which contains the server config for axis 
server located at
$TOMCAT_HOME/webapps/axis/WEB-INF/server-config.wsdd

there should be a sample server-config.wsdd supplied near
$AXIS_HOME/src/org/apache/axis/server

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


Date: Wed, 27 Aug 2008 16:05:24 -0700
From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: AXIS error

Hi Anne,
 
When I run my client to talk to the WSDL file, the following error is generated 
in the console.
 
 
15:34:20,036 ERROR [EngineConfigurationFactoryServlet] Unable to find config 
file.  Creating new servlet engine config file: /WEB-INF/server-config.w
dd
15:38:38,965 ERROR [STDERR] java.lang.NullPointerException

15:38:38,981 ERROR [STDERR] at 
com.fci.server.ws.FCIPlannerServiceImpl.getHealthCheck(FCIPlannerServiceImpl.java:26)
15:38:38,981 ERROR [STDERR] at 
com.fci.server.ws.FinanceplansSoapBindingImpl.getHealthCheck(FinanceplansSoapBindingImpl.java:14)

15:38:38,981 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:38:38,981 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:38:38,981 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

15:38:38,981 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:324)
15:38:38,981 ERROR [STDERR] at 
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
15:38:38,981 ERROR [STDERR] at 
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)

15:38:38,981 ERROR [STDERR] at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
15:38:38,981 ERROR [STDERR] at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

15:38:38,981 ERROR [STDERR] at 
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
15:38:38,981 ERROR [STDERR] at 
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
15:38:38,981 ERROR [STDERR] at 
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)

15:38:38,981 ERROR [STDERR] at 
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
15:38:38,981 ERROR [STDERR] at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
15:38:38,981 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

15:38:38,981 ERROR [STDERR] at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
15:38:38,981 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
15:38:38,981 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

15:38:38,981 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
15:38:38,981 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

15:38:38,981 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
15:38:38,981 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

15:38:38,981 ERROR [STDERR] at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
15:38:38,981 ERROR [STDERR] at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

15:38:38,981 ERROR [STDERR] at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
15:38:38,981 ERROR [STDERR] at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)

15:38:38,981 ERROR [STDERR] at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
15:38:38,981 ERROR [STDERR] at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

15:38:38,981 ERROR [STDERR] at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
15:38:38,981 ERROR [STDERR] at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

15:38:38,981 ERROR [STDERR] at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
15:38:38,981 ERROR [STDERR] at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

15:38:38,981 ERROR [STDERR] at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSock

RE: Want to use the same message receiver for all operations!!

2008-08-27 Thread Martin Gainty

please supply source for GenericMessageReceiverInOut.java

thx,
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Wed, 27 Aug 2008 16:56:19 -0700
> From: [EMAIL PROTECTED]
> To: axis-user@ws.apache.org
> Subject: Want to use the same message receiver for all operations!!
> 
> 
> I want the same message reciever to be invoked for a service regardless of
> whatever the soap action comes in the request. Basically I am trying to
> simulate a servlet which will get all the requests targeted to it. I dont
> have any service implementation class and no wsdl in the services folder. 
> 
> Here is what I have in services.xml:
> 
> 
> 
> http://www.w3.org/ns/wsdl/in-out";
> class="com.xyz.GenericMessageReceiverInOut"/>
> 
>  
> 
> 
> 
> I can't put any opertions name as I want the same
> GenericMessageReceiverInOut to be invoked for all operations  ( or requests
> with any soapaction or wsa action).
> 
> 
> When I send the request using a client, I get following exception:
> 
> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
> Operation not found is
> http://localhost:8080/CRMGWServer/services/GenericFeedService and the WSA
> Action = null
>   at
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:86)
>   at org.apache.axis2.engine.Phase.invoke(Phase.java:308)
>   at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
>   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
> 
> 
> I really appreciate if any one can point me to the right solution. I wish i
> could put wild card character (*) in the operation tag inside services.xml.
> 
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Want-to-use-the-same-message-receiver-for-all-operations%21%21-tp19191943p19191943.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]
> 

_
Get thousands of games on your PC, your mobile phone, and the web with Windows®.
http://clk.atdmt.com/MRT/go/108588800/direct/01/

Re: [Axis2]

2008-08-27 Thread SivaKrishna Kumar
HI Martin,

Mail to Axis user group bounced. I am sending this mail directly to you, as
I am desperate to get resolution for this issue.

Thanks & Regards
Siva


On 8/28/08, SivaKrishna Kumar <[EMAIL PROTECTED]> wrote:
>
> Hi Martin,
>
> Thank you very much for the reply. Evenafter setting these, I am still
> seeing the same error.
>
> I am herewith attaching my axis2.xml. Can you please check the same. I am
> not able to understand,
>
>
>1. Is it because of some configuration issue that I am seeing this
>error ? or
>2. Am I doing something wrong while converting my normal SOAP
>message/headers to SOAP message/headers for MTOM
>3. Or am I missing something that I need to send as a header along http
>request ?
>
>
> Regards,
> Siva
>
>
>
>  On 8/28/08, Martin Gainty <[EMAIL PROTECTED]> wrote:
>>
>> in /WEB-INF/conf/axis2.xml
>> Sender and Receiver check the 1.1 protocol and chunked encoding parms are set
>> 
>> HTTP/1.1
>>
>> > locked="false">chunked
>>
>> 
>> HTTP/1.1
>> > locked="false">chunked
>>
>>
>> Martin
>> __
>> Disclaimer and confidentiality note
>> Everything in this e-mail and any attachments relates to the official
>> business of Sender. This transmission is of a confidential nature and Sender
>> does not endorse distribution to any party other than intended recipient.
>> Sender does not necessarily endorse content contained within this
>> transmission.
>>
>>
>> --
>> Date: Wed, 27 Aug 2008 23:23:51 +0530
>> From: [EMAIL PROTECTED]
>> To: axis-user@ws.apache.org
>> Subject: [Axis2]
>>
>> Hi,
>>
>> I am trying to add MTOM support to ZSI. When I send a request which is
>> processed for MTOM, on the server side I am getting the below error.
>>
>>
>> org.apache.http.MalformedChunkCodingException: Bad chunk header
>> at
>> org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:232)
>> at
>> org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:183)
>> at
>> org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:155)
>> at
>> org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:175)
>> at
>> org.apache.http.impl.io.ChunkedInputStream.exhaustInputStream(ChunkedInputStream.java:289)
>> at
>> org.apache.http.impl.io.ChunkedInputStream.close(ChunkedInputStream.java:262)
>> at
>> org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:192)
>> at
>> org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
>> at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
>> at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
>> at java.lang.Thread.run(Thread.java:619)
>>
>> On the client side I am getting the below SOAP fault
>>
>> invalid literal for int() with base 16: ''
>>
>> Here are my headers and body sent to Axis's MTOM Sample Service.
>>
>> Can some one point me where is the problem. ?
>>
>> Thanks & Regards
>> Siva
>>
>> [mtom:apply_mtom]: mtomheaders:
>> {'SOAPAction': '"attachment"', 'Content-Type': 'multipart/related;
>> boundary="==ZSI_MIME_BOUNDARY=="; start-info="text/xml";
>> start=""'}
>> [mtom:apply_mtom]: mtombody:
>> --==ZSI_MIME_BOUNDARY==
>> Content-Transfer-Encoding: binary
>> Content-ID: 
>> Content-Type: text/xml; charset=utf-8
>>
>> > xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/";>> />http://ws.apache.org/axis2/mtom
>> sample/">c:\Sample_mtom.zip> href="cid:ZSIAttachment_1" xmlns:ns2="http://www.w3.org/2004/08/xop/incl
>> ude" />
>> --==ZSI_MIME_BOUNDARY==
>> Content-Type: application/octet-stream
>> Content-Transfer-Encoding: binary
>> Content-ID: 
>>
>> ìë7í"3?9?»ñ(?┘►S‼K3É3 PK☺☻¶ ¶  ⌡h←93▬Wçh   ╚   ←   ☺   ╢ü
>> Sample_txt_mtom_clieent.txtPK♣♠☺ ☺ I   í
>> --==ZSI_MIME_BOUNDARY==--
>>
>>
>> --
>> Talk to your Yahoo! Friends via Windows Live Messenger. Find Out 
>> How
>>
>
>
>


axis2 deployment issue in OC4J

2008-08-27 Thread Shehan Simen
Hi,
When I deploy the axis2.war (1.4 version) file in the OC4j, I got the following 
error:
"Recursive error in error-page calling for /axis2-web/Error/error500.jsp, see 
the  application log for details."

Can any one please tell me the steps to deploy axis2.war file in OC4J ?

Thank you.


Re: Want to use the same message receiver for all operations!!

2008-08-27 Thread Eran Chinthaka
Do you want to get all the message related to a given service in to one
message receiver? Or is it that you want to get all the messages,
irrespective of the service to get to one message receiver?

If it is the first case, then register one message receiver class name for
all the MEPs.

IIRC, this is how Axis2 internals work. When you get a SOAP message, we will
first identify the service and the operation this message is going to. Every
operation is connected to a MEP (http://wso2.org/library/335), and a message
receiver is also bound to a message receiver for a given service. One the
operation and the service is found, service.xml details are used to retrieve
the message receiver connected to the MEP of that operation.

If it is the second case, then you might have to write a handler to do this.


HTH.
Chinthaka

On Wed, Aug 27, 2008 at 7:56 PM, murugess <[EMAIL PROTECTED]> wrote:

>
> I want the same message reciever to be invoked for a service regardless of
> whatever the soap action comes in the request. Basically I am trying to
> simulate a servlet which will get all the requests targeted to it. I dont
> have any service implementation class and no wsdl in the services folder.
>
> Here is what I have in services.xml:
>
>
>
>http://www.w3.org/ns/wsdl/in-out";
> class="com.xyz.GenericMessageReceiverInOut"/>
>
>
>
>
>
> I can't put any opertions name as I want the same
> GenericMessageReceiverInOut to be invoked for all operations  ( or requests
> with any soapaction or wsa action).
>
>
> When I send the request using a client, I get following exception:
>
> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
> Operation not found is
> http://localhost:8080/CRMGWServer/services/GenericFeedService and the WSA
> Action = null
>at
>
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:86)
>at org.apache.axis2.engine.Phase.invoke(Phase.java:308)
>at
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
>at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
>
>
> I really appreciate if any one can point me to the right solution. I wish i
> could put wild card character (*) in the operation tag inside services.xml.
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Want-to-use-the-same-message-receiver-for-all-operations%21%21-tp19191943p19191943.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]
>
>


-- 
With Mettha,
Eran Chinthaka


Health is the greatest gift; contentment is the greatest wealth; trusting is
the best relationship; nirvana is the highest joy. - Dhammapada


Re: Axis 2 - SSL with Client Authentication

2008-08-27 Thread StrongSteve

SSL is set up correctly, but it is also set up to "clientAuth=true".
Therefore I need to import my client certificate in the browser, in order to
be able to complete the SSL Handshake with the Server.

Any ideas on how to do this?

Thanks!
Stefan


SGruverman wrote:
> 
> StrongSteve <[EMAIL PROTECTED]> wrote on 08/27/2008 10:06:57 AM:
>>
>> 1.) When browsing to the WSDL-File with Firefox, I can not see anything,
> as
>> I do not have a valid client certificate. I tried to import a
> certificate,
>> that I exported with the keytool from the client's .keystore, but it is
>> rejected as it is not a valid PK-12. Any hints?
> 
> If SSL is set up correctly, then browsing to the WSDL should prompt you to
> trust the SSL cert the first time you go to that server.
> I have only worked with JKS stores, but I don't think the type of store
> would affect this behavior.
> 
> __
> Steve Gruverman, Programmer
> IntelliCare, Inc. | A Medco Health Solutions Company
> 
> 500 Southborough Drive | South Portland ME 04106
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axis-2---SSL-with-Client-Authentication-tp19180080p19194607.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]