RE: [Axis2]wsdl2java with xmlbeans creates interface with xmlbeans.XmlString instead of java.lang.String

2007-10-03 Thread Pantvaidya, Vishwajit
Hi Amila,

Am I doing anything wrong in the jaxme/jaxbri options? Or is it not working 
because their implementation is on a trial basis?
If jaxme/jaxbri won't work - I was thinking of proceeding with xmlbeans.

Ultimately I need to deal with MTOM attachments - so do I need to choose any 
particular databinding? The MTOM guide talks about ADB - does that mean that if 
I use xmlbeans, I cannot exchange attachments via MTOM?


- Vish.


From: Pantvaidya, Vishwajit
Sent: Tuesday, October 02, 2007 9:42 AM
To: 'axis-user@ws.apache.org'
Subject: RE: [Axis2]wsdl2java with xmlbeans creates interface with 
xmlbeans.XmlString instead of java.lang.String

Hi Amila,

By the way, (as mentioned at the beginning of this thread), I am on Axis2 1.3.

The ant task I am using has the following options
"-o ... -l java -ss -sd -d ... -ssi -f -uri ... -ns2p ...".
(for the -d option, I have tried adb/xmlbeans/jaxbri/jaxme)

If you are able to generate classes correctly, can you send me a zip of those?


Thanks,

Vish.


From: Pantvaidya, Vishwajit
Sent: Monday, October 01, 2007 2:32 PM
To: 'axis-user@ws.apache.org'
Subject: RE: [Axis2]wsdl2java with xmlbeans creates interface with 
xmlbeans.XmlString instead of java.lang.String

Actually I do see that the complex types are getting generated - but the "-f" 
option seems to be working erratically, because of which those types got 
generated with a "src" folder at the topmost level.
But unwrapping does not work with jaxme/jaxbri/ADB.

My takeaway from this exercise: Axis2 wsdl2java cannot generate same code like 
axis1 even if wsdl remains same and irrespective of the value of the "-d" 
wsdl2java option. Just migrating to axis2 forces people to use xmlbeans, adb, 
etc, and make change in the webservice implementation to handle, for example, 
xmlbeans.XmlString instead of java.lang.String.

So my options are to:

 1.  use jaxme/jaxbri with wrapper classes even for simple webservice 
operations like login, etc
 2.  use xmlbeans and change my axis1 implementation to handle XmlString 
instead of java String.

Any suggestions/thoughts/corrections?



From: Pantvaidya, Vishwajit
Sent: Monday, October 01, 2007 12:01 PM
To: axis-user@ws.apache.org
Subject: RE: [Axis2]wsdl2java with xmlbeans creates interface with 
xmlbeans.XmlString instead of java.lang.String

Hi Amila,

Let me know if I am doing anything wrong here or if I need to change anything.


- Vish.


From: Pantvaidya, Vishwajit
Sent: Friday, September 28, 2007 5:24 PM
To: 'Amila Suriarachchi'
Subject: RE: [Axis2]wsdl2java with xmlbeans creates interface with 
xmlbeans.XmlString instead of java.lang.String

I also tried using jaxb hoping that it would directly map to java types - found 
2 problems there.
1. axis2 does not support unwrapping for jaxb - why is that?
2. for the same wsdl, I emailed you, it created an interface as follows:
public com.selectica.ws.ecm.wsdlgen.OperationStatusElement Upload (
com.selectica.ws.ecm.wsdlgen.UploadRequestElement uploadRequestElement
);
But it did not create the class for the complex types 
com.selectica.ws.ecm.wsdlgen.UploadRequestElement and OperationStatusElement. 
Am I doing anything wrong here or is there a problem with the axis2 jaxb 
support?


- Vish.


From: Pantvaidya, Vishwajit
Sent: Friday, September 28, 2007 1:29 PM
To: 'Amila Suriarachchi'
Subject: RE: [Axis2]wsdl2java with xmlbeans creates interface with 
xmlbeans.XmlString instead of java.lang.String

For this wsdl - it creates interface as follows:

public com.selectica.ws.ecm.wsdlgen.OperationStatusElementDocument Upload (
org.apache.xmlbeans.XmlString sessiontoken,
org.apache.xmlbeans.XmlString trackingnumber,
org.apache.xmlbeans.XmlInt version
);

So the unwrapping here is okay - but I need java.lang,String params instead of 
xmlbeans.XmlString. I know that XmlString contains a string finally - but I do 
not really need that additional wrapper.
Is this happening because of the bindings functionality introduced in axis2?
Is it possible in axis2 to do wsdl2java using only POJO types?



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]
Sent: Friday, September 28, 2007 2:58 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2]wsdl2java with xmlbeans creates interface with 
xmlbeans.XmlString instead of java.lang.String


On 8/23/07, Pantvaidya, Vishwajit <[EMAIL PROTECTED]> 
wrote:

Tried scomp with xmlbeans 2.2.0 (same version as bundled with axis2) - it gives 
error "error: invalid.document.type: Document is not a wsdl file".



But coming back to original problem - the wsdl used to process fine with axis1 
resulting in interface with parameters of java types. Hasn't that been retained 
in axis2?



Tried wsdl2java with ADB to see if that gives me what I want. That also 
completed fine - but resulting classes 

Re: [AXIS2] ADBException: Unexpected subelement contentType

2007-10-03 Thread Amila Suriarachchi
Can you send your wsdl? and your request and responses.
have you enabled the MTOM or not?

Amila.

On 10/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi
>
> I am bit new to Axis2 but I worked on SOAP / MTOM.I think element type
> need to be xmime:base64Binary as shown in axis2 sample.
>
> Etienne if you are planning to use MTOM then Axis sample on MTOM is quite
> useful. See how you can define your "content"  element . I was succcessful
> in transferring file upto 1 GB in 67 sec  using MTOM.
>
> Let me know if you need more help
>
> Regards
> Yogesh
>
>
>
>
>  *"Ajith Ranabahu" <[EMAIL PROTECTED]>*
>
> 10/03/2007 02:48 PM  Please respond to
> axis-user@ws.apache.org
>
>   To
> axis-user@ws.apache.org  cc
>
>  Subject
> Re: [AXIS2] ADBException: Unexpected subelement contentType
>
>
>
>
>
>
> Hmm..
> It could be a bug. I'm thinking that since we have special treatment
> for base64Binary, the problem could be that. Can you try putting the
> base64Binary type as the last element of the sequence ? (I have a
> feeling that the issue could be  with something immediately following
> the base64bin type)
>
> Ajith
>
> On 10/3/07, Etienne Giraudy <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm working on migrating a web service client from axis 1.4 to axis2 1.3
> .
> >
> > With axis2 I have an issue with a complex type containing a
> > base64Binary element:
> >
> > 
> > 
> >  > type="xsd:base64Binary"/>
> >  > type="xsd:string"/>
> > 
> >  type="xsd:string"/>
> > 
> > 
> >
> >
> > When the client fails with the following exception;
> >
> > org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
> > Unexpected subelement contentType
> > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> > at com.foo.MyServiceStub.fromOM(KnowledgeBaseServiceStub.java
> :5805)
> >
> > For testing, we did removed the base64binary element from the response
> > and the exception disappeared.
> >
> >
> > Is there a known issue in axis2 1.3 with that kind of complex types?
> >
> >
> > The client is generated from the wsdl with:
> >   
> >  
> >  
> >  
> >  
> >  
> >  
> >   
> >
> >
> > Thanks in advance
> > Etienne
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Ajith Ranabahu
>
> Reading, after a certain age, diverts the mind too much from its
> creative pursuits. Any man who reads too much and uses his own brain
> too little falls into lazy habits of thinking - Albert Einstein
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> *
> ==
> This transmittal and any attachments may contain confidential, privileged
> or sensitive information and is solely for the use of the intended
> recipient. If you are not the intended recipient, you are hereby notified
> that you have received this transmittal and any attachments in error and any
> review, dissemination, distribution or copying thereof is strictly
> prohibited. If you have received this transmittal and any attachments in
> error please notify the sender and immediately destroy the message and all
> its attachments. Any opinions herein expressed may be those of the author
> and not necessarily of Mizuho Corporate Bank, Ltd., Mizuho Corporate Bank
> (USA), Mizuho Securities USA Inc. or any other affiliates of Mizuho
> Financial Group ("Mizuho"). Mizuho accepts no responsibility for the
> accuracy or completeness of any information herein contained.
> E-Mail received by or sent from officer of Mizuho Securities USA Inc.
> (which is a registered U.S. broker-dealer and the entity through which
> Mizuho generally conducts its investment banking, capital markets, and
> securities business in the United States) is electronically archived and
> recorded and is subject to review and monitoring by and/or disclosure to
> persons other than the recipient, including (but not limited to) Mizuho
> Securities USA Inc. supervisory personnel. Such communications may be
> produced to regulatory authorities or others with legal rights to the
> information.*
>



-- 
Amila Suriarachchi,
WSO2 Inc.


Re: wsdl import failing with wsdl2java axis2-1.3

2007-10-03 Thread Amila Suriarachchi
Can you please try out with a nighly build?
I fixed a similar issue earlier and this wsdl seems to be ok.

Amila.

On 10/4/07, Norman Barker <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am using the ebRIM wsdl file here
>
> http://www.oasis-open.org/committees/regrep/documents/3.0/services/ebXMLRegistryServices.wsdl
>
> which I can't really change and all I have done is make it validate in
> eclipse by changing  ebXMLregistrybindings.wsdl.
>
> When I run wsdl2java I get the error "There is no port type associated
> with the binding" which I believe is related to the use of import
> statements in the first wsdl.
>
> Is there a workaround for this, anyone successfully run this wsdl
> through the code generator?
>
> thanks,
>
> Norman
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: Performance analysis

2007-10-03 Thread Demetris G


Super - thanks Upul.

Upul Godage wrote:

http://wso2.org/library/91

Hope this helps.

Upul


On 10/4/07, *Demetris G* < [EMAIL PROTECTED] 
> wrote:



Does anyone know if there has been any work on profiling Axis and
Axis 2?

Thanks


-
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: Performance analysis

2007-10-03 Thread Upul Godage
http://wso2.org/library/91

Hope this helps.

Upul


On 10/4/07, Demetris G <[EMAIL PROTECTED]> wrote:
>
>
> Does anyone know if there has been any work on profiling Axis and Axis 2?
>
> Thanks
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: *SPAM*: 08.50/4.0 - Re: Problem building available services

2007-10-03 Thread Lahiru Sandakith
Hi Ana,

As from here [1] on page 1 we need to specify the correct path to the
service classes (this should be ideally the point where your package
structure starts). Also this [2] is the reference to the code generator
plugins and if you interested here [3] is a tutorial that fully covers both
contract first and code first web services development using axis2 eclipse
plugins. If you still have problems please forward them also , we are glad
to help .

Thanks
Lahiru

[1] http://ws.apache.org/axis2/tools/1_3/eclipse/servicearchiver-plugin.html
[2] http://ws.apache.org/axis2/tools/1_3/eclipse/wsdl2java-plugin.html
[3] www.wso2.org/library/1719



On 10/3/07, Suran Jayathilaka <[EMAIL PROTECTED]> wrote:
>
>  Ana Belén Antón Gironés wrote:
>
> Hi!
>
> Thank you very much for your help, Suran and Lahiru.
>
> >First of all, I see that your class uses generics. Please note that Axis2
> only supports simple-types, arrays and beans. Since Axis2 is JDK1.4compliant, 
> generics are not >supported.
> >So what you can do is replace your genericised List arguments with
> arrays.
> >e.g.: replace List with Class32[].
>
>
> I think I am more confused than I thought :-(. Because of your explanation
> I deduce that I should use another web service framework, maybe Apache
> Tuscany. Is this right?
>
> >Your service folder structure looks ok to me. When the eclipse plugin has
> created the .aar file, check whether it contains the intended structure.
> >(rename the .aar file to .zip and you'll be able to deal with it using
> any zip tool, or extract the .aar file somewhere and take a look at the
> extracted structure, or do  "jar tvf" on the archive).
>
> Regarding the generation of .aar files. I checked the structure generated
> before and I thought that it was wrong, because where is the "
> MyService.class"??. The generated structure is:
>  -MyService.aar
> -configuration
> - .
> -lib (the libraries that I described in my latter mail)
> -META-INF
> -MANIFEST.MF
> -services.xml (the same xml that I described in my latter mail)
>  -plugins
>
> Thanks,
>
> Ana.
>
>
>  Hi Ana,
> Obviously, as members of the Axis2 dev community, we wouldn't be
> suggesting that you move to another framework, although that is up to you.
> :-)
>
> Might I ask what you rconfusion is in regards to our suggestions? In
> removing generics?
>
> Also, you can try creating the service archive manually, using the java
> jar tool. Again, you are welcome to ask for any help in solving any problems
> that may arise.
>
> Cheers.
> Suran
>
>
>


-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F


wsdl import failing with wsdl2java axis2-1.3

2007-10-03 Thread Norman Barker
Hi,

I am using the ebRIM wsdl file here
http://www.oasis-open.org/committees/regrep/documents/3.0/services/ebXMLRegistryServices.wsdl

which I can't really change and all I have done is make it validate in
eclipse by changing 

Re: problem with Axis2 1.3 not sending xml body

2007-10-03 Thread Eben Bruyns
Hi Guys,

I just made a cut down version of the WSDL that is producing this
issue for me, could anybody please point out my mistake?


http://schemas.xmlsoap.org/wsdl/";
xmlns:apachesoap="http://xml.apache.org/xml-soap";
xmlns:impl="http://www.hiso.org.nz/pms/wsdl";
xmlns:intf="http://www.hiso.org.nz/pms/wsdl";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tns1="http://www.hiso.org.nz/pms";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:hiso="http://www.hiso.org.nz/pms";
targetNamespace="http://www.hiso.org.nz/pms/wsdl";>














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












http://localhost:7080"/>




On 10/4/07, Eben Bruyns <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
> I've got an RPC encoded WSDL (yeah I know they are evil) which I
> converted to an RPC Literal. After I generated the proxy classes I'm
> unable to find the XML Data in the HTML body (this is a client proxy
> and it's doing a post).
>
> Am I missing something really obvious?
>
> Another thing I have noticed is that it does not encode html in a
> string variable properly I end up with a string like this:
>
> 
>
> Regards,
>
> Eben
>


-- 
.E

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



problem with Axis2 1.3 not sending xml body

2007-10-03 Thread Eben Bruyns
Hi Guys,

I've got an RPC encoded WSDL (yeah I know they are evil) which I
converted to an RPC Literal. After I generated the proxy classes I'm
unable to find the XML Data in the HTML body (this is a client proxy
and it's doing a post).

Am I missing something really obvious?

Another thing I have noticed is that it does not encode html in a
string variable properly I end up with a string like this:



Regards,

Eben

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



RE: Axis 1.4 configuration to use HTTP/1.1

2007-10-03 Thread Alick Buckley

Using Commons HTTP client with Axis 

By default Apache Axis 1.4 uses 'org.apache.axis.transport.http.HTTPSender'
for http sending. 

It is possible to change this to use 'org.apache.commons.httpclient'. 

Change the transport pivot attribute in the configuration to point to the
CommonsHTTPSender class. 

  
 
 

The following is an example of an axis client configuration file. 

  

 

http://xml.apache.org/axis/wsdd/"; 

xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";> 

  





  

  

  

  

 

You also need to add the common.codec.1.3.jar and
common-httpclient-3.0-rc4.jar to the jar directory. 

http://jakarta.apache.org/commons/ 

http://jakarta.apache.org/commons/httpclient/ 

http://jakarta.apache.org/commons/httpclient/features.html 

http://jakarta.apache.org/site/downloads/downloads_commons.html 

http://jakarta.apache.org/commons/httpclient/logging.html 


By default commons http client uses HTTP protocol 1.1 and by default it uses
chunked transfer encoding.

When a HTTP client program sends Transfer-Encoding chunked, it cannot send
Content-Length.

You can also programmatically switch back to HTTP/1.0 by using the following
code.

stub._setProperty ( org.apache.axis.MessageContext.HTTP_TRANSPORT_VERSION ,


 
org.apache.axis.transport.http.HTTPConstants.HEADER_PROTOCOL_V10); 


===

-Original Message-
From: Walker, Jeff [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 October 2007 2:35 AM
To: axis-user@ws.apache.org
Subject: RE: Axis 1.4 configuration to use HTTP/1.1


Hi,
So, I tried playing around with the http version. Theoretically, you
should be able to set a property on the binding (or at least, the Call
object) to switch between http 1.0 and http 1.1 This did not work. 

I could only manage to change to http 1.1 by editing the method
writeToSocket() in HTTPSender where it says:
String httpver =
msgContext.getStrProp(MessageContext.HTTP_TRANSPORT_VERSION);
if (null == httpver) {
httpver = HTTPConstants.HEADER_PROTOCOL_V10;
}

To
String httpver =
msgContext.getStrProp(MessageContext.HTTP_TRANSPORT_VERSION);
if (null == httpver) {
httpver = HTTPConstants.HEADER_PROTOCOL_V11;
}
Note how all I did was change the httpver variable.

The issue is, you then need to recompile Axis to pick up the change in
HTTPSender. To get around the fact we are supposed to use the binary
distribution and can't recompile Axis, I wrote my own class that extends
HTTPSender and then over rode the writeToSocket() method. I simply cut
and pasted that method in its entirety to the equivalent method in my
class and edited the line I mentioned above. The next step is to make
sure you pick up your sender and not the default HTTPSender. You can do
this by edting the client-config.wsdd file to pick up your class like
this:
Client-config.wsdd:
http://xml.apache.org/axis/wsdd/"; 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
  


Where my class is obviously called FMRHTTPSender.
After all that, it worked.

-
As a much easier alternative, CommonsHTTPSender by default uses http
1.1. So, simply create a client-config.wsdd file and pick up the Commons
sender. Something like this should work:

http://xml.apache.org/axis/wsdd/"; 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
  


The above commons sender also worked for me.
Cheers,
-jeff


-Original Message-
From: Shadab [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 03, 2007 3:37 AM
To: axis-user@ws.apache.org
Subject: Axis 1.4 configuration to use HTTP/1.1


Hi All,
 
Please let me know if there is any way to configure Axis1.4 such that it
uses HTTP/1.1 instead of HTTP/1.0
 
The request from the soapclient (implemented using service stub) lands
with
Axis/1.4 which in turn by default presumably uses HTTP/1.0.
 
Can't this be changed somehow using CommonsHTTPSender as pointed by mail
thread of Mario/Jeff "Axis 1.4 CommonsHTTPSender question" Date
Sep:20:2007
?
 
Mario/Jeff,
 Please let me know if you people have reached some solution and will
that
solution be helpful in the scenario I have told above...
 
Thanks,
Shadab
-- 
View this message in context:
http://www.nabble.com/Axis-1.4-configuration-to-use-HTTP-1.1-tf4560281.h
tml#a13014221
Sent from the Axis - User mailing list archive at Nabble.com.


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




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


Re: [AXIS2] Content-length not set in header

2007-10-03 Thread FFF7878

Hi,
No, the Transfer-Encoding: chunked header is not present neither in the
request nor in the response.
I'm out of the office now until tuesday, so I won't be able to test any more
but the response header I gave in the first e-mail are still the one I get
when I disable HTTP chunking at runtime, in my web service just before
returning the response object to Axis2.
My servlet container is websphere, using PARENT_LAST classloading option...
Could this be the issue?

Thanks,
Pierre


keith chapman wrote:
> 
> No it cannot be a bug. Cause the content-length header is set by
> commonsHTTPTransportSender and this is a basic use case. So I dont think
> that its broken.
> Do you see the following header in the response?
> 
> Transfer-Encoding: chunked
> 
> Thanks,
> Keith.
> 
> On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
>>
>>
>> I've disabled chunking in the service and the content-length is still not
>> included by Axis2 in the HTTP header.
>> Could it be an Axis2 1.3 bug?
>>
>> Thanks,
>> Pierre
>>
>>
>> keith chapman wrote:
>> >
>> > yes it would.
>> >
>> > Thanks,
>> > Keith.
>> >
>> > On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Thanks for the answer.
>> >> Will Axis2 include the content-length value in the HTTP header if I
>> >> disable
>> >> the chunking by default? The client seems to be very dependant of this
>> >> header value!
>> >>
>> >>
>> >> Thanks in advance
>> >>
>> >> Pierre
>> >>
>> >>
>> >>
>> >> keith chapman wrote:
>> >> >
>> >> > AFAIK chunking is true by default (When HTTP 1.1 is used) and if you
>> >> wanna
>> >> > turn it off you have to specify it explicitly. Try this in your
>> service
>> >> >
>> >> > MessageContext msgContext = org.apache.axis2.context
>> >> >
>> >>
>> .MessageContext.getCurrentMessageContext().getOperationContext().getMessageContext(
>> >> > WSDLConstants.MESSAGE_LABEL_OUT_VALUE );
>> >> >
>> >> > msgContext.setProperty(HTTPConstants.CHUNKED,"false");
>> >> >
>> >> > Thanks,
>> >> > Keith.
>> >> >
>> >> > On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >>
>> >> >> Hello Axis users,
>> >> >> I have a web service integrated with Axis2 that communicates with
>> >> clients
>> >> >> using gSOAP. The problem is that the client don't receive the
>> complete
>> >> >> XML
>> >> >> response (sent in three TCP packets) when the WS is using Axis2
>> while
>> >> it
>> >> >> is
>> >> >> working when using Axis1.
>> >> >> HTTP 1.1 is used. In axis2.xml, i've disable chunking:
>> >> >> > >> >>
>> >> >> class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>> >> >> HTTP/1.1
>> >> >> 
>> >> >>
>> >> >> here is the HTTP header request of the client:
>> >> >> POST /fsaDev/serverAuthent/SGPASupportWebService_0.2 HTTP/1.1
>> >> >> Host: www.tests.cleyris.com:443
>> >> >> User-Agent: gSOAP/2.7
>> >> >> Content-Type: text/xml; charset=utf-8
>> >> >> Content-Length: 1803
>> >> >> Connection: close
>> >> >> Accept-Encoding: gzip, deflate
>> >> >> SOAPAction: "productList"
>> >> >>
>> >> >> The HTTP header of the response when using Axis2 doesn't contain
>> the
>> >> >> content-lenght field and is not using HTTP chucking:
>> >> >> HTTP/1.1 200 OK
>> >> >> Date: Wed, 03 Oct 2007 08:48:58 GMT
>> >> >> Server: Apache/2.0.53 (Fedora)
>> >> >> Set-Cookie: JSESSIONID=OdoS96XVEDu8V5P6L0hKSAt:-1; Path=/
>> >> >> Expires: Thu, 01 Dec 1994 16:00:00 GMT
>> >> >> Cache-Control: no-cache="set-cookie, set-cookie2"
>> >> >> Content-Type: text/xml; charset=utf-8
>> >> >> Content-Language: fr-FR
>> >> >> Connection: close
>> >> >>
>> >> >> The content-length field is set when using Axis1:
>> >> >> HTTP/1.1 200 OK
>> >> >> Date: Thu, 27 Sep 2007 17:05:41 GMT
>> >> >> Server: IBM_HTTP_Server
>> >> >> Content-Length: 19181
>> >> >> Set-Cookie: JSESSIONID=MFbDWxjMj23LS6_ufCPTglH:-1; Path=/
>> >> >> Expires: Thu, 01 Dec 1994 16:00:00 GMT
>> >> >> Cache-Control: no-cache="set-cookie, set-cookie2"
>> >> >> Content-Type: text/xml; charset=utf-8
>> >> >> Content-Language: fr-FR
>> >> >> Connection: close
>> >> >>
>> >> >> Is there a way to set the content length field? I'm not a HTTP
>> expert,
>> >> >> does
>> >> >> anybody see something strange?
>> >> >>
>> >> >> Thanks in advance
>> >> >>
>> >> >> Pierre
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13016314
>> >> >> Sent from the Axis - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> -
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > --
>> >> > Keith Chapman
>> >> > WSO2 Inc.
>> >> > Oxygen for Web Services Developers.
>> >> > http://wso2.org/
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13023058
>>

Re: [AXIS2] ADBException: Unexpected subelement contentType

2007-10-03 Thread Yogesh . Dhake
Hi 

I am bit new to Axis2 but I worked on SOAP / MTOM.I think element type 
need to be xmime:base64Binary as shown in axis2 sample.

Etienne if you are planning to use MTOM then Axis sample on MTOM is quite 
useful. See how you can define your "content"  element . I was succcessful 
in transferring file upto 1 GB in 67 sec  using MTOM.

Let me know if you need more help

Regards
Yogesh





"Ajith Ranabahu" <[EMAIL PROTECTED]> 
10/03/2007 02:48 PM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Re: [AXIS2] ADBException: Unexpected subelement contentType






Hmm..
It could be a bug. I'm thinking that since we have special treatment
for base64Binary, the problem could be that. Can you try putting the
base64Binary type as the last element of the sequence ? (I have a
feeling that the issue could be  with something immediately following
the base64bin type)

Ajith

On 10/3/07, Etienne Giraudy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm working on migrating a web service client from axis 1.4 to axis2 
1.3.
>
> With axis2 I have an issue with a complex type containing a
> base64Binary element:
>
> 
> 
>  type="xsd:base64Binary"/>
>  type="xsd:string"/>
> 
> 
> 
> 
>
>
> When the client fails with the following exception;
>
> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
> Unexpected subelement contentType
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at 
com.foo.MyServiceStub.fromOM(KnowledgeBaseServiceStub.java:5805)
>
> For testing, we did removed the base64binary element from the response
> and the exception disappeared.
>
>
> Is there a known issue in axis2 1.3 with that kind of complex types?
>
>
> The client is generated from the wsdl with:
>   
>  
>  
>  
>  
>  
>  
>   
>
>
> Thanks in advance
> Etienne
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ajith Ranabahu

Reading, after a certain age, diverts the mind too much from its
creative pursuits. Any man who reads too much and uses his own brain
too little falls into lazy habits of thinking - Albert Einstein

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



==
This transmittal and any attachments may contain confidential, privileged or 
sensitive information and is solely for the use of the intended recipient. If 
you are not the intended recipient, you are hereby notified that you have 
received this transmittal and any attachments in error and any review, 
dissemination, distribution or copying thereof is strictly prohibited. If you 
have received this transmittal and any attachments in error please notify the 
sender and immediately destroy the message and all its attachments. Any 
opinions herein expressed may be those of the author and not necessarily of 
Mizuho Corporate Bank, Ltd., Mizuho Corporate Bank (USA), Mizuho Securities USA 
Inc. or any other affiliates of Mizuho Financial Group (”Mizuho”). Mizuho 
accepts no responsibility for the accuracy or completeness of any information 
herein contained.
E-Mail received by or sent from officer of Mizuho Securities USA Inc. (which is 
a registered U.S. broker-dealer and the entity through which Mizuho generally 
conducts its investment banking, capital markets, and securities business in 
the United States) is electronically archived and recorded and is subject to 
review and monitoring by and/or disclosure to persons other than the recipient, 
including (but not limited to) Mizuho Securities USA Inc. supervisory 
personnel.  Such communications may be produced to regulatory authorities or 
others with legal rights to the information.


[Axis2] SPNEGO

2007-10-03 Thread Jim Collins
Hi,

Has anyone written an Axis2 client that accesses a Web Service using SPNEGO? I 
don't want to have the username and password of the account I want to 
authenticate against on the Web Service.

Any help with this would be appreciated.

Thanks

Jim

Re: [Axis2] WS-Policy

2007-10-03 Thread Jim Collins

Hi Sanka,

I will send the WSDL tomorrow.

Thanks for your help.

Jim
- Original Message - 
From: "Sanka Samaranayke" <[EMAIL PROTECTED]>

To: 
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2007 12:35 PM
Subject: Re: [Axis2] WS-Policy




Hi Jim,

I would be great if you can post the WSDL which you used to generate the 
stub so that we see whether we can reproduce the problem.


Thanks,
Sanka


Jim Collins wrote:

Hi Paul/Sanka,

Thanks for the reply and apologies for taking so long in getting back to 
you.
  I have looked at the Rampart examples and they have a separate policy. 
The policy that I use is part of the WSDL.


I can see in the generated stub that the policy is being set e.g.

(__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE).getPolicyInclude().setPolicy(getPolicy("xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2004/09/policy\";>..."));


After generating the Stub I then installed Rampart and was then getting 
errors when I tried to generate the stub again. I got a 
CodeGenerationException


java.lang.RuntimeException: can't serialize the policy ..

I have used Axis1 in the past but I am new to Axis2 and not sure how I 
use the rampart module for just the client  and specify the policy if it 
is part of an existing WSDL.


Thanks

Jim


- Original Message - From: "Paul Fremantle" <[EMAIL PROTECTED]>
To: 
Sent: Friday, September 28, 2007 8:00 AM
Subject: Re: [Axis2] WS-Policy



Probably the best thing would be to look at some of the Rampart
samples that are driven by policy. If you can give us some idea of the
policy that is being used it might help.

Basically, each public policy provided by the remote service requires
some config locally. For example, if the policy says "encrypt" then
you need to config the keystore. If the policy says
"username/password" you need to let rampart have those.

Now here's the freaky bit. Rampart also uses policy to *configure* the
local items. So you need to give Rampart the local policy as well as
the remote policy which is already burnt into your stub. Both will be
merged to make a master policy which will make Rampart do the right
thing.

Paul

On 9/28/07, Sanka Samaranayke <[EMAIL PROTECTED]> wrote:


Hi Jim,

1) If you want to get WS-Security policy being supported in the stub, 
you need to instantiate the stub by giving a ConfigurationContext obj

which points a repository which contains a rampart mar.

2) Then you need to attach rampart specific policies to the AxisService 
obj which is used internally by the stub. You can do that as follows.


ServiceClient _serviceClient = stub._getServiceClient();
AxisService service = _serviceClient.getAxisService();
service.getPolicyInclude().addPolicy(policy);

Here the policy object should contain configuration policies of rampart 
which are needed to provides security requirements specified by

policy expressions in the service wsdl document.

For example, if the service requires username token then you need to 
attach a policy expression with rampart assertions which specify

Password callback class.



HTH,
Sanka

1) First you need to instantiate the stub giving a configuration 
context


Jim Collins wrote:
> Hi,
>
> I am trying to write a Web Service client that accesses a Service
that
> uses WS-Policy. The WSDL is correctly configured with the policy
and I
> was able to generate the client stub and I can see from the source
> that it is adding the policy.
>
> What I am not sure is what I need to do when calling methods on
the on
> the client stub to make sure that it carries out what is in the
policy
> e.g.  sending a token.
>
> Any help would be appreciated.
>
> Thanks
>
> Jim


--
Sanka Samaranayake
WSO2 Inc.

http://www.bloglines.com/blog/sanka
http://www.wso2.org/


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





--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[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]





--
Sanka Samaranayake
WSO2 Inc.

http://www.bloglines.com/blog/sanka
http://www.wso2.org/


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








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



Performance analysis

2007-10-03 Thread Demetris G


Does anyone know if there has been any work on profiling Axis and Axis 2?

Thanks


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



Re: [AXIS2] ADBException: Unexpected subelement contentType

2007-10-03 Thread Ajith Ranabahu
Hmm..
It could be a bug. I'm thinking that since we have special treatment
for base64Binary, the problem could be that. Can you try putting the
base64Binary type as the last element of the sequence ? (I have a
feeling that the issue could be  with something immediately following
the base64bin type)

Ajith

On 10/3/07, Etienne Giraudy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm working on migrating a web service client from axis 1.4 to axis2 1.3.
>
> With axis2 I have an issue with a complex type containing a
> base64Binary element:
>
> 
> 
>  type="xsd:base64Binary"/>
>  type="xsd:string"/>
> 
> 
> 
> 
>
>
> When the client fails with the following exception;
>
> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
> Unexpected subelement contentType
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at com.foo.MyServiceStub.fromOM(KnowledgeBaseServiceStub.java:5805)
>
> For testing, we did removed the base64binary element from the response
> and the exception disappeared.
>
>
> Is there a known issue in axis2 1.3 with that kind of complex types?
>
>
> The client is generated from the wsdl with:
>   
>  
>  
>  
>  
>  
>  
>   
>
>
> Thanks in advance
> Etienne
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ajith Ranabahu

Reading, after a certain age, diverts the mind too much from its
creative pursuits. Any man who reads too much and uses his own brain
too little falls into lazy habits of thinking - Albert Einstein

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



Re: Web Service REST + JSON

2007-10-03 Thread Karina Pereyra
I don't have errors using badgerfish but i want to parse it into
javascript and mapped is easier than badgerfish  to parse.

also i'm a neebie in java and axis2, could you suggest me some guides
to create services using axiom or how to specify namespaces to
default?

thanks a lot.




On 10/3/07, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:
> AFAIK POJO support by defualt generates namespaces. But you can try
> specifying nameapce to package mapping pointing to the defualt
> namespace... Not sure whether it'll work..
>
> If not you will have to either create your service using Axiom or
> using a code generation...
>
> These are the results of impedence mismatch's between JSON and XML..
>
> Also wat's the error you are getting with badgerfish.
>
> Thanks,
> Thilina
>
> On 10/3/07, Karina Pereyra <[EMAIL PROTECTED]> wrote:
> > i'd like to use mapped service not badgerfish but when i try to use
> > mapped i have this error
> > Mapped formatted JSON with namespaces are not supported in Axis2.
> > Make sure that your request doesn't include namespaces or use the
> > Badgerfish convention.
> >
> > do you know how i can remove namespaces?
> >
> >
> >
> > On 10/3/07, keith chapman <[EMAIL PROTECTED]> wrote:
> > > Sorry Karina I'm not very familiar with Badgerfish. Did you have a look at
> > > http://wso2.org/library/768 ?
> > >
> > > Thanks,
> > > Keith.
> > >
> > >
> > > On 10/3/07, Karina Pereyra <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I'm nearby of success.
> > > > I have now my pojo services with this method, but i have the last 
> > > > problem.
> > > > When i use Badgerfish response comes to client (response is difficult
> > > > to parse in javascript),
> > > > But when i use Mapped i have the next error:
> > > >
> > > > Mapped formatted JSON with namespaces are not supported in Axis2.
> > > > Make sure that your request doesn't include namespaces or use the
> > > > Badgerfish convention.
> > > >
> > > > How i could use mapped formatter in axis2 with pojo?
> > > >
> > > > public User UserInfo(String username ) throws AxisFault{
> > > > MessageContext msgContext =
> > > >
> > > org.apache.axis2.context.MessageContext.getCurrentMessageContext().getCurrentMessageContext().getOperationContext().getMessageContext(
> > > WSDLConstants.MESSAGE_LABEL_OUT_VALUE
> > > > );
> > > >
> > > msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE,"application/json");
> > > > return (User)entries.get(username);
> > > > }
> > > >
> > > >
> > > -
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Keith Chapman
> > > WSO2 Inc.
> > > Oxygen for Web Services Developers.
> > > http://wso2.org/
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Thilina Gunarathne  - http://thilinag.blogspot.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: Web Service REST + JSON

2007-10-03 Thread Thilina Gunarathne
AFAIK POJO support by defualt generates namespaces. But you can try
specifying nameapce to package mapping pointing to the defualt
namespace... Not sure whether it'll work..

If not you will have to either create your service using Axiom or
using a code generation...

These are the results of impedence mismatch's between JSON and XML..

Also wat's the error you are getting with badgerfish.

Thanks,
Thilina

On 10/3/07, Karina Pereyra <[EMAIL PROTECTED]> wrote:
> i'd like to use mapped service not badgerfish but when i try to use
> mapped i have this error
> Mapped formatted JSON with namespaces are not supported in Axis2.
> Make sure that your request doesn't include namespaces or use the
> Badgerfish convention.
>
> do you know how i can remove namespaces?
>
>
>
> On 10/3/07, keith chapman <[EMAIL PROTECTED]> wrote:
> > Sorry Karina I'm not very familiar with Badgerfish. Did you have a look at
> > http://wso2.org/library/768 ?
> >
> > Thanks,
> > Keith.
> >
> >
> > On 10/3/07, Karina Pereyra <[EMAIL PROTECTED]> wrote:
> > >
> > > I'm nearby of success.
> > > I have now my pojo services with this method, but i have the last problem.
> > > When i use Badgerfish response comes to client (response is difficult
> > > to parse in javascript),
> > > But when i use Mapped i have the next error:
> > >
> > > Mapped formatted JSON with namespaces are not supported in Axis2.
> > > Make sure that your request doesn't include namespaces or use the
> > > Badgerfish convention.
> > >
> > > How i could use mapped formatter in axis2 with pojo?
> > >
> > > public User UserInfo(String username ) throws AxisFault{
> > > MessageContext msgContext =
> > >
> > org.apache.axis2.context.MessageContext.getCurrentMessageContext().getCurrentMessageContext().getOperationContext().getMessageContext(
> > WSDLConstants.MESSAGE_LABEL_OUT_VALUE
> > > );
> > >
> > msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE,"application/json");
> > > return (User)entries.get(username);
> > > }
> > >
> > >
> > -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> > --
> > Keith Chapman
> > WSO2 Inc.
> > Oxygen for Web Services Developers.
> > http://wso2.org/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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



Re: Rampart throws NPE

2007-10-03 Thread Murali Krishnan
The services.xml file contents I had included appear wrong in the earlier 
message. I have attached it in this mail.

- Original Message 
From: Murali Krishnan <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: axis-user@ws.apache.org
Sent: Wednesday, October 3, 2007 2:19:56 PM
Subject: Rampart throws NPE

I'm trying to call a simple service deployed in Axis2. I'm trying to enforce 
that this service requires a SamlToken whenever it is called... If I invoke 
this service with a soap request that doesn't have any security headers, I get 
the below exception at the server. If I disenagage 'rampart' for the service, 
there is no problem. Am I doing anything wrong in this scenario?

Thanks,
Murali

java.lang.NullPointerException
at org.apache.rampart.RampartEngine.process(RampartEngine.java:90)
at 
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:85)
at
 org.apache.axis2.engine.Phase.invoke(Phase.java:292)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

The soap request is like this:

POST /axis2/services/SimpleService HTTP/1.1
Content-Type: text/xml;
 charset=UTF-8
SOAPAction: "urn:echo"
User-Agent: Axis2
Host: 127.0.0.1:
Content-Length: 244


   
  
 
Hello world
 
  
   


The services.xml is like this below:


com.softwareag.ws.SimpleService




 



   
 

  
  

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







  Yahoo! oneSearch: Finally,  mobile search 
that gives answers, not web links. 







   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

	com.softwareag.ws.SimpleService
	
	
		
	
	
 	
	
	
	
	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/IncludeToken/AlwaysToRecipient"; 
		    xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"; />
		  
		
	

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

Re: Web Service REST + JSON

2007-10-03 Thread Karina Pereyra
i look at the link you mentioned but it not cover to deploy a service
using pojo + json + axis2 objects.


On 10/3/07, keith chapman <[EMAIL PROTECTED]> wrote:
> Sorry Karina I'm not very familiar with Badgerfish. Did you have a look at
> http://wso2.org/library/768 ?
>
> Thanks,
> Keith.
>
>
> On 10/3/07, Karina Pereyra <[EMAIL PROTECTED]> wrote:
> >
> > I'm nearby of success.
> > I have now my pojo services with this method, but i have the last problem.
> > When i use Badgerfish response comes to client (response is difficult
> > to parse in javascript),
> > But when i use Mapped i have the next error:
> >
> > Mapped formatted JSON with namespaces are not supported in Axis2.
> > Make sure that your request doesn't include namespaces or use the
> > Badgerfish convention.
> >
> > How i could use mapped formatter in axis2 with pojo?
> >
> > public User UserInfo(String username ) throws AxisFault{
> > MessageContext msgContext =
> >
> org.apache.axis2.context.MessageContext.getCurrentMessageContext().getCurrentMessageContext().getOperationContext().getMessageContext(
> WSDLConstants.MESSAGE_LABEL_OUT_VALUE
> > );
> >
> msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE,"application/json");
> > return (User)entries.get(username);
> > }
> >
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Keith Chapman
> WSO2 Inc.
> Oxygen for Web Services Developers.
> http://wso2.org/

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



Rampart throws NPE

2007-10-03 Thread Murali Krishnan
I'm trying to call a simple service deployed in Axis2. I'm trying to enforce 
that this service requires a SamlToken whenever it is called... If I invoke 
this service with a soap request that doesn't have any security headers, I get 
the below exception at the server. If I disenagage 'rampart' for the service, 
there is no problem. Am I doing anything wrong in this scenario?

Thanks,
Murali

java.lang.NullPointerException
at org.apache.rampart.RampartEngine.process(RampartEngine.java:90)
at 
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:85)
at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

The soap request is like this:

POST /axis2/services/SimpleService HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "urn:echo"
User-Agent: Axis2
Host: 127.0.0.1:
Content-Length: 244


   
  
 
Hello world
 
  
   


The services.xml is like this below:


com.softwareag.ws.SimpleService




 





  
  

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







   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 

Re: [AXIS2] Content-length not set in header

2007-10-03 Thread Thilina Gunarathne
hmm... Sounds like a bug...

Better way to specify it is through the axis2.xml. Try disabling
"Chunking" using Axis2.xml... If it's still broken try swtiching to
http 1.0..

See this document: http://ws.apache.org/axis2/1_3/http-transport.html.

thanks,
Thilina

On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
>
> I've disabled chunking in the service and the content-length is still not
> included by Axis2 in the HTTP header.
> Could it be an Axis2 1.3 bug?
>
> Thanks,
> Pierre
>
>
> keith chapman wrote:
> >
> > yes it would.
> >
> > Thanks,
> > Keith.
> >
> > On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Thanks for the answer.
> >> Will Axis2 include the content-length value in the HTTP header if I
> >> disable
> >> the chunking by default? The client seems to be very dependant of this
> >> header value!
> >>
> >>
> >> Thanks in advance
> >>
> >> Pierre
> >>
> >>
> >>
> >> keith chapman wrote:
> >> >
> >> > AFAIK chunking is true by default (When HTTP 1.1 is used) and if you
> >> wanna
> >> > turn it off you have to specify it explicitly. Try this in your service
> >> >
> >> > MessageContext msgContext = org.apache.axis2.context
> >> >
> >> .MessageContext.getCurrentMessageContext().getOperationContext().getMessageContext(
> >> > WSDLConstants.MESSAGE_LABEL_OUT_VALUE );
> >> >
> >> > msgContext.setProperty(HTTPConstants.CHUNKED,"false");
> >> >
> >> > Thanks,
> >> > Keith.
> >> >
> >> > On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>
> >> >> Hello Axis users,
> >> >> I have a web service integrated with Axis2 that communicates with
> >> clients
> >> >> using gSOAP. The problem is that the client don't receive the complete
> >> >> XML
> >> >> response (sent in three TCP packets) when the WS is using Axis2 while
> >> it
> >> >> is
> >> >> working when using Axis1.
> >> >> HTTP 1.1 is used. In axis2.xml, i've disable chunking:
> >> >>  >> >>
> >> >> class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
> >> >> HTTP/1.1
> >> >> 
> >> >>
> >> >> here is the HTTP header request of the client:
> >> >> POST /fsaDev/serverAuthent/SGPASupportWebService_0.2 HTTP/1.1
> >> >> Host: www.tests.cleyris.com:443
> >> >> User-Agent: gSOAP/2.7
> >> >> Content-Type: text/xml; charset=utf-8
> >> >> Content-Length: 1803
> >> >> Connection: close
> >> >> Accept-Encoding: gzip, deflate
> >> >> SOAPAction: "productList"
> >> >>
> >> >> The HTTP header of the response when using Axis2 doesn't contain the
> >> >> content-lenght field and is not using HTTP chucking:
> >> >> HTTP/1.1 200 OK
> >> >> Date: Wed, 03 Oct 2007 08:48:58 GMT
> >> >> Server: Apache/2.0.53 (Fedora)
> >> >> Set-Cookie: JSESSIONID=OdoS96XVEDu8V5P6L0hKSAt:-1; Path=/
> >> >> Expires: Thu, 01 Dec 1994 16:00:00 GMT
> >> >> Cache-Control: no-cache="set-cookie, set-cookie2"
> >> >> Content-Type: text/xml; charset=utf-8
> >> >> Content-Language: fr-FR
> >> >> Connection: close
> >> >>
> >> >> The content-length field is set when using Axis1:
> >> >> HTTP/1.1 200 OK
> >> >> Date: Thu, 27 Sep 2007 17:05:41 GMT
> >> >> Server: IBM_HTTP_Server
> >> >> Content-Length: 19181
> >> >> Set-Cookie: JSESSIONID=MFbDWxjMj23LS6_ufCPTglH:-1; Path=/
> >> >> Expires: Thu, 01 Dec 1994 16:00:00 GMT
> >> >> Cache-Control: no-cache="set-cookie, set-cookie2"
> >> >> Content-Type: text/xml; charset=utf-8
> >> >> Content-Language: fr-FR
> >> >> Connection: close
> >> >>
> >> >> Is there a way to set the content length field? I'm not a HTTP expert,
> >> >> does
> >> >> anybody see something strange?
> >> >>
> >> >> Thanks in advance
> >> >>
> >> >> Pierre
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13016314
> >> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> -
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > Keith Chapman
> >> > WSO2 Inc.
> >> > Oxygen for Web Services Developers.
> >> > http://wso2.org/
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13023058
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Keith Chapman
> > WSO2 Inc.
> > Oxygen for Web Services Developers.
> > http://wso2.org/
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13023728
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL P

Re: Web Service REST + JSON

2007-10-03 Thread Karina Pereyra
i'd like to use mapped service not badgerfish but when i try to use
mapped i have this error
Mapped formatted JSON with namespaces are not supported in Axis2.
Make sure that your request doesn't include namespaces or use the
Badgerfish convention.

do you know how i can remove namespaces?



On 10/3/07, keith chapman <[EMAIL PROTECTED]> wrote:
> Sorry Karina I'm not very familiar with Badgerfish. Did you have a look at
> http://wso2.org/library/768 ?
>
> Thanks,
> Keith.
>
>
> On 10/3/07, Karina Pereyra <[EMAIL PROTECTED]> wrote:
> >
> > I'm nearby of success.
> > I have now my pojo services with this method, but i have the last problem.
> > When i use Badgerfish response comes to client (response is difficult
> > to parse in javascript),
> > But when i use Mapped i have the next error:
> >
> > Mapped formatted JSON with namespaces are not supported in Axis2.
> > Make sure that your request doesn't include namespaces or use the
> > Badgerfish convention.
> >
> > How i could use mapped formatter in axis2 with pojo?
> >
> > public User UserInfo(String username ) throws AxisFault{
> > MessageContext msgContext =
> >
> org.apache.axis2.context.MessageContext.getCurrentMessageContext().getCurrentMessageContext().getOperationContext().getMessageContext(
> WSDLConstants.MESSAGE_LABEL_OUT_VALUE
> > );
> >
> msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE,"application/json");
> > return (User)entries.get(username);
> > }
> >
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Keith Chapman
> WSO2 Inc.
> Oxygen for Web Services Developers.
> http://wso2.org/

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



Re: Web Service REST + JSON

2007-10-03 Thread keith chapman
Sorry Karina I'm not very familiar with Badgerfish. Did you have a look at
http://wso2.org/library/768 ?

Thanks,
Keith.

On 10/3/07, Karina Pereyra <[EMAIL PROTECTED]> wrote:
>
> I'm nearby of success.
> I have now my pojo services with this method, but i have the last problem.
> When i use Badgerfish response comes to client (response is difficult
> to parse in javascript),
> But when i use Mapped i have the next error:
>
> Mapped formatted JSON with namespaces are not supported in Axis2.
> Make sure that your request doesn't include namespaces or use the
> Badgerfish convention.
>
> How i could use mapped formatter in axis2 with pojo?
>
> public User UserInfo(String username ) throws AxisFault{
> MessageContext msgContext =
> org.apache.axis2.context.MessageContext.getCurrentMessageContext
> ().getCurrentMessageContext().getOperationContext().getMessageContext(
> WSDLConstants.MESSAGE_LABEL_OUT_VALUE
> );
> msgContext.setProperty(
> Constants.Configuration.MESSAGE_TYPE,"application/json");
> return (User)entries.get(username);
> }
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


Re: [AXIS2] Content-length not set in header

2007-10-03 Thread keith chapman
No it cannot be a bug. Cause the content-length header is set by
commonsHTTPTransportSender and this is a basic use case. So I dont think
that its broken.
Do you see the following header in the response?

Transfer-Encoding: chunked

Thanks,
Keith.

On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
>
>
> I've disabled chunking in the service and the content-length is still not
> included by Axis2 in the HTTP header.
> Could it be an Axis2 1.3 bug?
>
> Thanks,
> Pierre
>
>
> keith chapman wrote:
> >
> > yes it would.
> >
> > Thanks,
> > Keith.
> >
> > On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Thanks for the answer.
> >> Will Axis2 include the content-length value in the HTTP header if I
> >> disable
> >> the chunking by default? The client seems to be very dependant of this
> >> header value!
> >>
> >>
> >> Thanks in advance
> >>
> >> Pierre
> >>
> >>
> >>
> >> keith chapman wrote:
> >> >
> >> > AFAIK chunking is true by default (When HTTP 1.1 is used) and if you
> >> wanna
> >> > turn it off you have to specify it explicitly. Try this in your
> service
> >> >
> >> > MessageContext msgContext = org.apache.axis2.context
> >> >
> >>
> .MessageContext.getCurrentMessageContext().getOperationContext().getMessageContext(
> >> > WSDLConstants.MESSAGE_LABEL_OUT_VALUE );
> >> >
> >> > msgContext.setProperty(HTTPConstants.CHUNKED,"false");
> >> >
> >> > Thanks,
> >> > Keith.
> >> >
> >> > On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>
> >> >> Hello Axis users,
> >> >> I have a web service integrated with Axis2 that communicates with
> >> clients
> >> >> using gSOAP. The problem is that the client don't receive the
> complete
> >> >> XML
> >> >> response (sent in three TCP packets) when the WS is using Axis2
> while
> >> it
> >> >> is
> >> >> working when using Axis1.
> >> >> HTTP 1.1 is used. In axis2.xml, i've disable chunking:
> >> >>  >> >>
> >> >> class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
> >> >> HTTP/1.1
> >> >> 
> >> >>
> >> >> here is the HTTP header request of the client:
> >> >> POST /fsaDev/serverAuthent/SGPASupportWebService_0.2 HTTP/1.1
> >> >> Host: www.tests.cleyris.com:443
> >> >> User-Agent: gSOAP/2.7
> >> >> Content-Type: text/xml; charset=utf-8
> >> >> Content-Length: 1803
> >> >> Connection: close
> >> >> Accept-Encoding: gzip, deflate
> >> >> SOAPAction: "productList"
> >> >>
> >> >> The HTTP header of the response when using Axis2 doesn't contain the
> >> >> content-lenght field and is not using HTTP chucking:
> >> >> HTTP/1.1 200 OK
> >> >> Date: Wed, 03 Oct 2007 08:48:58 GMT
> >> >> Server: Apache/2.0.53 (Fedora)
> >> >> Set-Cookie: JSESSIONID=OdoS96XVEDu8V5P6L0hKSAt:-1; Path=/
> >> >> Expires: Thu, 01 Dec 1994 16:00:00 GMT
> >> >> Cache-Control: no-cache="set-cookie, set-cookie2"
> >> >> Content-Type: text/xml; charset=utf-8
> >> >> Content-Language: fr-FR
> >> >> Connection: close
> >> >>
> >> >> The content-length field is set when using Axis1:
> >> >> HTTP/1.1 200 OK
> >> >> Date: Thu, 27 Sep 2007 17:05:41 GMT
> >> >> Server: IBM_HTTP_Server
> >> >> Content-Length: 19181
> >> >> Set-Cookie: JSESSIONID=MFbDWxjMj23LS6_ufCPTglH:-1; Path=/
> >> >> Expires: Thu, 01 Dec 1994 16:00:00 GMT
> >> >> Cache-Control: no-cache="set-cookie, set-cookie2"
> >> >> Content-Type: text/xml; charset=utf-8
> >> >> Content-Language: fr-FR
> >> >> Connection: close
> >> >>
> >> >> Is there a way to set the content length field? I'm not a HTTP
> expert,
> >> >> does
> >> >> anybody see something strange?
> >> >>
> >> >> Thanks in advance
> >> >>
> >> >> Pierre
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13016314
> >> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >>
> -
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > Keith Chapman
> >> > WSO2 Inc.
> >> > Oxygen for Web Services Developers.
> >> > http://wso2.org/
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13023058
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Keith Chapman
> > WSO2 Inc.
> > Oxygen for Web Services Developers.
> > http://wso2.org/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13023728
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAI

Re: [AXIS2] Content-length not set in header

2007-10-03 Thread FFF7878

I've disabled chunking in the service and the content-length is still not
included by Axis2 in the HTTP header.
Could it be an Axis2 1.3 bug?

Thanks,
Pierre


keith chapman wrote:
> 
> yes it would.
> 
> Thanks,
> Keith.
> 
> On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
>>
>>
>> Thanks for the answer.
>> Will Axis2 include the content-length value in the HTTP header if I
>> disable
>> the chunking by default? The client seems to be very dependant of this
>> header value!
>>
>>
>> Thanks in advance
>>
>> Pierre
>>
>>
>>
>> keith chapman wrote:
>> >
>> > AFAIK chunking is true by default (When HTTP 1.1 is used) and if you
>> wanna
>> > turn it off you have to specify it explicitly. Try this in your service
>> >
>> > MessageContext msgContext = org.apache.axis2.context
>> >
>> .MessageContext.getCurrentMessageContext().getOperationContext().getMessageContext(
>> > WSDLConstants.MESSAGE_LABEL_OUT_VALUE );
>> >
>> > msgContext.setProperty(HTTPConstants.CHUNKED,"false");
>> >
>> > Thanks,
>> > Keith.
>> >
>> > On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hello Axis users,
>> >> I have a web service integrated with Axis2 that communicates with
>> clients
>> >> using gSOAP. The problem is that the client don't receive the complete
>> >> XML
>> >> response (sent in three TCP packets) when the WS is using Axis2 while
>> it
>> >> is
>> >> working when using Axis1.
>> >> HTTP 1.1 is used. In axis2.xml, i've disable chunking:
>> >> > >>
>> >> class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>> >> HTTP/1.1
>> >> 
>> >>
>> >> here is the HTTP header request of the client:
>> >> POST /fsaDev/serverAuthent/SGPASupportWebService_0.2 HTTP/1.1
>> >> Host: www.tests.cleyris.com:443
>> >> User-Agent: gSOAP/2.7
>> >> Content-Type: text/xml; charset=utf-8
>> >> Content-Length: 1803
>> >> Connection: close
>> >> Accept-Encoding: gzip, deflate
>> >> SOAPAction: "productList"
>> >>
>> >> The HTTP header of the response when using Axis2 doesn't contain the
>> >> content-lenght field and is not using HTTP chucking:
>> >> HTTP/1.1 200 OK
>> >> Date: Wed, 03 Oct 2007 08:48:58 GMT
>> >> Server: Apache/2.0.53 (Fedora)
>> >> Set-Cookie: JSESSIONID=OdoS96XVEDu8V5P6L0hKSAt:-1; Path=/
>> >> Expires: Thu, 01 Dec 1994 16:00:00 GMT
>> >> Cache-Control: no-cache="set-cookie, set-cookie2"
>> >> Content-Type: text/xml; charset=utf-8
>> >> Content-Language: fr-FR
>> >> Connection: close
>> >>
>> >> The content-length field is set when using Axis1:
>> >> HTTP/1.1 200 OK
>> >> Date: Thu, 27 Sep 2007 17:05:41 GMT
>> >> Server: IBM_HTTP_Server
>> >> Content-Length: 19181
>> >> Set-Cookie: JSESSIONID=MFbDWxjMj23LS6_ufCPTglH:-1; Path=/
>> >> Expires: Thu, 01 Dec 1994 16:00:00 GMT
>> >> Cache-Control: no-cache="set-cookie, set-cookie2"
>> >> Content-Type: text/xml; charset=utf-8
>> >> Content-Language: fr-FR
>> >> Connection: close
>> >>
>> >> Is there a way to set the content length field? I'm not a HTTP expert,
>> >> does
>> >> anybody see something strange?
>> >>
>> >> Thanks in advance
>> >>
>> >> Pierre
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13016314
>> >> Sent from the Axis - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > Keith Chapman
>> > WSO2 Inc.
>> > Oxygen for Web Services Developers.
>> > http://wso2.org/
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13023058
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Keith Chapman
> WSO2 Inc.
> Oxygen for Web Services Developers.
> http://wso2.org/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13023728
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Problem with AXIS2 client against an XFire server

2007-10-03 Thread Patrick Houbaux
Thanks Paul and Keith! I was indeed passing the URL with ?wsdl ... my 
mistake ;)


Cheers,
Patrick.

Paul Fremantle wrote:

It seems maybe you are targeting the request against the WSDL url
http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl
not the SOAP URL
http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface

I tried building a simple client (ADB not XMLBeans)

wsdl2java.bat -uri
http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl
-uw

I set it to go through a local TCPMON running as a proxy on port 
so I could see the XML in/out (you can comment that out if you like).

I didn't get a success --- because I have no clue what parameters to
send in. I got a fault back "empty string".

Here is the client

package defaultnamespace;

import java.rmi.RemoteException;
import org.apache.axis2.transport.http.HTTPConstants;
import org.apache.axis2.transport.http.HttpTransportProperties.ProxyProperties;
import 
defaultnamespace.Update_BeamInterfaceInterfaceStub.ResultUpdate_BeamInterface;

public class Main {
public static void main(String[] args) throws RemoteException {

Update_BeamInterfaceInterfaceStub stub = new
Update_BeamInterfaceInterfaceStub();
ProxyProperties pp = new ProxyProperties();
pp.setProxyName("localhost");
pp.setProxyPort();


stub._getServiceClient().getOptions().setProperty(HTTPConstants.PROXY, pp);
ResultUpdate_BeamInterface result = stub.executeWorkflow("a", "b", 
"c", 30.1);
System.out.println(result.getMass());

}
}

Regards,

Paul

On 10/3/07, Patrick Houbaux <[EMAIL PROTECTED]> wrote:
  

Hi all,

I have generated a client stub using WSDL2Java using XMLBeans against
the following WSDL apparently created with XFire:
http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl

When I invoke the only method from this webservice with the AXIS2
generated stub I'm getting the following exception:

org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope , but found definitions
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:89)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:326)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at
defaultnamespace.Update_BeamInterfaceInterfaceStub.executeWorkflow(Update_BeamInterfaceInterfaceStub.java:144)
at com.eurostep.test.TestFiperUB.main(TestFiperUB.java:45)
Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
must contain the local name, Envelope , but found definitions
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:219)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:177)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:163)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:161)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:110)
at
org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:53)
at
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:160)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:87)
... 6 more

What does it mean?
Are AXIS2 and XFire compatible?

To me it seems the XFire server doesn't return a correct SOAP message.
Am I right?

Thanks for any help.

Cheers,
Patrick.

This message contains information that may be privileged or confidential and is 
the property of Eurostep Group. It is intended only for the person to whom it 
is addressed. If you are not the intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message in error, please notify the sender 
immediately and delete all copies of this message.


-
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] Content-length not set in header

2007-10-03 Thread keith chapman
yes it would.

Thanks,
Keith.

On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
>
>
> Thanks for the answer.
> Will Axis2 include the content-length value in the HTTP header if I
> disable
> the chunking by default? The client seems to be very dependant of this
> header value!
>
>
> Thanks in advance
>
> Pierre
>
>
>
> keith chapman wrote:
> >
> > AFAIK chunking is true by default (When HTTP 1.1 is used) and if you
> wanna
> > turn it off you have to specify it explicitly. Try this in your service
> >
> > MessageContext msgContext = org.apache.axis2.context
> >
> .MessageContext.getCurrentMessageContext().getOperationContext().getMessageContext(
> > WSDLConstants.MESSAGE_LABEL_OUT_VALUE );
> >
> > msgContext.setProperty(HTTPConstants.CHUNKED,"false");
> >
> > Thanks,
> > Keith.
> >
> > On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hello Axis users,
> >> I have a web service integrated with Axis2 that communicates with
> clients
> >> using gSOAP. The problem is that the client don't receive the complete
> >> XML
> >> response (sent in three TCP packets) when the WS is using Axis2 while
> it
> >> is
> >> working when using Axis1.
> >> HTTP 1.1 is used. In axis2.xml, i've disable chunking:
> >>  >>
> >> class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
> >> HTTP/1.1
> >> 
> >>
> >> here is the HTTP header request of the client:
> >> POST /fsaDev/serverAuthent/SGPASupportWebService_0.2 HTTP/1.1
> >> Host: www.tests.cleyris.com:443
> >> User-Agent: gSOAP/2.7
> >> Content-Type: text/xml; charset=utf-8
> >> Content-Length: 1803
> >> Connection: close
> >> Accept-Encoding: gzip, deflate
> >> SOAPAction: "productList"
> >>
> >> The HTTP header of the response when using Axis2 doesn't contain the
> >> content-lenght field and is not using HTTP chucking:
> >> HTTP/1.1 200 OK
> >> Date: Wed, 03 Oct 2007 08:48:58 GMT
> >> Server: Apache/2.0.53 (Fedora)
> >> Set-Cookie: JSESSIONID=OdoS96XVEDu8V5P6L0hKSAt:-1; Path=/
> >> Expires: Thu, 01 Dec 1994 16:00:00 GMT
> >> Cache-Control: no-cache="set-cookie, set-cookie2"
> >> Content-Type: text/xml; charset=utf-8
> >> Content-Language: fr-FR
> >> Connection: close
> >>
> >> The content-length field is set when using Axis1:
> >> HTTP/1.1 200 OK
> >> Date: Thu, 27 Sep 2007 17:05:41 GMT
> >> Server: IBM_HTTP_Server
> >> Content-Length: 19181
> >> Set-Cookie: JSESSIONID=MFbDWxjMj23LS6_ufCPTglH:-1; Path=/
> >> Expires: Thu, 01 Dec 1994 16:00:00 GMT
> >> Cache-Control: no-cache="set-cookie, set-cookie2"
> >> Content-Type: text/xml; charset=utf-8
> >> Content-Language: fr-FR
> >> Connection: close
> >>
> >> Is there a way to set the content length field? I'm not a HTTP expert,
> >> does
> >> anybody see something strange?
> >>
> >> Thanks in advance
> >>
> >> Pierre
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13016314
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Keith Chapman
> > WSO2 Inc.
> > Oxygen for Web Services Developers.
> > http://wso2.org/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13023058
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


Re: [AXIS2] Content-length not set in header

2007-10-03 Thread FFF7878

Thanks for the answer.
Will Axis2 include the content-length value in the HTTP header if I disable
the chunking by default? The client seems to be very dependant of this
header value!


Thanks in advance

Pierre



keith chapman wrote:
> 
> AFAIK chunking is true by default (When HTTP 1.1 is used) and if you wanna
> turn it off you have to specify it explicitly. Try this in your service
> 
> MessageContext msgContext = org.apache.axis2.context
> .MessageContext.getCurrentMessageContext().getOperationContext().getMessageContext(
> WSDLConstants.MESSAGE_LABEL_OUT_VALUE );
> 
> msgContext.setProperty(HTTPConstants.CHUNKED,"false");
> 
> Thanks,
> Keith.
> 
> On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello Axis users,
>> I have a web service integrated with Axis2 that communicates with clients
>> using gSOAP. The problem is that the client don't receive the complete
>> XML
>> response (sent in three TCP packets) when the WS is using Axis2 while it
>> is
>> working when using Axis1.
>> HTTP 1.1 is used. In axis2.xml, i've disable chunking:
>> >
>> class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>> HTTP/1.1
>> 
>>
>> here is the HTTP header request of the client:
>> POST /fsaDev/serverAuthent/SGPASupportWebService_0.2 HTTP/1.1
>> Host: www.tests.cleyris.com:443
>> User-Agent: gSOAP/2.7
>> Content-Type: text/xml; charset=utf-8
>> Content-Length: 1803
>> Connection: close
>> Accept-Encoding: gzip, deflate
>> SOAPAction: "productList"
>>
>> The HTTP header of the response when using Axis2 doesn't contain the
>> content-lenght field and is not using HTTP chucking:
>> HTTP/1.1 200 OK
>> Date: Wed, 03 Oct 2007 08:48:58 GMT
>> Server: Apache/2.0.53 (Fedora)
>> Set-Cookie: JSESSIONID=OdoS96XVEDu8V5P6L0hKSAt:-1; Path=/
>> Expires: Thu, 01 Dec 1994 16:00:00 GMT
>> Cache-Control: no-cache="set-cookie, set-cookie2"
>> Content-Type: text/xml; charset=utf-8
>> Content-Language: fr-FR
>> Connection: close
>>
>> The content-length field is set when using Axis1:
>> HTTP/1.1 200 OK
>> Date: Thu, 27 Sep 2007 17:05:41 GMT
>> Server: IBM_HTTP_Server
>> Content-Length: 19181
>> Set-Cookie: JSESSIONID=MFbDWxjMj23LS6_ufCPTglH:-1; Path=/
>> Expires: Thu, 01 Dec 1994 16:00:00 GMT
>> Cache-Control: no-cache="set-cookie, set-cookie2"
>> Content-Type: text/xml; charset=utf-8
>> Content-Language: fr-FR
>> Connection: close
>>
>> Is there a way to set the content length field? I'm not a HTTP expert,
>> does
>> anybody see something strange?
>>
>> Thanks in advance
>>
>> Pierre
>> --
>> View this message in context:
>> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13016314
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Keith Chapman
> WSO2 Inc.
> Oxygen for Web Services Developers.
> http://wso2.org/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13023058
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Problem with AXIS2 client against an XFire server

2007-10-03 Thread Paul Fremantle
It seems maybe you are targeting the request against the WSDL url
http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl
not the SOAP URL
http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface

I tried building a simple client (ADB not XMLBeans)

wsdl2java.bat -uri
http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl
-uw

I set it to go through a local TCPMON running as a proxy on port 
so I could see the XML in/out (you can comment that out if you like).

I didn't get a success --- because I have no clue what parameters to
send in. I got a fault back "empty string".

Here is the client

package defaultnamespace;

import java.rmi.RemoteException;
import org.apache.axis2.transport.http.HTTPConstants;
import org.apache.axis2.transport.http.HttpTransportProperties.ProxyProperties;
import 
defaultnamespace.Update_BeamInterfaceInterfaceStub.ResultUpdate_BeamInterface;

public class Main {
public static void main(String[] args) throws RemoteException {

Update_BeamInterfaceInterfaceStub stub = new
Update_BeamInterfaceInterfaceStub();
ProxyProperties pp = new ProxyProperties();
pp.setProxyName("localhost");
pp.setProxyPort();


stub._getServiceClient().getOptions().setProperty(HTTPConstants.PROXY, pp);
ResultUpdate_BeamInterface result = stub.executeWorkflow("a", 
"b", "c", 30.1);
System.out.println(result.getMass());

}
}

Regards,

Paul

On 10/3/07, Patrick Houbaux <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have generated a client stub using WSDL2Java using XMLBeans against
> the following WSDL apparently created with XFire:
> http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl
>
> When I invoke the only method from this webservice with the AXIS2
> generated stub I'm getting the following exception:
>
> org.apache.axis2.AxisFault: First Element must contain the local name,
> Envelope , but found definitions
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:89)
> at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:326)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> at
> defaultnamespace.Update_BeamInterfaceInterfaceStub.executeWorkflow(Update_BeamInterfaceInterfaceStub.java:144)
> at com.eurostep.test.TestFiperUB.main(TestFiperUB.java:45)
> Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
> must contain the local name, Envelope , but found definitions
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:219)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:177)
> at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:163)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:161)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:110)
> at
> org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:53)
> at
> org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:160)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:87)
> ... 6 more
>
> What does it mean?
> Are AXIS2 and XFire compatible?
>
> To me it seems the XFire server doesn't return a correct SOAP message.
> Am I right?
>
> Thanks for any help.
>
> Cheers,
> Patrick.
>
> This message contains information that may be privileged or confidential and 
> is the property of Eurostep Group. It is intended only for the person to whom 
> it is addressed. If you are not the intended recipient, you are not 
> authorized to read, print, retain, copy, disseminate, distribute, or use this 
> message or any part thereof. If you receive this message in error, please 
> notify the sender immediately and delete all copies of this message.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

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

RE: Axis 1.4 configuration to use HTTP/1.1

2007-10-03 Thread Walker, Jeff
Hi,
So, I tried playing around with the http version. Theoretically, you
should be able to set a property on the binding (or at least, the Call
object) to switch between http 1.0 and http 1.1 This did not work. 

I could only manage to change to http 1.1 by editing the method
writeToSocket() in HTTPSender where it says:
String httpver =
msgContext.getStrProp(MessageContext.HTTP_TRANSPORT_VERSION);
if (null == httpver) {
httpver = HTTPConstants.HEADER_PROTOCOL_V10;
}

To
String httpver =
msgContext.getStrProp(MessageContext.HTTP_TRANSPORT_VERSION);
if (null == httpver) {
httpver = HTTPConstants.HEADER_PROTOCOL_V11;
}
Note how all I did was change the httpver variable.

The issue is, you then need to recompile Axis to pick up the change in
HTTPSender. To get around the fact we are supposed to use the binary
distribution and can't recompile Axis, I wrote my own class that extends
HTTPSender and then over rode the writeToSocket() method. I simply cut
and pasted that method in its entirety to the equivalent method in my
class and edited the line I mentioned above. The next step is to make
sure you pick up your sender and not the default HTTPSender. You can do
this by edting the client-config.wsdd file to pick up your class like
this:
Client-config.wsdd:
http://xml.apache.org/axis/wsdd/"; 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
  


Where my class is obviously called FMRHTTPSender.
After all that, it worked.

-
As a much easier alternative, CommonsHTTPSender by default uses http
1.1. So, simply create a client-config.wsdd file and pick up the Commons
sender. Something like this should work:

http://xml.apache.org/axis/wsdd/"; 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
  


The above commons sender also worked for me.
Cheers,
-jeff


-Original Message-
From: Shadab [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 03, 2007 3:37 AM
To: axis-user@ws.apache.org
Subject: Axis 1.4 configuration to use HTTP/1.1


Hi All,
 
Please let me know if there is any way to configure Axis1.4 such that it
uses HTTP/1.1 instead of HTTP/1.0
 
The request from the soapclient (implemented using service stub) lands
with
Axis/1.4 which in turn by default presumably uses HTTP/1.0.
 
Can't this be changed somehow using CommonsHTTPSender as pointed by mail
thread of Mario/Jeff "Axis 1.4 CommonsHTTPSender question" Date
Sep:20:2007
?
 
Mario/Jeff,
 Please let me know if you people have reached some solution and will
that
solution be helpful in the scenario I have told above...
 
Thanks,
Shadab
-- 
View this message in context:
http://www.nabble.com/Axis-1.4-configuration-to-use-HTTP-1.1-tf4560281.h
tml#a13014221
Sent from the Axis - User mailing list archive at Nabble.com.


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




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



Re: [AXIS2] Content-length not set in header

2007-10-03 Thread keith chapman
AFAIK chunking is true by default (When HTTP 1.1 is used) and if you wanna
turn it off you have to specify it explicitly. Try this in your service

MessageContext msgContext = org.apache.axis2.context
.MessageContext.getCurrentMessageContext().getOperationContext().getMessageContext(
WSDLConstants.MESSAGE_LABEL_OUT_VALUE );

msgContext.setProperty(HTTPConstants.CHUNKED,"false");

Thanks,
Keith.

On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote:
>
>
> Hello Axis users,
> I have a web service integrated with Axis2 that communicates with clients
> using gSOAP. The problem is that the client don't receive the complete XML
> response (sent in three TCP packets) when the WS is using Axis2 while it
> is
> working when using Axis1.
> HTTP 1.1 is used. In axis2.xml, i've disable chunking:
> 
> class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
> HTTP/1.1
> 
>
> here is the HTTP header request of the client:
> POST /fsaDev/serverAuthent/SGPASupportWebService_0.2 HTTP/1.1
> Host: www.tests.cleyris.com:443
> User-Agent: gSOAP/2.7
> Content-Type: text/xml; charset=utf-8
> Content-Length: 1803
> Connection: close
> Accept-Encoding: gzip, deflate
> SOAPAction: "productList"
>
> The HTTP header of the response when using Axis2 doesn't contain the
> content-lenght field and is not using HTTP chucking:
> HTTP/1.1 200 OK
> Date: Wed, 03 Oct 2007 08:48:58 GMT
> Server: Apache/2.0.53 (Fedora)
> Set-Cookie: JSESSIONID=OdoS96XVEDu8V5P6L0hKSAt:-1; Path=/
> Expires: Thu, 01 Dec 1994 16:00:00 GMT
> Cache-Control: no-cache="set-cookie, set-cookie2"
> Content-Type: text/xml; charset=utf-8
> Content-Language: fr-FR
> Connection: close
>
> The content-length field is set when using Axis1:
> HTTP/1.1 200 OK
> Date: Thu, 27 Sep 2007 17:05:41 GMT
> Server: IBM_HTTP_Server
> Content-Length: 19181
> Set-Cookie: JSESSIONID=MFbDWxjMj23LS6_ufCPTglH:-1; Path=/
> Expires: Thu, 01 Dec 1994 16:00:00 GMT
> Cache-Control: no-cache="set-cookie, set-cookie2"
> Content-Type: text/xml; charset=utf-8
> Content-Language: fr-FR
> Connection: close
>
> Is there a way to set the content length field? I'm not a HTTP expert,
> does
> anybody see something strange?
>
> Thanks in advance
>
> Pierre
> --
> View this message in context:
> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13016314
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


Re: Axis 2.0 Content-type

2007-10-03 Thread keith chapman
Well I cannot recollect it not working in 1.1.1, nevertheless 1.3 is much
stable that that. If i remember correct the builders and formatters concept
was introduced in 1.2 so I dont see it having an implication on 1.1.

Thanks,
Keith

On 10/3/07, Ganesan, Chandru <[EMAIL PROTECTED]> wrote:
>
>
> I can try this as last resort. Is there any patch for this in 1.1.1?
>
> Thanks
> Chandru Ganesan
>
>
>  --
> *From:* keith chapman [mailto:[EMAIL PROTECTED]
> *Sent:* Wednesday, October 03, 2007 10:29 AM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: Axis 2.0 Content-type
>
> Would it be possible for you the check this with the 1.3 release?
> Apparently its very stable (And i'm sure your scenario works perfectly on
> it).
>
> Thanks,
> Keith.
>
> On 10/3/07, Ganesan, Chandru <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi Keith
> >
> > Wonder if you had a chance to look at this.
> >
> > Thanks
> > Chandru Ganesan
> >
> >
> >  --
> > *From:* Ganesan, Chandru
> > *Sent:* Tuesday, October 02, 2007 1:11 PM
> > *To:* axis-user@ws.apache.org
> > *Subject:* RE: Axis 2.0 Content-type
> >
> >*-*  <
> > ns:getVersionResponse xmlns:ns="* http://axisversion.sample/xsd*";>
> >* *  *Hello I am Axis2 version service , My version is
> > 1.1.1*
> >  * * 
> >
> >
> > Thanks
> > Chandru Ganesan
> >
> >
> >  --
> > *From:* keith chapman [mailto:[EMAIL PROTECTED]
> > *Sent:* Tuesday, October 02, 2007 12:48 PM
> > *To:* axis-user@ws.apache.org
> > *Subject:* Re: Axis 2.0 Content-type
> >
> > This is strange cause Axis actually treated your request as SOAP 1.1cause 
> > the response itself is soap
> > 1.1 but with the wrong content-type header. May i know your axis2
> > version please?
> >
> > Thanks,
> > Keith.
> >
> > On 10/2/07, Ganesan, Chandru <[EMAIL PROTECTED]> wrote:
> > >
> > >  Here is the request/response with HTTP header. SOAP request was
> > > transmitted after removing the messageBuilders from axis2.xml and
> > > redeploying application. Please note that I've not included the complete
> > > response in this email
> > >
> > >
> > > Appreciate your help.
> > >
> > > Thanks
> > > Chandru
> > >
> > >
> > > REQUEST
> > >
> > > 
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.header - >> "POST 
> > > http://16.85.4.239:7001/axis2/rest/ProcessDocumentWebService/processRequest
> > > HTTP/1.1[\r][\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.header - >> "Content-Length: 840[\r][\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.header - >> "Content-Type: text/xml;
> > > charset="utf-8"[\r][\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.header - >> "SOAPAction: ""[\r][\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.header - >> "User-Agent: Jakarta
> > > Commons-HttpClient/2.0.1[\r][\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.header - >> "Host: 16.85.4.239:7001[\r][\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.header - >> "Proxy-Connection: Keep-Alive[\r][\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.header - >> "[\r][\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.content - >> "http://schemas.xmlsoap.org/soap/envelope/";  
> > > xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> > > " [\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.content - >> 
> > > "xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> > > >[\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.content - >> "[\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.content - >> "[\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.content - >> "[\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.content - >> "
> > > spml20admin[\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.content - >> " > > Type="wsse:PasswordText">PASSWORD[\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.content - >> "
> > > WScqanjCEAC4mQoBE07sAQ==[\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.content - >> "
> > > 2003-07-16T01:24:32Z [\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.content - >> "[\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > > httpclient.wire.content - >> "[\n]"
> > > 104658 DEBUG [ class ro.sync.ui.application.A.

Re: Problem with AXIS2 client against an XFire server

2007-10-03 Thread keith chapman
Hi Patrick,

Can you please check the EPR you send your request to, cause looking at ypur
exception it looks like XFire responded with the WSDL (Thats where the
definitions element came from instead of the SOAP envelop).

Thanks,
Keith.

On 10/3/07, Patrick Houbaux <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I have generated a client stub using WSDL2Java using XMLBeans against
> the following WSDL apparently created with XFire:
> http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl
>
> When I invoke the only method from this webservice with the AXIS2
> generated stub I'm getting the following exception:
>
> org.apache.axis2.AxisFault: First Element must contain the local name,
> Envelope , but found definitions
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> TransportUtils.java:89)
> at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> OutInAxisOperation.java:326)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:389)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> at
> defaultnamespace.Update_BeamInterfaceInterfaceStub.executeWorkflow
> (Update_BeamInterfaceInterfaceStub.java:144)
> at com.eurostep.test.TestFiperUB.main(TestFiperUB.java:45)
> Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
> must contain the local name, Envelope , but found definitions
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
> StAXSOAPModelBuilder.java:219)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
> StAXSOAPModelBuilder.java:177)
> at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java
> :163)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
> StAXSOAPModelBuilder.java:161)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(
> StAXSOAPModelBuilder.java:110)
> at
> org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:53)
> at
> org.apache.axis2.transport.TransportUtils.createDocumentElement(
> TransportUtils.java:160)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> TransportUtils.java:111)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> TransportUtils.java:87)
> ... 6 more
>
> What does it mean?
> Are AXIS2 and XFire compatible?
>
> To me it seems the XFire server doesn't return a correct SOAP message.
> Am I right?
>
> Thanks for any help.
>
> Cheers,
> Patrick.
>
> This message contains information that may be privileged or confidential
> and is the property of Eurostep Group. It is intended only for the person to
> whom it is addressed. If you are not the intended recipient, you are not
> authorized to read, print, retain, copy, disseminate, distribute, or use
> this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


RE: Axis 2.0 Content-type

2007-10-03 Thread Ganesan, Chandru
 
I can try this as last resort. Is there any patch for this in 1.1.1?

Thanks
Chandru Ganesan 

 




From: keith chapman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 03, 2007 10:29 AM
To: axis-user@ws.apache.org
Subject: Re: Axis 2.0 Content-type


Would it be possible for you the check this with the 1.3
release? Apparently its very stable (And i'm sure your scenario works
perfectly on it). 

Thanks,
Keith.


On 10/3/07, Ganesan, Chandru <[EMAIL PROTECTED]> wrote: 

 
Hi Keith
 
Wonder if you had a chance to look at this.

Thanks
Chandru Ganesan 

 




From: Ganesan, Chandru 
Sent: Tuesday, October 02, 2007 1:11 PM
To: axis-user@ws.apache.org
Subject: RE: Axis 2.0 Content-type




-

http://axisversion.sample/xsd
 ">
   Hello I am Axis2 version service ,
My version is 1.1.1 
  
 

Thanks
Chandru Ganesan 

 




From: keith chapman
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 02, 2007 12:48 PM
To: axis-user@ws.apache.org
Subject: Re: Axis 2.0 Content-type


This is strange cause Axis actually
treated your request as SOAP 1.1 cause the response itself is soap 1.1
but with the wrong content-type header. May i know your axis2 version
please?

Thanks,
Keith.


On 10/2/07, Ganesan, Chandru
<[EMAIL PROTECTED]> wrote: 

Here is the request/response with HTTP
header. SOAP request was transmitted after removing the messageBuilders
from axis2.xml and redeploying application. Please note that I've not
included the complete response in this email
 
 
Appreciate your help.
 
Thanks
Chandru
 
 
REQUEST



104658 DEBUG [ class
ro.sync.ui.application.A.J ] httpclient.wire.header - >> "POST
http://16.85.4.239:7001/axis2/rest/ProcessDocumentWebService/processRequ
est HTTP/1.1[\r][\n]"
104658 DEBUG [ class
ro.sync.ui.application.A.J ] httpclient.wire.header - >>
"Content-Length: 840[\r][\n]"
104658 DEBUG [ class
ro.sync.ui.application.A.J ] httpclient.wire.header - >> "Content-Type:
text/xml; charset="utf-8"[\r][\n]"
104658 DEBUG [ class
ro.sync.ui.application.A.J ] httpclient.wire.header - >> "SOAPAction:
""[\r][\n]"
104658 DEBUG [ class
ro.sync.ui.application.A.J ] httpclient.wire.header - >> "User-Agent:
Jakarta Commons-HttpClient/2.0.1[\r][\n]"
104658 DEBUG [ class
ro.sync.ui.application.A.J ] httpclient.wire.header - >> "Host:
16.85.4.239:7001[\r][\n]"
104658 DEBUG [ class
ro.sync.ui.application.A.J ] httpclient.wire.header - >>
"Proxy-Connection: Keep-Alive[\r][\n]"
104658 DEBUG [ class
ro.sync.ui.application.A.J ] httpclient.wire.header - >> "[\r][\n]"
104658 DEBUG [ class
ro.sync.ui.application.A.J ] httpclient.wire.content - >>
"http://schemas.xmlsoap.org/soap/envelope/";
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wsse
curity-secext-1.0.xsd " [\n]"
104658 DEBUG [ class
ro.sync.ui.application.A.J ] httpclient.wire.content - >> "xmlns:wsu="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utili
ty-1.0.xsd
 " >[\n]"
104658 DEBUG [ class
ro.sync.ui.application.A.J ] httpcli

Problem with AXIS2 client against an XFire server

2007-10-03 Thread Patrick Houbaux

Hi all,

I have generated a client stub using WSDL2Java using XMLBeans against 
the following WSDL apparently created with XFire:

http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl

When I invoke the only method from this webservice with the AXIS2 
generated stub I'm getting the following exception:


org.apache.axis2.AxisFault: First Element must contain the local name, 
Envelope , but found definitions

   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
   at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:89)
   at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:326)
   at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
   at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
   at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
   at 
defaultnamespace.Update_BeamInterfaceInterfaceStub.executeWorkflow(Update_BeamInterfaceInterfaceStub.java:144)

   at com.eurostep.test.TestFiperUB.main(TestFiperUB.java:45)
Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element 
must contain the local name, Envelope , but found definitions
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:219)
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:177)
   at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:163)
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:161)
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:110)
   at 
org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:53)
   at 
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:160)
   at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)
   at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:87)

   ... 6 more

What does it mean?
Are AXIS2 and XFire compatible?

To me it seems the XFire server doesn't return a correct SOAP message. 
Am I right?


Thanks for any help.

Cheers,
Patrick.

This message contains information that may be privileged or confidential and is 
the property of Eurostep Group. It is intended only for the person to whom it 
is addressed. If you are not the intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message in error, please notify the sender 
immediately and delete all copies of this message.


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



[AXIS2] ADBException: Unexpected subelement contentType

2007-10-03 Thread Etienne Giraudy
Hi,

I'm working on migrating a web service client from axis 1.4 to axis2 1.3.

With axis2 I have an issue with a complex type containing a
base64Binary element:











When the client fails with the following exception;

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement contentType
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at com.foo.MyServiceStub.fromOM(KnowledgeBaseServiceStub.java:5805)

For testing, we did removed the base64binary element from the response
and the exception disappeared.


Is there a known issue in axis2 1.3 with that kind of complex types?


The client is generated from the wsdl with:
  
 
 
 
 
 
 
  


Thanks in advance
Etienne

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



Re: Axis 2.0 Content-type

2007-10-03 Thread keith chapman
Would it be possible for you the check this with the 1.3 release? Apparently
its very stable (And i'm sure your scenario works perfectly on it).

Thanks,
Keith.

On 10/3/07, Ganesan, Chandru <[EMAIL PROTECTED]> wrote:
>
>
> Hi Keith
>
> Wonder if you had a chance to look at this.
>
> Thanks
> Chandru Ganesan
>
>
>  --
> *From:* Ganesan, Chandru
> *Sent:* Tuesday, October 02, 2007 1:11 PM
> *To:* axis-user@ws.apache.org
> *Subject:* RE: Axis 2.0 Content-type
>
>   *-*  <
> ns:getVersionResponse xmlns:ns="*http://axisversion.sample/xsd*";>
>  * * *Hello I am Axis2 version service , My version is 1.1.1* ns:return>
> * * 
>
>
> Thanks
> Chandru Ganesan
>
>
>  --
> *From:* keith chapman [mailto:[EMAIL PROTECTED]
> *Sent:* Tuesday, October 02, 2007 12:48 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: Axis 2.0 Content-type
>
> This is strange cause Axis actually treated your request as SOAP 1.1 cause
> the response itself is soap 1.1 but with the wrong content-type header.
> May i know your axis2 version please?
>
> Thanks,
> Keith.
>
> On 10/2/07, Ganesan, Chandru <[EMAIL PROTECTED]> wrote:
> >
> >  Here is the request/response with HTTP header. SOAP request was
> > transmitted after removing the messageBuilders from axis2.xml and
> > redeploying application. Please note that I've not included the complete
> > response in this email
> >
> >
> > Appreciate your help.
> >
> > Thanks
> > Chandru
> >
> >
> > REQUEST
> >
> > 
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ] httpclient.wire.header- 
> > >> "POST
> > http://16.85.4.239:7001/axis2/rest/ProcessDocumentWebService/processRequestHTTP/1.1[\r][\n]";
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ] httpclient.wire.header- 
> > >> "Content-Length: 840[\r][\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ] httpclient.wire.header- 
> > >> "Content-Type: text/xml; charset="utf-8"[\r][\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ] httpclient.wire.header- 
> > >> "SOAPAction: ""[\r][\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ] httpclient.wire.header- 
> > >> "User-Agent: Jakarta Commons-HttpClient/2.0.1[\r][\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ] httpclient.wire.header- 
> > >> "Host:
> > 16.85.4.239:7001[\r][\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ] httpclient.wire.header- 
> > >> "Proxy-Connection: Keep-Alive[\r][\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ] httpclient.wire.header- 
> > >> "[\r][\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "http://schemas.xmlsoap.org/soap/envelope/";  
> > xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> > " [\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> 
> > "xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> > >[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "
> > spml20admin[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> " > Type="wsse:PasswordText">PASSWORD[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "
> > WScqanjCEAC4mQoBE07sAQ==[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "
> > 2003-07-16T01:24:32Z [\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "spml20[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> " > xmlns="urn:oasis:names:tc:SPML:2:0"/>[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > httpclient.wire.content - >> "[\n]"
> > 104658 DEBUG [ class ro.sync.ui.application.A.J ]
> > h

RE: Axis 2.0 Content-type

2007-10-03 Thread Ganesan, Chandru
 
Hi Keith
 
Wonder if you had a chance to look at this.

Thanks
Chandru Ganesan 

 




From: Ganesan, Chandru 
Sent: Tuesday, October 02, 2007 1:11 PM
To: axis-user@ws.apache.org
Subject: RE: Axis 2.0 Content-type



- 
http://axisversion.sample/xsd";>
  Hello I am Axis2 version service , My version is
1.1.1 
  
 

Thanks
Chandru Ganesan 

 




From: keith chapman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 02, 2007 12:48 PM
To: axis-user@ws.apache.org
Subject: Re: Axis 2.0 Content-type


This is strange cause Axis actually treated your request
as SOAP 1.1 cause the response itself is soap 1.1 but with the wrong
content-type header. May i know your axis2 version please?

Thanks,
Keith.


On 10/2/07, Ganesan, Chandru <[EMAIL PROTECTED]>
wrote: 

Here is the request/response with HTTP header.
SOAP request was transmitted after removing the messageBuilders from
axis2.xml and redeploying application. Please note that I've not
included the complete response in this email
 
 
Appreciate your help.
 
Thanks
Chandru
 
 
REQUEST



104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.header - >> "POST
http://16.85.4.239:7001/axis2/rest/ProcessDocumentWebService/processRequ
est HTTP/1.1[\r][\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.header - >> "Content-Length: 840[\r][\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.header - >> "Content-Type: text/xml;
charset="utf-8"[\r][\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.header - >> "SOAPAction: ""[\r][\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.header - >> "User-Agent: Jakarta
Commons-HttpClient/2.0.1[\r][\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.header - >> "Host: 16.85.4.239:7001[\r][\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.header - >> "Proxy-Connection: Keep-Alive[\r][\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.header - >> "[\r][\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "http://schemas.xmlsoap.org/soap/envelope/";
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wsse
curity-secext-1.0.xsd " [\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "xmlns:wsu="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utili
ty-1.0.xsd
 " >[\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "[\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "[\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "[\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "
spml20admin[\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "PASSWORD[\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "
WScqanjCEAC4mQoBE07sAQ==[\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "
2003-07-16T01:24:32Z [\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "[\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "[\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "[\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "[\n]"
104658 DEBUG [ class ro.sync.ui.application.A.J
] httpclient.wire.content - >> "spml20[\n]"
104658 DEBUG [

Re: Issue with Axis2 MTOM client

2007-10-03 Thread Yogesh . Dhake
Hi Mr Thilina

Thanks  for answering query.

My Issue got resolved when I upgraded to axis2 1.3  . I was using 
axis2.1.1 on tomcat.

Summary.

1) Axis2  can work as  MTOM client or server.
2) For memory optimization we can do file caching on both sides.

Thanks again.

regards
Yogesh Dhake 






"Thilina Gunarathne" <[EMAIL PROTECTED]> 
10/02/2007 01:23 AM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Re: Issue with Axis2 MTOM client






Hi,
> When I use AXIS2   generated stub  as clients to MTOM service  I see my 
.att
> file grow indefinitely with  following character get added.
> ÿÿÿ. And grow continuously till run out of space.
Which Axis2 version are you using... There was an issue where Axis2
did not wrote the terminating MIME boundary, when deployed in tomcat
resulting in the above indefinite file. IIRC we fixed this in Axis2
1.2..
>
> Does Axis2 support as MTOM client. ?
Yes.
>  I don't suspect my WSDL element
post your WSDL If possible..
> definition has problem as same element works fine when I do reverse
> operation i.e. put file.
>
> I don't  see any MTOM  sample which receives MTOM attachment using axis2 
.
> Is this a bug or axis2 does not support file caching as client.
In the above you have mentioned that a temporary .att file is
generated.. That means file caching is working...

thanks,
Thilina

>
> I am enabling MTOM on client side by following statements.
>
> EMISEPServiceStub serviceStub = new
> EMISEPServiceStub();
>
> // Enable MTOM in the client side
>
> serviceStub._getServiceClient().getOptions().setProperty(
>
> Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
> // Increase the time out when sending large
> attachments
>
> serviceStub._getServiceClient().getOptions().setTimeOutInMilliSeconds(
> 1);
>
> 
serviceStub._getServiceClient().getOptions().setProperty(Constants.Configuration.CACHE_ATTACHMENTS,
> Constants.VALUE_TRUE);
>
>
> 
serviceStub._getServiceClient().getOptions().setProperty(Constants.Configuration.ATTACHMENT_TEMP_DIR,
>  "C:\\TEMP\\cache");
>
>
> 
serviceStub._getServiceClient().getOptions().setProperty(Constants.Configuration.FILE_SIZE_THRESHOLD,
>  "4000");
>
>
>
> Please let me know if you need more details for analysing this.?
>
>
> Thanks to all
>
> regards
> Yogesh Dhake
>
> 
==
>  This transmittal and any attachments may contain confidential, 
privileged
> or sensitive information and is solely for the use of the intended
> recipient. If you are not the intended recipient, you are hereby 
notified
> that you have received this transmittal and any attachments in error and 
any
> review, dissemination, distribution or copying thereof is strictly
> prohibited. If you have received this transmittal and any attachments in
> error please notify the sender and immediately destroy the message and 
all
> its attachments. Any opinions herein expressed may be those of the 
author
> and not necessarily of Mizuho Corporate Bank, Ltd., Mizuho Corporate 
Bank
> (USA), Mizuho Securities USA Inc. or any other affiliates of Mizuho
> Financial Group ("Mizuho"). Mizuho accepts no responsibility for the
> accuracy or completeness of any information herein contained.
>  E-Mail received by or sent from officer of Mizuho Securities USA Inc.
> (which is a registered U.S. broker-dealer and the entity through which
> Mizuho generally conducts its investment banking, capital markets, and
> securities business in the United States) is electronically archived and
> recorded and is subject to review and monitoring by and/or disclosure to
> persons other than the recipient, including (but not limited to) Mizuho
> Securities USA Inc. supervisory personnel. Such communications may be
> produced to regulatory authorities or others with legal rights to the
> information.


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

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




Re: AXISCLASSPATH

2007-10-03 Thread Upul Godage
Hi,

You are missing package apache.

java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient

If you still get the class not found error for AdminClient.  Check whether
AXISCLASSPATH has all axis/lib jars. e.g. echo %AXISCLASSPATH%

Upul

On 10/3/07, zhshqzyc <[EMAIL PROTECTED]> wrote:
>
>
> What is wrong when I run the admin client.
> [CODE]
>
> C:\Documents and Settings\Owner>cd c:\axis\samples\stock
>
> C:\axis\samples\stock>java -cp %AXISCLASSPATH% org.axis.client.AdminClient
> -lhtt
> p://localhost:8080/axis/services/AdminService deploy.wsdd
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/axis/client/Admin
> Client
>
> C:\axis\samples\stock>
> [/CODE]
> --
> View this message in context:
> http://www.nabble.com/AXISCLASSPATH-tf4558968.html#a13016858
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Autogenerated code format - configuration for PrettyPrint (Jalopy)

2007-10-03 Thread James Maes
Would the developers list be a better place for this question?

 

James Maes

Software Architect

Materialogic

PH: 800-333-7144

PH: 314-997-4342 Ext. 3422

FX: 314-997-7814

 

From: James Maes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 02, 2007 4:00 PM
To: axis-user@ws.apache.org
Subject: Autogenerated code format - configuration for PrettyPrint (Jalopy)

 

All, 

We are using the wsdl2java tools to create our client side
soap handlers and unit tests and It's working great.  The only issue I am
having is with the format of the code that it is generating.  We have to
meet a different format code standard where I work and if possible I would
like to have this tool write it's code in that format. 

 

I have already modified all the xsl templates in the codegen package to fit
our commenting standards, etc but now I need to configure the post process
PrettyPrint formatter different. 

 

I've tracked all the code I could for this (from
JavaPrettyPrinterExtension.java to org.apache.axis2.util.PrettyPrint).  I
can't find or figure out how the configuration for Jalopy is being set. 

 

Can anyone point me in the right direction?

 

Thanks

-JM



how many service instances are created in request scope?

2007-10-03 Thread Michele Mazzucco
Hi all,

I know that if a service is deployed in application scope a new object
instance will be created every time the service is called [1]. Others,
instead, create a single instance [2]. 
Isn't it better to use the second approach, especially if the service is
heavily used (if not, it could be possible to "destroy" the object after
a certain time)?

Thanks,
Michele


[1] http://www.developer.com/java/web/article.php/3620661
[2]
http://weblogs.java.net/blog/kohsuke/archive/2006/10/bringing_state.html


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



Cast Problem Example Axis2SampleDocLit

2007-10-03 Thread Johnson, Chris
All -

I'm in the process of becoming familiar with Axis2(v1.3) as I have used
Axis1 in the past.

I'm running through the example found at the following location:

http://ws.apache.org/axis2/1_2/adv-userguide.html

After following all the steps as described and deploying the service
with ease I get the following error when running the client...

org.apache.axis2.AxisFault:
org.apache.xmlbeans.impl.values.XmlComplexContentImpl cannot be cast to
org.apache.axis2.userguide.xsd.EchoStringParamDocument
at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
:486)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
InAxisOperation.java:343)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:389)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
at
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoString(Axis2
SampleDocLitServiceStub.java:162)
at Client.main(Client.java:15)

Any suggestions how to fix this would be great.

Thanks in advance.

..Chris

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



Re: [Axis2] WS-Policy

2007-10-03 Thread Sanka Samaranayke


Hi Jim,

I would be great if you can post the WSDL which you used to generate the stub 
so that we see whether we can reproduce the problem.


Thanks,
Sanka


Jim Collins wrote:

Hi Paul/Sanka,

Thanks for the reply and apologies for taking so long in getting back 
to you.
  
I have looked at the Rampart examples and they have a separate policy. 
The policy that I use is part of the WSDL.


I can see in the generated stub that the policy is being set e.g.

(__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE).getPolicyInclude().setPolicy(getPolicy("xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2004/09/policy\";>...")); 



After generating the Stub I then installed Rampart and was then 
getting errors when I tried to generate the stub again. I got a 
CodeGenerationException


java.lang.RuntimeException: can't serialize the policy ..

I have used Axis1 in the past but I am new to Axis2 and not sure how I 
use the rampart module for just the client  and specify the policy if 
it is part of an existing WSDL.


Thanks

Jim


- Original Message - From: "Paul Fremantle" <[EMAIL PROTECTED]>
To: 
Sent: Friday, September 28, 2007 8:00 AM
Subject: Re: [Axis2] WS-Policy



Probably the best thing would be to look at some of the Rampart
samples that are driven by policy. If you can give us some idea of the
policy that is being used it might help.

Basically, each public policy provided by the remote service requires
some config locally. For example, if the policy says "encrypt" then
you need to config the keystore. If the policy says
"username/password" you need to let rampart have those.

Now here's the freaky bit. Rampart also uses policy to *configure* the
local items. So you need to give Rampart the local policy as well as
the remote policy which is already burnt into your stub. Both will be
merged to make a master policy which will make Rampart do the right
thing.

Paul

On 9/28/07, Sanka Samaranayke <[EMAIL PROTECTED]> wrote:


Hi Jim,

1) If you want to get WS-Security policy being supported in the 
stub, you need to instantiate the stub by giving a 
ConfigurationContext obj

which points a repository which contains a rampart mar.

2) Then you need to attach rampart specific policies to the 
AxisService obj which is used internally by the stub. You can do 
that as follows.


ServiceClient _serviceClient = stub._getServiceClient();
AxisService service = _serviceClient.getAxisService();
service.getPolicyInclude().addPolicy(policy);

Here the policy object should contain configuration policies of 
rampart which are needed to provides security requirements specified by

policy expressions in the service wsdl document.

For example, if the service requires username token then you need to 
attach a policy expression with rampart assertions which specify

Password callback class.



HTH,
Sanka

1) First you need to instantiate the stub giving a configuration 
context


Jim Collins wrote:
> Hi,
>
> I am trying to write a Web Service client that accesses a Service 
that
> uses WS-Policy. The WSDL is correctly configured with the policy 
and I

> was able to generate the client stub and I can see from the source
> that it is adding the policy.
>
> What I am not sure is what I need to do when calling methods on 
the on
> the client stub to make sure that it carries out what is in the 
policy

> e.g.  sending a token.
>
> Any help would be appreciated.
>
> Thanks
>
> Jim


--
Sanka Samaranayake
WSO2 Inc.

http://www.bloglines.com/blog/sanka
http://www.wso2.org/


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





--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[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]





--
Sanka Samaranayake
WSO2 Inc.

http://www.bloglines.com/blog/sanka
http://www.wso2.org/


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



RE: *SPAM*: 06.70/4.0 - Re: *SPAM*: 08.50/4.0 - Re: Problem building available services

2007-10-03 Thread Ana Belén Antón Gironés
Hi Suran!
 
>Obviously, as members of the Axis2 dev community, we wouldn't be suggesting
that you move to another framework, although that is up to you. :-)
 
No, of course. I think I am mixing basic concepts. I am going to try
understand the basis first and then I will ask you again. Thanks.
 
However, then, is not there way for retrieve a list from a service web, is
there? but general objects can be retrieved (i.e Myservice class can have a
method that returns a Class32, for example), is this true? 
 
Thank you very much and sorry for my ignorance :-(
 
Ana Belen. 

  _  

De: Suran Jayathilaka [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 03 de octubre de 2007 13:05
Para: axis-user@ws.apache.org
Asunto: *SPAM*: 06.70/4.0 - Re: *SPAM*: 08.50/4.0 - Re: Problem building
available services


Ana Belén Antón Gironés wrote: 

Hi!
 
Thank you very much for your help, Suran and Lahiru. 
 
>First of all, I see that your class uses generics. Please note that Axis2
only supports simple-types, arrays and beans. Since Axis2 is JDK1.4
compliant, generics are not >supported.
>So what you can do is replace your genericised List arguments with arrays.
>e.g.: replace List with Class32[].
 
 
I think I am more confused than I thought :-(. Because of your explanation I
deduce that I should use another web service framework, maybe Apache
Tuscany. Is this right?
 
>Your service folder structure looks ok to me. When the eclipse plugin has
created the .aar file, check whether it contains the intended structure.
>(rename the .aar file to .zip and you'll be able to deal with it using any
zip tool, or extract the .aar file somewhere and take a look at the
extracted structure, or do  "jar tvf" on the archive).
 
Regarding the generation of .aar files. I checked the structure generated
before and I thought that it was wrong, because where is the
"MyService.class"??. The generated structure is: 

-MyService.aar
-configuration
- . 
-lib (the libraries that I described in my latter mail)
-META-INF
-MANIFEST.MF
-services.xml (the same xml that I described in my latter mail)
 -plugins

Thanks, 
 
Ana.
 


Hi Ana,
Obviously, as members of the Axis2 dev community, we wouldn't be suggesting
that you move to another framework, although that is up to you. :-)

Might I ask what you rconfusion is in regards to our suggestions? In
removing generics?

Also, you can try creating the service archive manually, using the java jar
tool. Again, you are welcome to ask for any help in solving any problems
that may arise.

Cheers.
Suran





Re: AXISCLASSPATH

2007-10-03 Thread zhshqzyc

What is wrong when I run the admin client.
[CODE]

C:\Documents and Settings\Owner>cd c:\axis\samples\stock

C:\axis\samples\stock>java -cp %AXISCLASSPATH% org.axis.client.AdminClient
-lhtt
p://localhost:8080/axis/services/AdminService deploy.wsdd
Exception in thread "main" java.lang.NoClassDefFoundError:
org/axis/client/Admin
Client

C:\axis\samples\stock>
[/CODE]
-- 
View this message in context: 
http://www.nabble.com/AXISCLASSPATH-tf4558968.html#a13016858
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: *SPAM*: 08.50/4.0 - Re: Problem building available services

2007-10-03 Thread Suran Jayathilaka

Ana Belén Antón Gironés wrote:

Hi!
 
Thank you very much for your help, Suran and Lahiru.
 
>First of all, I see that your class uses generics. Please note that 
Axis2 only supports simple-types, arrays and beans. Since Axis2 is 
JDK1.4 compliant, generics are not >supported.

>So what you can do is replace your genericised List arguments with arrays.
>e.g.: replace List with Class32[].
 
 
I think I am more confused than I thought :-(. Because of your 
explanation I deduce that I should use another web service framework, 
maybe Apache Tuscany. Is this right?
 
>Your service folder structure looks ok to me. When the eclipse plugin 
has created the .aar file, check whether it contains the intended 
structure.
>(rename the .aar file to .zip and you'll be able to deal with it using 
any zip tool, or extract the .aar file somewhere and take a look at 
the extracted structure, or do  "jar tvf" on the archive).
 
Regarding the generation of .aar files. I checked the structure 
generated before and I thought that it was wrong, because where is the 
"MyService.class"??. The generated structure is:

-MyService.aar
-configuration
- . 
-lib (the libraries that I described in my latter mail)

-META-INF
-MANIFEST.MF
-services.xml (the same xml that I described in my latter mail)
 -plugins
   
Thanks,
 
Ana.
 


Hi Ana,
Obviously, as members of the Axis2 dev community, we wouldn't be 
suggesting that you move to another framework, although that is up to 
you. :-)


Might I ask what you rconfusion is in regards to our suggestions? In 
removing generics?


Also, you can try creating the service archive manually, using the java 
jar tool. Again, you are welcome to ask for any help in solving any 
problems that may arise.


Cheers.
Suran




[AXIS2] Content-length not set in header

2007-10-03 Thread FFF7878

Hello Axis users,
I have a web service integrated with Axis2 that communicates with clients
using gSOAP. The problem is that the client don't receive the complete XML
response (sent in three TCP packets) when the WS is using Axis2 while it is
working when using Axis1.
HTTP 1.1 is used. In axis2.xml, i've disable chunking:

HTTP/1.1


here is the HTTP header request of the client:
POST /fsaDev/serverAuthent/SGPASupportWebService_0.2 HTTP/1.1
Host: www.tests.cleyris.com:443
User-Agent: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Content-Length: 1803
Connection: close
Accept-Encoding: gzip, deflate
SOAPAction: "productList"

The HTTP header of the response when using Axis2 doesn't contain the
content-lenght field and is not using HTTP chucking:
HTTP/1.1 200 OK
Date: Wed, 03 Oct 2007 08:48:58 GMT
Server: Apache/2.0.53 (Fedora)
Set-Cookie: JSESSIONID=OdoS96XVEDu8V5P6L0hKSAt:-1; Path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Cache-Control: no-cache="set-cookie, set-cookie2"
Content-Type: text/xml; charset=utf-8
Content-Language: fr-FR
Connection: close

The content-length field is set when using Axis1:
HTTP/1.1 200 OK
Date: Thu, 27 Sep 2007 17:05:41 GMT
Server: IBM_HTTP_Server
Content-Length: 19181
Set-Cookie: JSESSIONID=MFbDWxjMj23LS6_ufCPTglH:-1; Path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Cache-Control: no-cache="set-cookie, set-cookie2"
Content-Type: text/xml; charset=utf-8
Content-Language: fr-FR
Connection: close

Is there a way to set the content length field? I'm not a HTTP expert, does
anybody see something strange?

Thanks in advance

Pierre
-- 
View this message in context: 
http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13016314
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: *SPAM*: 08.50/4.0 - Re: Problem building available services

2007-10-03 Thread Ana Belén Antón Gironés
Hi!
 
Thank you very much for your help, Suran and Lahiru. 
 
>First of all, I see that your class uses generics. Please note that Axis2
only supports simple-types, arrays and beans. Since Axis2 is JDK1.4
compliant, generics are not >supported.
>So what you can do is replace your genericised List arguments with arrays.
>e.g.: replace List with Class32[].
 
 
I think I am more confused than I thought :-(. Because of your explanation I
deduce that I should use another web service framework, maybe Apache
Tuscany. Is this right?
 
>Your service folder structure looks ok to me. When the eclipse plugin has
created the .aar file, check whether it contains the intended structure.
>(rename the .aar file to .zip and you'll be able to deal with it using any
zip tool, or extract the .aar file somewhere and take a look at the
extracted structure, or do  "jar tvf" on the archive).
 
Regarding the generation of .aar files. I checked the structure generated
before and I thought that it was wrong, because where is the
"MyService.class"??. The generated structure is: 

-MyService.aar
-configuration
- . 
-lib (the libraries that I described in my latter mail)
-META-INF
-MANIFEST.MF
-services.xml (the same xml that I described in my latter mail)
 -plugins

Thanks, 
 
Ana.
 




Re: Problem building available services

2007-10-03 Thread Lahiru Sandakith
Hi Ana,

AFAIK on POJO scnenario to work correctly on all areas, axis2 supports
simple types, simple type arrays and java beans in the method signatures of
the service methods that needed to be exposed as web service. In your exact
case, given that Class21 is a bean and recursively all the internal of that
Class21 is also goes ideal to the bean conventions, it can be worked out
replacing the list with the same type array and later convert it to a list
if needed on wither server or client side.

HTH,

thanks
Lahiru.

On 10/3/07, Ana Belén Antón Gironés <[EMAIL PROTECTED]> wrote:
>
>
> Hello Suran,
>
> My service makes use of several packages and classes and interfaces. It
> has
> a complex structure. So, I have created the following folder structure:
>
> C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\axis2\WEB-INF\services\
> - MyService
> -eu
> - myproject
> - serviceone
> -myservice
> -MyService.class
> -MyService.java
> -Otherclass.class [other
> object which MyService needs]
> -Otherclass.java
> -folder1[other folders with the
> code
> of the rest of classes and interfaces ]
> -Class11.class
> -Class11.java
> -Class12.class
> -Class12.java
> -folder2
> -Class21.class
> -Class21.java
> - ...
> - ...
> -lib [libs used by my application]
> -commons-codec-1.3.jar
> -commons-httpclient-3.0.1.jar
> -commons-logging-api-1.1.jar
> -dom4j-1.6.1.jar
> -jaxen-1.1-beta-5.jar
> - ...
> -META-INF
> -services.xml
> -[several .xml files needed by my service]
>
> Note that the "eu" folder is a full copy of the "src" folder created in my
> workspace.
>
> My "MyService.java" is:
>
> package eu.myproject.serviceone.myservice;
>
> import java.io.IOException;
> import java.net.MalformedURLException;
> import java.util.ArrayList;
> import java.util.Iterator;
> import java.util.List;
>
> import org.dom4j.Document;
> import org.dom4j.DocumentException;
> import org.dom4j.DocumentHelper;
> import org.dom4j.Node;
>
> import eu.myproject.serviceone.exceptions.AGSCException;
> import eu.myproject.serviceone.exceptions.AGSException;
> import eu.myproject.serviceone.exceptions.AGSNFException;
> import eu.myproject.serviceone.folder1.Class11;
> import eu.myproject.serviceone.folder2.Class21;
> import eu.myproject.serviceone.folder3.Class31;
> import eu.myproject.serviceone.folder3.Class32;
>
> public class MyService implements Class32{
>
> public List getAllClassObj(List constraintsList)
> throws AGSNFException {
> List ClassObjList = new ArrayList();
> //code..
> return ClassObjList ;
> }
>
>
> //
> --
>
> public Class21 getClassObj(String id) throws AGSNFException{
> //Class21 is an interface and Class21 is the object which
> implements the interface
> Class21Object classobj = null;
> //code...
> return classobj;
> }
>
> //
> --
>
> private boolean method1(List constraints){
> // code...
> return true;
> }
> //
> --
> private String method2(List constraints){
> String Xpath = "";
> //code...
> return Xpath;
> }
>
> //
> --
>
> private String method3(Integer id){
> String path = "";
> //code...
> return path;
> }
>
> }
>
> Please, note that this class implements an interface (called Class32..)
> and
> my service offers only two available operations.
>
> I hope you understand the aforementioned complex structure and code. I
> haven't copy the full class code because it is very long!
>
>
> Finally, my "services.xml" file is:
>
> 
> 
>MyS

Re: Problem building available services

2007-10-03 Thread Suran Jayathilaka

Ana Belén Antón Gironés wrote:
 
Hello Suran, 


My service makes use of several packages and classes and interfaces. It has
a complex structure. So, I have created the following folder structure:

C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\axis2\WEB-INF\services\
- MyService
-eu
- myproject
- serviceone
-myservice
-MyService.class
-MyService.java
-Otherclass.class [other
object which MyService needs]
-Otherclass.java
-folder1[other folders with the code
of the rest of classes and interfaces ]
-Class11.class
-Class11.java
-Class12.class
-Class12.java
-folder2
-Class21.class
-Class21.java
- ...
- ...   
		-lib [libs used by my application] 
			-commons-codec-1.3.jar

-commons-httpclient-3.0.1.jar
-commons-logging-api-1.1.jar
-dom4j-1.6.1.jar
-jaxen-1.1-beta-5.jar
- ...
-META-INF
-services.xml
-[several .xml files needed by my service]

Note that the "eu" folder is a full copy of the "src" folder created in my
workspace. 


My "MyService.java" is:

package eu.myproject.serviceone.myservice;

import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Node;

import eu.myproject.serviceone.exceptions.AGSCException;
import eu.myproject.serviceone.exceptions.AGSException;
import eu.myproject.serviceone.exceptions.AGSNFException;
import eu.myproject.serviceone.folder1.Class11;
import eu.myproject.serviceone.folder2.Class21;
import eu.myproject.serviceone.folder3.Class31;
import eu.myproject.serviceone.folder3.Class32;

public class MyService implements Class32{

public List getAllClassObj(List constraintsList)
throws AGSNFException {
List ClassObjList = new ArrayList();
//code..
return ClassObjList ;
}


//
--  

public Class21 getClassObj(String id) throws AGSNFException{
//Class21 is an interface and Class21 is the object which
implements the interface
Class21Object classobj = null;
//code...
return classobj;
}

//
--

private boolean method1(List constraints){
// code...
return true;
}
//
--
private String method2(List constraints){
String Xpath = "";
//code...
return Xpath;   
}

//
--

private String method3(Integer id){
String path = "";
//code...
return path;
}

}

Please, note that this class implements an interface (called Class32..) and
my service offers only two available operations.

I hope you understand the aforementioned complex structure and code. I
haven't copy the full class code because it is very long!


Finally, my "services.xml" file is:



   MyService


mep="http://www.w3.org/2004/08/wsdl/in-only";

class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
http://www.w3.org/2004/08/wsdl/in-out";
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>


eu.myproject.serviceone.myservice.MyService



 
Regarding the .aar file...I work with Eclipse and I have installed a plugin

to generate .aar files ("Axis Service Archiver 1.0.0"). I have added the
plugin "Axis2 Coden Wizard 1.2.0" too. Using the first tool Eclipse
generates an .aar file, but it doesn't work when I upload the service. I
could explain step to step what I do for that.

Thank you very much for your interest in it and I hope you can help me
beca

Axis2 generation tools for services

2007-10-03 Thread Jay Zawar
Hi,

I noticed that the working sample generates quite some code when strting from 
that Bank service wsdl. 
Especially, the exceptions seem to be "manually" serialized. In the sample, the 
service and clients are generated from the wsdl file.

I'd like to discuss the following points:

a) the WSDL defines the fault message WSDL:FAULT with attributes: 

name: "AccountNotExistException"
message: "tns:AccountNotExistFaultMessage"

The AccountNotExistFaultMessage contains an element of type 
"AccountNotExistFault".


Now, let's examine the service files generated out of this wsdl with respect to 
this particular wsdl:fault element:
Class AccountNotExistFault (representing the element contained in the fault 
message): 
- implements ADBBean.
- implements a serialize method

Class AccountNotExistFaultMessageException (representing the exception to be 
thrown on failure of the withdraw operation):
- extends java.lang.Exception

What I want to discuss here, is the way generation would work the other way 
around: from java classes to WSDL, and then from WSDL to client generation. 

The problem I see here, is: to write a service for the axis2 framework, one 
needs to implement a hell of a lot of methods and get acquainted with many 
concepts. I would have expected the codegeneration tools to do exactly the work 
of generating serialization, correct exception handling, etc. by themselves. So 
that, from an ordinary java class, with operations throwing some (custom) 
exceptions, one could easily generate server- and client-side code. 
Unfortunately, this seems not to be supported. And if I had known that, I 
wouldn't have posted my mails treating exception handling here. I was convinced 
I did something wrong, but I couldn't know that "code generation" here meant 
not that much. 
Also, be aware of some flaws in the code generation tools: when specifying an 
exception extending java.lang.exception, the codegeneration tools effectively 
generates a wsdl in which the extension base "java.lang.)"Exception" is 
specified. This leads to the creation of the class "Exception" lateron, when 
generating the client code from the generated WSDL.

Well folks - isn't there a way to just easen these steps ? I mean, why can't 
the code generation wizards not just take care of serialization and all that 
extra stuff (isReaderMTOMaware and all those methods) by themselves ? If I have 
to browse the documentation to write a service this way, I can well write 
everything myself and it wont be of great help.

Best regards,

Jay

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



Axis 1.4 configuration to use HTTP/1.1

2007-10-03 Thread Shadab

Hi All,
 
Please let me know if there is any way to configure Axis1.4 such that it
uses HTTP/1.1 instead of HTTP/1.0
 
The request from the soapclient (implemented using service stub) lands with
Axis/1.4 which in turn by default presumably uses HTTP/1.0.
 
Can't this be changed somehow using CommonsHTTPSender as pointed by mail
thread of Mario/Jeff "Axis 1.4 CommonsHTTPSender question" Date Sep:20:2007
?
 
Mario/Jeff,
 Please let me know if you people have reached some solution and will that
solution be helpful in the scenario I have told above...
 
Thanks,
Shadab
-- 
View this message in context: 
http://www.nabble.com/Axis-1.4-configuration-to-use-HTTP-1.1-tf4560281.html#a13014221
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: Problem building available services

2007-10-03 Thread Ana Belén Antón Gironés
 
Hello Suran, 

My service makes use of several packages and classes and interfaces. It has
a complex structure. So, I have created the following folder structure:

C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\axis2\WEB-INF\services\
- MyService
-eu
- myproject
- serviceone
-myservice
-MyService.class
-MyService.java
-Otherclass.class [other
object which MyService needs]
-Otherclass.java
-folder1[other folders with the code
of the rest of classes and interfaces ]
-Class11.class
-Class11.java
-Class12.class
-Class12.java
-folder2
-Class21.class
-Class21.java
- ...
- ...   
-lib [libs used by my application] 
-commons-codec-1.3.jar
-commons-httpclient-3.0.1.jar
-commons-logging-api-1.1.jar
-dom4j-1.6.1.jar
-jaxen-1.1-beta-5.jar
- ...
-META-INF
-services.xml
-[several .xml files needed by my service]

Note that the "eu" folder is a full copy of the "src" folder created in my
workspace. 

My "MyService.java" is:

package eu.myproject.serviceone.myservice;

import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Node;

import eu.myproject.serviceone.exceptions.AGSCException;
import eu.myproject.serviceone.exceptions.AGSException;
import eu.myproject.serviceone.exceptions.AGSNFException;
import eu.myproject.serviceone.folder1.Class11;
import eu.myproject.serviceone.folder2.Class21;
import eu.myproject.serviceone.folder3.Class31;
import eu.myproject.serviceone.folder3.Class32;

public class MyService implements Class32{

public List getAllClassObj(List constraintsList)
throws AGSNFException {
List ClassObjList = new ArrayList();
//code..
return ClassObjList ;
}


//
--  

public Class21 getClassObj(String id) throws AGSNFException{
//Class21 is an interface and Class21 is the object which
implements the interface
Class21Object classobj = null;
//code...
return classobj;
}

//
--

private boolean method1(List constraints){
// code...
return true;
}
//
--
private String method2(List constraints){  
String Xpath = "";
//code...
return Xpath;   
}

//
--

private String method3(Integer id){
String path = "";
//code...
return path;
}

}

Please, note that this class implements an interface (called Class32..) and
my service offers only two available operations.

I hope you understand the aforementioned complex structure and code. I
haven't copy the full class code because it is very long!


Finally, my "services.xml" file is:



   MyService


http://www.w3.org/2004/08/wsdl/in-only";
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
http://www.w3.org/2004/08/wsdl/in-out";
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>


eu.myproject.serviceone.myservice.MyService



 
Regarding the .aar file...I work with Eclipse and I have installed a plugin
to generate .aar files ("Axis Service Archiver 1.0.0"). I have added the
plugin "Axis2 Coden Wizard 1.2.0" too. Using the first tool Eclipse
generates an .aar file, but it doesn't work when I upload the service. I
could explain step to step what I do for that.

Thank you very much for your interest in it and I hope you can help me
because I am very lost. K

Re: Does WSDL2Java always generate Java code in UTF-8?

2007-10-03 Thread Lahiru Sandakith
Hi Kelvin,
Assume that you have point the WTP to the Axis2 earlier version than 1.3,
there has been an issue reported with the Axis2 Codegen results and it has
been now fixed in the 1.3 version of the Axis2. if you can please try it
with 1.3, The solution that you have come up is maybe an valid workaround.
thanks
Lahiru

On 10/2/07, Amila Suriarachchi <[EMAIL PROTECTED]> wrote:
>
> can you check with the Axis2 1.3. we fixed this issue with axis2 1.3
>
> Amila.
>
> On 10/1/07, Kelvin H Cheung < [EMAIL PROTECTED]> wrote:
> >
> >
> > Hi,
> >
> > I am an Eclipse WTP developer and currently we received bug reports
> > complaining that the generated Java code cannot be compiled in Eclipse
> > when
> > the WSDL contains international characters.  I found that we need to set
> > the character set for the Java files to "UTF-8" in Eclipse to resolve
> > this
> > problem.  We are thinking of updating the character set for all the
> > generated Java files, is this safe?
> >
> > Kelvin Cheung
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.




-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F


Re: Problem with service archiver plugin eclipse

2007-10-03 Thread Lahiru Sandakith
Please send us the latest log note on /.metadata/.log
file
Thanks
Lahiru

On 10/2/07, Jay Zawar <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I wanted to add: I use the following plugin versions:
>
> Axis2_Codegen_Wizard_1.2.0
> Axis2_Service_Archiver_1.0.0
>
> (and using Axis2 1.2)
>
> Kind regards,
>
> Jay
>
> > -Original Message-
> > From: Jay Zawar
> > Sent: mardi 2 octobre 2007 11:32
> > To: axis-user@ws.apache.org
> > Subject: Problem with service archiver plugin eclipse
> >
> >
> > Hi,
> >
> > I downgraded to Axis2 1.2 because our BPM is working with Axis2 1.2.
> >
> > When trying to archive the service, it just won't load the
> > class file. Although pointing at the right directory (\bin,
> > under which the package hierarchy exists), it wont load the
> > class file(s).
> >
> > Directory structure:
> > Parent dir: "TestProject"
> >
> > /src
> > /bin
> > /bin/com
> > /bin/com/foo
> > /bin/com/foo/bar
> > /bin/com/foo/bar/AService.class
> > /bin/com/foo/bar/CustomException.class
> >
> > At the end of the service archiver dialog, I specify
> > com.foo.bar.AService as being the class name for the service
> > which's name is "AService".  I point to /TestProject/bin by
> > browsing, after clicking the browse button. It won't
> > find/load the class. The dialog stops here.
> >
> > Worked fine with Axis2 1.3 though.
> >
> > I am using Java 1.5.0.12, the project builds successfully.
> >
> > Kind regards,
> >
> > Jay
> >
> >
> > -
> > 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]
>
>


-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F