AXIS2 and AXIOM

2008-08-26 Thread Martina08

hi, i have some Problems to write a client by a given WSDL-File. First i have
generate the stub-classes (i get one *.h and one *.c file). Then i work
along the hello example. First Step is:
Create the environment to be used by the client. 
env = axutil_env_create_all(example.log, AXIS_LOG_LEVEL_TRACE);
client_home = AXIS2_GETENV(AXIS2C_HOME);
...
then follow:Create an options instance, and set options.
endpoint_uri = http://localhost:8080/...;;
stub = axis2_stub_create_exampleService(env, client_home, endpoint_uri);

Then follow:Set options to service client instance


I did it a little bit different like the hello example, but i think it
works. The main problem is the next step:
Send the request and receive the response, Process the response
I have read the AXIOM tutorial but i think this is very abstract. I dont
know how i write a request and response function using AXIOM. I understand
that you must create a tree structur with the nodes. But what is exactly a
AXIOM_ELEMENT? How can i use SOAP
A fragment of the wsdl document is like:
message name=ini
part name =parameters element=tns:ini/
/message
...
...
portType name=ExampleService
operation name=ini
input message=tns:ini/
output message=tns:iniResp/
/operation
My question is, how i create the payload for request and receive Response?
Is somewhere a good tutorial using AXIOM or other examples? Can somebody
give me a few tipps to get better involve with AXIOM and Client programming?

-- 
View this message in context: 
http://www.nabble.com/AXIS2-and-AXIOM-tp19163204p19163204.html
Sent from the Axis - C++ - User mailing list archive at Nabble.com.


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



Re: AXIS2 and AXIOM

2008-08-26 Thread Rajika Kumarasiri
On Tue, Aug 26, 2008 at 8:01 PM, Martina08 [EMAIL PROTECTED] wrote:

Have a look at this echo client sample, look how the pay load is built
there.
https://svn.apache.org/repos/asf/webservices/axis2/trunk/c/samples/client/echo/echo.c

-Rajika


 hi, i have some Problems to write a client by a given WSDL-File. First i
 have
 generate the stub-classes (i get one *.h and one *.c file). Then i work
 along the hello example. First Step is:
 Create the environment to be used by the client.
 env = axutil_env_create_all(example.log, AXIS_LOG_LEVEL_TRACE);
 client_home = AXIS2_GETENV(AXIS2C_HOME);
 ...
 then follow:Create an options instance, and set options.
 endpoint_uri = http://localhost:8080/...;;
 stub = axis2_stub_create_exampleService(env, client_home, endpoint_uri);

 Then follow:Set options to service client instance
 

 I did it a little bit different like the hello example, but i think it
 works. The main problem is the next step:
 Send the request and receive the response, Process the response
 I have read the AXIOM tutorial but i think this is very abstract. I dont
 know how i write a request and response function using AXIOM. I understand
 that you must create a tree structur with the nodes. But what is exactly a
 AXIOM_ELEMENT? How can i use SOAP
 A fragment of the wsdl document is like:
 message name=ini
part name =parameters element=tns:ini/
 /message
 ...
 ...
 portType name=ExampleService
operation name=ini
input message=tns:ini/
output message=tns:iniResp/
/operation
 My question is, how i create the payload for request and receive Response?
 Is somewhere a good tutorial using AXIOM or other examples? Can somebody
 give me a few tipps to get better involve with AXIOM and Client
 programming?

 --
 View this message in context:
 http://www.nabble.com/AXIS2-and-AXIOM-tp19163204p19163204.html
 Sent from the Axis - C++ - User mailing list archive at Nabble.com.


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




-- 
http://wso2.org/
http://llvm.org/
http://osdev.org/


Re: Runtime error

2008-08-26 Thread Alessandro Gambaro
Hi, I figured out it debugging the sources (The code needed some libraries),
hoping this can help somebody here a little guide:

1 - Do not use http://ws.apache.org/axis/cpp/download.html (It's old)
2 - Download the last version from SVN that is more stable
http://svn.apache.org/repos/asf/webservices/axis/trunk/c
3 - Download Xerces sources http://xerces.apache.org/xerces-c/
 Build Xerces (you need it for AxisXMLParser)
 Xerces is not mandatory but you need to compile one
AxisXMLParser***.dll and i decided to use Xerces
4 - Build AxisXMLParser.dll (AxisXMLParserXerces project)
 AxisClient.dll (AxisClient project)
 HTTPChannel.dll (HTTPChannel project)
 HTTPChannel.dll (HTTPChannel project)
 HTTPTransport.dll(Axis3 project)
5 - Build the java code to create the new .jar file
6 - Generate the stubs using the new jar
7 - Create e simple client and use the libraries above to run and compile IT
WORKS

Thanks,
Alessandro


On Tue, Aug 26, 2008 at 2:29 PM, Alessandro Gambaro 
[EMAIL PROTECTED] wrote:

 Hi I would like to use AXIS-C to consume a web services, what I've done is
 (Server with .NET 2005 and client with Visual C++ 6.0):

 1 - Download the zip from http://ws.apache.org/axis/cpp/download.html

 2 - Unzip, and I've also generated the stub with this command:
  Java -classpath ./;./axis-c-1.6b-Win32-trace-
 bin/lib/axis/wsdl2ws.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/axis.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/commons-discovery.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/commons-logging.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/jaxrpc.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/saaj.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/wsdl4j.jar
 org.apache.axis.wsdl.wsdl2ws.WSDL2Ws MyTest.wsdl -lc++ -sclient

 3 - I've downloaded msvcp70.dll and msvcr70.dll
 4 - I've created a project (with visual C++ 6.0)set it up and created a
 client who call the web services:


Service1Soap* service = new Service1Soap(WSDL_DEFAULT_ENDPOINT,
 APTHTTP1_1);
xsd__string cazzo = service-HelloWorld();


 5 - When I run the client I get this error: 0xE06D7363 MIcrosoft Exception

 I've also create a client with axis for Java and it works fine. Could you
 please tell me what I miss or what i've to do?

 Many thanks,

 Alessandro



Re: AXIS2 and AXIOM

2008-08-26 Thread Supun Kamburugamuva
Here is a simple tutorial for Axiom/C

http://wsaxc.blogspot.com/2008/01/beginners-guide-to-axiomc.html

Supun..

On Tue, Aug 26, 2008 at 7:50 PM, Rajika Kumarasiri [EMAIL PROTECTED]wrote:



 On Tue, Aug 26, 2008 at 8:01 PM, Martina08 [EMAIL PROTECTED]wrote:

 Have a look at this echo client sample, look how the pay load is built
 there.

 https://svn.apache.org/repos/asf/webservices/axis2/trunk/c/samples/client/echo/echo.c

 -Rajika


 hi, i have some Problems to write a client by a given WSDL-File. First i
 have
 generate the stub-classes (i get one *.h and one *.c file). Then i work
 along the hello example. First Step is:
 Create the environment to be used by the client.
 env = axutil_env_create_all(example.log, AXIS_LOG_LEVEL_TRACE);
 client_home = AXIS2_GETENV(AXIS2C_HOME);
 ...
 then follow:Create an options instance, and set options.
 endpoint_uri = http://localhost:8080/...;;
 stub = axis2_stub_create_exampleService(env, client_home, endpoint_uri);

 Then follow:Set options to service client instance
 

 I did it a little bit different like the hello example, but i think it
 works. The main problem is the next step:
 Send the request and receive the response, Process the response
 I have read the AXIOM tutorial but i think this is very abstract. I dont
 know how i write a request and response function using AXIOM. I understand
 that you must create a tree structur with the nodes. But what is exactly a
 AXIOM_ELEMENT? How can i use SOAP
 A fragment of the wsdl document is like:
 message name=ini
part name =parameters element=tns:ini/
 /message
 ...
 ...
 portType name=ExampleService
operation name=ini
input message=tns:ini/
output message=tns:iniResp/
/operation
 My question is, how i create the payload for request and receive Response?
 Is somewhere a good tutorial using AXIOM or other examples? Can somebody
 give me a few tipps to get better involve with AXIOM and Client
 programming?

 --
 View this message in context:
 http://www.nabble.com/AXIS2-and-AXIOM-tp19163204p19163204.html
 Sent from the Axis - C++ - User mailing list archive at Nabble.com.


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




 --
 http://wso2.org/
 http://llvm.org/
 http://osdev.org/




-- 
Software Engineer, WSO2 Inc


Re: Axis2 Addressing

2008-08-26 Thread Tamás Horváth
Hi,

I've got a solution.
Remove the module ref=addressing/ then (after restarting the
server) deploy your webservice and engage this module for this
service.


2008/8/25 Deepal jayasinghe [EMAIL PROTECTED]:
 Where do you want to turn off the addressing , if it is in the server
 side , you can do the following
 - go to axis2.xml inside the conf directory and remove the module
 ref=addressing/ tag

 Thank you!
 Deepal
 Hi,

 How can I turn off Addressing under Axis2?

 I tried this:
 (In code)
 @Addressing(enabled=false)

 But on the server, after deploying the service, I have the following:
 Engaged modules for the service

 * addressing :: Disengage

 If I try to disengage the this module for the servise I get the
 following response:
 Can not disengage module addressing. This module is engaged at a higher 
 level.

 Thanks,


 --
 Thanks,
 Deepal
 
 http://blogs.deepal.org/


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





-- 
Horváth Tamás

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



Re: changing the Http request URI

2008-08-26 Thread pierre betz
the previous web service was deployed in tomcat and generated with axis1.

to access to a service and call an operation, we did :

http://service.myUrl.com:18080/NameOftheWar/services/NameService?NameOperation

but, as now I use axis2 as a plugin in tomcat, I really can't find a way to
call the new WebService with the same url. I assume it's not possible ?
because all the axis2 services will be in the
http://url.com:18080/axis2/whatever/

.. si .. still no ideas on how to change the way axis2 listen..


java.lang.IllegalArgumentException: Wrong target. class ...

2008-08-26 Thread O. Bigalk

Hi,

I am developing a web service with a method that takes a complex type as
parameter.
The method takes three parameters the first is an String the second is an
array of String an the third is an array of FeatureCategoryTreePath which is
the complex type. Both parameter are nillable. When I call the method with
the second paremeter set to null all works fine
but when I call the method with a non null value I get the exception below.
Here is the SOAP request send to the service.
soapenv:Envelope 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:q0=http://webservice.moses.prisma.de; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;  
   soapenv:Body
  q0:getResultListWithKeywordsAndFeatures  
 q0:identity1234/q0:identity  
 q0:keywords
q0:itemS2/q0:item  
 /q0:keywords  
 q0:features
q0:item  
   q0:idArray
  q0:item1/q0:item
  q0:item4/q0:item  
   /q0:idArray  
   q0:nameArray xsi:nil=true/  
   q0:toleranceArray xsi:nil=true/  
   q0:valueArray
  q0:itemwert/q0:item  
   /q0:valueArray
/q0:item  
 /q0:features
  /q0:getResultListWithKeywordsAndFeatures  
   /soapenv:Body/soapenv:Envelope


Here the exception thrown.

javax.ejb.EJBException: java.lang.IllegalArgumentException: Wrong target.
class de.prisma.moses.webfrontend.reference.RefObjectFinderBean for public
ava.util.List
de.prisma.moses.webfrontend.reference.RefObjectFinderBean.getResultListWithKeywordsAndFeatures(java.lang.String[],de.prisma.moses.ejb.session.FeatureCategoryPathQuery[])
at
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
at
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:297)
at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:59)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:133)
at $Proxy2437.getResultListWithKeywordsAndFeatures(Unknown Source)
at
de.prisma.moses.webservice.SimilarityRequest.getResultListWithKeywordsAndFeatures(SimilarityRequest.java:565)
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.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at 

Friendly API for calling a RESTful webservice

2008-08-26 Thread Arnout Engelen
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:

wsdl:operation name=getEvents
   pattern=http://www.w3.org/ns/wsdl/in-out;
   style=http://www.w3.org/ns/wsdl/style/iri;
   wsdlx:safe=true
  wsdl:input element=lastfmgeo:getEventsRequest/
  wsdl:output element=lastfmgeo:lfm/
/wsdl:operation

The request type is defined as follows:

  xs:element name=getEventsRequest type=tns:getEventsRequestType
xs:annotation
  xs:documentation
 The request element for the getEvents service.
  /xs:documentation
/xs:annotation
  /xs:element
  
  complexType name=getEventsRequestType
sequence
  element name=api_key type=string minOccurs=1 maxOccurs=1/
  element name=location type=string minOccurs=0 maxOccurs=1/
/sequence
  /complexType
  
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]



Setting a default namespace for responses

2008-08-26 Thread Arnout Engelen
Hi,

I'm calling a webservice that returns XML elements without a namespace.

Is there any way I can specify a default namespace to use when none is
specified in the returned XML? Now I get a:

  Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement 
lfm
at gennedservice.GeoStub$Lfm$Factory.parse(GeoStub.java:1319)

because the following check fails:

  new 
javax.xml.namespace.QName(http://net/bzzt/lastfmlib/model/geo/getEvents,lfm;).equals(reader.getName())

which is because the namespace of the element in the reader is 'null'.


Kind regards,

Arnout

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



Security : Why my timestamp is two hours before my system hour ?

2008-08-26 Thread Mehdi Rabah
Hi,

Here is my problem : yesterday my webservice was working, today it's not.
Without code modifications  :)
I have this error : WSDoAllReceiver: security processing failed

I've looked into the SOAP enveloppe and the timestamp is two hours before my
system time. Example :
wsu:Created 2008-08-26T09:03:00.687Z/wsu:Created // when really,
it's 11:03

Is this a know problem ? Any idea of where I should search the problem (keep
in my mind that my WS was working and I made no code modifications) ?

Cheers
Mehdi


Re: Security : Why my timestamp is two hours before my system hour ?

2008-08-26 Thread Erich Musick
Not sure if this helps or not, but the timestamp is output in UTC time.
Therefore, unless your local timezone offset is 0, the time will always
differ.

- Erich Musick



On Tue, Aug 26, 2008 at 7:22 AM, Mehdi Rabah [EMAIL PROTECTED] wrote:

 Hi,

 Here is my problem : yesterday my webservice was working, today it's not.
 Without code modifications  :)
 I have this error : WSDoAllReceiver: security processing failed

 I've looked into the SOAP enveloppe and the timestamp is two hours before
 my system time. Example :
 wsu:Created 2008-08-26T09:03:00.687Z/wsu:Created // when really,
 it's 11:03

 Is this a know problem ? Any idea of where I should search the problem
 (keep in my mind that my WS was working and I made no code modifications) ?

 Cheers
 Mehdi



Axis Web Service issue

2008-08-26 Thread sarika pramod
Hi all,

I am getting this error when i am deploying the AXIS webservice in JBOSS

C:\FCIPlannerServer-1.0\WEB-INF\classes\com\fci\server\wsjava
org.apache.axis.client.AdminClient -l
http://localhost:8080/FCIPlannerServer-1.0/servic
es/AdminService deploy.wsdd
Processing file deploy.wsdd
Exception: AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode:
 faultString: (404)/FCIPlannerServer-1.0/services/AdminService
 faultActor:
 faultNode:
 faultDetail:
{}:return code:  404
lt;htmlgt;lt;headgt;lt;titlegt;Apache Tomcat/5.5.17 - Error
reportlt;/titlegt;lt;stylegt;lt;!--H1
{font-family:Tahoma,Arial,sans-serif;colo
r:white;background-color:#525D76;font-size:22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 {fo
nt-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;backgrou
nd-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P {font-family:Tahoma,Arial,sans-serif;background:white
;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR
{color : #525D76;}--gt;lt;/stylegt;
lt;/headgt;lt;bodygt;lt;h1gt;HTT
P Status 404 - /FCIPlannerServer-1.0/services/AdminServicelt;/h1gt;lt;HR
size=quot;1quot; noshade=quot;noshadequot;gt;lt;pgt;lt;bgt;typel
t;/bgt; Status reportlt;/pgt;lt;pgt;lt;bgt;messagelt;/bgt;
lt;ugt;/FCIPlannerServer-1.0/services/AdminServicelt;/ugt;lt;/pgt;lt;pgt;
lt;bgt;descriptionlt;/bgt; lt;ugt;The requested resource
(/FCIPlannerServer-1.0/services/AdminService) is not
available.lt;/ugt;lt;/pgt;lt;H
R size=quot;1quot; noshade=quot;noshadequot;gt;lt;h3gt;Apache
Tomcat/5.5.17lt;/h3gt;lt;/bodygt;lt;/htmlgt;
{http://xml.apache.org/axis/}HttpErrorCode:404

Any help appreciated.

Regards,
Sarika


Re: Security : Why my timestamp is two hours before my system hour ?

2008-08-26 Thread Mehdi Rabah
It helped a little, thanks. I've set my time to 0 offset, so the timestamp
is the same, but I still have my original problem :/

On Tue, Aug 26, 2008 at 2:31 PM, Erich Musick [EMAIL PROTECTED] wrote:

 Not sure if this helps or not, but the timestamp is output in UTC time.
 Therefore, unless your local timezone offset is 0, the time will always
 differ.

 - Erich Musick



 On Tue, Aug 26, 2008 at 7:22 AM, Mehdi Rabah [EMAIL PROTECTED]wrote:

 Hi,

 Here is my problem : yesterday my webservice was working, today it's not.
 Without code modifications  :)
 I have this error : WSDoAllReceiver: security processing failed

 I've looked into the SOAP enveloppe and the timestamp is two hours before
 my system time. Example :
 wsu:Created 2008-08-26T09:03:00.687Z/wsu:Created // when really,
 it's 11:03

 Is this a know problem ? Any idea of where I should search the problem
 (keep in my mind that my WS was working and I made no code modifications) ?

 Cheers
 Mehdi





Re: Axis Web Service issue

2008-08-26 Thread Anne Thomas Manes
This is a 404 Not Found message.
You must have specified a wrong URL.

Anne

On Tue, Aug 26, 2008 at 8:35 AM, sarika pramod [EMAIL PROTECTED] wrote:
 Hi all,

 I am getting this error when i am deploying the AXIS webservice in JBOSS

 C:\FCIPlannerServer-1.0\WEB-INF\classes\com\fci\server\wsjava
 org.apache.axis.client.AdminClient
 -lhttp://localhost:8080/FCIPlannerServer-1.0/servic
 es/AdminService deploy.wsdd
 Processing file deploy.wsdd
 Exception: AxisFault
  faultCode: {http://xml.apache.org/axis/}HTTP
  faultSubcode:
  faultString: (404)/FCIPlannerServer-1.0/services/AdminService
  faultActor:
  faultNode:
  faultDetail:
 {}:return code:  404
 lt;htmlgt;lt;headgt;lt;titlegt;Apache Tomcat/5.5.17 - Error
 reportlt;/titlegt;lt;stylegt;lt;!--H1
 {font-family:Tahoma,Arial,sans-serif;colo
 r:white;background-color:#525D76;font-size:22px;} H2
 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
 H3 {fo
 nt-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
 BODY {font-family:Tahoma,Arial,sans-serif;color:black;backgrou
 nd-color:white;} B
 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
 P {font-family:Tahoma,Arial,sans-serif;background:white
 ;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR
 {color : #525D76;}--gt;lt;/stylegt;
 lt;/headgt;lt;bodygt;lt;h1gt;HTT
 P Status 404 - /FCIPlannerServer-1.0/services/AdminServicelt;/h1gt;lt;HR
 size=quot;1quot; noshade=quot;noshadequot;gt;lt;pgt;lt;bgt;typel
 t;/bgt; Status reportlt;/pgt;lt;pgt;lt;bgt;messagelt;/bgt;
 lt;ugt;/FCIPlannerServer-1.0/services/AdminServicelt;/ugt;lt;/pgt;lt;pgt;
 lt;bgt;descriptionlt;/bgt; lt;ugt;The requested resource
 (/FCIPlannerServer-1.0/services/AdminService) is not
 available.lt;/ugt;lt;/pgt;lt;H
 R size=quot;1quot; noshade=quot;noshadequot;gt;lt;h3gt;Apache
 Tomcat/5.5.17lt;/h3gt;lt;/bodygt;lt;/htmlgt;
 {http://xml.apache.org/axis/}HttpErrorCode:404

 Any help appreciated.

 Regards,
 Sarika

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



wsdl2java question

2008-08-26 Thread SGruverman
We had been using the Eclipse plug-in for WSDL-to-Java codegen. When we
recently tried the same codegen with wsdl2java.bat, we received Malformed
uri runtime errors.
It was easy to find the problem (we had removed a security policy from the
WSDL but had forgotten to remove the policy reference).

I could not find a set of options for the wsdl2java.bat that would
successfully run the codegen so I'm wondering if this indicates a problem
with the Eclipse plug-in.

Using Axis2 1.3.

Sample WSDL is attached.

(See attached file: Simple.wsdl)

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

500 Southborough Drive | South Portland ME 04106


Simple.wsdl
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

How to use Rampart as Axis2 client from ejb (JBoss) ?

2008-08-26 Thread Rainer Montag

Hello,

I like to implement an Axis2 client that is used from within an EJB 
calling an external web service that requires a UsernameToken.


I have a problem how to setup my Axis2 client code to engage the rampart 
module resulting in a Unable to engage module: rampart exception.


My ejb code looks something like this:

 ConfigurationContext ctx = ConfigurationContextFactory
  .createConfigurationContextFromFileSystem(null, null);
  service = new MyServiceStub(ctx, endpoint);

  // engaging rampart and setting authentification information
  Options options = service._getServiceClient().getOptions();
  options.setUserName(authName);
  options.setPassword(authPass);

  service._getServiceClient().engageModule(rampart);

As I'm within my ejb in an EAR, I cannot provide a file path to the 
client repository as the first argument of 
createConfigurationContextFromFileSystem(). I've tried to put the 
rampart module in a directory lib/ in my EAR archive and set the 
manifest classpath of my ejb-jar to the lib/ directory, but with no 
success. Anyone got an idea what is wrong ?


I'm using Axis 1.4 and rampart-1.4. The applicationserver to host my EAR 
is JBoss 4.0.5.


Thanks in advance,
  Rainer

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



Re: Security : Why my timestamp is two hours before my system hour ?

2008-08-26 Thread Mehdi Rabah
ah - never mind, looks like it's because my keystore have expired. (I didn't
know this was even possible).

On Tue, Aug 26, 2008 at 3:02 PM, Mehdi Rabah [EMAIL PROTECTED] wrote:

 It helped a little, thanks. I've set my time to 0 offset, so the timestamp
 is the same, but I still have my original problem :/


 On Tue, Aug 26, 2008 at 2:31 PM, Erich Musick [EMAIL PROTECTED]wrote:

 Not sure if this helps or not, but the timestamp is output in UTC time.


 Therefore, unless your local timezone offset is 0, the time will always
 differ.

 - Erich Musick



 On Tue, Aug 26, 2008 at 7:22 AM, Mehdi Rabah [EMAIL PROTECTED]wrote:

 Hi,

 Here is my problem : yesterday my webservice was working, today it's not.
 Without code modifications  :)
 I have this error : WSDoAllReceiver: security processing failed

 I've looked into the SOAP enveloppe and the timestamp is two hours before
 my system time. Example :
 wsu:Created 2008-08-26T09:03:00.687Z/wsu:Created // when really,
 it's 11:03

 Is this a know problem ? Any idea of where I should search the problem
 (keep in my mind that my WS was working and I made no code modifications) ?

 Cheers
 Mehdi






Re: java.lang.IllegalArgumentException: Wrong target. class ...

2008-08-26 Thread Anne Thomas Manes
You didn't define a typemapping for ArrayOf_xsd_string.

Anne

On Tue, Aug 26, 2008 at 5:26 AM, O. Bigalk [EMAIL PROTECTED] wrote:

 Hi,

 I am developing a web service with a method that takes a complex type as
 parameter.
 The method takes three parameters the first is an String the second is an
 array of String an the third is an array of FeatureCategoryTreePath which is
 the complex type. Both parameter are nillable. When I call the method with
 the second paremeter set to null all works fine
 but when I call the method with a non null value I get the exception below.
 Here is the SOAP request send to the service.
 soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:q0=http://webservice.moses.prisma.de;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   soapenv:Body
  q0:getResultListWithKeywordsAndFeatures
 q0:identity1234/q0:identity
 q0:keywords
q0:itemS2/q0:item
 /q0:keywords
 q0:features
q0:item
   q0:idArray
  q0:item1/q0:item
  q0:item4/q0:item
   /q0:idArray
   q0:nameArray xsi:nil=true/
   q0:toleranceArray xsi:nil=true/
   q0:valueArray
  q0:itemwert/q0:item
   /q0:valueArray
/q0:item
 /q0:features
  /q0:getResultListWithKeywordsAndFeatures
   /soapenv:Body/soapenv:Envelope


 Here the exception thrown.

 javax.ejb.EJBException: java.lang.IllegalArgumentException: Wrong target.
 class de.prisma.moses.webfrontend.reference.RefObjectFinderBean for public
 ava.util.List
 de.prisma.moses.webfrontend.reference.RefObjectFinderBean.getResultListWithKeywordsAndFeatures(java.lang.String[],de.prisma.moses.ejb.session.FeatureCategoryPathQuery[])
at
 org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
at
 org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
at
 org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
 org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at
 org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
 org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
at
 org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
 org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at
 org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
 org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at
 org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
 org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at
 org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
 org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:297)
at
 org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:59)
at
 org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
 org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:133)
at $Proxy2437.getResultListWithKeywordsAndFeatures(Unknown Source)
at
 de.prisma.moses.webservice.SimilarityRequest.getResultListWithKeywordsAndFeatures(SimilarityRequest.java:565)
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.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at
 org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at
 org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at
 org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at
 org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at
 org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
 org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at 

Re: Identified AXIS2 Unexpected Element issue but how do I get this to work with stubs

2008-08-26 Thread Anne Thomas Manes
Add elementFormDefault=qualified to the xsd:schema declaration in your WSDL.

In your message you specify a default namespace in the
SummaryRequest element, so that namespace then applies to all child
elements in the message instance. If you do not specify
elementFormDefault, then your child elements are defined as
unqualified, hence the 'unexpected element' error.

Anne

On Wed, Aug 20, 2008 at 1:42 AM, Andrew Zielinski
[EMAIL PROTECTED] wrote:

 Hi,

 Like many users I was having issues with 'unexpected element'. With the help
 of TCPMon I was able to resolve the issue. Instead of the soap request being
 formed like this:

 ?xml version='1.0' encoding='UTF-8'?
 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 soapenv:Body
 SummaryRequest xmlns=http://online.nielsen.com/ca/api/;
 accountId55/accountId
 dateRange type=to_end_date
 start2008-11-01T00:00:00.000+10:00/start
 end2008-11-01T00:00:00.000+10:00/end
 /dateRange
 /SummaryRequest
 /soapenv:Body
 /soapenv:Envelope

 I would need to specify the namespace and prefix in soapenv:Envelope like
 this:

 ?xml version='1.0' encoding='UTF-8'?
 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:q0=http://online.nielsen.com/ca/api/;
 soapenv:Body
 q0:SummaryRequest
 accountId55/accountId
 dateRange type=to_end_date
 start2008-11-01T00:00:00.000+10:00/start
 end2008-11-01T00:00:00.000+10:00/end
 /dateRange
 /q0:SummaryRequest
 /soapenv:Body
 /soapenv:Envelope

 My question is, is there anyway to modify the stub request so it is like the
 second example or is there anything that I would I have to do to my WSDL for
 the first request to be valid.

 Cheers,

 Andrew


 --
 View this message in context: 
 http://www.nabble.com/Identified-AXIS2-Unexpected-Element-issue-but-how-do-I-get-this-to-work-with-stubs-tp19063214p19063214.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]



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



Re: Friendly API for calling a RESTful webservice

2008-08-26 Thread Rahul Devgan
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.

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:

wsdl:operation name=getEvents
   pattern=http://www.w3.org/ns/wsdl/in-out;
   style=http://www.w3.org/ns/wsdl/style/iri;
   wsdlx:safe=true
  wsdl:input element=lastfmgeo:getEventsRequest/
  wsdl:output element=lastfmgeo:lfm/
/wsdl:operation

 The request type is defined as follows:

  xs:element name=getEventsRequest type=tns:getEventsRequestType
xs:annotation
  xs:documentation
 The request element for the getEvents service.
  /xs:documentation
/xs:annotation
  /xs:element

  complexType name=getEventsRequestType
sequence
  element name=api_key type=string minOccurs=1 maxOccurs=1/
  element name=location type=string minOccurs=0 maxOccurs=1/
/sequence
  /complexType

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


Re: Friendly API for calling a RESTful webservice

2008-08-26 Thread keith chapman
Hi,

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();

Thanks,
Keith.

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:

wsdl:operation name=getEvents
   pattern=http://www.w3.org/ns/wsdl/in-out;
   style=http://www.w3.org/ns/wsdl/style/iri;
   wsdlx:safe=true
  wsdl:input element=lastfmgeo:getEventsRequest/
  wsdl:output element=lastfmgeo:lfm/
/wsdl:operation

 The request type is defined as follows:

  xs:element name=getEventsRequest type=tns:getEventsRequestType
xs:annotation
  xs:documentation
 The request element for the getEvents service.
  /xs:documentation
/xs:annotation
  /xs:element

  complexType name=getEventsRequestType
sequence
  element name=api_key type=string minOccurs=1 maxOccurs=1/
  element name=location type=string minOccurs=0 maxOccurs=1/
/sequence
  /complexType

 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]



Problems trying to access a secure WS using PKCS#11

2008-08-26 Thread Fernando Cesar Silva
Hi all,

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



Re: Axiss2 1.2 - Problem with client calling WS behind HTTPS

2008-08-26 Thread SGruverman
Nick,

I was catching up on my axis-user mail and noticed that you hadn't received
any replies. Not sure if I can help, but some suggestions:

Does the endpoint your client is calling have the correct protocol as well
as the correct port? (e.g. HTTPS://www.mysite.com:8443/your/service/here)
Does the truststore on the client have the certificate for the CA that
signed your SSL cert? I'm still not 100% sure about this, but I think it
needs that rather than the actual SSL cert.
Have you turned on SSL debugging in your client - sometimes that provides
more of a clue: System.setProperty(javax.net.debug, ssl);

I hope you've solved the problem and, if not, that one of these suggestions
helps.

- Steve

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

500 Southborough Drive | South Portland ME 04106


Nick Popov [EMAIL PROTECTED] wrote on 08/17/2008 01:54:59 PM:

 I have Axis2 1.2 deployed as a part of web application on Tomcat 5.
 Tomcat configuration have HTTP and HTTPS ports configured.
 The web services are accessible via HTTP and HTTPS. For HTTPS I’m
 using self-signed cert in a store.
 I can see the WSDL for HTTPS/HTTP in IE/FF also by using  SOAPSonar.
 When I configure the client URL to point to the HTTP port everything
 is OK. But when I point to the HTTPS port I have the I get the
 following stack trace:

 .
 .
 .

 Caused by: org.apache.axis2.AxisFault: The server localhost failed
 to respond with a valid HTTP response
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke
 (CommonsHTTPTransportSender.java:221)
 at org.apache.axis2.engine.AxisEngine.send
 (AxisEngine.java:452)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send
 (OutInAxisOperation.java:330)
 at
 org.apache.axis2.description.OutInAxisOperationClient.execute
 (OutInAxisOperation.java:294)
 at org.apache.axis2.client.ServiceClient.sendReceive
 (ServiceClient.java:520)
 at org.apache.axis2.client.ServiceClient.sendReceive
 (ServiceClient.java:500)
 at
 com.prosrm.common.wsclient.axis2.RPCServiceClient.invokeBlocking
 (RPCServiceClient.java:114)
 at com.prosrm.common.wsclient.WSClient.invoke
 (WSClient.java:128)
 ... 19 more
 Caused by: org.apache.axis2.AxisFault: The server localhost failed
 to respond with a valid HTTP response
 at

org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons

 (CommonsHTTPTransportSender.java:314)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke
 (CommonsHTTPTransportSender.java:201)
 ... 26 more
 Caused by: org.apache.axis2.AxisFault: The server localhost failed
 to respond with a valid HTTP response
 at

org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179)
 at org.apache.axis2.transport.http.HTTPSender.send
 (HTTPSender.java:73)
 at

org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons

 (CommonsHTTPTransportSender.java:305)
 ... 27 more
 Caused by: org.apache.commons.httpclient.ProtocolException: The
 server localhost failed to respond with a valid HTTP response
 at
 org.apache.commons.httpclient.HttpMethodBase.readStatusLine
 (HttpMethodBase.java:1846)
 at
 org.apache.commons.httpclient.HttpMethodBase.readResponse
 (HttpMethodBase.java:1590)
 at

org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
 at
 org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry
 (HttpMethodDirector.java:397)
 at
 org.apache.commons.httpclient.HttpMethodDirector.executeMethod
 (HttpMethodDirector.java:170)
 at

org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
 at

org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
 at
 org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod
 (AbstractHTTPSender.java:558)
 at

org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176)
 ... 29 more

 I  have the javax.net.ssl.trustStore and
 javax.net.ssl.trustStorePassword set up and I know that the certs are OK.
 At this point, before start building/debugging AXIS2 code I would
 like to know if any of you had the same problem.

 Thanks in advance for any suggestion on how to resolve that.

 Nick Popov


 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.

AXIS vs. Spring WS

2008-08-26 Thread thomas2004

I am used to use Apache AXIS and quite satisfied. Now I am going to make a
project in which I have to build a Web Service. I want to use the AXIS but
my customer want Spring WS.

These days I am learning SPring WS and find it 's much more difficult and
complicated to learn. 

Does someone have experience at both and give a tipp?

Regards

Thomas
-- 
View this message in context: 
http://www.nabble.com/AXIS-vs.-Spring-WS-tp19165473p19165473.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 Web Service issue

2008-08-26 Thread sarika pramod
Hi Anne,

I have the web service code in a war file , FCC.war and we have the another
ear deployed in JBOSS/server/b2c/deploy/ folder..

I need the service deployed in
http://localhost:8080/FCIPlannerServer-1.0/services/FCIClientTestInfo?wsdl

I am able to deploy the AXIS Webservice as
http://localhost:8080/axis/services/FCIClientTestInfo?wsdl


I am not able to understand where I am going wrong in my approach. Can you
please please help me figure out. All help greatly appreciated.

Regards,
Sarika



On 8/26/08, Anne Thomas Manes [EMAIL PROTECTED] wrote:

 This is a 404 Not Found message.
 You must have specified a wrong URL.

 Anne

 On Tue, Aug 26, 2008 at 8:35 AM, sarika pramod [EMAIL PROTECTED]
 wrote:
  Hi all,
 
  I am getting this error when i am deploying the AXIS webservice in JBOSS
 
  C:\FCIPlannerServer-1.0\WEB-INF\classes\com\fci\server\wsjava
  org.apache.axis.client.AdminClient
  -lhttp://localhost:8080/FCIPlannerServer-1.0/servic
  es/AdminService deploy.wsdd
  Processing file deploy.wsdd
  Exception: AxisFault
   faultCode: {http://xml.apache.org/axis/}HTTP
   faultSubcode:
   faultString: (404)/FCIPlannerServer-1.0/services/AdminService
   faultActor:
   faultNode:
   faultDetail:
  {}:return code:  404
  lt;htmlgt;lt;headgt;lt;titlegt;Apache Tomcat/5.5.17 - Error
  reportlt;/titlegt;lt;stylegt;lt;!--H1
  {font-family:Tahoma,Arial,sans-serif;colo
  r:white;background-color:#525D76;font-size:22px;} H2
 
 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
  H3 {fo
 
 nt-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
  BODY {font-family:Tahoma,Arial,sans-serif;color:black;backgrou
  nd-color:white;} B
 
 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
  P {font-family:Tahoma,Arial,sans-serif;background:white
  ;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR
  {color : #525D76;}--gt;lt;/stylegt;
  lt;/headgt;lt;bodygt;lt;h1gt;HTT
  P Status 404 -
 /FCIPlannerServer-1.0/services/AdminServicelt;/h1gt;lt;HR
  size=quot;1quot;
 noshade=quot;noshadequot;gt;lt;pgt;lt;bgt;typel
  t;/bgt; Status reportlt;/pgt;lt;pgt;lt;bgt;messagelt;/bgt;
 
 lt;ugt;/FCIPlannerServer-1.0/services/AdminServicelt;/ugt;lt;/pgt;lt;pgt;
  lt;bgt;descriptionlt;/bgt; lt;ugt;The requested resource
  (/FCIPlannerServer-1.0/services/AdminService) is not
  available.lt;/ugt;lt;/pgt;lt;H
  R size=quot;1quot; noshade=quot;noshadequot;gt;lt;h3gt;Apache
  Tomcat/5.5.17lt;/h3gt;lt;/bodygt;lt;/htmlgt;
  {http://xml.apache.org/axis/}HttpErrorCode:404
 
  Any help appreciated.
 
  Regards,
  Sarika

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




RE: Axis Web Service issue

2008-08-26 Thread Shah, Sumit
You might be able to do it by changing the web.xml entry in the war
file.

 

Thanks

Sumit

 



From: sarika pramod [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 12:29 PM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: Re: Axis Web Service issue

 

Hi Anne,

 

I have the web service code in a war file , FCC.war and we have the
another ear deployed in JBOSS/server/b2c/deploy/ folder..

 

I need the service deployed in
http://localhost:8080/FCIPlannerServer-1.0/services/FCIClientTestInfo?ws
dl

 

I am able to deploy the AXIS Webservice as
http://localhost:8080/axis/services/FCIClientTestInfo?wsdl

 

 

I am not able to understand where I am going wrong in my approach. Can
you please please help me figure out. All help greatly appreciated.

 

Regards,

Sarika



 

On 8/26/08, Anne Thomas Manes [EMAIL PROTECTED] wrote: 

This is a 404 Not Found message.
You must have specified a wrong URL.

Anne

On Tue, Aug 26, 2008 at 8:35 AM, sarika pramod [EMAIL PROTECTED]
wrote:
 Hi all,

 I am getting this error when i am deploying the AXIS webservice in
JBOSS

 C:\FCIPlannerServer-1.0\WEB-INF\classes\com\fci\server\wsjava
 org.apache.axis.client.AdminClient
 -lhttp://localhost:8080/FCIPlannerServer-1.0/servic
 es/AdminService deploy.wsdd
 Processing file deploy.wsdd
 Exception: AxisFault
  faultCode: {http://xml.apache.org/axis/}HTTP
http://xml.apache.org/axis/%7dHTTP 
  faultSubcode:
  faultString: (404)/FCIPlannerServer-1.0/services/AdminService
  faultActor:
  faultNode:
  faultDetail:
 {}:return code:  404
 lt;htmlgt;lt;headgt;lt;titlegt;Apache Tomcat/5.5.17 - Error
 reportlt;/titlegt;lt;stylegt;lt;!--H1
 {font-family:Tahoma,Arial,sans-serif;colo
 r:white;background-color:#525D76;font-size:22px;} H2

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;}
 H3 {fo

nt-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;f
ont-size:14px;}
 BODY {font-family:Tahoma,Arial,sans-serif;color:black;backgrou
 nd-color:white;} B

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;}
 P {font-family:Tahoma,Arial,sans-serif;background:white
 ;color:black;font-size:12px;}A {color : black;}A.name {color :
black;}HR
 {color : #525D76;}--gt;lt;/stylegt;
 lt;/headgt;lt;bodygt;lt;h1gt;HTT
 P Status 404 -
/FCIPlannerServer-1.0/services/AdminServicelt;/h1gt;lt;HR
 size=quot;1quot;
noshade=quot;noshadequot;gt;lt;pgt;lt;bgt;typel
 t;/bgt; Status reportlt;/pgt;lt;pgt;lt;bgt;messagelt;/bgt;

lt;ugt;/FCIPlannerServer-1.0/services/AdminServicelt;/ugt;lt;/pgt;
lt;pgt;
 lt;bgt;descriptionlt;/bgt; lt;ugt;The requested resource
 (/FCIPlannerServer-1.0/services/AdminService) is not
 available.lt;/ugt;lt;/pgt;lt;H
 R size=quot;1quot; noshade=quot;noshadequot;gt;lt;h3gt;Apache
 Tomcat/5.5.17lt;/h3gt;lt;/bodygt;lt;/htmlgt;
 {http://xml.apache.org/axis/}HttpErrorCode:404
http://xml.apache.org/axis/%7dHttpErrorCode:404 

 Any help appreciated.

 Regards,
 Sarika

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

 



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

2008-08-26 Thread SGruverman
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 JAVA_HOME\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]



Can I

2008-08-26 Thread thomas2004


-- 
View this message in context: 
http://www.nabble.com/Can-I-tp19168308p19168308.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]



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

2008-08-26 Thread thomas2004

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 WS 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-Spring-WS--tp19168321p19168321.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]



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

2008-08-26 Thread thomas2004

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]



RE: changing the Http request URI

2008-08-26 Thread Shehan Simen
Hi,
Just rename the axis.war file to NameOftheWar.war and deploy it in the tomcat. 
Then put ur .aar file inside the proper place same as in axis2. It just work. 
Let me know how it goes.

Regards,
Shehan

From: pierre betz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 26 August 2008 6:57 PM
To: axis-user@ws.apache.org
Subject: Re: changing the Http request URI


the previous web service was deployed in tomcat and generated with axis1.

to access to a service and call an operation, we did :

http://service.myUrl.com:18080/NameOftheWar/services/NameService?NameOperation

but, as now I use axis2 as a plugin in tomcat, I really can't find a way to 
call the new WebService with the same url. I assume it's not possible ?
because all the axis2 services will be in the 
http://url.com:18080/axis2/whatever/

.. si .. still no ideas on how to change the way axis2 listen..


RE: changing the Http request URI

2008-08-26 Thread Martin Gainty

copy *.aar to
%TOMCAT_HOME%/webapps/axis2/WEB-INF/services

and update
%TOMCAT_HOME%/webapps/axis2/WEB-INF/services/services.list

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. 


From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Date: Wed, 27 Aug 2008 09:15:48 +1000
Subject: RE: changing the Http request URI
















Hi,

Just rename the axis.war file to NameOftheWar.war and deploy it
in the tomcat. Then put ur .aar file inside the proper place same as in axis2.
It just work. Let me know how it goes.

 

Regards,

Shehan

 



From: pierre betz
[mailto:[EMAIL PROTECTED] 

Sent: Tuesday, 26 August 2008 6:57 PM

To: axis-user@ws.apache.org

Subject: Re: changing the Http request URI



 





the previous web service was deployed in tomcat and generated with axis1.



to access to a service and call an operation, we did :



http://service.myUrl.com:18080/NameOftheWar/services/NameService?NameOperation



but, as now I use axis2 as a plugin in tomcat, I really can't find a way to
call the new WebService with the same url. I assume it's not possible ?

because all the axis2 services will be in the 
http://url.com:18080/axis2/whatever/



.. si .. still no ideas on how to change the way axis2 listen..









_
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: changing the Http request URI

2008-08-26 Thread Shehan Simen
Hi Martin,
Can we get rid of the word axis2 from the url by doing as you said?

Regards

From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 27 August 2008 9:29 AM
To: axis-user@ws.apache.org
Subject: RE: changing the Http request URI

copy *.aar to
%TOMCAT_HOME%/webapps/axis2/WEB-INF/services

and update
%TOMCAT_HOME%/webapps/axis2/WEB-INF/services/services.list

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.


From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Date: Wed, 27 Aug 2008 09:15:48 +1000
Subject: RE: changing the Http request URI
Hi,
Just rename the axis.war file to NameOftheWar.war and deploy it in the tomcat. 
Then put ur .aar file inside the proper place same as in axis2. It just work. 
Let me know how it goes.

Regards,
Shehan

From: pierre betz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 26 August 2008 6:57 PM
To: axis-user@ws.apache.org
Subject: Re: changing the Http request URI


the previous web service was deployed in tomcat and generated with axis1.

to access to a service and call an operation, we did :

http://service.myUrl.com:18080/NameOftheWar/services/NameService?NameOperation

but, as now I use axis2 as a plugin in tomcat, I really can't find a way to 
call the new WebService with the same url. I assume it's not possible ?
because all the axis2 services will be in the 
http://url.com:18080/axis2/whatever/

.. si .. still no ideas on how to change the way axis2 listen..


Get thousands of games on your PC, your mobile phone, and the web with 
Windows(r). Game with Windowshttp://clk.atdmt.com/MRT/go/108588800/direct/01/


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

2008-08-26 Thread Deepal jayasinghe
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]



Re: AXIS vs. Spring WS

2008-08-26 Thread Deepal Jayasinghe

 I am used to use Apache AXIS and quite satisfied. Now I am going to make a
 project in which I have to build a Web Service. I want to use the AXIS but
 my customer want Spring WS.

 These days I am learning SPring WS and find it 's much more difficult and
 complicated to learn. 

 Does someone have experience at both and give a tipp?
   
Well , if you look at Apache Axis2 , which has inbuilt support for
Spring. Where it has two approaches to work with Spring.

 1- Deploying spring pojos in Axis2 -
http://ws.apache.org/axis2/1_4_1/spring.html
 2- deploying and starting axis2 in Spring container  -
http://blogs.deepal.org/2008/07/spring-web-services-and-axis2.html

Depending on your requirement you can use one of the above approaches.

Thank you!
Deepal
 Regards

 Thomas
   

-- 
Thanks,
Deepal

http://blogs.deepal.org/


-
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-26 Thread José Ferreiro
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


Re: changing the Http request URI

2008-08-26 Thread pierre betz
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 :)