[Axis2] RE: Client-within-server problems

2006-04-26 Thread Marshall, John
Finally solved my own problem, the system at the other end was not a
proper Web Service and wasn't actually running anything resembling the
WSDL I'd been given. It was more of an HTTP listener that someone had
set up to monitor the traffic.

I created a dummy web service to simulate the other end and my
AxisService immediately cheered up and started working great!


Hi,
I'm trying to develop a request-reply web service, rather like in Figure
4 on this website:

http://www-128.ibm.com/developerworks/library/ws-asynch2/

To do this I'm essentially writing a synchronous web service to do the
first request-ack interaction. During the processing I launch a new
thread that is effectively a client for the other end. I want to send
the response document (which may have taken some time to obtain) back to
the other end.

I have the WSDL of the other end and used it to create a client stub. I
can send my response document to the other end and get the ack back from
it. However, my Stub ALWAYS crashes within the 
_operationClient.execute(true);

With a NullPointerException. 
I've dug around a bit and it seems to be caused by the
createSOAPMessage() method of the TransportUtils class - the inStream is
always null.

I'm guessing there is something clever I have to do with
message/operation/configuration contexts, but I can't figure it out! The
really weird thing is that despite the AxisFault being thrown, the
document still gets sent!

Can anyone advise what I have to do to be able to behave like a client
within an AxisService?

Thanks for any light you can shed,
John M.



generate WSDL with implicit headers

2006-04-26 Thread Stanley Stanev

Hello all,

I am trying to find out, is it possible to use Axis to generate a WSDL that
includes implicit headers?

thanks a lot

--

Stanimir Stanev (Stanley)
Senior Java Developer
www.stanev.com




Re: Axis 1.3 on port 80 (not 8080)

2006-04-26 Thread Simon McMahon



Thanks!
 
I found the details on:
http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html
 
Just needed the extra
    JkMount /axis/services/* ...
in the conf/httpd.conf and away it went.
 
Cheers,
 
Simon.
 
Simon McMahon
 
Work: (07) 31311420Mobile: (043) 2294180>>> 
[EMAIL PROTECTED] 04/24/06 02:29pm >>>In Apache, you need 
to direct the urls for the axis services to go tomod_jk.  Just see how 
it's done for your other servlets.  The relevantfile is 
/etc/httpd/conf.d/jk.conf (and possibly also in/etc/httpd/conf/httpd.conf, 
and /etc/httpd/conf.d/ssl.conf if you'repassing https urls to Tomcat 
also.JeffOn 4/23/06, Simon McMahon 
<[EMAIL PROTECTED]> wrote:>> Thanks but those 
changes are already in place - i.e. mod_jk - because I have> other 
servlets that already run on port 80.> When I install Axis into that 
Tomcat configuration Axis still appears to> need port 
8080.>> Any idea where I should look to troubleshoot this? What 
config files etc?>> Cheers,>> 
Simon.>

*
This email, including any attachments sent with it, is
confidential and for the sole use of the intended recipient(s).
This confidentiality is not waived or lost, if you receive it and
you are not the intended recipient(s), or if it is transmitted/
received in error.

Any unauthorised use, alteration, disclosure, distribution or
review of this email is strictly prohibited.  The information
contained in this email, including any attachment sent with
it, may be subject to a statutory duty of confidentiality if it
relates to health service matters.

If you are not the intended recipient(s), or if you have
received this email in error, you are asked to immediately
notify the sender by telephone collect on Australia
+61 1800 198 175 or by return email.  You should also
delete this email, and any copies, from your computer
system network and destroy any hard copies produced.

If not an intended recipient of this email, you must not copy,
distribute or take any action(s) that relies on it; any form of
disclosure, modification, distribution and/or publication of this
email is also prohibited.

Although Queensland Health takes all reasonable steps to
ensure this email does not contain malicious software,
Queensland Health does not accept responsibility for the
consequences if any person's computer inadvertently suffers
any disruption to services, loss of information, harm or is
infected with a virus, other malicious computer programme or
code that may occur as a consequence of receiving this
email.

Unless stated otherwise, this email represents only the views
of the sender and not the views of the Queensland Government.





Re: [axis2] services.xml problems

2006-04-26 Thread Deepal Jayasinghe
Hi Michele;
I found the problem, each service element in a servicegroup have to have
name attribute so if you apply my changes it will work


Michele Mazzucco wrote:

>Hi all,
>
>I'm using Axis2 1.0 RC2 and I'm having troubles with services.xml when I
>include more that one service.
>
>In particular, the services.xml below doesn't work (the .aar file is
>shown as "faulty service")
>
>
>
>
>   
>  
>
**

>   
>   First
>   
> locked="xsd:false">stock.service.StockQuoteService
>   
> 
>   class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
> 
>   
> 
>   class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
> 
>   
>
>   
>  
>

**

>   Second
>   locked="xsd:false">stock.service.SchemaQuoteService
>   
>   
>   class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>   
>   
>   
>   class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
>   
>   
>   
>   
>   
>   value 1
>
>
>Any idea?
>
>Thanks in advance,
>Michele
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 





Re: CalClient problem: Classpath

2006-04-26 Thread Deepal Jayasinghe
Hi  Kensky;

This is Axis1 sampple not an Axis2 sample , so Axis1 does not support
.aar based deployemnt , so it will not help that if you drop .aar file
into classpath. But if you put .jar file it may work (btw I am not the
right person to answer Axis1 q :) )


Kensky Schulz wrote:

> You have to place the server side .aar in your class path. Remember
> the server side code you generated as .aar for classpath
> reference should be renamed as .jar before placing into
> classpath.
>
>
>
> On 4/24/06, Askar Zaidi <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>>  When I try to run the CalClient example, I get the following exception:
>>
>>  Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/axis/utils/Options
>>  at
>> samples.userguide.example2.CalcClient.main(CalcClient.java:29)
>>
>>  If this is a CLASSPATH trouble, please tell me how to solve this.
>>
>>  I have set AXIS_HOME and AXIS_LIB.
>>
>>  this is my directory structure:
>>
>>  /home/tintin/apache/
>>  /home/tintin/axis/
>>
>>  PLEASE ! this is urgent !!
>>
>> -- 
>> thanks,
>>
>> Askar
>
>
>

-- 
Thanks,
Deepal

~Future is Open~ 





WSDD: Would service level config override ?

2006-04-26 Thread ajax chelsea
Hi all:I want to know whether Individual Service Configuration can override the ? for example:...
sendMultiRefs" value="true"/>...then   sendMultiRefs" value="false"/> 
  Will it work? Thanks.


Re: help on java2wsdl and parameter types

2006-04-26 Thread Dies Koper

Hello Mati,

Use the option -u LITERAL.

As far as I understood, the SOAP spec was being written when the 
XMLSchema spec was not finished yet. The SOAP spec defines a way to 
describe data types, so does the XMLSchema. Java2WSDL uses ENCODED (SOAP 
encoding) by default, but you can change it to use XMLSchema data types.

Some SOAP engines (.NET?) do not support SOAP encoded data types.

Regards,
Dies


Mati David wrote:

Hi,

 


I'm running java2wsdl (axis1.3) in rpc style on my java source files.

In the generated wsdl I see that the messages arguments types have the
'soapenc' namespace i.e., .

Yet, when I look at automatically generated wsdl from the axis engine on
my web server I see that those types are defined with the xsd namespace
- "xsd:string".

How can I cause the java2wsdl tool to generate a wsdl using the xsd
namespace for parameter types (and what is actually the difference
between those two namespaces?)?

 


Thanks,

 

Mati David, 




Re: WSDL2Java variable name syntax error

2006-04-26 Thread Dies Koper

Hi,

Why do you want them to be uppercase?
Axis makes the first letter lowercase in line with the rules for mapping 
XML names to Java described in the appendix (chapter 20) of the JAX-RPC 
1.1 spec.
The generated class is a Javabean, so either way you can use the 
generated getter/setter methods (that always begin with "get/set" 
followed by an uppercase letter) to access them.


Regards,
Dies

Recep Ayaz wrote:

Hello,

i have problem with WSDL2Java . in my WSDL, first character of xml element's
names are title case but generated classes variables are lower cases.
How can handle that problem ?

for example my wsdl file and java class are below:
**

http://schemas.xmlsoap.org/wsdl/";
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
   xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
   xmlns:xs="http://www.w3.org/2001/XMLSchema";
   xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
   xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; >

http://www.hititcs.com/TestRecep";
  xmlns:impl="http://www.hititcs.com/TestRecep";>



   
   






then my java classes are like that

package otapax.requestclasses;

public class FlightTypePrefType  implements java.io.Serializable {
private java.lang.String preferLevel;  /

private java.lang.String flightType;// but it must be  FlightType
!!!

.
}


please help me?


thanks  for your atteniton

Recep Ayaz




Odd error in Stub when getting ConfigurationContext

2006-04-26 Thread david.ziebol
Hi all,

When I run my service local (localhost) this is not a problem.  But
allas, I'm trying to run the service on a non-local box.  IN the Stub
generated from WSDL2Java there is a  constructor as such:  (note I added
some try-catch blocks)
public
FoundationServicesServerServiceStub(org.apache.axis2.context.Configurati
onContext configurationContext,
java.lang.String targetEndpoint)
throws java.lang.Exception {
//To populate AxisService
populateAxisService();
populateFaults();

try
{
//_serviceClient = new
org.apache.axis2.client.ServiceClient(configurationContext,_service);
ConfigurationContext context =
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
ContextFromFileSystem(AXIS2_HOME, null);
_serviceClient = new
org.apache.axis2.client.ServiceClient(context,_service);
//_serviceClient = new
org.apache.axis2.client.ServiceClient(configurationContext,_service);
}
catch (Exception e)
{
String msg = e.getMessage();
System.out.println(msg);
}
try
{
_serviceClient.getOptions().setTo(new
org.apache.axis2.addressing.EndpointReference(
targetEndpoint));
}
catch (Exception e)
{
String msg = e.getMessage();
System.out.println(msg);
} 

As I step thought he code, it seams the axis2.xml is being parsed but
then out of the blue the following is encountered:

DEBUG in builder.StAXOMBuilder.next():lINE:144 - msg=END_ELEMENT:
axisconfig:axisconfig
DEBUG in engine.Phase.addHandler():lINE:113 - msg=Handler
RequestURIBasedDispatcher added to Phase Transport
DEBUG in engine.Phase.addHandler():lINE:113 - msg=Handler
SOAPActionBasedDispatcher added to Phase Transport
DEBUG in engine.Phase.addHandler():lINE:113 - msg=Handler
AddressingBasedDispatcher added to Phase Dispatch
DEBUG in engine.Phase.addHandler():lINE:113 - msg=Handler
SOAPMessageBodyBasedDispatcher added to Phase Dispatch
DEBUG in engine.Phase.addHandler():lINE:113 - msg=Handler
InstanceDispatcher added to Phase java.lang.NoClassDefFoundError:
org/apache/axis2/om/OMXMLParserWrapper
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown
Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.ws.policy.util.PolicyFactory.getPolicyReader(PolicyFactory.ja
va:42)
at
org.apache.axis2.deployment.DescriptionBuilder.processPolicyElements(Des
criptionBuilder.java:406)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigB
uilder.java:112)
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(D
eploymentEngine.java:751)
at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java:111)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:35)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
ContextFromFileSystem(ConfigurationContextFactory.java:84)
at
com.thomson.west.foundations.soap.FoundationServicesServerServiceStub.(FoundationServicesServerServiceStub.java:93)
at
com.thomson.west.foundations.transport.SoapTransporter.retrieveUnique(So
apTransporter.java:176)
at
com.thomson.west.foundations.transport.TransportBuilder.getApp(Transport
Builder.java:268)
at
com.thomson.west.foundations.FoundationsBuilder.eagerPopulate(Foundation
sBuilder.java:157)
at
com.thomson.west.foundations.FoundationsBuilder.(FoundationsBuilde
r.java:116)
at
com.thomson.west.foundations.security.test.FoundationsSampleSecurityUsea
geTestEnv.runApp(FoundationsSampleSecurityUseageTestEnv.java:103)
at
com.thomson.west.foundations.security.test.FoundationsSampleSecurityUsea
geTestEnv.main(FoundationsSampleSecurityUseageTestEnv.java:85)

Now this issue goes away IF I include the axis2-core-0.94.jar as well as
the axis2-kernel-1.0-RC1.jar in the lib dir of my client app.  But why
would I need both of these jars?  Isn't axis2-kernel-1.0-RC1.jar suppose
to replace axis2-core-0.94.jar?

Any assistence would be greatly appreciated.

Dave Ziebol


RE: ws-addressing version support

2006-04-26 Thread Weston, Toby
Eran Chinthaka wrote:
>> Hi Folks,
>> 
>> The feature list of Axis2 states support for;
>> 
>> - 9. WS-Addressing, both the submission (2004/08) and final
>> (2005/08) versions 
>> 
>> Does this mean that the 2003/03 isn't supported? I ask because Oracle
>> BPEL PM it seems only supports 2003/03...
> 
> Nope. 2003/03 is not supported.
> 
>> 
>> How do you configure which to use?
> 
> You don't need to configure anything. Server side can handle both
> versions without any configurations. But if you wanna send a message
> using specific version of addressing, in client side, call  
> 
> options.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,
> AddressingConstants.Final.WSA_NAMESPACE) or
> 
> options.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,
> AddressingConstants.Submission.WSA_NAMESPACE)
> 
> depending on your requirement.
> 
> -- Chinthaka
> 

Excellent, thanks for your help, that's just what I needed :)


Re: java.io.InterruptedIOException: Read timed out - HELP!

2006-04-26 Thread Srinadh Karumuri

Problem resolved as usual after I posted. :)

After downloading and checking the source code I realized the following:

In axis-1_3, correct name of the property is "axis.connection.timeout" not 
"axis.connect.timeout" as I used.


I am using axis-1_1 and call.setTimeout(...) is the right way for 1.1.

Sri

At 03:20 PM 4/26/2006, Srinadh Karumuri wrote:
I was a happy axis-1_1 user on both client and server for about a year 
when we had to move to a slower server.


Now I get the timed out exception everyday in the morning and I am trying 
to figure out a way to increase the current timeout (probably at 60 
seconds) to something like 180 secs.


Here is the exception I see on the client side.

java.io.InterruptedIOException: Read timed out
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:85)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:181)
at java.io.BufferedInputStream.read(BufferedInputStream.java:199)
at 
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:506)
at 
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:127)
at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)

at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)

I checked in Google and forums and tried:
call.setProperty("axis.connect.timeout", new Integer(5000)); // set for 5 secs

But it's not timing out after 5 secs. Idea was to use 180 secs once the 
above code reproduces the problem.


Thanks for any help,
Sri





java.io.InterruptedIOException: Read timed out - HELP!

2006-04-26 Thread Srinadh Karumuri
I was a happy axis-1_1 user on both client and server for about a year when 
we had to move to a slower server.


Now I get the timed out exception everyday in the morning and I am trying 
to figure out a way to increase the current timeout (probably at 60 
seconds) to something like 180 secs.


Here is the exception I see on the client side.

java.io.InterruptedIOException: Read timed out
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:85)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:181)
at java.io.BufferedInputStream.read(BufferedInputStream.java:199)
at 
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:506)
at 
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:127)
at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)

at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)

I checked in Google and forums and tried:
call.setProperty("axis.connect.timeout", new Integer(5000)); // set for 5 secs

But it's not timing out after 5 secs. Idea was to use 180 secs once the 
above code reproduces the problem.


Thanks for any help,
Sri




Problem with remote admin (Axis 1.3)

2006-04-26 Thread Fábio Lima Santos

Hy,

I am using Axis 1.3 and 'm deploying my webservice with a WSDD... when I deploy 
it using the Axis Ant tasks from localhost it works fine... Then I defined the 
parameter enableRemoteAdmin to "true" on the server-config.wsdd like below:




I did the deploy remotelly and its ok, and when I access the url 
http://server:port/webservices/MyService its ok too... But when I try to 
generate the WSDL by the url http://server:port/webservices/MyService?wsdl an 
error is thrown:


2006-04-26 13:27:24,758 INFO  [org.apache.axis.providers.java.JavaProvider] 
Mapping Exception to AxisFault

AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.generalException
 faultSubcode:
 faultString: Attempted to write schema for bad QName (no namespace) : 
parametros
 faultActor:
 faultNode:
 faultDetail:

org.apache.axis.AxisFault: Attempted to write schema for bad QName (no 
namespace) : parametros


Is there some problem with a remote deploy?

--
Fábio Lima Santos - Gerente de Projetos
Dextra Sistemas
Fone: +55 19 3256-6722


URGENT - javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate

2006-04-26 Thread Sara Santos
Hello,
I'm trying to make Client Side Authentication using Axis 1.3.
I have a successfully deployed Web Service requiring authentication
and I can view the wsdl in my browser by choosing a trusted
certificate.
So my problem is when I try to invoke a client in command line from a
remote machine I get the following error:
javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: javax.net.ssl.SSLHandshakeException: Received fatal
alert: bad_certificate
 faultActor:
 faultNode:
 faultDetail:
   
{http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException:
Received fatal alert: bad_certificate
   at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275)
   at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.b(DashoA12275)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA12275)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA12275)
   at 
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
   at 
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
   at 
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
   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.client.AxisClient.invoke(AxisClient.java:165)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   at org.apache.axis.client.Call.invoke(Call.java:2767)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at 
pep.multicert.dev.ejbca.adminweb.ws.AuthenticationWS.AuthenticationWSSoapBindingStub.authenticate(AuthenticationWSSoapBindingStub.java:95)
   at 
pep.multicert.dev.ejbca.adminweb.ws.AuthenticationWS.Tester.main(Tester.java:15)

   {http://xml.apache.org/axis/}hostname:sarasantos.multicert.inet

javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
   at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
   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.client.AxisClient.invoke(AxisClient.java:165)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   at org.apache.axis.client.Call.invoke(Call.java:2767)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at 
pep.multicert.dev.ejbca.adminweb.ws.AuthenticationWS.AuthenticationWSSoapBindingStub.authenticate(AuthenticationWSSoapBindingStub.java:95)
   at 
pep.multicert.dev.ejbca.adminweb.ws.AuthenticationWS.Tester.main(Tester.java:15)
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert:
bad_certificate
   at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275)
   at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.b(DashoA12275)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA12275)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA12275)
   at 
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
   at 
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
   at 
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
   ... 11 more


I have the server and the client certificates both in
$JAVA_HOME/jre/lib/security/cacerts as trustedcacerts and in addittion
I specified in my client code the following properties:

System.setProperty("javax.net.ssl.trustStore","/usr/java/j2sdk1.4.2_10/jre/lib/security/cacerts");
System.setProperty("javax.net.ssl.trustStorePassword","changeit");

I'm using java2wsdl and wsdl2java for generating my stubs.

I haven't got any idea on how to solve this one, so any help would be great.

Sorry for the long mail, thanks,

Sara


WSDL2Java variable name syntax error

2006-04-26 Thread Recep Ayaz
Hello,i have problem with WSDL2Java . in my WSDL, first character of xml element's names are title case but generated classes variables are lower cases.How can handle that problem ?for example my wsdl file and java class are below:
**http://schemas.xmlsoap.org/wsdl/"    xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/"    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"    xmlns:xs="
http://www.w3.org/2001/XMLSchema"    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
   xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" >                          targetNamespace="
http://www.hititcs.com/TestRecep"               xmlns:impl="http://www.hititcs.com/TestRecep"        >
                     
                               then my java classes are like that package otapax.requestclasses;public class FlightTypePrefType  implements 
java.io.Serializable {    private java.lang.String preferLevel;  /     private java.lang.String flightType;    // but it must be  FlightType !!!.}please help me?
thanks  for your attenitonRecep Ayaz


Re: ws-addressing version support

2006-04-26 Thread Eran Chinthaka
Weston, Toby wrote:
> Hi Folks,
> 
> The feature list of Axis2 states support for;
> 
> - 9. WS-Addressing, both the submission (2004/08) and final (2005/08)
> versions 
> 
> Does this mean that the 2003/03 isn't supported? I ask because Oracle BPEL
> PM it seems only supports 2003/03...

Nope. 2003/03 is not supported.

> 
> How do you configure which to use?

You don't need to configure anything. Server side can handle both
versions without any configurations. But if you wanna send a message
using specific version of addressing, in client side, call

options.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,
AddressingConstants.Final.WSA_NAMESPACE) or

options.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,
AddressingConstants.Submission.WSA_NAMESPACE)

depending on your requirement.

-- Chinthaka

> 
> Thanks in advance,
> Toby
> 




signature.asc
Description: OpenPGP digital signature


RE: [axis2] SwA example

2006-04-26 Thread Michael Robinson

Thanks for your help. I just downloaded Axis2 RC3 and now have
org.apache.axiom.attachments.Attachments. 

Before I was using RC1 and could not find this class. Thanks again. 


-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 26, 2006 1:07 PM
To: axis-user@ws.apache.org
Subject: Re: [axis2] SwA example

It will return org.apache.axiom.attachments.Attachments. See the test
case:

http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/int
egration/test/org/apache/axis2/swa/


thanks,
dims

On 4/26/06, Michael Robinson <[EMAIL PROTECTED]> wrote:
> Ok, thanks for the MTOMConstants class reference.
>
> Is the Attachments object that you created just an example or is that
> also a part of some API? I am a little confused about what exactly
will
> be returned from the msgcts.getProperty(MTOMConstants.ATTACHMENTS).
>
> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 26, 2006 12:12 PM
> To: axis-user@ws.apache.org
> Subject: Re: [axis2] SwA example
>
> Attachments attachment = (Attachments)
> msgcts.getProperty(MTOMConstants.ATTACHMENTS);
>
> thanks,
> dims
>
> On 4/26/06, Michael Robinson <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > I'm attempting to process a request from a SwA client using Axis2
but
> am
> > having some problems with the sample at
> >
> >
> >
> > http://ws.apache.org/axis2/0_95/mtom-guide.html#3
> >
> >
> >
> > MIMEHelper attachments =
> > (MIMEHelper)msgcts.getProperty(MIMEHelper.ATTACHMENTS);
> >
> >
> >
> > MIMEHelper.ATTACHMENTS seems to not exist. What is the string
> equivalent of
> > this constant?
> >
> >
> >
> > Is there any other examples of accessing SwA messges?
> >
> > 
> >
> >
> >
> >
> >
> >
> >  This e-mail and any files transmitted with it are intended solely
> >  for the use of the entity or individual(s) to whom they are
> >  addressed and not for reliance upon by unintended recipients. If
> >  you are not the intended recipient or the person responsible for
> >  delivering the e-mail to the intended recipient be advised that you
> >  have received this e-mail in error and that any use, dissemination,
> >  forwarding, printing, or copying of this e-mail and any files
> >  transmitted are strictly prohibited. If you have received this
> >  e-mail in error please delete the entire email and immediately
> >  notify us by email to the sender or by telephone to the AOC main
> >  office number, (404) 656-5171. Thank you.
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>


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


Re: [axis2] SwA example

2006-04-26 Thread Davanum Srinivas
It will return org.apache.axiom.attachments.Attachments. See the test case:

http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/swa/


thanks,
dims

On 4/26/06, Michael Robinson <[EMAIL PROTECTED]> wrote:
> Ok, thanks for the MTOMConstants class reference.
>
> Is the Attachments object that you created just an example or is that
> also a part of some API? I am a little confused about what exactly will
> be returned from the msgcts.getProperty(MTOMConstants.ATTACHMENTS).
>
> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 26, 2006 12:12 PM
> To: axis-user@ws.apache.org
> Subject: Re: [axis2] SwA example
>
> Attachments attachment = (Attachments)
> msgcts.getProperty(MTOMConstants.ATTACHMENTS);
>
> thanks,
> dims
>
> On 4/26/06, Michael Robinson <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > I'm attempting to process a request from a SwA client using Axis2 but
> am
> > having some problems with the sample at
> >
> >
> >
> > http://ws.apache.org/axis2/0_95/mtom-guide.html#3
> >
> >
> >
> > MIMEHelper attachments =
> > (MIMEHelper)msgcts.getProperty(MIMEHelper.ATTACHMENTS);
> >
> >
> >
> > MIMEHelper.ATTACHMENTS seems to not exist. What is the string
> equivalent of
> > this constant?
> >
> >
> >
> > Is there any other examples of accessing SwA messges?
> >
> > 
> >
> >
> >
> >
> >
> >
> >  This e-mail and any files transmitted with it are intended solely
> >  for the use of the entity or individual(s) to whom they are
> >  addressed and not for reliance upon by unintended recipients. If
> >  you are not the intended recipient or the person responsible for
> >  delivering the e-mail to the intended recipient be advised that you
> >  have received this e-mail in error and that any use, dissemination,
> >  forwarding, printing, or copying of this e-mail and any files
> >  transmitted are strictly prohibited. If you have received this
> >  e-mail in error please delete the entire email and immediately
> >  notify us by email to the sender or by telephone to the AOC main
> >  office number, (404) 656-5171. Thank you.
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>


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


Re: [Axis2][1.0RC3] Unable to locate with a locator the schema referenced at 'xsd1.xsd' ...

2006-04-26 Thread Ali Sadik Kumlali
Here it is: http://issues.apache.org/jira/browse/AXIS2-623

Thanks,

Ali Sadik Kumlali

--- Davanum Srinivas <[EMAIL PROTECTED]> wrote:

> Ali,
> 
> Could u please open a JIRA issue and upload your wsdl/schemas? that
> you used to generate the service.
> 
> thanks,
> dims
> 
> On 4/26/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> > Hi Ajith,
> >
> > Thanks for the quick response. If I didn't miss something, the
> latest
> > code in SVN causes the same error. Here are what I did:
> > 1) Ran "svn update"
> > 2) Ran "maven clean jar -Dmaven.test.skip=true"
> > 3) Ran "maven dist-std-bin"
> > 4) Generated code from the axis2-std-SNAPSHOT-bin.zip
> > 5) Produced .aar file by running ant on the generated files.
> > 6) Replaced libraries found in ...\webapps\axis2\WEB-INF\lib\ with
> the
> > latests.
> > 7) Replaced modules found in ...\webapps\axis2\WEB-INF\modules\
> with
> > the latests.
> > 8) Put the .aar file into ...\webapps\axis2\WEB-INF\services
> >
> > Thanks again,
> >
> > Ali Sadik Kumlali
> >
> >
> > --- Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > > We actually found this bug and fixed it. It was caused by the
> > > addition
> > > of a new capability, loading relative schemas through the aar
> file
> > >
> > > On 4/26/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> > > > Hi all,
> > > >
> > > > I'm getting the following error when deploying my service on to
> > > 1.0RC3
> > > > Axis2.war. There was no such problem with 0.95 release.
> > > >
> > > > I noticed that WSDL2Java generated xsd0.xsd, xsd1.xsd, xsd2.xsd
> and
> > > > AccountServices.wsdl files into repository folder. I guess,
> this is
> > > a
> > > > new feature, since those files were not generated in 0.95
> release.
> > > By
> > > > the way, these files are also resides in XBeans-packaged.jar.
> > > >
> > > > Any help would be great.
> > > >
> > > > Thanks
> > > >
> > > > --
> > > > - Deploying module : soapmonitor
> > > > - Deploying module : addressing
> > > > - Deploying module : security
> > > > Retrieving document at ''.
> > > > Retrieving schema at 'xsd1.xsd', relative to ''.
> > > > - Invalid service  AccountServices.aar due to WSDLException (at
> > > > /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR:
> > > > Unable to locate with a locator the schema referenced at
> 'xsd1.xsd'
> > > > relative to document base ''; nested exception is:
> > > > WSDLException (at
> > > /wsdl:definitions/wsdl:types/xs:schema[1]):
> > > > faultCode=OTHER_ERROR: Unable to locate with a locator the
> schema
> > > > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > > > exception is:
> > > > org.apache.axis2.AxisFault: WSDLException (at
> > > > /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR:
> > > > Unable to locate with a locator the schema referenced at
> 'xsd1.xsd'
> > > > relative to document base ''; nested exception is:
> > > > WSDLException (at
> > > /wsdl:definitions/wsdl:types/xs:schema[1]):
> > > > faultCode=OTHER_ERROR: Unable to locate with a locator the
> schema
> > > > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > > > exception is:
> > > > org.apache.axis2.deployment.DeploymentException:
> > > WSDLException (at
> > > > /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR:
> > > > Unable to locate with a locator the schema referenced at
> 'xsd1.xsd'
> > > > relative to document base ''; nested exception is:
> > > > WSDLException (at
> > > /wsdl:definitions/wsdl:types/xs:schema[1]):
> > > > faultCode=OTHER_ERROR: Unable to locate with a locator the
> schema
> > > > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > > > exception is:
> > > > org.apache.axis2.AxisFault: WSDLException (at
> > > > /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR:
> > > > Unable to locate with a locator the schema referenced at
> 'xsd1.xsd'
> > > > relative to document base ''; nested exception is:
> > > > WSDLException (at
> > > /wsdl:definitions/wsdl:types/xs:schema[1]):
> > > > faultCode=OTHER_ERROR: Unable to locate with a locator the
> schema
> > > > referenced at 'xsd1.xsd' relative to document base '':
> > > > org.apache.axis2.deployment.DeploymentException: WSDLException
> (at
> > > > /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR:
> > > > Unable to locate with a locator the schema referenced at
> 'xsd1.xsd'
> > > > relative to document base ''; nested exception is:
> > > > WSDLException (at
> > > /wsdl:definitions/wsdl:types/xs:schema[1]):
> > > > faultCode=OTHER_ERROR: Unable to locate with a locator the
> schema
> > > > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > > > exception is:
> > > > org.apache.axis2.AxisFault: WSDLException (at
> > > > /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR:
> > > > Unable to locate with a loca

RE: [axis2] SwA example

2006-04-26 Thread Michael Robinson
Ok, thanks for the MTOMConstants class reference. 

Is the Attachments object that you created just an example or is that
also a part of some API? I am a little confused about what exactly will
be returned from the msgcts.getProperty(MTOMConstants.ATTACHMENTS). 

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 26, 2006 12:12 PM
To: axis-user@ws.apache.org
Subject: Re: [axis2] SwA example

Attachments attachment = (Attachments)
msgcts.getProperty(MTOMConstants.ATTACHMENTS);

thanks,
dims

On 4/26/06, Michael Robinson <[EMAIL PROTECTED]> wrote:
>
>
>
> I'm attempting to process a request from a SwA client using Axis2 but
am
> having some problems with the sample at
>
>
>
> http://ws.apache.org/axis2/0_95/mtom-guide.html#3
>
>
>
> MIMEHelper attachments =
> (MIMEHelper)msgcts.getProperty(MIMEHelper.ATTACHMENTS);
>
>
>
> MIMEHelper.ATTACHMENTS seems to not exist. What is the string
equivalent of
> this constant?
>
>
>
> Is there any other examples of accessing SwA messges?
>
> 
>
>
>
>
>
>
>  This e-mail and any files transmitted with it are intended solely
>  for the use of the entity or individual(s) to whom they are
>  addressed and not for reliance upon by unintended recipients. If
>  you are not the intended recipient or the person responsible for
>  delivering the e-mail to the intended recipient be advised that you
>  have received this e-mail in error and that any use, dissemination,
>  forwarding, printing, or copying of this e-mail and any files
>  transmitted are strictly prohibited. If you have received this
>  e-mail in error please delete the entire email and immediately
>  notify us by email to the sender or by telephone to the AOC main
>  office number, (404) 656-5171. Thank you.
>


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


Re: [axis2] SwA example

2006-04-26 Thread Davanum Srinivas
Attachments attachment = (Attachments)
msgcts.getProperty(MTOMConstants.ATTACHMENTS);

thanks,
dims

On 4/26/06, Michael Robinson <[EMAIL PROTECTED]> wrote:
>
>
>
> I'm attempting to process a request from a SwA client using Axis2 but am
> having some problems with the sample at
>
>
>
> http://ws.apache.org/axis2/0_95/mtom-guide.html#3
>
>
>
> MIMEHelper attachments =
> (MIMEHelper)msgcts.getProperty(MIMEHelper.ATTACHMENTS);
>
>
>
> MIMEHelper.ATTACHMENTS seems to not exist. What is the string equivalent of
> this constant?
>
>
>
> Is there any other examples of accessing SwA messges?
>
> 
>
>
>
>
>
>
>  This e-mail and any files transmitted with it are intended solely
>  for the use of the entity or individual(s) to whom they are
>  addressed and not for reliance upon by unintended recipients. If
>  you are not the intended recipient or the person responsible for
>  delivering the e-mail to the intended recipient be advised that you
>  have received this e-mail in error and that any use, dissemination,
>  forwarding, printing, or copying of this e-mail and any files
>  transmitted are strictly prohibited. If you have received this
>  e-mail in error please delete the entire email and immediately
>  notify us by email to the sender or by telephone to the AOC main
>  office number, (404) 656-5171. Thank you.
>


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


[axis2] SwA example

2006-04-26 Thread Michael Robinson








I’m attempting to process a request from a SwA client
using Axis2 but am having some problems with the sample at 

 

http://ws.apache.org/axis2/0_95/mtom-guide.html#3

 

MIMEHelper attachments =
(MIMEHelper)msgcts.getProperty(MIMEHelper.ATTACHMENTS);

 

MIMEHelper.ATTACHMENTS seems to not exist. What is the
string equivalent of this constant? 

 

Is there any other examples of accessing SwA messges? 










This e-mail and any files transmitted with it are intended solely
for the use of the entity or individual(s) to whom they are
addressed and not for reliance upon by unintended recipients.  If
you are not the intended recipient or the person responsible for
delivering the e-mail to the intended recipient be advised that you
have received this e-mail in error and that any use, dissemination,
forwarding, printing, or copying of this e-mail and any files
transmitted are strictly prohibited. If you have received this
e-mail in error please delete the entire email and immediately
notify us by email to the sender or by telephone to the AOC main
office number, (404) 656-5171. Thank you.



Re: [axis2] services.xml problems

2006-04-26 Thread Michele Mazzucco
Robert,

please see my comments inline.

robert lazarski wrote:
> Hmm, not enough to go on here I don't think - I can't find that message
> anywhere in the axis2 source. You'll need to turn on logging then - put
> the server in debug mode via WEB-INF/classes/log4j.properties . Post the
> relevant logs and maybe we can help.


I'm using Axis2 1.0 RC2. Try do deploy the MyServiceWithModule.aar file
(you can find it in $AXIS2_HOME/samples/userguide): you'll get the same
error.
> 
> Also, try reading this article - it might help you on the format of
> services.xml .
> 
> http://www.developer.com/open/article.php/3589126
> 
> In particular, I'd make sure that 'parameter name' is legal outside of
>  - I can't find any examples that do it that way.

Please have a look here http://ws.apache.org/axis2/0_95/userguide2.html
(step 2).

> 
> HTH,
> Robert
> http://www.braziloutsource.com/
> 
> On 4/26/06, * Michele Mazzucco* < [EMAIL PROTECTED]
> > wrote:
> 
> Robert,
> 
> it just says "Requested resource not found!", but the jar file is
> complete of all necessary files (services.xml in META-INF and class
> files in stock/service).
> 
> Michele
> 
> 
> robert lazarski wrote:
> > Try clicking on the faulty service and posting the stack trace, maybe
> > that'll help us track down the problem.
> >
> > Robert
> > http://www.braziloutsource.com/ 
> >
> > On 4/26/06, *Michele Mazzucco* < [EMAIL PROTECTED]
> 
> >  >> wrote:
> >
> > Hi all,
> >
> > I'm using Axis2 1.0 RC2 and I'm having troubles with
> services.xml when I
> > include more that one service.
> >
> > In particular, the services.xml below doesn't work (the .aar
> file is
> > shown as "faulty service")
> >
> > 
> >
> > 
> > 
> > 
> > First
> > 
> >> locked="xsd:false"> stock.service.StockQuoteService
> >
> >   
> >  > class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
> >   
> >
> >   
> >  > class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
> >   
> > 
> >
> > 
> > Second
> >  > locked="xsd:false">stock.service.SchemaQuoteService
> >
> > 
> >  > class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
> > 
> >
> > 
> >  > class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
> > 
> > 
> >
> >
> > 
> > value
> > 1
> > 
> >
> > Any idea?
> >
> > Thanks in advance,
> > Michele
> >
> >
> 
> 


minoccurs/maxoccurs in wsdl?

2006-04-26 Thread Santunu Podder
Hi Everybody,

Is there a way to specify minOccurs / maxOccurs for elements in the wsdl 
when we generate the wsdl from java using Java2WSDL? 

Regards,
Santunu


This message (including any attachments) is confidential and may be privileged. 
If you have received it by mistake please notify the sender by return e-mail 
and delete this message from your system. Any unauthorised use or dissemination 
of this message in whole or in part is strictly prohibited. Please note that 
e-mails are susceptible to change. Close Premium Finance shall not be liable 
for the improper or incomplete transmission of the information contained in 
this communication nor for any delay in its receipt or damage to your system. 
Close Premium Finance does not guarantee that the integrity of this 
communication has been maintained nor that this communication is free of 
viruses, interceptions or interference.


ws-addressing version support

2006-04-26 Thread Weston, Toby
Hi Folks,

The feature list of Axis2 states support for;

- 9. WS-Addressing, both the submission (2004/08) and final (2005/08)
versions 

Does this mean that the 2003/03 isn't supported? I ask because Oracle BPEL
PM it seems only supports 2003/03...

How do you configure which to use?

Thanks in advance,
Toby


Re: [axis2] services.xml problems

2006-04-26 Thread robert lazarski
Hmm, not enough to go on here I don't think - I can't find that message
anywhere in the axis2 source. You'll need to turn on logging then - put
the server in debug mode via WEB-INF/classes/log4j.properties . Post
the relevant logs and maybe we can help. 

Also, try reading this article - it might help you on the format of services.xml . 

http://www.developer.com/open/article.php/3589126

In particular, I'd make sure that 'parameter name' is legal outside of
 - I can't find any examples that do it
that way. 

HTH,
Robert
http://www.braziloutsource.com/On 4/26/06, 
Michele Mazzucco <
[EMAIL PROTECTED]> wrote:Robert,it just says "Requested resource not found!", but the jar file is
complete of all necessary files (services.xml in META-INF and classfiles in stock/service).Michelerobert lazarski wrote:> Try clicking on the faulty service and posting the stack trace, maybe
> that'll help us track down the problem.>> Robert> http://www.braziloutsource.com/
>> On 4/26/06, *Michele Mazzucco* < 
[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote:>
> Hi all,>> I'm using Axis2 1.0 RC2 and I'm having troubles with 
services.xml when I> include more that one service.>> In particular, the services.xml below doesn't work (the .aar file is> shown as "faulty service")>> >> > >
>
First> >   > locked="xsd:false"> stock.service.StockQuoteService>

>   > > class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>>   
>>   > > class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>>   
> >> >
Second>
> locked="xsd:false">stock.service.SchemaQuoteService>>
>
> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>>
>>
>
> class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>>
> >>> >
value> 1> >> Any idea?>> Thanks in advance,

> Michele>>


RE: Axis2: WSS4J - problem getting client to use my axis2.xml

2006-04-26 Thread bruno (wanadoo)



hi rob
yes you can download this distro (and the axis2-1.0RC3 
too)
use these links
 

Download locations :
* binary and source distributions -
http://people.apache.org/~deepal/axis2/
* jars
http://people.apache.org/~deepal/maven/ws/axis2/jars/
* mars (addressing and security)
http://people.apache.org/~deepal/maven/ws/axis2/mars/Bruno


De : Rob Henley 
[mailto:[EMAIL PROTECTED] Envoyé : mercredi 26 avril 2006 
15:57À : axis-user@ws.apache.orgObjet : Re: 
Axis2: WSS4J - problem getting client to use my axis2.xml

Thanks - thats useful. Is 'axis2RC2' a binary 
distribution which I can download?
Cheers
Rob

  - Original Message - 
  From: 
  bruno 
  (wanadoo) 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, April 26, 2006 2:46 
  PM
  Subject: RE: Axis2: WSS4J - problem 
  getting client to use my axis2.xml
  
  Hi reobert 
   
  This problem is solved in axis2RC2 or in latest 
  SVN
  
  
  De : Rob Henley 
  [mailto:[EMAIL PROTECTED] Envoyé : mercredi 26 avril 2006 
  15:08À : axis-user@ws.apache.orgObjet : 
  Axis2: WSS4J - problem getting client to use my axis2.xml
  
  I'm using the 0.95 binary release on Windows XP, 
  plus the separately downloaded security sample.
   
  Some stuff appeared to be missing from the 
  distribution. I downloaded security-0.95.mar 
  separately via the 'Modules' link and copied under my axis2\WEB-INF\modules, 
  and also got a copy of xalan.jar.
   
  My axis2.xml contains:
   
  
   
    
      
  Timestamp  
  
   
        
  Timestamp  
  
   
  
  My service is starting ok, but I don't think my 
  client is picking up the security settings. My client code is attempting to pick up the same axis2.xml which my 
  server uses ...
   
    ConfigurationContext ctx = 
  ConfigurationContextFactory.createConfigurationContextFromFileSystem(X, Y); // 
  see below
    PurchasingStub stub = new 
  PurchasingStub(ctx, "http://localhost:8081/axis2/services/Purchasing");  
  // stub generated from WSDL
   
  I've tried various combinations for (X, Y) above. 
  (I looked at the javadocs, but still couldn't be sure what this should look 
  like exactly). Here's what I tried, followed by the various errors I received 
  at runtime:
   
  (null, null)
   
   [java] 
  org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: WSDoAllReceiver: 
  Request does not contain required Security header 
  [java] at 
  org.apache.axis2.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:187) 
  [java] at 
  org.apache.axis2.engine.Phase.invoke(Phase.java:378)
   
  ok - that probably isn't surprising. I'm not sure 
  how the client would find the repository if I don't tell it where to 
  look.
   
  ("C:/Program 
  Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF", "axis2.xml");("C:\\Program 
  Files\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF", 
  "axis2.xml");("C:/progra~1/Apache/Tomcat5.5/webapps/axis2/WEB-INF", 
  "axis2.xml");
   
   [java] 
  org.apache.axis2.deployment.DeploymentException: axis2.xml (The system cannot 
  find the file specified); nested exception is: 
  [java] java.io.FileNotFoundException: axis2.xml (The 
  system cannot find the file specified)
   
  [java] at 
  org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:550)
   
  I also tried prefxing axis2.xml with 'conf/', 
  with the same result. (The javadoc suggests this wouldn't be valid 
  anyway).
  ("C:/Program Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF", 
  null);
   [java] 
  java.lang.NullPointerException 
  [java] at 
  org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59) 
  [java] at 
  org.apache.axis2.client.ServiceClient.(ServiceClient.java:97) 
  [java] at 
  org.apache.axis2.PurchasingStub.(Unknown 
  Source) [java] at 
  samples.purchasing1.ClientTest.main(Unknown Source)
   
  Has anyone seen a similar problem or have an idea how I can make 
  progress?
  Many thanks
  Rob
  ---Wanadoo 
  vous informe que cet e-mail a ete controle par l'anti-virus mail.Aucun 
  virus connu a ce jour par nos services n'a ete 
  detecte.
---Wanadoo 
vous informe que cet e-mail a ete controle par l'anti-virus mail.Aucun virus 
connu a ce jour par nos services n'a ete 
detecte.


Re: [Axis2][1.0RC3] Unable to locate with a locator the schema referenced at 'xsd1.xsd' ...

2006-04-26 Thread Davanum Srinivas
Ali,

Could u please open a JIRA issue and upload your wsdl/schemas? that
you used to generate the service.

thanks,
dims

On 4/26/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> Hi Ajith,
>
> Thanks for the quick response. If I didn't miss something, the latest
> code in SVN causes the same error. Here are what I did:
> 1) Ran "svn update"
> 2) Ran "maven clean jar -Dmaven.test.skip=true"
> 3) Ran "maven dist-std-bin"
> 4) Generated code from the axis2-std-SNAPSHOT-bin.zip
> 5) Produced .aar file by running ant on the generated files.
> 6) Replaced libraries found in ...\webapps\axis2\WEB-INF\lib\ with the
> latests.
> 7) Replaced modules found in ...\webapps\axis2\WEB-INF\modules\ with
> the latests.
> 8) Put the .aar file into ...\webapps\axis2\WEB-INF\services
>
> Thanks again,
>
> Ali Sadik Kumlali
>
>
> --- Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > We actually found this bug and fixed it. It was caused by the
> > addition
> > of a new capability, loading relative schemas through the aar file
> >
> > On 4/26/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> > > Hi all,
> > >
> > > I'm getting the following error when deploying my service on to
> > 1.0RC3
> > > Axis2.war. There was no such problem with 0.95 release.
> > >
> > > I noticed that WSDL2Java generated xsd0.xsd, xsd1.xsd, xsd2.xsd and
> > > AccountServices.wsdl files into repository folder. I guess, this is
> > a
> > > new feature, since those files were not generated in 0.95 release.
> > By
> > > the way, these files are also resides in XBeans-packaged.jar.
> > >
> > > Any help would be great.
> > >
> > > Thanks
> > >
> > > --
> > > - Deploying module : soapmonitor
> > > - Deploying module : addressing
> > > - Deploying module : security
> > > Retrieving document at ''.
> > > Retrieving schema at 'xsd1.xsd', relative to ''.
> > > - Invalid service  AccountServices.aar due to WSDLException (at
> > > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > > relative to document base ''; nested exception is:
> > > WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]):
> > > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > > exception is:
> > > org.apache.axis2.AxisFault: WSDLException (at
> > > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > > relative to document base ''; nested exception is:
> > > WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]):
> > > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > > exception is:
> > > org.apache.axis2.deployment.DeploymentException:
> > WSDLException (at
> > > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > > relative to document base ''; nested exception is:
> > > WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]):
> > > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > > exception is:
> > > org.apache.axis2.AxisFault: WSDLException (at
> > > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > > relative to document base ''; nested exception is:
> > > WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]):
> > > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > > referenced at 'xsd1.xsd' relative to document base '':
> > > org.apache.axis2.deployment.DeploymentException: WSDLException (at
> > > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > > relative to document base ''; nested exception is:
> > > WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]):
> > > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > > exception is:
> > > org.apache.axis2.AxisFault: WSDLException (at
> > > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > > relative to document base ''; nested exception is:
> > > WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]):
> > > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > > exception is:
> > > org.apache.axis2.deployment.DeploymentException:

Re: [Axis2][1.0RC3] Maven Build fails coz project.properties still re fers to AXIOM 1.0-RC2

2006-04-26 Thread Davanum Srinivas
:) Yes, please.

thanks,
dims

On 4/26/06, Pannetier Alain <[EMAIL PROTECTED]> wrote:
>
>
>
> RC3 feedback : (Can't keep up ;-)
>
> JiBX compilation fails with javac unable to find new (RC3) Axiom interface
> named org.apache.axiom.om.OMDataSource
>
> To fix, just edit etc/project.properties to read
>
> ---
> policy.version=1.0.1-RC
> axiom.version=1.0-RC3  <-- Note RC3 here
> #for JAM
> annogen.version=0.1.0
> ---
>
> Should I submit a bug report ?
>
>
> Alain Pannetier


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


[Axis2][1.0RC3] Maven Build fails coz project.properties still re fers to AXIOM 1.0-RC2

2006-04-26 Thread Pannetier Alain
Title: [Axis2][1.0RC3] Maven Build fails coz project.properties still refers to AXIOM 1.0-RC2






RC3 feedback : (Can't keep up ;-)


JiBX compilation fails with javac unable to find new (RC3) Axiom interface named org.apache.axiom.om.OMDataSource


To fix, just edit etc/project.properties to read


---
policy.version=1.0.1-RC
axiom.version=1.0-RC3  <-- Note RC3 here
#for JAM
annogen.version=0.1.0
---


Should I submit a bug report ?


Alain Pannetier





Re: Axis2: WSS4J - problem getting client to use my axis2.xml

2006-04-26 Thread Rob Henley
Hi Jack - I read that too but it never occurred to me to repeat the whole 
path. When I do this I get the 'nullpointer' error, so as bruno says there 
is probably also an axis2 bug in the 0.95 release. Hopefully with your 
syntax and a later build it will all work :-)

Many thanks
Rob
- Original Message - 
From: "Jack" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, April 26, 2006 2:40 PM
Subject: Re: Axis2: WSS4J - problem getting client to use my axis2.xml


I think you need to do this javadoc says "you are not allowed to give
one relative to other" so:

String X = 
"E:\\jboss-4.0.3SP1\\server\\axistest\\deploy\\axis2.war\\WEB-INF";
String Y = 
"E:\\jboss-4.0.3SP1\\server\\axistest\\deploy\\axis2.war\\WEB-INF\\conf\\axis2.xml";

   configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(X,
Y);


Cheers
Jack...


On 26/04/06, Rob Henley <[EMAIL PROTECTED]> wrote:


I'm using the 0.95 binary release on Windows XP, plus the separately
downloaded security sample.

Some stuff appeared to be missing from the distribution. I downloaded
security-0.95.mar separately via the 'Modules' link and copied under my
axis2\WEB-INF\modules, and also got a copy of xalan.jar.

My axis2.xml contains:




  
Timestamp
  



  
Timestamp
  



My service is starting ok, but I don't think my client is picking up the
security settings. My client code is attempting to pick up the same
axis2.xml which my server uses ...

  ConfigurationContext ctx =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(X,
Y); // see below
  PurchasingStub stub = new PurchasingStub(ctx,
"http://localhost:8081/axis2/services/Purchasing";);  //
stub generated from WSDL

I've tried various combinations for (X, Y) above. (I looked at the 
javadocs,
but still couldn't be sure what this should look like exactly). Here's 
what

I tried, followed by the various errors I received at runtime:

(null, null)

 [java] org.apache.axis2.AxisFault: org.apache.axis2.AxisFault:
WSDoAllReceiver: Request does not contain required Security header
 [java] at
org.apache.axis2.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:187)
 [java] at
org.apache.axis2.engine.Phase.invoke(Phase.java:378)

ok - that probably isn't surprising. I'm not sure how the client would 
find

the repository if I don't tell it where to look.

("C:/Program Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF",
"axis2.xml");
("C:\\Program
Files\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF",
"axis2.xml");
("C:/progra~1/Apache/Tomcat5.5/webapps/axis2/WEB-INF",
"axis2.xml");

 [java]
org.apache.axis2.deployment.DeploymentException: axis2.xml
(The system cannot find the file specified); nested exception is:
 [java] java.io.FileNotFoundException: axis2.xml (The system 
cannot

find the file specified)
 [java] at
org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:550)

I also tried prefxing axis2.xml with 'conf/', with the same result. (The
javadoc suggests this wouldn't be valid anyway).

("C:/Program Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF",
null);

 [java] java.lang.NullPointerException
 [java] at
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)
 [java] at
org.apache.axis2.client.ServiceClient.(ServiceClient.java:97)
 [java] at org.apache.axis2.PurchasingStub.(Unknown Source)
 [java] at
samples.purchasing1.ClientTest.main(Unknown Source)

Has anyone seen a similar problem or have an idea how I can make progress?
Many thanks
Rob



--
Cheers
Jack...

The claim "natural" is not synonymous with safe.






Re: [axis2] services.xml problems

2006-04-26 Thread Michele Mazzucco
Robert,

it just says "Requested resource not found!", but the jar file is
complete of all necessary files (services.xml in META-INF and class
files in stock/service).

Michele


robert lazarski wrote:
> Try clicking on the faulty service and posting the stack trace, maybe
> that'll help us track down the problem.
> 
> Robert
> http://www.braziloutsource.com/
> 
> On 4/26/06, *Michele Mazzucco* < [EMAIL PROTECTED]
> > wrote:
> 
> Hi all,
> 
> I'm using Axis2 1.0 RC2 and I'm having troubles with services.xml when I
> include more that one service.
> 
> In particular, the services.xml below doesn't work (the .aar file is
> shown as "faulty service")
> 
> 
> 
> 
> 
> 
> First
> 
>locked="xsd:false"> stock.service.StockQuoteService
> 
>   
>  class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>   
> 
>   
>  class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
>   
> 
> 
> 
> Second
>  locked="xsd:false">stock.service.SchemaQuoteService
> 
> 
>  class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
> 
> 
> 
>  class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
> 
> 
> 
> 
> 
> value
> 1
> 
> 
> Any idea?
> 
> Thanks in advance,
> Michele
> 
> 


SOAP XML Message from WSDL

2006-04-26 Thread Saqib Rasul
Hi,

Is there any way to get the SOAP/XML Structur from a WSDL. For example,
given a WSDL, i could speficy the operation in the WSDL, and i would
like to know the XML Structure that will be passed back and forth. Is
there any way in AXIS to do this? And if not, does anyone know a library
that can handle this?

Thanks in advance,

Regards,

Saqib


Re: Axis2: WSS4J - problem getting client to use my axis2.xml

2006-04-26 Thread Rob Henley



Thanks - thats useful. Is 'axis2RC2' a binary 
distribution which I can download?
Cheers
Rob

  - Original Message - 
  From: 
  bruno 
  (wanadoo) 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, April 26, 2006 2:46 
  PM
  Subject: RE: Axis2: WSS4J - problem 
  getting client to use my axis2.xml
  
  Hi reobert 
   
  This problem is solved in axis2RC2 or in latest 
  SVN
  
  
  De : Rob Henley 
  [mailto:[EMAIL PROTECTED] Envoyé : mercredi 26 avril 2006 
  15:08À : axis-user@ws.apache.orgObjet : 
  Axis2: WSS4J - problem getting client to use my axis2.xml
  
  I'm using the 0.95 binary release on Windows XP, 
  plus the separately downloaded security sample.
   
  Some stuff appeared to be missing from the 
  distribution. I downloaded security-0.95.mar 
  separately via the 'Modules' link and copied under my axis2\WEB-INF\modules, 
  and also got a copy of xalan.jar.
   
  My axis2.xml contains:
   
  
   
    
      
  Timestamp  
  
   
        
  Timestamp  
  
   
  
  My service is starting ok, but I don't think my 
  client is picking up the security settings. My client code is attempting to pick up the same axis2.xml which my 
  server uses ...
   
    ConfigurationContext ctx = 
  ConfigurationContextFactory.createConfigurationContextFromFileSystem(X, Y); // 
  see below
    PurchasingStub stub = new 
  PurchasingStub(ctx, "http://localhost:8081/axis2/services/Purchasing");  
  // stub generated from WSDL
   
  I've tried various combinations for (X, Y) above. 
  (I looked at the javadocs, but still couldn't be sure what this should look 
  like exactly). Here's what I tried, followed by the various errors I received 
  at runtime:
   
  (null, null)
   
   [java] 
  org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: WSDoAllReceiver: 
  Request does not contain required Security header 
  [java] at 
  org.apache.axis2.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:187) 
  [java] at 
  org.apache.axis2.engine.Phase.invoke(Phase.java:378)
   
  ok - that probably isn't surprising. I'm not sure 
  how the client would find the repository if I don't tell it where to 
  look.
   
  ("C:/Program 
  Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF", "axis2.xml");("C:\\Program 
  Files\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF", 
  "axis2.xml");("C:/progra~1/Apache/Tomcat5.5/webapps/axis2/WEB-INF", 
  "axis2.xml");
   
   [java] 
  org.apache.axis2.deployment.DeploymentException: axis2.xml (The system cannot 
  find the file specified); nested exception is: 
  [java] java.io.FileNotFoundException: axis2.xml (The 
  system cannot find the file specified)
   
  [java] at 
  org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:550)
   
  I also tried prefxing axis2.xml with 'conf/', 
  with the same result. (The javadoc suggests this wouldn't be valid 
  anyway).
  ("C:/Program Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF", 
  null);
   [java] 
  java.lang.NullPointerException 
  [java] at 
  org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59) 
  [java] at 
  org.apache.axis2.client.ServiceClient.(ServiceClient.java:97) 
  [java] at 
  org.apache.axis2.PurchasingStub.(Unknown 
  Source) [java] at 
  samples.purchasing1.ClientTest.main(Unknown Source)
   
  Has anyone seen a similar problem or have an idea how I can make 
  progress?
  Many thanks
  Rob
  ---Wanadoo 
  vous informe que cet e-mail a ete controle par l'anti-virus mail.Aucun 
  virus connu a ce jour par nos services n'a ete 
  detecte.


RE: Axis2: WSS4J - problem getting client to use my axis2.xml

2006-04-26 Thread bruno (wanadoo)



Hi reobert 
 
This problem is solved in axis2RC2 or in latest 
SVN


De : Rob Henley 
[mailto:[EMAIL PROTECTED] Envoyé : mercredi 26 avril 2006 
15:08À : axis-user@ws.apache.orgObjet : Axis2: 
WSS4J - problem getting client to use my axis2.xml

I'm using the 0.95 binary release on Windows XP, 
plus the separately downloaded security sample.
 
Some stuff appeared to be missing from the 
distribution. I downloaded security-0.95.mar 
separately via the 'Modules' link and copied under my axis2\WEB-INF\modules, and 
also got a copy of xalan.jar.
 
My axis2.xml contains:
 

 
  
    
Timestamp  

 
  
    
Timestamp  

 

My service is starting ok, but I don't think my 
client is picking up the security settings. My client code is attempting to pick up the same axis2.xml which my 
server uses ...
 
  ConfigurationContext ctx = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(X, Y); // 
see below
  PurchasingStub stub = new 
PurchasingStub(ctx, "http://localhost:8081/axis2/services/Purchasing");  
// stub generated from WSDL
 
I've tried various combinations for (X, Y) above. 
(I looked at the javadocs, but still couldn't be sure what this should look like 
exactly). Here's what I tried, followed by the various errors I received at 
runtime:
 
(null, null)
 
 [java] 
org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: WSDoAllReceiver: Request 
does not contain required Security header 
[java] at 
org.apache.axis2.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:187) 
[java] at 
org.apache.axis2.engine.Phase.invoke(Phase.java:378)
 
ok - that probably isn't surprising. I'm not sure 
how the client would find the repository if I don't tell it where to 
look.
 
("C:/Program 
Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF", "axis2.xml");("C:\\Program 
Files\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF", 
"axis2.xml");("C:/progra~1/Apache/Tomcat5.5/webapps/axis2/WEB-INF", 
"axis2.xml");
 
 [java] 
org.apache.axis2.deployment.DeploymentException: axis2.xml (The system cannot 
find the file specified); nested exception is: 
[java] java.io.FileNotFoundException: axis2.xml (The 
system cannot find the file specified)
 
[java] at 
org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:550)
 
I also tried prefxing axis2.xml with 'conf/', with 
the same result. (The javadoc suggests this wouldn't be valid 
anyway).
("C:/Program Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF", 
null);
 [java] 
java.lang.NullPointerException 
[java] at 
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59) 
[java] at 
org.apache.axis2.client.ServiceClient.(ServiceClient.java:97) 
[java] at 
org.apache.axis2.PurchasingStub.(Unknown 
Source) [java] at 
samples.purchasing1.ClientTest.main(Unknown Source)
 
Has anyone seen a similar problem or have an idea how I can make 
progress?
Many thanks
Rob
---Wanadoo 
vous informe que cet e-mail a ete controle par l'anti-virus mail.Aucun virus 
connu a ce jour par nos services n'a ete 
detecte.


Re: Axis2: WSS4J - problem getting client to use my axis2.xml

2006-04-26 Thread Jack
I think you need to do this javadoc says "you are not allowed to give
one relative to other" so:

String X = "E:\\jboss-4.0.3SP1\\server\\axistest\\deploy\\axis2.war\\WEB-INF";
String Y = 
"E:\\jboss-4.0.3SP1\\server\\axistest\\deploy\\axis2.war\\WEB-INF\\conf\\axis2.xml";
configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(X,
Y);


Cheers
Jack...


On 26/04/06, Rob Henley <[EMAIL PROTECTED]> wrote:
>
> I'm using the 0.95 binary release on Windows XP, plus the separately
> downloaded security sample.
>
> Some stuff appeared to be missing from the distribution. I downloaded
> security-0.95.mar separately via the 'Modules' link and copied under my
> axis2\WEB-INF\modules, and also got a copy of xalan.jar.
>
> My axis2.xml contains:
>
> 
>
> 
>   
> Timestamp
>   
> 
>
> 
>   
> Timestamp
>   
> 
>
>
> My service is starting ok, but I don't think my client is picking up the
> security settings. My client code is attempting to pick up the same
> axis2.xml which my server uses ...
>
>   ConfigurationContext ctx =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(X,
> Y); // see below
>   PurchasingStub stub = new PurchasingStub(ctx,
> "http://localhost:8081/axis2/services/Purchasing";);  //
> stub generated from WSDL
>
> I've tried various combinations for (X, Y) above. (I looked at the javadocs,
> but still couldn't be sure what this should look like exactly). Here's what
> I tried, followed by the various errors I received at runtime:
>
> (null, null)
>
>  [java] org.apache.axis2.AxisFault: org.apache.axis2.AxisFault:
> WSDoAllReceiver: Request does not contain required Security header
>  [java] at
> org.apache.axis2.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:187)
>  [java] at
> org.apache.axis2.engine.Phase.invoke(Phase.java:378)
>
> ok - that probably isn't surprising. I'm not sure how the client would find
> the repository if I don't tell it where to look.
>
> ("C:/Program Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF",
> "axis2.xml");
> ("C:\\Program
> Files\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF",
> "axis2.xml");
> ("C:/progra~1/Apache/Tomcat5.5/webapps/axis2/WEB-INF",
> "axis2.xml");
>
>  [java]
> org.apache.axis2.deployment.DeploymentException: axis2.xml
> (The system cannot find the file specified); nested exception is:
>  [java] java.io.FileNotFoundException: axis2.xml (The system cannot
> find the file specified)
>  [java] at
> org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:550)
>
> I also tried prefxing axis2.xml with 'conf/', with the same result. (The
> javadoc suggests this wouldn't be valid anyway).
>
> ("C:/Program Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF",
> null);
>
>  [java] java.lang.NullPointerException
>  [java] at
> org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)
>  [java] at
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:97)
>  [java] at org.apache.axis2.PurchasingStub.(Unknown Source)
>  [java] at
> samples.purchasing1.ClientTest.main(Unknown Source)
>
> Has anyone seen a similar problem or have an idea how I can make progress?
> Many thanks
> Rob


--
Cheers
Jack...

The claim "natural" is not synonymous with safe.


Re: [Axis2][1.0RC3] Unable to locate with a locator the schema referenced at 'xsd1.xsd' ...

2006-04-26 Thread Ali Sadik Kumlali
Hi Ajith,

Thanks for the quick response. If I didn't miss something, the latest
code in SVN causes the same error. Here are what I did:
1) Ran "svn update"
2) Ran "maven clean jar -Dmaven.test.skip=true"
3) Ran "maven dist-std-bin"
4) Generated code from the axis2-std-SNAPSHOT-bin.zip
5) Produced .aar file by running ant on the generated files.
6) Replaced libraries found in ...\webapps\axis2\WEB-INF\lib\ with the
latests.
7) Replaced modules found in ...\webapps\axis2\WEB-INF\modules\ with
the latests.
8) Put the .aar file into ...\webapps\axis2\WEB-INF\services

Thanks again,

Ali Sadik Kumlali


--- Ajith Ranabahu <[EMAIL PROTECTED]> wrote:

> Hi,
> We actually found this bug and fixed it. It was caused by the
> addition
> of a new capability, loading relative schemas through the aar file
> 
> On 4/26/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I'm getting the following error when deploying my service on to
> 1.0RC3
> > Axis2.war. There was no such problem with 0.95 release.
> >
> > I noticed that WSDL2Java generated xsd0.xsd, xsd1.xsd, xsd2.xsd and
> > AccountServices.wsdl files into repository folder. I guess, this is
> a
> > new feature, since those files were not generated in 0.95 release.
> By
> > the way, these files are also resides in XBeans-packaged.jar.
> >
> > Any help would be great.
> >
> > Thanks
> >
> > --
> > - Deploying module : soapmonitor
> > - Deploying module : addressing
> > - Deploying module : security
> > Retrieving document at ''.
> > Retrieving schema at 'xsd1.xsd', relative to ''.
> > - Invalid service  AccountServices.aar due to WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > relative to document base ''; nested exception is:
> > WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]):
> > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > exception is:
> > org.apache.axis2.AxisFault: WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > relative to document base ''; nested exception is:
> > WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]):
> > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > exception is:
> > org.apache.axis2.deployment.DeploymentException:
> WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > relative to document base ''; nested exception is:
> > WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]):
> > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > exception is:
> > org.apache.axis2.AxisFault: WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > relative to document base ''; nested exception is:
> > WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]):
> > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > referenced at 'xsd1.xsd' relative to document base '':
> > org.apache.axis2.deployment.DeploymentException: WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > relative to document base ''; nested exception is:
> > WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]):
> > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > exception is:
> > org.apache.axis2.AxisFault: WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > relative to document base ''; nested exception is:
> > WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]):
> > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > referenced at 'xsd1.xsd' relative to document base '': ; nested
> > exception is:
> > org.apache.axis2.deployment.DeploymentException:
> WSDLException (at
> > /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> > Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> > relative to document base ''; nested exception is:
> > WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]):
> > faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> > referenced at 'x

Re: [axis2] services.xml problems

2006-04-26 Thread robert lazarski
Try clicking on the faulty service and posting the stack trace, maybe that'll help us track down the problem. 

Robert
http://www.braziloutsource.com/On 4/26/06, Michele Mazzucco <
[EMAIL PROTECTED]> wrote:Hi all,I'm using Axis2 1.0 RC2 and I'm having troubles with 
services.xml when Iinclude more that one service.In particular, the services.xml below doesn't work (the .aar file isshown as "faulty service")
First  locked="xsd:false">
stock.service.StockQuoteService  class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>  
Secondlocked="xsd:false">stock.service.SchemaQuoteServiceclass="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
value 1Any idea?Thanks in advance,Michele


Axis2: WSS4J - problem getting client to use my axis2.xml

2006-04-26 Thread Rob Henley



I'm using the 0.95 binary release on Windows XP, 
plus the separately downloaded security sample.
 
Some stuff appeared to be missing from the 
distribution. I downloaded security-0.95.mar 
separately via the 'Modules' link and copied under my axis2\WEB-INF\modules, and 
also got a copy of xalan.jar.
 
My axis2.xml contains:
 

 
  
    
Timestamp  

 
  
    
Timestamp  

 

My service is starting ok, but I don't think my 
client is picking up the security settings. My client code is attempting to pick up the same axis2.xml which my 
server uses ...
 
  ConfigurationContext ctx = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(X, Y); // 
see below
  PurchasingStub stub = new 
PurchasingStub(ctx, "http://localhost:8081/axis2/services/Purchasing");  
// stub generated from WSDL
 
I've tried various combinations for (X, Y) above. 
(I looked at the javadocs, but still couldn't be sure what this should look like 
exactly). Here's what I tried, followed by the various errors I received at 
runtime:
 
(null, null)
 
 [java] 
org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: WSDoAllReceiver: Request 
does not contain required Security header 
[java] at 
org.apache.axis2.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:187) 
[java] at 
org.apache.axis2.engine.Phase.invoke(Phase.java:378)
 
ok - that probably isn't surprising. I'm not sure 
how the client would find the repository if I don't tell it where to 
look.
 
("C:/Program 
Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF", "axis2.xml");("C:\\Program 
Files\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF", 
"axis2.xml");("C:/progra~1/Apache/Tomcat5.5/webapps/axis2/WEB-INF", 
"axis2.xml");
 
 [java] 
org.apache.axis2.deployment.DeploymentException: axis2.xml (The system cannot 
find the file specified); nested exception is: 
[java] java.io.FileNotFoundException: axis2.xml (The 
system cannot find the file specified)
 
[java] at 
org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:550)
 
I also tried prefxing axis2.xml with 'conf/', with 
the same result. (The javadoc suggests this wouldn't be valid 
anyway).
("C:/Program Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF", 
null);
 [java] 
java.lang.NullPointerException 
[java] at 
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59) 
[java] at 
org.apache.axis2.client.ServiceClient.(ServiceClient.java:97) 
[java] at 
org.apache.axis2.PurchasingStub.(Unknown 
Source) [java] at 
samples.purchasing1.ClientTest.main(Unknown Source)
 
Has anyone seen a similar problem or have an idea how I can make 
progress?
Many thanks
Rob


Re: [Axis2] Re: User manual for Axis2 v 0.95 - Problems with "Invoking a service using a mail"

2006-04-26 Thread Jack
Ho Chamil,

Ok let me see if I have this right now. To use a generic mail server
(and only perform one way communication - ie the client sends a
message to the service, which then performs some back end processing)
I need to:

1. have an email account where the messages are sent to (and the
service collects them from)

2. set the mail transport sections of the axis2.xml
   Where the transport sender section includes smtp details and the
transport receiver section to include pop3 details??
In the website [2] the comments seem to be in the wrong
sections??? Also in the website [2] it has:
   
and in all other axis2.xml files seems to have
   
*So should it be mail or mailto??


3. the only change in the client is the EndPointReference??
//private static EndpointReference targetEPR =
//  new 
EndpointReference("http://localhost:8080/axis2/services/MyService";);

private static EndpointReference targetEPR =
new EndpointReference("mailto:[EMAIL PROTECTED]" +

"/axis2/services/MyService/ping");

4. what change do i make on the service to get it to collect the
mails/messages from the mail server??



On 26/04/06, Chamil Thanthrimudalige <[EMAIL PROTECTED]> wrote:
> Hi Jack,
>
> We do not have a sample in a box.
>
> Can you have a look at a test case[1] in the integration module in
> the axis2 source checkout[svn checkout].
>
> To configure to work with the mail transport, have a look at the mail
> transport configuration document[2] for information about how to
> configure the mail transport. After the configuration you can just
> copy and past the code in a sample to check things out.
>
> For examples on the configuration have a look at the configuration
> files in the integration module.[3]
>
> Best Regards,
> Chamil Thanthrimudalige
>
> [1] Have a look at axis2/modules/integration/test/org/apache/axis2/
> mail/MailOneWayRawXMLTest.java
> [2] http://ws.apache.org/axis2/0_95/mail-configuration.html
> [3] axis2/modules/integration/test/org/apache/axis2/mai
>
> On Apr 26, 2006, at 3:50 PM, Jack wrote:
>
> > Hi Chamil,
> >
> > Thanks for the quick reply.
> >
> > I am still having difficulties. Is there a fully functional example of
> > SOAP via SMTP (ie a zip, jar, other that contains both client and
> > source code that can be downloaded and run)?
> >
> > Also when building from WSDL into stubs / skeletons where do the
> > changes have to be made to use SMTP as a transport?
> >
> > Cheers
> > Jack...
> >
> >
> > On 26/04/06, Chamil Thanthrimudalige <[EMAIL PROTECTED]> wrote:
> >> Hi Jack,
> >>
> >> Thanks for finding the typo.
> >>
> >> UtilsMailServer is in the integration module which is not shipped
> >> with any distribution. I think we need to move this to some other
> >> module that will be shipped. If you can get the source from a svn
> >> checkout[1] you will get UtilsMailServer[2].
> >>
> >> Also pleas make sure you are using Sun javamail and activation jars.
> >>
> >> Best Regards,
> >> Chamil Thanthrimudalige
> >>
> >>
> >> [1] http://ws.apache.org/axis2/svn.html
> >> [2] It is at [Axis2 source dir]/modules/integration/test/org/apache/
> >> axis2/mail/UtilsMailServer.java
> >>
> >>
> >> Hi,
> >>
> >> I'm having real trouble setting up a working example of SOAP over
> >> SMTP
> >> - I've looked at the user guide but the example seems broken (see
> >> below).
> >>
> >> Does anyone have a working example of this or any pointers? Would be
> >> muchly appreciated.
> >>
> >>
> >> Some specific issues for example:
> >>
> >> For example in Section 2. in the code you have:
> >> ConfigurationContext configContextbuilder
> >> .buildConfigurationContext(file.getAbsolutePath());
> >>
> >> This is not even valid java and should probably read something like:
> >> ConfigurationContext configContext  =
> >> builder.buildConfigurationContext
> >> (file.getAbsolutePath
> >> ());
> >>
> >> Also the UtilsMailServer that is mentioned cannot be found anywhere
> >> (in the src or bin or doc distributions)?
> >>
> >> Is it possible that this section of the user guide is revised and if
> >> so please make the source code for this section available
> >> somewhere as
> >> a zip / jar / other (or better still include it in the samples with
> >> the bin or src distributions).
> >>
> >> Cheers
> >> Jack...
> >>
> >> The claim "natural" is not synonymous with safe.
>
>


--
Cheers
Jack...

The claim "natural" is not synonymous with safe.


Re: [Axis2][1.0RC3] Unable to locate with a locator the schema referenced at 'xsd1.xsd' ...

2006-04-26 Thread Ajith Ranabahu
Hi,
We actually found this bug and fixed it. It was caused by the addition
of a new capability, loading relative schemas through the aar file

On 4/26/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm getting the following error when deploying my service on to 1.0RC3
> Axis2.war. There was no such problem with 0.95 release.
>
> I noticed that WSDL2Java generated xsd0.xsd, xsd1.xsd, xsd2.xsd and
> AccountServices.wsdl files into repository folder. I guess, this is a
> new feature, since those files were not generated in 0.95 release. By
> the way, these files are also resides in XBeans-packaged.jar.
>
> Any help would be great.
>
> Thanks
>
> --
> - Deploying module : soapmonitor
> - Deploying module : addressing
> - Deploying module : security
> Retrieving document at ''.
> Retrieving schema at 'xsd1.xsd', relative to ''.
> - Invalid service  AccountServices.aar due to WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is:
> WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': ; nested
> exception is:
> org.apache.axis2.AxisFault: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is:
> WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': ; nested
> exception is:
> org.apache.axis2.deployment.DeploymentException: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is:
> WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': ; nested
> exception is:
> org.apache.axis2.AxisFault: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is:
> WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '':
> org.apache.axis2.deployment.DeploymentException: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is:
> WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': ; nested
> exception is:
> org.apache.axis2.AxisFault: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is:
> WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': ; nested
> exception is:
> org.apache.axis2.deployment.DeploymentException: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is:
> WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '': ; nested
> exception is:
> org.apache.axis2.AxisFault: WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
> Unable to locate with a locator the schema referenced at 'xsd1.xsd'
> relative to document base ''; nested exception is:
> WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema
> referenced at 'xsd1.xsd' relative to document base '':
> at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:271)
> at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:599)
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195)
> at
> org.apache

help on java2wsdl and parameter types

2006-04-26 Thread Mati David








Hi,

 

I’m running java2wsdl (axis1.3) in rpc style on my java
source files.

In the generated wsdl I see that
the messages arguments types have the ‘soapenc’ namespace i.e.,
.

Yet, when I look at automatically generated wsdl from the axis
engine on my web server I see that those types are defined with the xsd namespace
- “xsd:string”.

How can I cause the java2wsdl tool to generate a wsdl using
the xsd namespace for parameter types (and what is actually the difference
between those two namespaces?)?

 

Thanks,

 

Mati David, 

 








RE: FW: sendXMLDeclaration not working?

2006-04-26 Thread Doug Cottrell (Interactions)



Anne-You are correct.  It's just the only thing in the 
XML that looks like a processing instruction, so admittedly we were shooting in 
the dark about this.
 
We've solved the problem on the WebLogic server side. I 
don't know the exact solution, except this wasn't the 
problem.
Thanks for your help, Anne.
-Doug


From: Anne Thomas Manes 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 6:03 
AMTo: axis-user@ws.apache.orgSubject: Re: FW: 
sendXMLDeclaration not working?
The XML declaration is not a processing instruction. That isn't the 
cause of your error.Anne
On 4/25/06, Doug Cottrell 
(Interactions) < 
[EMAIL PROTECTED]> wrote:

  
  Hello- 
  I have created Axis client code to 
  call a webservice hosted on a WebLogic server.  The Axis generated SOAP 
  XML has the line:
       in it.  However, when the SOAP request is 
  sent to WebLogic, WebLogic returns a SAX Exception "Processing instructions 
  are not allowed within SOAP messages". 
  So we attempt to turn this off by 
  using:    in the  section of the a 
  client-config.wsdd file.  We've can verify it is reading this file, but 
  the line we don't want is still being sent! 
  We are using Axis 1.3. Is 
  sendXMLDeclaration not working, or are we doing something wrong? 
  Thanks Doug 



Re: CalClient problem: Classpath

2006-04-26 Thread Kensky Schulz

You have to place the server side .aar in your class path. Remember
the server side code you generated as .aar for classpath
reference should be renamed as .jar before placing into
classpath.



On 4/24/06, Askar Zaidi <[EMAIL PROTECTED]> wrote:

Hi,

 When I try to run the CalClient example, I get the following exception:

 Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/utils/Options
 at
samples.userguide.example2.CalcClient.main(CalcClient.java:29)

 If this is a CLASSPATH trouble, please tell me how to solve this.

 I have set AXIS_HOME and AXIS_LIB.

 this is my directory structure:

 /home/tintin/apache/
 /home/tintin/axis/

 PLEASE ! this is urgent !!

--
thanks,

Askar


[Axis2][1.0RC3] Unable to locate with a locator the schema referenced at 'xsd1.xsd' ...

2006-04-26 Thread Ali Sadik Kumlali
Hi all,

I'm getting the following error when deploying my service on to 1.0RC3
Axis2.war. There was no such problem with 0.95 release. 

I noticed that WSDL2Java generated xsd0.xsd, xsd1.xsd, xsd2.xsd and
AccountServices.wsdl files into repository folder. I guess, this is a
new feature, since those files were not generated in 0.95 release. By
the way, these files are also resides in XBeans-packaged.jar.

Any help would be great.

Thanks

--
- Deploying module : soapmonitor
- Deploying module : addressing
- Deploying module : security
Retrieving document at ''.
Retrieving schema at 'xsd1.xsd', relative to ''.
- Invalid service  AccountServices.aar due to WSDLException (at
/wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
Unable to locate with a locator the schema referenced at 'xsd1.xsd'
relative to document base ''; nested exception is: 
WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
faultCode=OTHER_ERROR: Unable to locate with a locator the schema
referenced at 'xsd1.xsd' relative to document base '': ; nested
exception is: 
org.apache.axis2.AxisFault: WSDLException (at
/wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
Unable to locate with a locator the schema referenced at 'xsd1.xsd'
relative to document base ''; nested exception is: 
WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
faultCode=OTHER_ERROR: Unable to locate with a locator the schema
referenced at 'xsd1.xsd' relative to document base '': ; nested
exception is: 
org.apache.axis2.deployment.DeploymentException: WSDLException (at
/wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
Unable to locate with a locator the schema referenced at 'xsd1.xsd'
relative to document base ''; nested exception is: 
WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
faultCode=OTHER_ERROR: Unable to locate with a locator the schema
referenced at 'xsd1.xsd' relative to document base '': ; nested
exception is: 
org.apache.axis2.AxisFault: WSDLException (at
/wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
Unable to locate with a locator the schema referenced at 'xsd1.xsd'
relative to document base ''; nested exception is: 
WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
faultCode=OTHER_ERROR: Unable to locate with a locator the schema
referenced at 'xsd1.xsd' relative to document base '': 
org.apache.axis2.deployment.DeploymentException: WSDLException (at
/wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
Unable to locate with a locator the schema referenced at 'xsd1.xsd'
relative to document base ''; nested exception is: 
WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
faultCode=OTHER_ERROR: Unable to locate with a locator the schema
referenced at 'xsd1.xsd' relative to document base '': ; nested
exception is: 
org.apache.axis2.AxisFault: WSDLException (at
/wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
Unable to locate with a locator the schema referenced at 'xsd1.xsd'
relative to document base ''; nested exception is: 
WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
faultCode=OTHER_ERROR: Unable to locate with a locator the schema
referenced at 'xsd1.xsd' relative to document base '': ; nested
exception is: 
org.apache.axis2.deployment.DeploymentException: WSDLException (at
/wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
Unable to locate with a locator the schema referenced at 'xsd1.xsd'
relative to document base ''; nested exception is: 
WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
faultCode=OTHER_ERROR: Unable to locate with a locator the schema
referenced at 'xsd1.xsd' relative to document base '': ; nested
exception is: 
org.apache.axis2.AxisFault: WSDLException (at
/wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR:
Unable to locate with a locator the schema referenced at 'xsd1.xsd'
relative to document base ''; nested exception is: 
WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]):
faultCode=OTHER_ERROR: Unable to locate with a locator the schema
referenced at 'xsd1.xsd' relative to document base '': 
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:271)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:599)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207)
--


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


Re: [Axis2] Re: User manual for Axis2 v 0.95 - Problems with "Invoking a service using a mail"

2006-04-26 Thread Chamil Thanthrimudalige

Hi Jack,

We do not have a sample in a box.

Can you have a look at a test case[1] in the integration module in  
the axis2 source checkout[svn checkout].


To configure to work with the mail transport, have a look at the mail  
transport configuration document[2] for information about how to  
configure the mail transport. After the configuration you can just  
copy and past the code in a sample to check things out.


For examples on the configuration have a look at the configuration  
files in the integration module.[3]


Best Regards,
Chamil Thanthrimudalige

[1] Have a look at axis2/modules/integration/test/org/apache/axis2/ 
mail/MailOneWayRawXMLTest.java

[2] http://ws.apache.org/axis2/0_95/mail-configuration.html
[3] axis2/modules/integration/test/org/apache/axis2/mai

On Apr 26, 2006, at 3:50 PM, Jack wrote:


Hi Chamil,

Thanks for the quick reply.

I am still having difficulties. Is there a fully functional example of
SOAP via SMTP (ie a zip, jar, other that contains both client and
source code that can be downloaded and run)?

Also when building from WSDL into stubs / skeletons where do the
changes have to be made to use SMTP as a transport?

Cheers
Jack...


On 26/04/06, Chamil Thanthrimudalige <[EMAIL PROTECTED]> wrote:

Hi Jack,

Thanks for finding the typo.

UtilsMailServer is in the integration module which is not shipped
with any distribution. I think we need to move this to some other
module that will be shipped. If you can get the source from a svn
checkout[1] you will get UtilsMailServer[2].

Also pleas make sure you are using Sun javamail and activation jars.

Best Regards,
Chamil Thanthrimudalige


[1] http://ws.apache.org/axis2/svn.html
[2] It is at [Axis2 source dir]/modules/integration/test/org/apache/
axis2/mail/UtilsMailServer.java


Hi,

I'm having real trouble setting up a working example of SOAP over  
SMTP

- I've looked at the user guide but the example seems broken (see
below).

Does anyone have a working example of this or any pointers? Would be
muchly appreciated.


Some specific issues for example:

For example in Section 2. in the code you have:
ConfigurationContext configContextbuilder
.buildConfigurationContext(file.getAbsolutePath());

This is not even valid java and should probably read something like:
ConfigurationContext configContext  =
builder.buildConfigurationContext 
(file.getAbsolutePath

());

Also the UtilsMailServer that is mentioned cannot be found anywhere
(in the src or bin or doc distributions)?

Is it possible that this section of the user guide is revised and if
so please make the source code for this section available  
somewhere as

a zip / jar / other (or better still include it in the samples with
the bin or src distributions).

Cheers
Jack...

The claim "natural" is not synonymous with safe.




[axis2] services.xml problems

2006-04-26 Thread Michele Mazzucco
Hi all,

I'm using Axis2 1.0 RC2 and I'm having troubles with services.xml when I
include more that one service.

In particular, the services.xml below doesn't work (the .aar file is
shown as "faulty service")






First

  stock.service.StockQuoteService

  

  

  

  



Second
stock.service.SchemaQuoteService












value 1


Any idea?

Thanks in advance,
Michele


Re: FW: sendXMLDeclaration not working?

2006-04-26 Thread Anne Thomas Manes
The XML declaration is not a processing instruction. That isn't the cause of your error.AnneOn 4/25/06, Doug Cottrell (Interactions) <
[EMAIL PROTECTED]> wrote:









Hello-


I have created Axis client code to call a webservice hosted on a WebLogic server.  The Axis generated SOAP XML has the line:

    

in it.  However, when the SOAP request is sent to WebLogic, WebLogic returns a SAX Exception "Processing instructions are not allowed within SOAP messages".


So we attempt to turn this off by using:

  

in the  section of the a client-config.wsdd file.  We've can verify it is reading this file, but the line we don't want is still being sent!


We are using Axis 1.3. Is sendXMLDeclaration not working, or are we doing something wrong?


Thanks

Doug







Re: [Axis2] Re: User manual for Axis2 v 0.95 - Problems with "Invoking a service using a mail"

2006-04-26 Thread Jack
Hi Chamil,

Thanks for the quick reply.

I am still having difficulties. Is there a fully functional example of
SOAP via SMTP (ie a zip, jar, other that contains both client and
source code that can be downloaded and run)?

Also when building from WSDL into stubs / skeletons where do the
changes have to be made to use SMTP as a transport?

Cheers
Jack...


On 26/04/06, Chamil Thanthrimudalige <[EMAIL PROTECTED]> wrote:
> Hi Jack,
>
> Thanks for finding the typo.
>
> UtilsMailServer is in the integration module which is not shipped
> with any distribution. I think we need to move this to some other
> module that will be shipped. If you can get the source from a svn
> checkout[1] you will get UtilsMailServer[2].
>
> Also pleas make sure you are using Sun javamail and activation jars.
>
> Best Regards,
> Chamil Thanthrimudalige
>
>
> [1] http://ws.apache.org/axis2/svn.html
> [2] It is at [Axis2 source dir]/modules/integration/test/org/apache/
> axis2/mail/UtilsMailServer.java
>
>
> Hi,
>
> I'm having real trouble setting up a working example of SOAP over SMTP
> - I've looked at the user guide but the example seems broken (see
> below).
>
> Does anyone have a working example of this or any pointers? Would be
> muchly appreciated.
>
>
> Some specific issues for example:
>
> For example in Section 2. in the code you have:
> ConfigurationContext configContextbuilder
> .buildConfigurationContext(file.getAbsolutePath());
>
> This is not even valid java and should probably read something like:
> ConfigurationContext configContext  =
> builder.buildConfigurationContext(file.getAbsolutePath
> ());
>
> Also the UtilsMailServer that is mentioned cannot be found anywhere
> (in the src or bin or doc distributions)?
>
> Is it possible that this section of the user guide is revised and if
> so please make the source code for this section available somewhere as
> a zip / jar / other (or better still include it in the samples with
> the bin or src distributions).
>
> Cheers
> Jack...
>
> The claim "natural" is not synonymous with safe.


Re: [axis2] Setting EndPoint in Module -> nullpointer

2006-04-26 Thread Thomas Van de Velde
I think I found the problem.The sender retrieved by AxisEngine in TransportOutDescription transportOut = msgContext.getTransportOut();
TransportSender sender = transportOut.getSender();returns null.When invoke is called, you get a nullpointer.However my TransportOutDescription was set in the client:
options.setTranportOut(new TransportOutDescription(new QName(
                    Constants.TRANSPORT_HTTP)));I've filed 
http://issues.apache.org/jira/browse/AXIS2-619ThomasOn 4/26/06, robert lazarski <
[EMAIL PROTECTED]> wrote:
The point being
you need to make sure you can call setTO() by knowing what phase your
in. AbstractHandler.invoke() will be called by all phases if indeed you
are following the loggging.mar code. 

What I showed is a solution
for getting an EPR without NPE by calling the right phase. You're
setting the EPR, however ;-) . I think I get what you are trying to do
now. 

The logging.mar
is an example that places phases after the system predefined phases, 
yet an EPR is AFAIK expected to be set before the user phases, due to
that AxisEngine is called before the user phases and the EPR's are
initialized for the MessageContext methods such as getTO() .   

My two reccomendations are: 

1) Use RC2. If you end up filing a Jira that's the best code base to do it from . 
2) Look at the Transport and Dispatch phases to see if you can actually set the EPR after those phases. 

HTH,
Robert

http://www.braziloutsource.com
On 4/25/06, Thomas Van de Velde <

[EMAIL PROTECTED]> wrote:
Hi Robert,I am not sure how this
is related to my problem. The idea is to defer the definition of an EPR
at the end of the processing pipeline and not in the client code.Thomas

On 4/25/06, robert lazarski <[EMAIL PROTECTED]> wrote:



Incidently, I'm not sure what one would do here on: 

else if (messageContext.getFLOW() == MessageContext.OUT_FAULT_FLOW)

As I don't see how to get the EPR in this case. That might not be a valid case though. 

Robert
http://www.braziloutsource.com/
On 4/25/06, robert lazarski <
[EMAIL PROTECTED]> wrote:You need to be able to determine how to get the endpoint via the Flows, such as: 


EndpointReference ref = null;

    // Get id, type and content
    Long    id;
    Integer type;
    // 'soap request' must be called first
    if (messageContext.getFLOW() == MessageContext.IN_FLOW) {
    // show soap message inside the 'soap request' pane in the applet
    id = assignMessageId(messageContext);
    type = new Integer(SOAPMonitorConstants.SOAP_MONITOR_REQUEST);
    ref = messageContext.getTo();
    } else if (messageContext.getFLOW() == MessageContext.OUT_FLOW) {
    id = getMessageId(messageContext);
    // show soap message inside the 'soap response' pane in the applet
    type = new Integer(SOAPMonitorConstants.SOAP_MONITOR_RESPONSE);
    ref = messageContext.getFrom();
    } else if (messageContext.getFLOW() == MessageContext.IN_FAULT_FLOW) {
    id = getMessageId(messageContext);
    // show soap message inside the 'soap response' pane in the applet
    type = new Integer(SOAPMonitorConstants.SOAP_MONITOR_RESPONSE);
    ref = messageContext.getFaultTo();
    } else {
    throw new
IllegalStateException("unknown FLOW detected in messageContext: " +
messageContext.getFLOW());
    }

Another way to do this would be labels. 

HTH,
Robert
http://www.braziloutsource.com/
 



On 4/25/06, 


Thomas Van de Velde <

[EMAIL PROTECTED]> wrote:Hello,I am trying to set the
endpointreference in a module so that the client code does not need to
be aware of the endpoint details.  The goal is that  this
module takes over responsibility of  setting the endpoint.  When taking out options.setTo(...) from the client, I get an
error indicating that the transport cannot be determined.("Cannot infer
transport information from the URL information provided")  I've
fixed this by setting the TransportIn and TransportOut options. 
Now Axis is able to determine the transport details.  However I am
getting now getting a nullpointer exception in AxisEngine.send() line
544.I am using axis2 v0.95Client options:            Options options = new Options();            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);            
options.setTranportOut(new TransportOutDescription(new QName(                    Constants.TRANSPORT_HTTP)));            options.setUseSeparateListener(false);Handler code:public void invoke(MessageContext msgContext) throws AxisFault {
    public static EndpointReference EPR = new EndpointReference(            "





http://localhost:8080/axis2/services/sample-provider");
        msgContext.setTo(EPR);        log.info(msgContext.getEnvelope().toString());    }All the rest of the configuration (axis2.xml and module.xml) is identical to the LoggingModule sample.I guess this should be raised as a JIRA issue.  Anything I can do to get past the nullpointer?
Cheers,Thomas 












[Axis2] Re: User manual for Axis2 v 0.95 - Problems with "Invoking a service using a mail"

2006-04-26 Thread Chamil Thanthrimudalige

Hi Jack,

Thanks for finding the typo.

UtilsMailServer is in the integration module which is not shipped  
with any distribution. I think we need to move this to some other  
module that will be shipped. If you can get the source from a svn  
checkout[1] you will get UtilsMailServer[2].


Also pleas make sure you are using Sun javamail and activation jars.

Best Regards,
Chamil Thanthrimudalige


[1] http://ws.apache.org/axis2/svn.html
[2] It is at [Axis2 source dir]/modules/integration/test/org/apache/ 
axis2/mail/UtilsMailServer.java



Hi,

I'm having real trouble setting up a working example of SOAP over SMTP
- I've looked at the user guide but the example seems broken (see
below).

Does anyone have a working example of this or any pointers? Would be
muchly appreciated.


Some specific issues for example:

For example in Section 2. in the code you have:
   ConfigurationContext configContextbuilder
   .buildConfigurationContext(file.getAbsolutePath());

This is not even valid java and should probably read something like:
   ConfigurationContext configContext  =
   builder.buildConfigurationContext(file.getAbsolutePath 
());


Also the UtilsMailServer that is mentioned cannot be found anywhere
(in the src or bin or doc distributions)?

Is it possible that this section of the user guide is revised and if
so please make the source code for this section available somewhere as
a zip / jar / other (or better still include it in the samples with
the bin or src distributions).

Cheers
Jack...

The claim "natural" is not synonymous with safe.



[Axis2] Client-within-server problems

2006-04-26 Thread Marshall, John
Hi,
I'm trying to develop a request-reply web service, rather like in Figure
4 on this website:

http://www-128.ibm.com/developerworks/library/ws-asynch2/

To do this I'm essentially writing a synchronous web service to do the
first request-ack interaction.
During the processing I launch a new thread that is effectively a client
for the other end. I want to send the response document (which may have
taken some time to obtain) back to the other end.

I have the WSDL of the other end and used it to create a client stub. I
can send my response document to the other end and get the ack back from
it. However, my Stub ALWAYS crashes within the 
_operationClient.execute(true);

With a NullPointerException. 
I've dug around a bit and it seems to be caused by the
createSOAPMessage() method of the TransportUtils class - the inStream is
always null.

I'm guessing there is something clever I have to do with
message/operation/configuration contexts, but I can't figure it out!
The really weird thing is that despite the AxisFault being thrown, the
document still gets sent!

Can anyone advise what I have to do to be able to behave like a client
within an AxisService?

Thanks for any light you can shed,
John M.



Re: does axis2 always mangle the wsdl file

2006-04-26 Thread f . linz
Hi!



> > Now, my understanding is that if you place your wsdl file in the
> > META-INF file of the web service's aar file, that is the wsdl file
> > that will be delivered back to the client when you traverse to
> > http://my.endpoint.com/service?wsdl.
> 
> What will happen is AxisService will be created using that wsdl , I mean
> operation and their soapAction will be created using that , in the mean
> while AxisService will keep the original schemas as well. So when you
> ask for the wsdl at the runtime AxisService will be serialize with new
> binding.
> 

Why was this way of adjusting the original wsdl file chosen (instead of just
returning the provided wsdl) ? When I first noticed that axis replaces the
service definition in my provided wsdl I wonderd what I did wrong. It is not
realy a problem for me but I think it should be mentioned in the docs in
more detail as this behaivour was not what I expected. 
Thanks,

Fabian

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail