[axis2] what is the difference between sendRobust and fireAndForget

2007-01-26 Thread falom
Hi,

When should I call sendRobust and alternatively fireAndForget, both are void 
method, any specific differences for them?

falom


-
抢注雅虎免费邮箱-3.5G容量,20M附件! 

Re: Axis2 1.1.1 session works fine in browser but doesn't work in Stub client.

2007-01-26 Thread Sanjiva Weerawarana
H. I think your getSessionContext() should be modified to do
messageContext.getServiceContext(). Can you see whether that works?

I'm not sure what sessionContext is .. have to look around :(.

Sanjiva.

On Fri, 2007-01-26 at 13:59 -0500, Zhou, Sam wrote:
> Hi,
> 
>  
> 
> I developed the following sample code using Axis 2 with session
> management. The service is very simple, it has a single method called
> plusone(). Whenever you call plusone() with session enabled, it will
> return counter++. The counter is initialized to 0 in init() and stored
> in session. 
> 
>  
> 
> I believe the server side code works fine, because after I deployed
> MySessionService.aar, if I use my browser to refresh
> 
> http://localhost:8080/axis2/rest/MySessionService/plusone
> 
>  
> 
> It will return 1, 2, 3, 4, 5, 6, etc.
> 
>  
> 
> However, in my Stub client test code, even if I coded
> 
>  
> 
> stub._getServiceClient().getOptions().setManageSession(true);
> 
>  
> 
> All the 3 direct stub.plusone() calls only return 1, 1, 1 instead of
> 1, 2, 3.
> 
>  
> 
> Attached are source codes in zip file. If you want to regenerate codes
> from scratch, please use README.TXT. All the codes should work fine in
> Eclipse 3.2.1 except I removed libraries of Axis2 and JUnit.
> 
>  
> 
> Please note I set the session scope to transport session in
> service.xml.
> 
>  
> 
> I really appreciate if somebody could tell me what part in my code is
> wrong and why the session doesn't work for Stub. I can email you the
> source code if you need it. I cannot attach to axis-user group, it is
> regarded as spam. 
> 
>  
> 
> Thanks a lot,
> 
> 
> Sam.
>  
> === MySessionServiceTest.java =
> package com.compuware.axis2.gen;
>  
> public class MySessionServiceTest extends junit.framework.TestCase {
>  
>  public void testplusone() throws java.lang.Exception {
>  
>   com.compuware.axis2.gen.MySessionServiceStub stub = new
> com.compuware.axis2.gen.MySessionServiceStub(
> "http://localhost:8080/axis2/services/MySessionService/plusone";);
>   stub._getServiceClient().getOptions().setManageSession(true);
>   
>   System.out.println("plusone()=" + stub.plusone().get_return());
>   System.out.println("plusone()=" + stub.plusone().get_return());
>   System.out.println("plusone()=" + stub.plusone().get_return());
>  
>  }
>  
>  public org.apache.axis2.databinding.ADBBean getTestObject(
>java.lang.Class type) throws Exception {
>   return (org.apache.axis2.databinding.ADBBean) type.newInstance();
>  }
> }
> 
>  MySessionServiceSkeleton.java ===
> package com.compuware.axis2.gen;
>  
> import org.apache.axis2.context.*;
> import com.compuware.axis2.xsd.*;
> import org.apache.axis2.transport.http.*;
>  
> public class MySessionServiceSkeleton implements
>   MySessionServiceSkeletonInterface {
>  
>  private static String PROP_COUNTER = "property.counter";
>  
>  public com.compuware.axis2.xsd.PlusoneResponse plusone() {
>   printMessage("plusone()", "begin");
>   
>   SessionContext sessionContext = getSessionContext();
>   
>   int counter = 1 + ((Integer)
> sessionContext.getProperty(PROP_COUNTER)).intValue();
>   sessionContext.setProperty(PROP_COUNTER, new Integer(counter));
>   
>   printMessage("plusone()", "sessionContext="+sessionContext+",
> counter="+counter);
>   
>   PlusoneResponse response = new PlusoneResponse();
>   
>   response.set_return(counter);
>   return response;
>   
>  }
>  
>  public void init(ServiceContext serviceContext) {
>   printMessage("init()", "begin");
>   
>   SessionContext sessionContext = getSessionContext();
>   sessionContext.setProperty(PROP_COUNTER, new Integer(0));
>   
>   printMessage("init()", "sessionContext="+sessionContext+", reset
> counter to 1 in session");
>  }
>  
>  public void destroy(ServiceContext serviceContext) {
>   printMessage("destroy()", "begin");
>   
>   SessionContext sessionContext = getSessionContext();
>   sessionContext.getProperties().remove(PROP_COUNTER);
>   
>   printMessage("destroy()", "sessionContext="+sessionContext+", remove
> counter from session");
>  }
>  
>  private SessionContext getSessionContext() {
>   MessageContext messageContext = MessageContext
> .getCurrentMessageContext();
>   SessionContext sessionContext = messageContext.getSessionContext();
>  
>   return sessionContext;
>  } 
>  
>  private void printMessage(String method, String message) {
>   System.out.println(method+"::"+message);
>  }
> }
>  
> 
>  
>  
>  services.xml =
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> http://www.w3.org/2004/08/wsdl/in-out";
> class="com.compuware.axis2.gen.MySessionServiceMessageReceiverInOut"/>
> 
> 
> 
>  name="ServiceClass">com.compuware.axis2.gen.MySessionServiceSkeleton
> 
> http://www.w3.org/2004/08/wsdl/in-out";>
> 
> urn:plusone
> 
> http://axis2.compuware.com/MySessionServicePortType/plusoneResponse
> 
> 
> 
> 
> 
> 
> 
> 
>  
>  
>  
>  MySessionService.wsdl =

Re: Configuration in Rampart 1.1

2007-01-26 Thread Ruchith Fernando

Hi,

We need to do this.
JIRA please :-)

Thanks,
Ruchith

On 1/27/07, Sriram Vaidyanathan <[EMAIL PROTECTED]> wrote:

Thanks Ruchith.
 Another question I had is, If I had defined custom fault to be thrown from an 
operation and those faults are currently not getting secured. Is there a way to 
secure the outgoing faults from the service with the same security policy used 
for securing outgoing messages.?

Thanks,
Sriram Vaidyanathan
Software Engineer - Java
Copart Auto Auctions, Inc.
4665 Business Center Drive
Fairfield, CA 94534
www.copart.com 
(707) 639-5428

-Original Message-
From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 6:34 PM
To: axis-user@ws.apache.org
Subject: Re: Configuration in Rampart 1.1

Hi Sriram,

This should be possible by specifying message level policies in the
services.xml.

Simply remove the EncryptedParts and SignedParts assertions from the
service level policy and include those assertions at the message
level. For example:




 http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>


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


 



http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>
 .
 .
 .
 .




Please make sure that you don't have a
 assertion in the binding policy as
well.


Thanks,
Ruchith

On 1/25/07, Sriram Vaidyanathan <[EMAIL PROTECTED]> wrote:
> Hello Ruchith /Dimuthu,
>
> Thanks for your responses!!
>
> I was just using the Policy sample03, which does both the Signature and the Encryption, and it 
works very well. My question is there a way for me to specify to the service to only expect 
"Inflow" messages to be secured and not secure "Outflow" messages like it was 
possible in the Rampart 1.0 configuration.
>
> Thanks,
> Sriram Vaidyanathan
> Software Engineer - Java
> Copart Auto Auctions, Inc.
> 4665 Business Center Drive
> Fairfield, CA 94534
> www.copart.com 
> (707) 639-5248
>
> -Original Message-
> From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 19, 2007 2:56 AM
> To: axis-user@ws.apache.org
> Subject: Re: Configuration in Rampart 1.1
>
> Hi Sriram,
>
> Note that you must use Rampart policy[1] in configuring rampart along
> with the standard WS-SecurityPolicy.
>
> The WS-SecPolicy stuff are not really straight forward. Therefore I
> believe we will be maintaining the rampart-1.0 configuration for a few
> more versions :-). However the rampart-1.0 configuration causes a few
> issues when we try to interop with other implementations. For example
> if the endpoint policy requires a signed Timestamp with "strict"
> header layout, the rampart-1.0 configuration fails to satisfy those
> requirements. Therefore the best option
>
> Thanks,
> Ruchith
>
> [1] http://ws.apache.org/axis2/modules/rampart/1_1/sec-conf/rampart-config.xsd
>
> On 1/18/07, Dimuthu Leelaratne <[EMAIL PROTECTED]> wrote:
> > Hi Sriram,
> >
> > As I understand your single client can tallk to multiple services but
> > with different security requirements. For configurations now we
> > encourage using Policy file according to WS Security Policy
> > specification 
(http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf).
> >
> > Since your services require different security settings, we may have
> > to create different Policy.xml files. After that according to the
> > service the client is going to invoke you  can load the relevant
> > Policy file as follows.
> >
> > StAXOMBuilder builder  = new StAXOMBuilder(pathToPolicyfile);
> > Policy clientPolicy =
> > PolicyEngine.getPolicy(builder.getDocumentElement());
> > //setting the object
> > Options options = new Options();
> > options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
> > clientPolicy);
> >
> >
> > Schemas are available at,
> > http://ws.apache.org/axis2/modules/rampart/1_1/security-module.html
> >
> > Cheers,
> > Dimuthu
> >
> >
> >
> > On 1/18/07, Sriram Vaidyanathan <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >  I am currently trying to upgrade to Rampart 1.1 from Rampart 1.0 and 
using Rampart 1.0 we could talk to multiple services from a single client by 
programmatically configuring the parameters using the OutflowConfiguration class.
> > >
> > > From previous posts in the forum it looks like these are deprecated with 
the 1.1 releases. Is there an alt

Re: AW: Debugging Axis2 in Tomcat

2007-01-26 Thread W.Y. Ho
Yes, Josef is correct.
That's what was happening to me.

After I synched the jar in the server and client code, re-mounting the Tomcat, 
the debugging work perfectly well.
Hope this will help others who have same problems.

Thanks btw.

Stadelmann Josef <[EMAIL PROTECTED]> wrote: That was not the question of Jeff

Jeff does not say ... to debug in  code that comes from jar's 
But he wants simple see the debugger step through his own lines of code.

I have had the same issue. The issues is shown in NetBeans as well when
the code is on the server and the debugging takes somehow place in conjunction
with a local source code copy on the client. the debugger shows this problem. 
After synchronizing the code between client and server and mounting the code/
package at the proper level, this missbehaving has gone away.

Josef

-Ursprüngliche Nachricht-
Von: Jeff Greif [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 25. Januar 2007 19:15
An: axis-user@ws.apache.org
Betreff: Re: Debugging Axis2 in Tomcat


Line numbers are available or not depending on the options given to the 
java compiler.  You can control the appearance of line numbers for your 
code, but not for the axis2 code or tomcat container code loaded from 
pre-packaged jars, depending on how those jars were built.  If you want 
line numbers from something in this infrastructure, you might have to 
build it yourself with the appropriate compiler options, and install the 
results in place of the jars you're using now.

Jeff

Ho, Wen Yue wrote:
> Jeff,
>
> Thanks for the tips.
>
> I manage debug my Axis2 WS in Tomcat using eclipse now.
> But I still am having a problem though. When the debugger stopping at
> the server side code it doesn't highlight the line where it is stopping.
> The Debug Call stacks is saying "line: not available [local variables
> unavailable]".
>
>   


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


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




-
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot 
with the All-new Yahoo! Mail  

RE: Configuration in Rampart 1.1

2007-01-26 Thread Sriram Vaidyanathan
Thanks Ruchith.
 Another question I had is, If I had defined custom fault to be thrown from an 
operation and those faults are currently not getting secured. Is there a way to 
secure the outgoing faults from the service with the same security policy used 
for securing outgoing messages.? 

Thanks,
Sriram Vaidyanathan
Software Engineer - Java
Copart Auto Auctions, Inc.
4665 Business Center Drive
Fairfield, CA 94534
www.copart.com  
(707) 639-5428

-Original Message-
From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 6:34 PM
To: axis-user@ws.apache.org
Subject: Re: Configuration in Rampart 1.1

Hi Sriram,

This should be possible by specifying message level policies in the
services.xml.

Simply remove the EncryptedParts and SignedParts assertions from the
service level policy and include those assertions at the message
level. For example:




 http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>


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


 



http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>
 .
 .
 .
 .




Please make sure that you don't have a
 assertion in the binding policy as
well.


Thanks,
Ruchith

On 1/25/07, Sriram Vaidyanathan <[EMAIL PROTECTED]> wrote:
> Hello Ruchith /Dimuthu,
>
> Thanks for your responses!!
>
> I was just using the Policy sample03, which does both the Signature and the 
> Encryption, and it works very well. My question is there a way for me to 
> specify to the service to only expect "Inflow" messages to be secured and not 
> secure "Outflow" messages like it was possible in the Rampart 1.0 
> configuration.
>
> Thanks,
> Sriram Vaidyanathan
> Software Engineer - Java
> Copart Auto Auctions, Inc.
> 4665 Business Center Drive
> Fairfield, CA 94534
> www.copart.com 
> (707) 639-5248
>
> -Original Message-
> From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 19, 2007 2:56 AM
> To: axis-user@ws.apache.org
> Subject: Re: Configuration in Rampart 1.1
>
> Hi Sriram,
>
> Note that you must use Rampart policy[1] in configuring rampart along
> with the standard WS-SecurityPolicy.
>
> The WS-SecPolicy stuff are not really straight forward. Therefore I
> believe we will be maintaining the rampart-1.0 configuration for a few
> more versions :-). However the rampart-1.0 configuration causes a few
> issues when we try to interop with other implementations. For example
> if the endpoint policy requires a signed Timestamp with "strict"
> header layout, the rampart-1.0 configuration fails to satisfy those
> requirements. Therefore the best option
>
> Thanks,
> Ruchith
>
> [1] http://ws.apache.org/axis2/modules/rampart/1_1/sec-conf/rampart-config.xsd
>
> On 1/18/07, Dimuthu Leelaratne <[EMAIL PROTECTED]> wrote:
> > Hi Sriram,
> >
> > As I understand your single client can tallk to multiple services but
> > with different security requirements. For configurations now we
> > encourage using Policy file according to WS Security Policy
> > specification 
> > (http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf).
> >
> > Since your services require different security settings, we may have
> > to create different Policy.xml files. After that according to the
> > service the client is going to invoke you  can load the relevant
> > Policy file as follows.
> >
> > StAXOMBuilder builder  = new StAXOMBuilder(pathToPolicyfile);
> > Policy clientPolicy =
> > PolicyEngine.getPolicy(builder.getDocumentElement());
> > //setting the object
> > Options options = new Options();
> > options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
> > clientPolicy);
> >
> >
> > Schemas are available at,
> > http://ws.apache.org/axis2/modules/rampart/1_1/security-module.html
> >
> > Cheers,
> > Dimuthu
> >
> >
> >
> > On 1/18/07, Sriram Vaidyanathan <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >  I am currently trying to upgrade to Rampart 1.1 from Rampart 1.0 and 
> > > using Rampart 1.0 we could talk to multiple services from a single client 
> > > by programmatically configuring the parameters using the 
> > > OutflowConfiguration class.
> > >
> > > From previous posts in the forum it looks like these are deprecated with 
> > > the 1.1 releases. Is there an alternative way we can dynamically 
> > > configure the parameters in 1.1?  Any hel

Re: Re: XOP activation

2007-01-26 Thread Thilina Gunarathne

Yes... XMLbeans+MTOM is not supported at the moment..We are working on
it... Please try ADB as Paul suggested.

~Thilina

On 1/26/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:

My understanding is that the XMLBeans binding doesn't not support
MTOM, which is why you aren't having any success. Try ADB, or creating
the OMElement by hand.

Paul

On 1/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>
> earlier Charles wrote this message for me, since i subscribe to this
> mailing list.
>
> I changed my first sample to be full "MTOM Databinding using XMLBeans", and
> then the attachement still remains in the SOAPBody of the request message.
> Moreover, this exception occurs :
> "SEVERE : http-9000-Processor23 : Logger.logp :
> Exception occurred while trying to invoke service method sendFichier
> org.apache.axis2.AxisFault: presto.service.xsd.SendFichierDocument; nested
> exception is:
> java.lang.InstantiationException: presto.service.xsd.SendFichierDocument"
>
> The source data file is binded as base64Binary type in my WSDL file.
>
> I do not use OMElement API to create the attachement, i use the one
> generated with wsdl2java tool from my wsdl file.
>
> The MTOM module is engaged :
> - on the server side  by adding this line,  "enableMTOM">true,
> in my service.xml file under my operation description.
> - on the client side like you explain me in your response
>
> I join a zip file with :
> - stacktrace.log : the logged exception
> - BoService.wsdl : my WSDL file
> - BoServiceXMLBTest.java : my client side code
>
> hope this help.
>
> Thanks,
> Fred.
>
> (See attached file: axis2-test.zip)
>
>
> - Message de "Paul Fremantle" <[EMAIL PROTECTED]> sur Fri, 26 Jan 2007
> 09:10:11 + -
>
>  Pour : axis-user@ws.apache.org,
> [EMAIL PROTECTED]
>
>   Objet Re: XOP activation
>   :
>
>
> Hi Charles
>
> Is the attachment appearing as a Base64 encoded element inside the body?
>
> Basically once you have MTOM enabled, the actual "optimization" of a
> particular element is based on how you create the node.
>
> If you are using the OMElement API to create the attachment then you
> will be using one of the APIs like:
>
> OMText text = factory.createText(dataHandler, booleanOptimize);
>
> if you set booleanOptimize=true then the data will be XOP-included and
> set as pure binary in a MIME attachment.
>
> If this isn't working, check if you have enabled MTOM in axis2.xml:
> true
>
> If you are using a client with no axis2.xml, then you need to make
> sure it is enabled like this:
>
> serviceClient.getOptions.setProperty(Constants.Configuration.ENABLE_MTOM,
> Constants.VALUE_TRUE);
>
> Here is the guide:
> http://ws.apache.org/axis2/1_1/mtom-guide.html
>
> Paul
>
> On 1/26/07, Charles Souillard <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I am a newbie on Axis2. I have created an example using MTOM which runs
> > successfully. My problem is the attachment is included in the soapBody.
> > I know that xop allows to put the attachment outside of the SOAP
> > enveloppe (is that correct ?).
> >
> > Can you explain me how I can activate xop in my example ? Is there a
> > property to set on the client side ? server side ?
> >
> > Thanks for your help.
> >
> > Regards
> > Charles
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> [EMAIL PROTECTED]
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Axis 1.4 DII & Complex Types...

2007-01-26 Thread Lindsey Hess
Hello,
   
  I have a WSDL that expects two parameters for specific operation's request, 
namely, studentID and studentType.  studentID is an integer, and studentType is 
a complex type   (one of the many parameters within it is another complex type 
as well).  
   
  I can't seem to find any documentation on how to dynamically invoke a service 
that takes a parameter that is a complex type.  My code is as follows (the 
question marks show where I'm completely puzzled):
   
  // StudentType class was generated by WSDL2java.  StudentType is a complex 
type 
  StudentType studentType = new StudentType();
  
   
  // Add parameters
  callStudent.addParameter("studentID", XMLType.SOAP_INT, ParameterMode.IN);
  callStudent.addParameter("studentType", ?, ParameterMode.IN);
   
  // Create an array of parameters
  Object[] opParamsStudent = {studentID, ??};
   
  // Invoke the service
  callStudent.invoke(opParamsStudent);
   
   
  Can someone please assist me?
   
  Thank you.
   
  Lindsey
  [EMAIL PROTECTED]

 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

Re: [Axis2] Serialization of super class elements

2007-01-26 Thread Sathija Pavuluri
Amila,

In response to my own post below that I sent earlier today, I'd like to update 
with some more findings I've made
during the day.
As stated in my prev. email our architecture was using code first approach. So 
I have my service and the hierarchical
data classes already defined. From these I generate the wsdl which compresses 
the fields from the parent and child
classes together into the child classes.
>From the wsdl below, see this

> 
> 
> 
>  type="xs:string"/>
> 
>  type="xs:string"/>
>  type="xs:string"/>
>  type="xs:string"/>
> 
> 
> 

But when the service call is made from the client, since PremierCustomerDTO 
bean has only clubName, vipNumber fields,
only these are returned in the response.

I ran further tests, by instead generating the server code using the (already 
generated) wsdl, sort of reverse
engineering it.
What I then saw was the generated PremierCustomerDTO bean defined clubName, 
vipNumber and also address,name,phone from
its super class. that makes sense because the wsdl makes no such distinction.
When I create the aar out of these generated server classes, everything 
actually worked, except my hierarchy is now
flattened out.

So the problem now narrows down to class hierarchy not being preserved when the 
wsdl is generated from service class.
The java 2 wsdl generator is incorrectly flattening my beans.

I am eager to hear your comments and suggestions. Is this something that can be 
fixed?

Thanks!
Sathija.






> Amila,
>
> Posted below are the service implementation classes, the soap response and 
> wsdl.
>
> I have taken the code first approach so I coded the service classes first,
> and generated the wsdl from the service class.
>
> As you will see in the generated wsdl, the child class is described along 
> with the parent's fields as well,
> but strangely the response is missing those.
> The data objects are well formed java bean with public getters/setters.
> Is the serializer using reflection on the child where it is somehow skipping 
> the parent's fields?
> Could this be a serializer bug?
>
> **
> public class CustomerService {
> public PremierCustomerDTO[] getPremierCustomers() throws AxisFault {
> PremierCustomerDTO pc = new PremierCustomerDTO();
> pc.setName("nametest");
> pc.setAddress("addrtest");
> pc.setPhone("545-454-5434");
> pc.setVipNumber("xyz");
> pc.setClubName("ToastMasters");
> PremierCustomerDTO[] pcs = new PremierCustomerDTO[]{pc};
> return pcs;
> }
> }
>
> public class CustomerDTO {
> private String name;
> private String phone;
> private String address;
> // public getters and setters .
> }
>
> public class PremierCustomerDTO extends CustomerDTO {
> private String clubName;
> private String vipNumber;
> // public getters and setters .
> }
> **
>
> 
> http://schemas.xmlsoap.org/soap/envelope/";>
> 
> 
> http://service.ws.xyz.abc.com/xsd";>
> 
>  xmlns="http://service.ws.ena.emprisa.com/xsd";>ToastMasters
> http://service.ws.ena.emprisa.com/xsd";>xyz
> 
> 
> 
> 
>
> **
> http://service.ws.xyz.abc.com";>
> 
> Service class used to retrieve and update device component.
> 
> 
>  elementFormDefault="qualified"
> targetNamespace="http://service.ws.xyz.abc.com/xsd";>
> 
> 
> 
>   type="xs:anyType"/>
> 
> 
> 
> 
> 
> 
>  nillable="true" type="ns0:PremierCustomerDTO"/>
> 
> 
> 
> 
> 
> 
>  type="xs:string"/>
> 
>  type="xs:string"/>
>  type="xs:string"/>
>  type="xs:string"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  wsaw:Action="urn:getPremierCustomers"/>
> 
>  name="getPremierCustomersFault"/>
> 
> 
>  type="axis2:CustomerServicePortType">
> http://schemas.xmlsoap.org/soap/http"; 
> style="document"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  type="axis2:CustomerServicePortType">
> http://schemas.xmlsoap.org/soap/http"; 
> style="document"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  type="axis2:CustomerServicePortType">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  binding="axis2:CustomerServiceSOAP11Binding">
>  location="http://s-pa

Re: [AXIS2] Is rest fixed in 1.1.1?

2007-01-26 Thread Manoj Khangaonkar

It is fixed now.

What URL are you trying ?

Mj


On 1/26/07, Alistair Young <[EMAIL PROTECTED]> wrote:


Hi there,

I'm getting all sorts of errors when trying to list services from the
axis2 admin screen suc as:

"I can not find a service for this request to be serviced"

I saw this thread:

http://blog.gmane.org/gmane.text.xml.axis.user/day=20070106

which says that REST is broken on 1.1.1 - is it really broken and if so,
when will the fix be released?

thanks,

Alistair


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



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




Complex Types to Base/Simple Types

2007-01-26 Thread Trevor Dawe
I'm currently writing a dynamic web service client that reads a WSDL
file and can invoke any operation. I'm having some problems invoking
operations which take complexTypes as input parameters. Is there any
easy way to get all of the base/simple type parameters for an operation
without having to recursively parse all of the complex types?

Thanks,
-trevor

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



Re: [Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-26 Thread Sathija Pavuluri
> When you run WSDL2Java -ss -sd to create the server side skeleton and
> ADB binding objects it generates a message receiver and services.xml
> for you. You simply need to type ant to built it all into an AAR.

Paul,
I am using the code first approach and generating wsdl from the java classes.
How does what you described stick into this method?

Thanks.
Sathija

>
> Paul
>
> On 1/26/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>> Deepal,
>>
>> Both the server and client use ADB binding.
>>
>> > If you are using ADB in server side you do not need to use
>> > RPCMessageReceiver.
>>
>> What message receiver do I need to use then?
>>
>> Thanks,
>> Sathija.
>>
>>
>>
>> > Hi Sathija ;
>> >
>> >>Hello,
>> >>
>> >>I am using Axis2 1.1.1 for my web services and use ADB for data binding 
>> >>with RPCMessageReceiver.
>> >>
>> >>
>> > are you using ADB in client side or server side ?
>> > If you are using ADB in server side you do not need to use
>> > RPCMessageReceiver.
>> >
>> >>I have been unsuccessfully trying to return a datatype 'A1' to my client. 
>> >>'A1' extends from an abstract object 'A'
>> >>that also contains from attributes.
>> >>
>> >>However, when the client receives the response, all attributes from A1 are 
>> >>in the response but attributes from A
>> are
>> >>missing.
>> >>
>> >>So I am back to thinking if ADB supports this object hierarchy. I have 
>> >>seen some older posts with such scenarios
>> but
>> >>no useful suggestions.
>> >>
>> >>Thanks!
>> >>Sathija.
>> >>
>> >>
>> >>-
>> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>> > --
>> > Thanks,
>> > Deepal
>> > 
>> > "The highest tower is built one brick at a time"
>> >
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> [EMAIL PROTECTED]
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



RE: Axis2 1.1.1 session works fine in browser but doesn't work in Stub client.

2007-01-26 Thread Zhou, Sam
Dims,

I uploaded source code to 
https://issues.apache.org/jira/secure/attachment/12349699/Axis2+MySessio
nService.zip

Bug#
https://issues.apache.org/jira/browse/AXIS2-2042

Thanks,
Sam.


-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 26, 2007 2:11 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 1.1.1 session works fine in browser but doesn't work
in Stub client.

Sam,

Please create a bug report, there is a link there to upload a zip/tar.

https://issues.apache.org/jira/browse/AXIS2

thanks,
dims

On 1/26/07, Zhou, Sam <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> Hi,
>
>
>
> I developed the following sample code using Axis 2 with session
management.
> The service is very simple, it has a single method called plusone().
> Whenever you call plusone() with session enabled, it will return
counter++.
> The counter is initialized to 0 in init() and stored in session.
>
>
>
> I believe the server side code works fine, because after I deployed 
> MySessionService.aar, if I use my browser to refresh
>
> http://localhost:8080/axis2/rest/MySessionService/plusone
>
>
>
> It will return 1, 2, 3, 4, 5, 6, etc.
>
>
>
> However, in my Stub client test code, even if I coded
>
>
>
> stub._getServiceClient().getOptions().setManageSession(true);
>
>
>
> All the 3 direct stub.plusone() calls only return 1, 1, 1 instead of 
> 1, 2, 3.
>
>
>
> Attached are source codes in zip file. If you want to regenerate codes

> from scratch, please use README.TXT. All the codes should work fine in

> Eclipse
> 3.2.1 except I removed libraries of Axis2 and JUnit.
>
>
>
> Please note I set the session scope to transport session in
service.xml.
>
>
>
> I really appreciate if somebody could tell me what part in my code is 
> wrong and why the session doesn't work for Stub. I can email you the 
> source code if you need it. I cannot attach to axis-user group, it is
regarded as spam.
>
>
>
> Thanks a lot,
> Sam.
>
> === MySessionServiceTest.java = package 
> com.compuware.axis2.gen;
>
> public class MySessionServiceTest extends junit.framework.TestCase {
>
>  public void testplusone() throws java.lang.Exception {
>
>   com.compuware.axis2.gen.MySessionServiceStub stub = new 
> com.compuware.axis2.gen.MySessionServiceStub(
>
> "http://localhost:8080/axis2/services/MySessionService/plusone";);
>
> stub._getServiceClient().getOptions().setManageSession(true);
>
>   System.out.println("plusone()=" + stub.plusone().get_return());
>   System.out.println("plusone()=" + stub.plusone().get_return());
>   System.out.println("plusone()=" + stub.plusone().get_return());
>
>  }
>
>  public org.apache.axis2.databinding.ADBBean getTestObject(
>java.lang.Class type) throws Exception {
>   return (org.apache.axis2.databinding.ADBBean)
> type.newInstance();
>  }
> }
>
>  MySessionServiceSkeleton.java === package 
> com.compuware.axis2.gen;
>
> import org.apache.axis2.context.*;
> import com.compuware.axis2.xsd.*;
> import org.apache.axis2.transport.http.*;
>
> public class MySessionServiceSkeleton implements
>   MySessionServiceSkeletonInterface {
>
>  private static String PROP_COUNTER = "property.counter";
>
>  public com.compuware.axis2.xsd.PlusoneResponse plusone() {
>   printMessage("plusone()", "begin");
>
>   SessionContext sessionContext = getSessionContext();
>
>   int counter = 1 + ((Integer)
> sessionContext.getProperty(PROP_COUNTER)).intValue();
>   sessionContext.setProperty(PROP_COUNTER, new Integer(counter));
>
>   printMessage("plusone()",
> "sessionContext="+sessionContext+", counter="+counter);
>
>   PlusoneResponse response = new PlusoneResponse();
>
>   response.set_return(counter);
>   return response;
>
>  }
>
>  public void init(ServiceContext serviceContext) {
>   printMessage("init()", "begin");
>
>   SessionContext sessionContext = getSessionContext();
>   sessionContext.setProperty(PROP_COUNTER, new Integer(0));
>
>   printMessage("init()",
> "sessionContext="+sessionContext+", reset counter to 1 in session");  
> }
>
>  public void destroy(ServiceContext serviceContext) {
>   printMessage("destroy()", "begin");
>
>   SessionContext sessionContext = getSessionContext();
>   sessionContext.getProperties().remove(PROP_COUNTER);
>
>   printMessage("destroy()",
> "sessionContext="+sessionContext+", remove counter from session");  }
>
>  private SessionContext getSessionContext() {
>   MessageContext messageContext = MessageContext
> .getCurrentMessageContext();
>   SessionContext sessionContext =
> messageContext.getSessionContext();
>
>   return sessionContext;
>  }
>
>  private void printMessage(String method, String message) {
>   System.out.println(method+"::"+message);
>  }
> }
>
>
>
>
>  services.xml =
>
>
> 
>
> 
>
> 
>
> 
>
> 
>
>  mep="http://www.w3.org/2004/08/wsdl/in-out";
> class="com.compuware.axis2.gen.MySessionServiceMessageReceiverInOut"/>
>
> 
>
>  name="ServiceClass">com.compuware.axis2

Re: Axis2 1.1.1 session works fine in browser but doesn't work in Stub client.

2007-01-26 Thread Davanum Srinivas

Sam,

Please create a bug report, there is a link there to upload a zip/tar.

https://issues.apache.org/jira/browse/AXIS2

thanks,
dims

On 1/26/07, Zhou, Sam <[EMAIL PROTECTED]> wrote:






Hi,



I developed the following sample code using Axis 2 with session management.
The service is very simple, it has a single method called plusone().
Whenever you call plusone() with session enabled, it will return counter++.
The counter is initialized to 0 in init() and stored in session.



I believe the server side code works fine, because after I deployed
MySessionService.aar, if I use my browser to refresh

http://localhost:8080/axis2/rest/MySessionService/plusone



It will return 1, 2, 3, 4, 5, 6, etc.



However, in my Stub client test code, even if I coded



stub._getServiceClient().getOptions().setManageSession(true);



All the 3 direct stub.plusone() calls only return 1, 1, 1 instead of 1, 2,
3.



Attached are source codes in zip file. If you want to regenerate codes from
scratch, please use README.TXT. All the codes should work fine in Eclipse
3.2.1 except I removed libraries of Axis2 and JUnit.



Please note I set the session scope to transport session in service.xml.



I really appreciate if somebody could tell me what part in my code is wrong
and why the session doesn't work for Stub. I can email you the source code
if you need it. I cannot attach to axis-user group, it is regarded as spam.



Thanks a lot,
Sam.

=== MySessionServiceTest.java =
package com.compuware.axis2.gen;

public class MySessionServiceTest extends junit.framework.TestCase {

 public void testplusone() throws java.lang.Exception {

  com.compuware.axis2.gen.MySessionServiceStub stub = new
com.compuware.axis2.gen.MySessionServiceStub(

"http://localhost:8080/axis2/services/MySessionService/plusone";);

stub._getServiceClient().getOptions().setManageSession(true);

  System.out.println("plusone()=" + stub.plusone().get_return());
  System.out.println("plusone()=" + stub.plusone().get_return());
  System.out.println("plusone()=" + stub.plusone().get_return());

 }

 public org.apache.axis2.databinding.ADBBean getTestObject(
   java.lang.Class type) throws Exception {
  return (org.apache.axis2.databinding.ADBBean)
type.newInstance();
 }
}

 MySessionServiceSkeleton.java ===
package com.compuware.axis2.gen;

import org.apache.axis2.context.*;
import com.compuware.axis2.xsd.*;
import org.apache.axis2.transport.http.*;

public class MySessionServiceSkeleton implements
  MySessionServiceSkeletonInterface {

 private static String PROP_COUNTER = "property.counter";

 public com.compuware.axis2.xsd.PlusoneResponse plusone() {
  printMessage("plusone()", "begin");

  SessionContext sessionContext = getSessionContext();

  int counter = 1 + ((Integer)
sessionContext.getProperty(PROP_COUNTER)).intValue();
  sessionContext.setProperty(PROP_COUNTER, new Integer(counter));

  printMessage("plusone()",
"sessionContext="+sessionContext+", counter="+counter);

  PlusoneResponse response = new PlusoneResponse();

  response.set_return(counter);
  return response;

 }

 public void init(ServiceContext serviceContext) {
  printMessage("init()", "begin");

  SessionContext sessionContext = getSessionContext();
  sessionContext.setProperty(PROP_COUNTER, new Integer(0));

  printMessage("init()",
"sessionContext="+sessionContext+", reset counter to 1 in
session");
 }

 public void destroy(ServiceContext serviceContext) {
  printMessage("destroy()", "begin");

  SessionContext sessionContext = getSessionContext();
  sessionContext.getProperties().remove(PROP_COUNTER);

  printMessage("destroy()",
"sessionContext="+sessionContext+", remove counter from
session");
 }

 private SessionContext getSessionContext() {
  MessageContext messageContext = MessageContext
.getCurrentMessageContext();
  SessionContext sessionContext =
messageContext.getSessionContext();

  return sessionContext;
 }

 private void printMessage(String method, String message) {
  System.out.println(method+"::"+message);
 }
}




 services.xml =












http://www.w3.org/2004/08/wsdl/in-out";
class="com.compuware.axis2.gen.MySessionServiceMessageReceiverInOut"/>



com.compuware.axis2.gen.MySessionServiceSkeleton

http://www.w3.org/2004/08/wsdl/in-out";>

urn:plusone

http://axis2.compuware.com/MySessionServicePortType/plusoneResponse









 MySessionService.wsdl ==


http://axis2.compuware.com";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:ns="http://axis2.compuware.com/xsd";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
targetNamespace="http://axis2.compuware.com";>http://www.w3.org/2001/XMLSchema";
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://axis

Axis2 1.1.1 session works fine in browser but doesn't work in Stub client.

2007-01-26 Thread Zhou, Sam
Hi,

 

I developed the following sample code using Axis 2 with session
management. The service is very simple, it has a single method called
plusone(). Whenever you call plusone() with session enabled, it will
return counter++. The counter is initialized to 0 in init() and stored
in session. 

 

I believe the server side code works fine, because after I deployed
MySessionService.aar, if I use my browser to refresh

http://localhost:8080/axis2/rest/MySessionService/plusone
http://localhost:8080/axis2/rest/MySessionService/plusone> 

 

It will return 1, 2, 3, 4, 5, 6, etc.

 

However, in my Stub client test code, even if I coded

 

stub._getServiceClient().getOptions().setManageSession(true);

 

All the 3 direct stub.plusone() calls only return 1, 1, 1 instead of 1,
2, 3.

 

Attached are source codes in zip file. If you want to regenerate codes
from scratch, please use README.TXT. All the codes should work fine in
Eclipse 3.2.1 except I removed libraries of Axis2 and JUnit.

 

Please note I set the session scope to transport session in service.xml.

 

I really appreciate if somebody could tell me what part in my code is
wrong and why the session doesn't work for Stub. I can email you the
source code if you need it. I cannot attach to axis-user group, it is
regarded as spam. 

 

Thanks a lot,

Sam.
 
=== MySessionServiceTest.java =
package com.compuware.axis2.gen;
 
public class MySessionServiceTest extends junit.framework.TestCase {
 
 public void testplusone() throws java.lang.Exception {
 
  com.compuware.axis2.gen.MySessionServiceStub stub = new
com.compuware.axis2.gen.MySessionServiceStub(
"http://localhost:8080/axis2/services/MySessionService/plusone";);
  stub._getServiceClient().getOptions().setManageSession(true);
  
  System.out.println("plusone()=" + stub.plusone().get_return());
  System.out.println("plusone()=" + stub.plusone().get_return());
  System.out.println("plusone()=" + stub.plusone().get_return());
 
 }
 
 public org.apache.axis2.databinding.ADBBean getTestObject(
   java.lang.Class type) throws Exception {
  return (org.apache.axis2.databinding.ADBBean) type.newInstance();
 }
}

 MySessionServiceSkeleton.java ===
package com.compuware.axis2.gen;
 
import org.apache.axis2.context.*;
import com.compuware.axis2.xsd.*;
import org.apache.axis2.transport.http.*;
 
public class MySessionServiceSkeleton implements
  MySessionServiceSkeletonInterface {
 
 private static String PROP_COUNTER = "property.counter";
 
 public com.compuware.axis2.xsd.PlusoneResponse plusone() {
  printMessage("plusone()", "begin");
  
  SessionContext sessionContext = getSessionContext();
  
  int counter = 1 + ((Integer)
sessionContext.getProperty(PROP_COUNTER)).intValue();
  sessionContext.setProperty(PROP_COUNTER, new Integer(counter));
  
  printMessage("plusone()", "sessionContext="+sessionContext+",
counter="+counter);
  
  PlusoneResponse response = new PlusoneResponse();
  
  response.set_return(counter);
  return response;
  
 }
 
 public void init(ServiceContext serviceContext) {
  printMessage("init()", "begin");
  
  SessionContext sessionContext = getSessionContext();
  sessionContext.setProperty(PROP_COUNTER, new Integer(0));
  
  printMessage("init()", "sessionContext="+sessionContext+", reset
counter to 1 in session");
 }
 
 public void destroy(ServiceContext serviceContext) {
  printMessage("destroy()", "begin");
  
  SessionContext sessionContext = getSessionContext();
  sessionContext.getProperties().remove(PROP_COUNTER);
  
  printMessage("destroy()", "sessionContext="+sessionContext+", remove
counter from session");
 }
 
 private SessionContext getSessionContext() {
  MessageContext messageContext = MessageContext
.getCurrentMessageContext();
  SessionContext sessionContext = messageContext.getSessionContext();
 
  return sessionContext;
 } 
 
 private void printMessage(String method, String message) {
  System.out.println(method+"::"+message);
 }
}
 

 
 
 services.xml =










http://www.w3.org/2004/08/wsdl/in-out";
class="com.compuware.axis2.gen.MySessionServiceMessageReceiverInOut"/>



com.compuware.axis2.gen.MySessionServiceSkeleton

http://www.w3.org/2004/08/wsdl/in-out";>

urn:plusone

http://axis2.compuware.com/MySessionServicePortType
/plusoneResponse







 
 
 
 MySessionService.wsdl ==
http://axis2.compuware.com";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:ns="http://axis2.compuware.com/xsd";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
targetNamespace="http://axis2.compuware.com";>http://www.w3.org/2001/XMLSchema";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://axis2.compuware.com/xsd";>















http://www.w3.org/2006/05/addressing

[AXIS2] dynamically changing the service keystore using AXIS2/Rampart

2007-01-26 Thread Ionut Constandache

Hi!

I have an Axis2 service with support for signature/encryption (using
Rampart) and I would like to dynamically change the keystore used by the
service. Is there anyway in which I could do that? (maybe dynamically
changing the .properties file and have it reloaded ...).

Thank you!
Ionut


Re: Axis2 Eclipse code generator plugin for jibx

2007-01-26 Thread Ajith Ranabahu

Hi,
I guess this is something that should be recorded as a Jira since if
the code generator listed jibx as an option the jibx jars need to be
in the distribution.
In the meanwhile please try the following and see whether it works.

1. copy the jar files to the
/plugins/Axis2_Codegen_Wizard_1.2.1/lib directory

2. Update the plugin.xml file

   I. find the following entries
  ..
  

 
 

 
 ..
These should be inside the runtime element.

  II. Add jibx jar entries similar to this

 

 
   .

3. Restart eclipse.

HTH
Ajith

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



Re: How to use AXIS 1.4 API to parse schema in WSDL

2007-01-26 Thread Davanum Srinivas

See http://svn.apache.org/viewvc/webservices/axis/trunk/java/samples/client/
for example.

-- dims

On 1/26/07, donald yang <[EMAIL PROTECTED]> wrote:

Hi,

I tried to use AXIS APIs to parse schema in WSDL document, but I can not
figure out how to use these APIs. Could anyone refer some documents how to
use these APIs? Many thanks in advance.

best regards
 donald




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

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



Re: where to put jar-files in aar-archive

2007-01-26 Thread Michele Mazzucco

lib is fine.

Michele

On 26 Jan 2007, at 14:12, Marc Lustig wrote:


Hi

I read in the user forum that it's possible to put jar's into the
aar-archive (instead of to WEB-INF/lib).

However I cannot find any reference where exactly to put them.

/lib seems to be little awkward, since the root dir is also the  
root-dir

of the classes.

Anybody can advise me where to put the jar's ?

regards
Marc

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




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



Re: Code generation not working

2007-01-26 Thread Lucas Theisen

Amila,

It looks like I was using axis1 (which was what came standard with 
WebSphere App Server Community Edition, based on geronimo).  Axis2 
should be deployable to geronimo right?  Also, all the links to the 
eclipse plugin give 404 File Not Found errors.  Do you know anywhere 
else i can get the plugin?


Thank you,
Lucas Theisen

Amila Suriarachchi wrote:

Are you using Axis2 or Axis1? Can you try eclipse plugin at
http://ws.apache.org/axis2/tools/1_1/eclipse/wsdl2java-plugin.html



On 1/25/07, *Lucas Theisen* <[EMAIL PROTECTED] 
> wrote:


Hi,

I am trying to generate code from a ".wsdl" file.  I have defined the
schema based on an application with an existing SOAP API.  The schema
has a bunch of 's.  It is my understanding that each named
complex type should be generated as its own class, which is not
happening.  This is a section of my schema where this is not working:

...

















...









...

When I attempt to generate the code the getMessageStatus function is
generated to take 3 arguments.  The first is correct (a Client object
with an id attribute).  The second is named transaction but is of type
Message[][] and the third is called message of type Message[].  The
generator does not even create a Transaction class.  I am using eclipse
and the web standard tools and WASCE plugin to generate the code.

As a side not, I am able to generate valid code using project glassfish
(sun's app server), and the netbeans ide, from the exact same WSDL
file.

Thank you,
Lucas Theisen
[EMAIL PROTECTED] 

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

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





--
Amila Suriarachchi,
WSO2 Inc.


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



Access ServletContext from MessageContext

2007-01-26 Thread S Pole

I have set up a few initialization parameters that I want to access in my
service. This is the code I am using to get a reference to the
ServletContext. However all properties inside MessageContext seem to be
null. Am I missing something here? Thanks.


MessageContext msgCtx = MessageContext.getCurrentMessageContext()

ServletContext servletContext =
(ServletContext)msgCtx.getProperty("transport.http.servletContext"):


How to use AXIS 1.4 API to parse schema in WSDL

2007-01-26 Thread donald yang

Hi,

I tried to use AXIS APIs to parse schema in WSDL document, but I can not
figure out how to use these APIs. Could anyone refer some documents how to
use these APIs? Many thanks in advance.

best regards
donald


Re: [Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-26 Thread Paul Fremantle

Sajitha

When you run WSDL2Java -ss -sd to create the server side skeleton and
ADB binding objects it generates a message receiver and services.xml
for you. You simply need to type ant to built it all into an AAR.

Paul

On 1/26/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:

Deepal,

Both the server and client use ADB binding.

> If you are using ADB in server side you do not need to use
> RPCMessageReceiver.

What message receiver do I need to use then?

Thanks,
Sathija.



> Hi Sathija ;
>
>>Hello,
>>
>>I am using Axis2 1.1.1 for my web services and use ADB for data binding with 
RPCMessageReceiver.
>>
>>
> are you using ADB in client side or server side ?
> If you are using ADB in server side you do not need to use
> RPCMessageReceiver.
>
>>I have been unsuccessfully trying to return a datatype 'A1' to my client. 
'A1' extends from an abstract object 'A'
>>that also contains from attributes.
>>
>>However, when the client receives the response, all attributes from A1 are in 
the response but attributes from A are
>>missing.
>>
>>So I am back to thinking if ADB supports this object hierarchy. I have seen 
some older posts with such scenarios but
>>no useful suggestions.
>>
>>Thanks!
>>Sathija.
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>
> --
> Thanks,
> Deepal
> 
> "The highest tower is built one brick at a time"
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Re: Re: XOP activation

2007-01-26 Thread Paul Fremantle

My understanding is that the XMLBeans binding doesn't not support
MTOM, which is why you aren't having any success. Try ADB, or creating
the OMElement by hand.

Paul

On 1/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi,

earlier Charles wrote this message for me, since i subscribe to this
mailing list.

I changed my first sample to be full "MTOM Databinding using XMLBeans", and
then the attachement still remains in the SOAPBody of the request message.
Moreover, this exception occurs :
"SEVERE : http-9000-Processor23 : Logger.logp :
Exception occurred while trying to invoke service method sendFichier
org.apache.axis2.AxisFault: presto.service.xsd.SendFichierDocument; nested
exception is:
java.lang.InstantiationException: presto.service.xsd.SendFichierDocument"

The source data file is binded as base64Binary type in my WSDL file.

I do not use OMElement API to create the attachement, i use the one
generated with wsdl2java tool from my wsdl file.

The MTOM module is engaged :
- on the server side  by adding this line, true,
in my service.xml file under my operation description.
- on the client side like you explain me in your response

I join a zip file with :
- stacktrace.log : the logged exception
- BoService.wsdl : my WSDL file
- BoServiceXMLBTest.java : my client side code

hope this help.

Thanks,
Fred.

(See attached file: axis2-test.zip)


- Message de "Paul Fremantle" <[EMAIL PROTECTED]> sur Fri, 26 Jan 2007
09:10:11 + -

 Pour : axis-user@ws.apache.org,
[EMAIL PROTECTED]

  Objet Re: XOP activation
  :


Hi Charles

Is the attachment appearing as a Base64 encoded element inside the body?

Basically once you have MTOM enabled, the actual "optimization" of a
particular element is based on how you create the node.

If you are using the OMElement API to create the attachment then you
will be using one of the APIs like:

OMText text = factory.createText(dataHandler, booleanOptimize);

if you set booleanOptimize=true then the data will be XOP-included and
set as pure binary in a MIME attachment.

If this isn't working, check if you have enabled MTOM in axis2.xml:
true

If you are using a client with no axis2.xml, then you need to make
sure it is enabled like this:

serviceClient.getOptions.setProperty(Constants.Configuration.ENABLE_MTOM,
Constants.VALUE_TRUE);

Here is the guide:
http://ws.apache.org/axis2/1_1/mtom-guide.html

Paul

On 1/26/07, Charles Souillard <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am a newbie on Axis2. I have created an example using MTOM which runs
> successfully. My problem is the attachment is included in the soapBody.
> I know that xop allows to put the attachment outside of the SOAP
> enveloppe (is that correct ?).
>
> Can you explain me how I can activate xop in my example ? Is there a
> property to set on the client side ? server side ?
>
> Thanks for your help.
>
> Regards
> Charles
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com





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






--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Re: returning Array from a web service method

2007-01-26 Thread Kinichiro Inoguchi
Hi raja,

I don't think you can do that.
You mean you want to send java object instance direct to client.

Axis2 is SOAP stack, so its request and response are serialized to XML.
Axis2 can serialize JavaBean to XML, and can deserialize XML to
JavaBean.

kinichiro

--- rajac <[EMAIL PROTECTED]> wrote:

> 
> Hi Kinichiro Inoguchi,
>I am returning the array which is of non Java Bean type
> and when
> I am trying to invoke the service I am not getting the value of array
> (i.e, 
> Object[] response = serviceClient.invokeBlocking(opGetAddress,
> opGetAddressesArgs, returnTypes)). Although the length of the
> response is
> returning "1" but the when I am trying to get/retrieve the value from
> the
> response object its returning 'null'. I am not very sure if I am
> doing any
> mistake. Do I need to configure anything to get array value of Non
> Java Bean
> type? 
> 
> I am uploading the java files.
> 
>  
> 
> Kinichiro Inoguchi wrote:
> > 
> > Hi,
> > 
> > If your "CustomJavaObject" is JavaBean, 
> > I think you can return array of "CustomJavaObject",
> > and your service class below is right.
> > 
> > --- rajac <[EMAIL PROTECTED]> wrote:
> > 
> >> 
> >> But it simply returning a Java Bean. But my purpose is to return
> an
> >> array of
> >> java objects.
> >> 
> >> like :
> >> public CustomJavaObject[] getArray((){
> >>  // set the CustomJavaObject[]
> >>  // return CustomJavaObject[] 
> >>}
> >> 
> >> 
> >> Regards,
> >> Raja
> >> 
> >> 
> >> Deepal Jayasinghe wrote:
> >> > 
> >> > Hi  rajac ;
> >> > 
> >> >> Hi, I am new to axis2-1.1. Currently I am trying to create a
> web
> >> >> service that returns an array of Java custom Objects. 
> >> > 
> >> > You mean Java Bean ?
> >> > If so please have a look at Samples in Axis2 bistro
> >> > 
> >> > Thanks
> >> > Deepal
> >> > 
> >> >> I could not able to find sample code from samples comes along
> with
> >> the
> >> >> axis2 distribution for this purpose. Can anybody help me
> sending
> >> some
> >> >> sample code for the same. I am using RPCServiceClient to get
> the
> >> >> result frm the web service. Thanks. Raja Chattopadhyay
> >> >>
> >>
> >
>

> >> >> View this message in context: returning Array from a web
> service
> >> >> method
> >> >>
> >>
> >
>

> >> >> Sent from the Axis - User
> >> >>  mailing list
> archive
> >> at
> >> >> Nabble.com.
> >> > 
> >> > 
> >> > -- 
> >> > Thanks,
> >> > Deepal
> >> > 
> >> > "The highest tower is built one brick at a time"
> >> > 
> >> > 
> >> > 
> >> >
> >>
> -
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> > 
> >> > 
> >> > 
> >> 
> >> -- 
> >> View this message in context:
> >>
> >
>
http://www.nabble.com/returning-Array-from-a-web-service-method-tf3120863.html#a8646652
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >> 
> >> 
> >>
> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> 
> >> 
> > 
> > 
> > 
> >  
> >
>

> > Now that's room service!  Choose from over 150,000 hotels
> > in 45,000 destinations on Yahoo! Travel to find your fit.
> > http://farechase.yahoo.com/promo-generic-14795097
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> http://www.nabble.com/file/5942/TestService.java TestService.java 
> http://www.nabble.com/file/5943/TestStub.java TestStub.java 
> http://www.nabble.com/file/5944/TestClient.java TestClient.java 
> http://www.nabble.com/file/5945/UserInfo.java UserInfo.java 
> http://www.nabble.com/file/5946/UserInfoImpl.java UserInfoImpl.java 
> -- 
> View this message in context:
>
http://www.nabble.com/returning-Array-from-a-web-service-method-tf3120863.html#a8651318
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



 

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

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

Re: [Axis2] Serialization of super class elements

2007-01-26 Thread Sathija Pavuluri
Amila,

Posted below are the service implementation classes, the soap response and wsdl.

I have taken the code first approach so I coded the service classes first,
and generated the wsdl from the service class.

As you will see in the generated wsdl, the child class is described along with 
the parent's fields as well,
but strangely the response is missing those.
The data objects are well formed java bean with public getters/setters.
Is the serializer using reflection on the child where it is somehow skipping 
the parent's fields?
Could this be a serializer bug?

**
public class CustomerService {
public PremierCustomerDTO[] getPremierCustomers() throws AxisFault {
PremierCustomerDTO pc = new PremierCustomerDTO();
pc.setName("nametest");
pc.setAddress("addrtest");
pc.setPhone("545-454-5434");
pc.setVipNumber("xyz");
pc.setClubName("ToastMasters");
PremierCustomerDTO[] pcs = new PremierCustomerDTO[]{pc};
return pcs;
}
}

public class CustomerDTO {
private String name;
private String phone;
private String address;
// public getters and setters .
}

public class PremierCustomerDTO extends CustomerDTO {
private String clubName;
private String vipNumber;
// public getters and setters .
}
**


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


http://service.ws.xyz.abc.com/xsd";>

http://service.ws.ena.emprisa.com/xsd";>ToastMasters
http://service.ws.ena.emprisa.com/xsd";>xyz





**
http://service.ws.xyz.abc.com";>

Service class used to retrieve and update device component.


http://service.ws.xyz.abc.com/xsd";>



 





































http://schemas.xmlsoap.org/soap/http"; 
style="document"/>














http://schemas.xmlsoap.org/soap/http"; 
style="document"/>



























http://s-pavuluri-02:8080/enetaware/services/CustomerService"/>


http://s-pavuluri-02:8080/enetaware/services/CustomerService"/>




**

Thanks!




> On 1/25/07, Sathija Pavuluri <[EMAIL PROTECTED]> wrote:
>>
>> Sanjiva,
>>
>> The code has been generated from wsdl. I think the problem is not with
>> generated code.
>
>
> Sometimes it may not  serialize the child object correctly. Can you send you
> wsdl?
>
> The soap response itself does not look right.
>> It is missing some elements which are defined in the wsdl. Specifically,
>> these are the elements from the super class
>> of the object that the service is returning.
>>
>> I am not sure if this is a bug or my approach is incorrect.
>> Is there anything different I need to do so that the super class elements
>> are serialized when its child class element
>> is being sent in the response?
>>
>> Thanks,
>> Sathija.
>>
>>
>>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>



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



Re: ADB Helper mode

2007-01-26 Thread Davanum Srinivas

Great! thanks!

-- dims

On 1/26/07, Amila Suriarachchi <[EMAIL PROTECTED]> wrote:

hi,
I recently updated the axis2 helper mode functionality which was not
uptodate.
In helper mode it generates two class for each bean type. One is the normal
bean class with getters and setters with validation logic. The other class
is the helper class with conatins getOMElement, getPullparser and parse
methods.
The helper mode can be used by giving -Eh option for wsdl2java as a
parameter.

--
Amila Suriarachchi,
WSO2 Inc.



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

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



Re: [Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-26 Thread Sathija Pavuluri
Deepal,

Both the server and client use ADB binding.

> If you are using ADB in server side you do not need to use
> RPCMessageReceiver.

What message receiver do I need to use then?

Thanks,
Sathija.



> Hi Sathija ;
>
>>Hello,
>>
>>I am using Axis2 1.1.1 for my web services and use ADB for data binding with 
>>RPCMessageReceiver.
>>
>>
> are you using ADB in client side or server side ?
> If you are using ADB in server side you do not need to use
> RPCMessageReceiver.
>
>>I have been unsuccessfully trying to return a datatype 'A1' to my client. 
>>'A1' extends from an abstract object 'A'
>>that also contains from attributes.
>>
>>However, when the client receives the response, all attributes from A1 are in 
>>the response but attributes from A are
>>missing.
>>
>>So I am back to thinking if ADB supports this object hierarchy. I have seen 
>>some older posts with such scenarios but
>>no useful suggestions.
>>
>>Thanks!
>>Sathija.
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>
> --
> Thanks,
> Deepal
> 
> "The highest tower is built one brick at a time"
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: returning Array from a web service method

2007-01-26 Thread rajac

Hi Kinichiro Inoguchi,
   I am returning the array which is of non Java Bean type and when
I am trying to invoke the service I am not getting the value of array (i.e, 
Object[] response = serviceClient.invokeBlocking(opGetAddress,
opGetAddressesArgs, returnTypes)). Although the length of the response is
returning "1" but the when I am trying to get/retrieve the value from the
response object its returning 'null'. I am not very sure if I am doing any
mistake. Do I need to configure anything to get array value of Non Java Bean
type? 

I am uploading the java files.

 

Kinichiro Inoguchi wrote:
> 
> Hi,
> 
> If your "CustomJavaObject" is JavaBean, 
> I think you can return array of "CustomJavaObject",
> and your service class below is right.
> 
> --- rajac <[EMAIL PROTECTED]> wrote:
> 
>> 
>> But it simply returning a Java Bean. But my purpose is to return an
>> array of
>> java objects.
>> 
>> like :
>> public CustomJavaObject[] getArray((){
>>  // set the CustomJavaObject[]
>>  // return CustomJavaObject[] 
>>}
>> 
>> 
>> Regards,
>> Raja
>> 
>> 
>> Deepal Jayasinghe wrote:
>> > 
>> > Hi  rajac ;
>> > 
>> >> Hi, I am new to axis2-1.1. Currently I am trying to create a web
>> >> service that returns an array of Java custom Objects. 
>> > 
>> > You mean Java Bean ?
>> > If so please have a look at Samples in Axis2 bistro
>> > 
>> > Thanks
>> > Deepal
>> > 
>> >> I could not able to find sample code from samples comes along with
>> the
>> >> axis2 distribution for this purpose. Can anybody help me sending
>> some
>> >> sample code for the same. I am using RPCServiceClient to get the
>> >> result frm the web service. Thanks. Raja Chattopadhyay
>> >>
>>
> 
>> >> View this message in context: returning Array from a web service
>> >> method
>> >>
>>
> 
>> >> Sent from the Axis - User
>> >>  mailing list archive
>> at
>> >> Nabble.com.
>> > 
>> > 
>> > -- 
>> > Thanks,
>> > Deepal
>> > 
>> > "The highest tower is built one brick at a time"
>> > 
>> > 
>> > 
>> >
>> -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/returning-Array-from-a-web-service-method-tf3120863.html#a8646652
>> Sent from the Axis - User mailing list archive at Nabble.com.
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> 
> 
>  
> 
> Now that's room service!  Choose from over 150,000 hotels
> in 45,000 destinations on Yahoo! Travel to find your fit.
> http://farechase.yahoo.com/promo-generic-14795097
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
http://www.nabble.com/file/5942/TestService.java TestService.java 
http://www.nabble.com/file/5943/TestStub.java TestStub.java 
http://www.nabble.com/file/5944/TestClient.java TestClient.java 
http://www.nabble.com/file/5945/UserInfo.java UserInfo.java 
http://www.nabble.com/file/5946/UserInfoImpl.java UserInfoImpl.java 
-- 
View this message in context: 
http://www.nabble.com/returning-Array-from-a-web-service-method-tf3120863.html#a8651318
Sent from the Axis - User mailing list archive at Nabble.com.


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



where to put jar-files in aar-archive

2007-01-26 Thread Marc Lustig
Hi

I read in the user forum that it's possible to put jar's into the
aar-archive (instead of to WEB-INF/lib).

However I cannot find any reference where exactly to put them.

/lib seems to be little awkward, since the root dir is also the root-dir
of the classes.

Anybody can advise me where to put the jar's ?

regards
Marc

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



Axis2 Eclipse code generator plugin for jibx

2007-01-26 Thread informaticu007-pfc
Hi there!

I'm new to this whole thing of axis2 and I would be grateful if someone could 
help me with this:

I would like to use the eclipse code generator plugin for generating code using 
jibx databinding. I watched out in the source code that comes with the plugin 
and I found that the option is available in the databinding combo box, but was 
disabled and I uncommented it. Then, when I used that option I got a message: 

"an error occurred while completing process -java.lang.InterruptedException:
java.lang.RuntimeException: JiBX framework jars not in classpath"

I tried copying the jars files axis2-jibx, jibx-run and jibx-bind from the 
axis2 lib directory and put into the plugin lib directory and even taking the 
class files from the axis2-jibx and updating the axis2-1.1.jar file from the 
plugin lib directory with those classes but the problem was still the same. 

Could anyone help me, please?

Thank you in advance


-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

[AXIS2] Is rest fixed in 1.1.1?

2007-01-26 Thread Alistair Young
Hi there,

I'm getting all sorts of errors when trying to list services from the
axis2 admin screen suc as:

"I can not find a service for this request to be serviced"

I saw this thread:

http://blog.gmane.org/gmane.text.xml.axis.user/day=20070106

which says that REST is broken on 1.1.1 - is it really broken and if so,
when will the fix be released?

thanks,

Alistair


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



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



objects in WS instead of primitives and empty strings

2007-01-26 Thread pat
Hi all,

I'm developing web service using Axis2 (Java 1.4) in Tomcat web container.

1) I'm using Axis2 to generate WSDL file, but this is probably my problem.
When I generate client side (using NetBeans 5.5 as generator - for me is
important only server side, so this is only for testing), all fields defined
as java.lang.Long/Integer/Character are generated on client's side as
primitives (long, int, char). And this is the problem. Please could someone
gave me a hint how to push Axis2 to generate WSDL with objects instead of the
primitives ???

2) when I transfer strings from the client side to server side all "null"
values are replaced by an empty string. How to keep the null values ???

And my service.xml looks like:

 description
 ws.WS
 
  
  urn:myMethod 
 


and the WSDL fragment with my problems:



Thanks for help !!!

 Pat


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



Re: Session Connection pooling in Axis2 WS

2007-01-26 Thread Paul Fremantle

Session scope is simply the lifecycle of the objects and state that
Axis2 manages.

So if you define request, then each new request will instantiate a new
service object.
If you define transportsession, then Axis2 will use HTTP cookies. Each
client will re-use the same service object.
If you define soapsession, it will do the same thing, except using
SOAP headers instead of cookies.
If you define application, then you will have a single service object
for all requests.

It is up to you to make sure that youre object can support the right
threading model for application. For request you need not worry about
thread safety because each request has its own service object.

Paul

On 1/26/07, Stadelmann Josef <[EMAIL PROTECTED]> wrote:

Sanjiva

What is session scope?

you have to define one of
scope=request
scope=transportsession
scope=soapsession
scope=application

which one do you mean?
Josef

-Ursprüngliche Nachricht-
Von: Sanjiva Weerawarana [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 25. Januar 2007 06:29
An: axis-user@ws.apache.org
Betreff: RE: Session Connection pooling in Axis2 WS


It depends on the "scope" of the service .. if its deployed in
application scope then only one instance is created. If its in session
scope then its one instance per session and so on.

See: http://wso2.org/library/231

Sanjiva.

On Wed, 2007-01-24 at 11:45 -0500, Ho, Wen Yue wrote:
> Hi,
>
> I think my question is not clear and confusing.
> Sorry, a newbie here :-)
>
> Please allow me to re-phrase my question.
> How does Axis2 handle multiple request to the webservices?
> AFAIK, Axis2 is a servlet and by default, a (single) servlet should be
> able to handle multiple HTTP requests.
> For each incoming request session, will axis (servlet) instantiate
> just one instance of the websrvice class for multiple requests?
> Or it will instantiate one webservice object for each request?
>
> Your assistance will be highly appreciated.
> Thank you.
>
>
>
>
> __
> From: Ho, Wen Yue [mailto:[EMAIL PROTECTED]
> Sent: January 23, 2007 2:26 PM
> To: axis-user@ws.apache.org
> Subject: Session Connection pooling in Axis2 WS
>
>
>
> Hi,
>
> I have a legacy system that provides an API to access the system thru
> their own Session object.
> I need to pool this session objects within my web services developed
> using Axis2.
>
> Correct me if I'm wrong.
> AFAIK, Axis2 by default will make one thread per request to the web
> service.
> I think this means singleton class won't work, since one thread will
> instantiate one singleton.
> Any advice on how to do this?
>
> Thanks in advance.
>
>
> 
> NOTICE OF CONFIDENTIALITY
> This communication including any information transmitted with it is
> intended only for the use of the addressees and is confidential.
> If you are not an intended recipient or responsible for delivering
> the message to an intended recipient, any review, disclosure,
> conversion to hard copy, dissemination, reproduction or other use
> of any part of this communication is strictly prohibited, as is the
> taking or omitting of any action in reliance upon this communication.
> If you receive this communication in error or without authorization
> please notify us immediately by return e-mail or otherwise and
> permanently delete the entire communication from any computer,
> disk drive, or other storage medium.
>
> If the above disclaimer is not properly readable, it can be found at
> www.td.com/legal
>
> AVERTISSEMENT DE CONFIDENTIALITE
> Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement
> aux destinataires susmentionnés,  est confidentiel.  Si vous
> n'êtes pas le destinataire prévu ou un agent responsable de la
> livraison de ce courriel, tout examen, divulgation, copie, impression,
> reproduction, distribution, ou autre utilisation d'une partie de ce
> courriel est strictement interdit de même que toute intervention ou
> abstraction à cet égard.  Si vous avez reçu ce message par erreur ou
> sans autorisation, veuillez en aviser immédiatement l'expéditeur par
> retour de courriel ou par un autre moyen et supprimer immédiatement
> cette communication entière de tout système électronique.
>
> Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
> pouvez le consulter à www.td.com/francais/legale
--
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/


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





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/pau

AW: Debugging Axis2 in Tomcat

2007-01-26 Thread Stadelmann Josef
That was not the question of Jeff

Jeff does not say ... to debug in  code that comes from jar's 
But he wants simple see the debugger step through his own lines of code.

I have had the same issue. The issues is shown in NetBeans as well when
the code is on the server and the debugging takes somehow place in conjunction
with a local source code copy on the client. the debugger shows this problem. 
After synchronizing the code between client and server and mounting the code/
package at the proper level, this missbehaving has gone away.

Josef

-Ursprüngliche Nachricht-
Von: Jeff Greif [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 25. Januar 2007 19:15
An: axis-user@ws.apache.org
Betreff: Re: Debugging Axis2 in Tomcat


Line numbers are available or not depending on the options given to the 
java compiler.  You can control the appearance of line numbers for your 
code, but not for the axis2 code or tomcat container code loaded from 
pre-packaged jars, depending on how those jars were built.  If you want 
line numbers from something in this infrastructure, you might have to 
build it yourself with the appropriate compiler options, and install the 
results in place of the jars you're using now.

Jeff

Ho, Wen Yue wrote:
> Jeff,
>
> Thanks for the tips.
>
> I manage debug my Axis2 WS in Tomcat using eclipse now.
> But I still am having a problem though. When the debugger stopping at
> the server side code it doesn't highlight the line where it is stopping.
> The Debug Call stacks is saying "line: not available [local variables
> unavailable]".
>
>   


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


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



AW: Session Connection pooling in Axis2 WS

2007-01-26 Thread Stadelmann Josef
Sanjiva

What is session scope?

you have to define one of 
scope=request
scope=transportsession
scope=soapsession
scope=application

which one do you mean?
Josef

-Ursprüngliche Nachricht-
Von: Sanjiva Weerawarana [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 25. Januar 2007 06:29
An: axis-user@ws.apache.org
Betreff: RE: Session Connection pooling in Axis2 WS


It depends on the "scope" of the service .. if its deployed in
application scope then only one instance is created. If its in session
scope then its one instance per session and so on.

See: http://wso2.org/library/231

Sanjiva.

On Wed, 2007-01-24 at 11:45 -0500, Ho, Wen Yue wrote:
> Hi,
>  
> I think my question is not clear and confusing.
> Sorry, a newbie here :-)
>  
> Please allow me to re-phrase my question.
> How does Axis2 handle multiple request to the webservices?
> AFAIK, Axis2 is a servlet and by default, a (single) servlet should be
> able to handle multiple HTTP requests.
> For each incoming request session, will axis (servlet) instantiate
> just one instance of the websrvice class for multiple requests?
> Or it will instantiate one webservice object for each request?
>  
> Your assistance will be highly appreciated.
> Thank you.
>  
> 
> 
> 
> __
> From: Ho, Wen Yue [mailto:[EMAIL PROTECTED] 
> Sent: January 23, 2007 2:26 PM
> To: axis-user@ws.apache.org
> Subject: Session Connection pooling in Axis2 WS
> 
> 
> 
> Hi,
>  
> I have a legacy system that provides an API to access the system thru
> their own Session object.
> I need to pool this session objects within my web services developed
> using Axis2.
>  
> Correct me if I'm wrong.
> AFAIK, Axis2 by default will make one thread per request to the web
> service.
> I think this means singleton class won't work, since one thread will
> instantiate one singleton.
> Any advice on how to do this?
>  
> Thanks in advance.
>  
>  
> 
> NOTICE OF CONFIDENTIALITY
> This communication including any information transmitted with it is 
> intended only for the use of the addressees and is confidential. 
> If you are not an intended recipient or responsible for delivering 
> the message to an intended recipient, any review, disclosure, 
> conversion to hard copy, dissemination, reproduction or other use 
> of any part of this communication is strictly prohibited, as is the 
> taking or omitting of any action in reliance upon this communication. 
> If you receive this communication in error or without authorization 
> please notify us immediately by return e-mail or otherwise and 
> permanently delete the entire communication from any computer, 
> disk drive, or other storage medium.
> 
> If the above disclaimer is not properly readable, it can be found at 
> www.td.com/legal
>
> AVERTISSEMENT DE CONFIDENTIALITE   
> Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement 
> aux destinataires susmentionnés,  est confidentiel.  Si vous 
> n’êtes pas le destinataire prévu ou un agent responsable de la 
> livraison de ce courriel, tout examen, divulgation, copie, impression, 
> reproduction, distribution, ou autre utilisation d’une partie de ce 
> courriel est strictement interdit de même que toute intervention ou 
> abstraction à cet égard.  Si vous avez reçu ce message par erreur ou 
> sans autorisation, veuillez en aviser immédiatement l’expéditeur par 
> retour de courriel ou par un autre moyen et supprimer immédiatement 
> cette communication entière de tout système électronique.
> 
> Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous 
> pouvez le consulter à www.td.com/francais/legale
-- 
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/


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



Re: Is it possible to choose which wsdl:bindings Axis2 generates?

2007-01-26 Thread Deepal Jayasinghe
Hi Sébastien ;

At the moment you do not have a way , but creating a JIRA will helpful
for you to have the feature in a near release.

> Axis2 generates automatically wsdl:bindings in soap11 soap12 and http
>
> Is it possible to disable http binding generation?
>
> Thx
> Seb
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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



Is it possible to choose which wsdl:bindings Axis2 generates?

2007-01-26 Thread Sébastien Arod

Axis2 generates automatically wsdl:bindings in soap11 soap12 and http

Is it possible to disable http binding generation?

Thx
Seb

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



Re: XOP activation

2007-01-26 Thread Paul Fremantle

Hi Charles

Is the attachment appearing as a Base64 encoded element inside the body?

Basically once you have MTOM enabled, the actual "optimization" of a
particular element is based on how you create the node.

If you are using the OMElement API to create the attachment then you
will be using one of the APIs like:

OMText text = factory.createText(dataHandler, booleanOptimize);

if you set booleanOptimize=true then the data will be XOP-included and
set as pure binary in a MIME attachment.

If this isn't working, check if you have enabled MTOM in axis2.xml:
true

If you are using a client with no axis2.xml, then you need to make
sure it is enabled like this:

serviceClient.getOptions.setProperty(Constants.Configuration.ENABLE_MTOM,
Constants.VALUE_TRUE);

Here is the guide:
http://ws.apache.org/axis2/1_1/mtom-guide.html

Paul

On 1/26/07, Charles Souillard <[EMAIL PROTECTED]> wrote:

Hi all,

I am a newbie on Axis2. I have created an example using MTOM which runs
successfully. My problem is the attachment is included in the soapBody.
I know that xop allows to put the attachment outside of the SOAP
enveloppe (is that correct ?).

Can you explain me how I can activate xop in my example ? Is there a
property to set on the client side ? server side ?

Thanks for your help.

Regards
Charles

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





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



XOP activation

2007-01-26 Thread Charles Souillard

Hi all,

I am a newbie on Axis2. I have created an example using MTOM which runs 
successfully. My problem is the attachment is included in the soapBody. 
I know that xop allows to put the attachment outside of the SOAP 
enveloppe (is that correct ?).


Can you explain me how I can activate xop in my example ? Is there a 
property to set on the client side ? server side ?


Thanks for your help.

Regards
Charles

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