RE: Axis2: Mismatched xmlbeans class names

2009-03-18 Thread Martin.Barrs
Hi Scott,

Did you generate the XMLbeans using scomp and graft it on to the Axis2
skel/stub generated with the -Ewdc option? If you did, Axis2 and
XMLBeans munge the namespaces two different ways ensuring that the two
systems are incompatible.

If you just used WSDL2Java with -d xmlbeans, perhaps you should try
using the overwrite flag (-or) as you perhaps have an old files hanging
in your build target dir. 

Or perhaps you have multiple TypeSystemHolder elements in different
namespaces?

Martin

-Original Message-
From: sc...@svis.com [mailto:sc...@svis.com] 
Sent: Wednesday, March 18, 2009 1:02 PM
To: axis-user@ws.apache.org
Subject: Axis2: Mismatched xmlbeans class names

What causes this class name mismatch?

In my jar file, I have the following class.
schemaorg_apache_xmlbeans/system/sBBF8DB3578287A3861C364EA0385E717/TypeS
ystemHolder.class

At runtime, I experience
Unable to load:
schemaorg_apache_xmlbeans.system.sBE617FEA02624726C1BF84F8C0A8EDDF.TypeS
ystemHolder

This occurs when I try to run the Axis2SampleDocLitService client.

Scott Vigil

http://svis.com






Axis2: Mismatched xmlbeans class names

2009-03-18 Thread scott
What causes this class name mismatch?

In my jar file, I have the following class.
schemaorg_apache_xmlbeans/system/sBBF8DB3578287A3861C364EA0385E717/TypeSystemHolder.class

At runtime, I experience
Unable to load:
schemaorg_apache_xmlbeans.system.sBE617FEA02624726C1BF84F8C0A8EDDF.TypeSystemHolder

This occurs when I try to run the Axis2SampleDocLitService client.

Scott Vigil

http://svis.com





RE: Axis2 run on Java 6

2009-03-18 Thread Martin Gainty

running Axis2.1.6 on 
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)

is there a problem?
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung / Disclaimer and confidentiality note 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
This message is confidential and may be privileged. If you are not the intended 
recipient, we kindly ask you to  please inform the sender. Any unauthorised 
dissemination or copying hereof is prohibited. This message serves for 
information purposes only and shall not have any legally binding effect. Given 
that e-mails can easily be subject to manipulation, we can not accept any 
liability for the content provided.






> Date: Wed, 18 Mar 2009 10:20:15 -0700
> From: cathal.callag...@fineos.com
> To: axis-user@ws.apache.org
> Subject: Axis2 run on Java 6
> 
> 
> 
> Hi,
> 
> Is anyone currently running Axis2 on Java 6? About to upgrade to Java 6 soon
> and i would like to know if anyone has come across any reason why this would
> be an issue when using Axis2 1.4.
> 
> Thanks,
> Cathal
> -- 
> View this message in context: 
> http://www.nabble.com/Axis2-run-on-Java-6-tp22584084p22584084.html
> Sent from the Axis - User mailing list archive at Nabble.com.
> 

_
Windows Live™: Life without walls.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009

Axis2 run on Java 6

2009-03-18 Thread callagc4


Hi,

Is anyone currently running Axis2 on Java 6? About to upgrade to Java 6 soon
and i would like to know if anyone has come across any reason why this would
be an issue when using Axis2 1.4.

Thanks,
Cathal
-- 
View this message in context: 
http://www.nabble.com/Axis2-run-on-Java-6-tp22584084p22584084.html
Sent from the Axis - User mailing list archive at Nabble.com.



RE: How to map a soap request to the appropriate response in a modul

2009-03-18 Thread Werling, Kristof
 
Hello,

Never mind. I worked it out myself with the soapmonitor as an example.

Thanks,
Kristof
-Original Message-
From: Werling, Kristof 
Sent: Tuesday, March 17, 2009 6:05 PM
To: axis-user@ws.apache.org
Cc: Werling, Kristof
Subject: How to map a soap request to the appropriate response in a modul

Hello, 

I started out with the Logging example of the user guide. I deployed the modul 
and it is working just fine.  Logging exaxtly what I want it to log.

But there is one question I have: How can I map the responses to the correct 
request?  I am sure there is some Id I can make use of, but so far I could not 
work it out.  

Any help is very much appreciated.

Thanks,
Kristof

Axis2SampleDocLit

2009-03-18 Thread scott
I would be very thankful if someone could make a directory tree available
with a fully functional and buildable Axis2SampleDocLit by the end of
Thursday (tomorrow).

I notice that others have had diffiulties with the example also.

Best regards,

Scott Vigil

http://svis.com




Re: XML Unmarshalling/ Data Binding

2009-03-18 Thread jcaristi

There are three Axis2 options for this, which are clearly explained in this
article:

http://www.ibm.com/developerworks/webservices/library/ws-java3/

Note that you would probably want to use these in place of JAXB, not in
addition to it.  If you want to use JAXB, you should probably stick with a
pure JAX-WS solution and skip the Axis data binding.


kushal12 wrote:
> 
> Hi,
> 
> Can somebody tell me if, there is a way by which you can convert the
> incoming XML to a java object using Axis ??
> 
> I am trying to call a webservice and the client for which has been written
> in Axis.
> 
> Now Client in turn gets the input data to be passsed to the service in the
> form of XML. 
> 
> If I use Jaxb to unmarshal the incoming data, Jaxb generates its own set
> of java classes for the xml, which are different in names, as those
> generated by axis, as a part of wsdl2java tool.
> 
> Is there any way by which I can driectly copy the java object returned by
> JAXB into the one generated by Axis ?
> 
> Have tried beanutils, but it expects all the property names in the source
> and destination object to be same ?
> 
> Regards
> Kushal
> 

-- 
View this message in context: 
http://www.nabble.com/XML-Unmarshalling--Data-Binding-tp22580923p22581245.html
Sent from the Axis - User mailing list archive at Nabble.com.



XML Unmarshalling/ Data Binding

2009-03-18 Thread kushal12

Hi,

Can somebody tell me if, there is a way by which you can convert the
incoming XML to a java object using Axis ??

I am trying to call a webservice and the client for which has been written
in Axis.

Now Client in turn gets the input data to be passsed to the service in the
form of XML. 

If I use Jaxb to unmarshal the incoming data, Jaxb generates its own set of
java classes for the xml, which are different in names, as those generated
by axis, as a part of wsdl2java tool.

Is there any way by which I can driectly copy the java object returned by
JAXB into the one generated by Axis ?

Have tried beanutils, but it expects all the property names in the source
and destination object to be same ?

Regards
Kushal
-- 
View this message in context: 
http://www.nabble.com/XML-Unmarshalling--Data-Binding-tp22580923p22580923.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Silly question about wsdl2java

2009-03-18 Thread Sagara Gunathunga
Hi Edu,
I'm not sure is there any other option to change this behavior  or it
is  a bug with ADB code generation.

I think ADB code generation tool should have little knowledge before
it un-wrap the omplexType response messages to ensure that is it
possible to un-wrap or not.


Thanks ,


On Wed, Mar 18, 2009 at 5:41 PM, Eduard Martínez
 wrote:
> Thank you Sagara, I've tried your suggestion and it appears to work. But
> then the code generated is a void method when should return an object.
>
> Types are:
>
>             
>                 
>                     
>                          nillable="false" />
>                     
>                 
>             
>
>             
>                 
>                     
>                          nillable="false"/>
>                          nillable="false"/>
>                          type="tns:questionsGroup" minOccurs="0" maxOccurs="unbounded" />
>                     
>                 
>             
>
>
> Messages:
>
>     
>         
>     
>     
>         
>     
>
> And the operation:
>
>         
>             
>             
>         
>
> Without the -uw option, method signature is like this:
>
> public FullTest getTest(Idstr id);
>
> With the -uw option:
>
> public void getTest(String id);
>
>
> Cheers,
>
> Edu
> On Tue, Mar 17, 2009 at 1:02 PM, Sagara Gunathunga
>  wrote:
>>
>> Hi Edu,
>> adding  -uw  (un-wrapping) option will solve your problem.
>>
>> WSDL2Code -uri  -uw
>>
>> Thanks ,
>>
>
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


Re: Dev environment

2009-03-18 Thread Jason Fister
Thank you guys!

On Wed, Mar 18, 2009 at 12:09 AM, Pradeep Fernando wrote:

>
> Hi Jason,
>
> I would recommend IntellijIDEA or eclipse. jIDEA is a great development
> environment and most of development in Apache
> is done using intellijIDEA since their offering free community license. On
> the other hand eclipse is a great opensource
> product that you can afford.
>
> You better get started with eclipse since there are quite a number of
> articles related to Eclipse+axis2. There are some
> eclipse plugins related to axis2 to ease your work.You may find more useful
> artices here[1].
>
> Axis2 uses ant and Maven both. But most of the time its Maven.You better
> get some idea on these by visiting their
> respective sites. [2], [3]
>
> Axis2 uses svn(subversion) as its version control system.You have to setup
> the SVN client before you chekout from the trunk.Read the  Axis2 docs for
> more details. Do some googling on SVN.
>
> hope this helps,
>
>
> cheers,
> Pradeep Fernando.
>
> [1] http://wso2.org/library/axis2
> [2]  http://ant.apache.org/
> [3] http://maven.apache.org/
>


Re: Silly question about wsdl2java

2009-03-18 Thread Eduard Martínez
Thank you Sagara, I've tried your suggestion and it appears to work. But
then the code generated is a void method when should return an object.

Types are:




















Messages:








And the operation:






Without the -uw option, method signature is like this:

public FullTest getTest(Idstr id);

With the -uw option:

public void getTest(String id);


Cheers,

Edu
On Tue, Mar 17, 2009 at 1:02 PM, Sagara Gunathunga <
sagara.gunathu...@gmail.com> wrote:

> Hi Edu,
> adding  -uw  (un-wrapping) option will solve your problem.
>
> WSDL2Code -uri  -uw
>
> Thanks ,
>
>


Re: Does HTTPEndpointStub work?

2009-03-18 Thread jcaristi

Here it is:

http://www.nabble.com/file/p22577300/PartSelectService.wsdl
PartSelectService.wsdl 


Keithgchapman wrote:
> 
> Could you post your wsdl please?
> 
> Thanks,
> Keith.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Does-HTTPEndpointStub-work--tp22561063p22577300.html
Sent from the Axis - User mailing list archive at Nabble.com.



AW: scope="soapsession" what causes destroy() to be called

2009-03-18 Thread Stadelmann Josef
Hi all
 
It seams that no-one of the axis2 developers, mainly the one introducing 
scope="soapsession" are able
to deliver me an answer to my questions below. a while ago, two years ago in 
fact I run still axis2-1.2 on
OpenVMS, I was 100% confident that I have a thread/session safe configuration 
when I run in 
 
scope="soapsession"; mode
 
however this is only true for java axis2 based service clients; this is the 
out-come of the past months!
 
The various stories say - that one has to return the ServicegroupId's with each 
request, in a soap-header.
 
OK I beleaved this. And I garantee you, all my wcf clients do it.
 
Meanwhile, I am 100% confident, as I am currently struggle arroun to make Vista 
clients using .NET,
C#, WCF work toward an axis2 server running in scope="soapsession"; 
 
THAT THIS IS SIMPLY NOT TRUE!
 
what I learned and have detected so far using tcpmon is
 
Every axis2 java service client accepts cookies and hence the server returns on 
its initial request
(when the sessiion is new) a 
 
Set-Cookie; JSESSIONID=< id > ; Path=/axis2
 
This as a web http header in its reply when a first request is made, which 
calls init() and then my own login() 
(when the session is new:)
 
and with this first response, as said in documentation;  I get the awaited 
ServiceGroupId back.
 
This ServicegroupId is said to be the identifier one has to return with each 
follow-request to the
server to reach the same instance of a service, to talk to the same object; to 
have in fact sessions
/threads implemented; however - that is not true - without the coockie it does 
not work.
 
The quite reader might have assumed that I run via HttpTransport not via 
TcpTransports; We do so.
 
Now; I have 3 Java axis2 service clients running; and each is reaching its own 
object/service, each sends
its own garanteed unique JSESSIONID at the http-request-header-level and its 
own garanteed unique 
ServiceGroupId at the soap-request-header-level
 
And it works;
 
I start my first wcf client and well it works; 
This wcf client sends garanteed unique its JSESSION and its garanteed unique 
ServicveGroupId
with each request; see below; we have init() login() fktmap() fktmap() fktmap() 
init() login() ...
and please take notice the when the ServiceContext ID changes;
 
And it works;
 
I start my second wcf client an well it receives with its initial request (it 
calls init() ( it's garanteed unique JSESSIONID and its 
garanteed unique ServicegroupId; 
 
But when I look at my log in  
AXP1>ty APACHE$SPECIFIC:[00]APACHE$JAKARTA_SERVER_OUTPUT.LOG/out=x.x
 
I can find the following sequence of calls; and as you can see, when my third 
vista wcf client starts destroy() gets called twice for my
two previous still in use ServiceContext, and that is the deadly end of the 
unique services serving wcf client 1 and 2

AXP1>search x.x "-  init()","-  login()","-  fktmap","-  logout()","-  
destroy()"
-  init()called at : Wed Mar 18 08:38:40 MET 2009 using  
 
org.apache.axis2.context.servicecont...@fe418d28 i=0
-  login()   called at : Wed Mar 18 08:38:40 MET 2009 using  
 
org.apache.axis2.context.servicecont...@fe418d28 i=1 and session is NEW
-  fktmap()  called at : Wed Mar 18 08:38:48 MET 2009 using  
 
org.apache.axis2.context.servicecont...@fe418d28 i=2
-  fktmap()  called at : Wed Mar 18 08:38:50 MET 2009 using  
 
org.apache.axis2.context.servicecont...@fe418d28 i=3
-  fktmap()  called at : Wed Mar 18 08:38:57 MET 2009 using  
 
org.apache.axis2.context.servicecont...@fe418d28 i=4
-  init()called at : Wed Mar 18 08:39:24 MET 2009 using  
 
org.apache.axis2.context.servicecont...@fe3c1573 i=0
-  login()   called at : Wed Mar 18 08:39:24 MET 2009 using  
 
org.apache.axis2.context.servicecont...@fe3c1573 i=1 and session is NEW
-  fktmap()  called at : Wed Mar 18 08:39:32 MET 2009 using  
 
org.apache.axis2.context.servicecont...@fe3c1573 i=2
-  fktmap()  called at : Wed Mar 18 08:39:35 MET 2009 using  
 
org.apache.axis2.context.servicecont...@fe3c1573 i=3
-  fktmap()  called at : Wed Mar 18 08:39:41 MET 2009 using  
 
org.apache.axis2.context.servicecont...@fe3c1573 i=4
-  destroy() called at : Wed Mar 18 08:41:05 MET 2009 using  
 
org.apache.axis2.context.servicecont...@fe418d28 i=5
-  destroy() called at : Wed Mar 18 08:41:05 MET 2009 using  
 
or

Sandesha sequence auto termination

2009-03-18 Thread Andrei Ivanov
Hello,
I found the following property:
org.apache.sandesha2.storage.beans.RMSBean.avoidAutoTermination
but I don't understand how it works
AFAIS, the setter for this property is only called on the client side,
so the client can ask Sandesha
not to terminate the sequence?
The problem seems to be that on the server side, the value of the
property isn't set anywhere... so it remains false
and the Sandesha server keeps sending TerminateSequence messages back
to the client, as a response to the
client's own TerminateSequence message(which probably is another bug)


Fwd: stsAlias property in Rampart Config

2009-03-18 Thread Håkon Sagehaug
-- Forwarded message --
From: Håkon Sagehaug 
Date: 2009/3/18
Subject: stsAlias property in Rampart Config
To: rampart-...@ws.apache.org


Hi

just wondered what the stsAlias property means in the rampart Configuration

cheers, håkon

-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)



-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)


Re: Does HTTPEndpointStub work?

2009-03-18 Thread keith chapman
Could you post your wsdl please?

Thanks,
Keith.

On Tue, Mar 17, 2009 at 8:35 PM, jcaristi  wrote:

>
> I am generating ADB stubs from hand-coded WSDL, for an Axis2 service that
> is
> embedded in a web application.  I have both SOAP and HTTP endpoints
> defined.
> I can successfully call my web service using both SOAP and REST clients.
> SoapUI works for both.  The HttpSoap11EndpointStub works for both (using
> the
> ENABLE_REST option for REST).  I have also created a Service client that
> works.
>
> What does not work is the HTTPEndpointStub, and I'm not sure why, or even
> if
> I need it.  I do want to support both SOAP and REST. I would like to use
> the
> most efficient approach, which is why I am asking these questions.
>
> The working URL (in all the above scenarios) for my service is:
>
> /partselect/services/PartSelectService/
>
> When I attempt to use the HTTPEndpointStub, its URL is different.  I get
> the
> error:
>
> The service cannot be found for the endpoint reference (EPR) /partselect/
>
> services/PartSelectService.PartSelectServiceHttpEndpoint/PartSelectService/MakeSearch
>
> Why is an HTTPEndpointStub created?  Why does this stub create the URL in
> this way?  How does one configure the server to listen on this type of
> endpoint?  Should I just use the HTTPSoap11EndpointStub, or should I try to
> get this one working?
>
>
> --
> View this message in context:
> http://www.nabble.com/Does-HTTPEndpointStub-work--tp22561063p22561063.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>


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

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