RE: Code generation problem

2008-07-29 Thread Shripad Gokhale
The attachements can ne found below

 

https://issues.apache.org/jira/browse/AXIS-2755

 

 

From: Shripad Gokhale [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2008 11:46 AM
To: axis-user@ws.apache.org
Subject: Code generation problem

 

Hi,

 

The code generated by AXIS in our software gets compilation errors when using a 
complex WSDL that includes other XSDs. 

The attached MessageInterfaces.zip file contains the xsdl file at 
MessageInterfaces\wsdl\billingServices\v3.3\GetProfile.wsdl. This file contain 
references to other xsd files which are located in different directories inside 
the zip file. CodeGenerated.zip file contains the codes generated by AXIS 1.4. 
The problem in the generated files is that in some classes like 
CustomerListEntity and Phone, constructors of the super classes are called with 
input parameters in different orders than specified in the constructor 
definition. 

It's a problem in Pre-Production environment and need an urgent solution. Due 
to this problem, our product is not at all configurable at the customer end.

 

Thanks

Shripad/Dhirendra

 

This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp

 



Code generation problem

2008-07-29 Thread Shripad Gokhale
Hi,

 

The code generated by AXIS in our software gets compilation errors when
using a complex WSDL that includes other XSDs. 

The attached MessageInterfaces.zip file contains the xsdl file at
MessageInterfaces\wsdl\billingServices\v3.3\GetProfile.wsdl. This file
contain references to other xsd files which are located in different
directories inside the zip file. CodeGenerated.zip file contains the
codes generated by AXIS 1.4. The problem in the generated files is that
in some classes like CustomerListEntity and Phone, constructors of the
super classes are called with input parameters in different orders than
specified in the constructor definition. 

It's a problem in Pre-Production environment and need an urgent
solution. Due to this problem, our product is not at all configurable at
the customer end.

 

Thanks

Shripad/Dhirendra

 


This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


Re: When do cleanup functions need to be called?

2008-07-29 Thread Amila Suriarachchi
On Wed, Jul 30, 2008 at 6:21 AM, David Rees <[EMAIL PROTECTED]> wrote:

> I'm developing an application using Axis2 1.4 which consists of a
> client and service. Stubs are generated using the wsdl2java tool using
> ADB.
>
> I am seeing what appears to be a huge resource leak when using the
> client code from the service. After processing a couple dozen service
> requests (each service requests runs a few client requests), the heap
> quickly fills up and the JVM runs out of memory.
>
> Analysing the heap shows hundreds of thousands of
> ConcurrentHashMap$Segment, ConcurrentHashMap$HashEntry[] and
> ReentrantLock$NonfairSync objects, and tens of thousands of HashMap,
> HashMap$Entry[], String, Object[], ArrayList,
> org.apache.axis2.description.ParameterIncludeImpl,
> org.apache.axis2.description.PolicySubject for example.
>
> Executing the service without making any client calls works just fine.
>
> Executing the client by itself in a standalone app works just fine.
>
> After pulling my hair out for the past 24 hours trying to figure out
> the root cause and desperately googling for answers, I finally found
> that calling MyStub._getService().cleanup() appears to fix the leak
> (at least the service can process requests for over an hour where it
> would die within minutes).
>
> So, my questions are:
>
> Is it normal to have to call ServiceClient.cleanup()?
> Why do I have to explicitly call it when using the client code from my
> service and not have to call it when running the client code as a
> standalone application?
> Should I be reusing stubs if possible?
>
> Code looks like this:
>
> public class MyService implements MyServiceSkeletonInterface {
>  public MyProcessResponse myProcess() {
>  MyProcessResponse res = new MyProcessResponse();
>  WebServiceUtil.clientCall1();
>  WebServiceUtil.clientCall2();
>  res.setProcessResponseResult("OK");
>  return res;
>  }
> }
>
> public class WebServiceUtil {
>  public static void clientCall1() {
>  MyServiceStub stub = new MyServiceStub("http://example.com/myservice";);
>  ClientCall1 req = new ClientCall1();
>  ClientCall1Response res = stub.clientCall1(req);
>  // Need to call this when calling using this function in a web service
>  // Otherwise huge resource leak occurs
>  stub._getServiceClient().cleanup();


this method should be call when the MyServiceStub (see finalize method in
ServiceClient) is garbage collected. I am not sure why it is not being
called automatically.

In RC1 we fixed a memory leak regarding this. But I can not realy think the
reason for your problem.
you can get the AxisConfiguration object like this,
AxisConfiguration axiConfiguration =
MessageContext.getCurrentMessageContext().getConfigurationContext().getAxisConfiguration();

and check whether there are some additional objects there after calling
clean up.

Please log a jira.

thanks,
Amila.



>  }
> }
>
> Any thoughts appreciated.
>
> -Dave
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: When do cleanup functions need to be called?

2008-07-29 Thread David Rees
On Tue, Jul 29, 2008 at 5:51 PM, David Rees <[EMAIL PROTECTED]> wrote:
> After pulling my hair out for the past 24 hours trying to figure out
> the root cause and desperately googling for answers, I finally found
> that calling MyStub._getService().cleanup() appears to fix the leak
> (at least the service can process requests for over an hour where it
> would die within minutes).

Unfortunately, I was mistaken. Calling cleanup() doesn't appear to
help at all, unfortunately I also switched to Axis2 1.4.1 RC1 at the
same time which appears to to have reduced the rate at which the heap
bloats, but eventually, it still suffers the same fate.

However, eventually, the service (running under Tomcat 5.5.26) still
runs out of heap space with the same symptoms - hundreds of thousands
of ConcurrentHashMap objects. These all appear to trace back to the
AxisServlet through this chain:

AxisBindingOperation -> AxisBindingMessage ->ConcurrentHashMap ->
AxisBinding -> AxisBindingOperation -> AxisEndpoint -> HashMap ->
AxisService -> OutInAxisOperation -> HashMap -> AxisConfiguration ->
AxisServlet.

So what's going on here? I can't imagine that I'm the only one making
Axis2 client calls from a Axis2 web service and running into this
issue - either I'm doing something unique or I'm doing something
wrong...

Thanks

Dave

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



Re: Axis installation error with Tomcat - Please help

2008-07-29 Thread Sarath Kamisetty
Thanks much ... that solved the issue.

Regards,
Sarath

On Sat, Jul 26, 2008 at 11:06 PM, Pugalia, Jai P (JP)
<[EMAIL PROTECTED]> wrote:
> Sarath,
>
>>>I copied C:\axis-1_4\webapps\axis folder only to C:\Program
> Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT
>
> The axis folder should be copied to the webapps folder under Tomcat (not
> webapps\ROOT folder).
>
> JP
>
> -Original Message-
> From: Sarath Kamisetty [mailto:[EMAIL PROTECTED]
> Sent: Saturday, July 26, 2008 10:54 PM
> To: axis-user@ws.apache.org
> Subject: Axis installation error with Tomcat - Please help
>
> Hi,
>
> I have Tomcat 5.5 installed under C:\Program Files\Apache Software
> Foundation\Tomcat 5.5. I downloaded Axis 1.4 zip file and after
> extracting it I copied C:\axis-1_4\webapps\axis folder only to
> C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\ (I
> think this is what the installation instructions are suggesting but it
> is not clearly spelled out). So, now I have the following folder:
>
> C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\ROOT\axis\
>
> So at this point, I have set AXIS_HOME, AXIS_LIB, AXISCLASSPATH as
> follows:
>
> AXIS_HOME is C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\ROOT\axis AXIS_LIB is %AXIS_HOME%\lib AXISCLASSPATH is
> %AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\commons-
> logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1
> .2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar
>
> At this point, I also set CLASSPATH to
>
> %AXISCLASSPATH%;%AXISCLASSPATH%\WEB-INF\classes;.;. /* some more
> stuff */
>
> And I tried to open http://localhost:8080/axis/index.jsp (index.html is
> redirecting to this) and I get the following error. I searched in the
> archives and many were asking to check if
> axis\WEB-INF\classes\18n.properties and
> WEB-INF\classes\18n_ja.properties are there are not. I did check and
> that I see both the files in the following location:
>
> C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\ROOT\axis\WEB-INF\classes
>
> I guess this is the right location. Can someone please let me know what
> is wrong with what I am doing ? Many have run into this error (but what
> they did to get around it or fix it is not posted) so I am wondering if
> there is some sort of FAQ on Axis that explains this.
>
> Stacktrace:
>
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
> tWrapper.java:506)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:395)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> root cause
>
> java.util.MissingResourceException: Can't find bundle for base name
> i18n, locale en_US
>java.util.ResourceBundle.throwMissingResourceException(Unknown
> Source)
>java.util.ResourceBundle.getBundleImpl(Unknown Source)
>java.util.ResourceBundle.getBundle(Unknown Source)
>org.apache.jsp.axis.index_jsp.getRB(index_jsp.java:72)
>org.apache.jsp.axis.index_jsp.getMessage(index_jsp.java:168)
>org.apache.jsp.axis.index_jsp.getMessage(index_jsp.java:106)
>org.apache.jsp.axis.index_jsp.getLocaleChoice(index_jsp.java:82)
>org.apache.jsp.axis.index_jsp._jspService(index_jsp.java:312)
>
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:334)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> -
> 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]
>
>

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



Online Java Docs link broken on website

2008-07-29 Thread David Rees
The "Online Java Docs" link in the left navigation at the bottom of
Resources links to http://ws.apache.org/1_4/api/index.html which does
not exist. Would be nice to have the docs online. Google found the 1.3
version of the docs here: http://ws.apache.org/axis2/1_3/api/ but the
1.4 docs aren't under a similar URL, either.

Thanks

-Dave

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



When do cleanup functions need to be called?

2008-07-29 Thread David Rees
I'm developing an application using Axis2 1.4 which consists of a
client and service. Stubs are generated using the wsdl2java tool using
ADB.

I am seeing what appears to be a huge resource leak when using the
client code from the service. After processing a couple dozen service
requests (each service requests runs a few client requests), the heap
quickly fills up and the JVM runs out of memory.

Analysing the heap shows hundreds of thousands of
ConcurrentHashMap$Segment, ConcurrentHashMap$HashEntry[] and
ReentrantLock$NonfairSync objects, and tens of thousands of HashMap,
HashMap$Entry[], String, Object[], ArrayList,
org.apache.axis2.description.ParameterIncludeImpl,
org.apache.axis2.description.PolicySubject for example.

Executing the service without making any client calls works just fine.

Executing the client by itself in a standalone app works just fine.

After pulling my hair out for the past 24 hours trying to figure out
the root cause and desperately googling for answers, I finally found
that calling MyStub._getService().cleanup() appears to fix the leak
(at least the service can process requests for over an hour where it
would die within minutes).

So, my questions are:

Is it normal to have to call ServiceClient.cleanup()?
Why do I have to explicitly call it when using the client code from my
service and not have to call it when running the client code as a
standalone application?
Should I be reusing stubs if possible?

Code looks like this:

public class MyService implements MyServiceSkeletonInterface {
 public MyProcessResponse myProcess() {
  MyProcessResponse res = new MyProcessResponse();
  WebServiceUtil.clientCall1();
  WebServiceUtil.clientCall2();
  res.setProcessResponseResult("OK");
  return res;
 }
}

public class WebServiceUtil {
 public static void clientCall1() {
  MyServiceStub stub = new MyServiceStub("http://example.com/myservice";);
  ClientCall1 req = new ClientCall1();
  ClientCall1Response res = stub.clientCall1(req);
  // Need to call this when calling using this function in a web service
  // Otherwise huge resource leak occurs
  stub._getServiceClient().cleanup();
 }
}

Any thoughts appreciated.

-Dave

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



axis and oc4j

2008-07-29 Thread Eric Hamacher
Hello:

 

I am new to web services and Axis.  Just wondering, will Axis generate
all of the OC4J artifacts required for JAX-RPC there?  Thanks.

 

Regards,

Eric Hamacher

 

**

THIS EMAIL IS INTENDED ONLY FOR THE REVIEW OF THE ADDRESSEE(S), AND MAY
CONTAIN CONFIDENTIAL AND LEGALLY PRIVILEGED INFORMATION. INTERCEPTION,
COPYING, DISSEMINATION, OR OTHER USE BY OTHER THAN THE ADDRESSEE(S) IS
PROHIBITED AND MAY BE PENALIZED UNDER APPLICABLE PRIVACY LAWS. IF YOU
RECEIVED THIS EMAIL IN ERROR, PLEASE DELETE IT AND NOTIFY ME BY RETURN
EMAIL TO [EMAIL PROTECTED] ***

 



RE: Validating SOAP message for WS-Security

2008-07-29 Thread Evan Leonard

(Full disclosure: I work for Mindreef)

You can use Mindreef SOAPscope to validate your message against:

WS-I Basic Profile 1.0
WS-I Basic Profile 1.1
SOAP Binding Profile 1.0
Attachments Profile 1.0

You can also write your own custom validation rules for both WSDL and  
messages


Best,

Evan Leonard




-- On Tue, Jul 29, 2008 at 3:01 AM, Dini Omar <[EMAIL PROTECTED]> wrote:

Hi,

Let say i have generated a SOAP message using WS-Seucirty. Is there a  
way or a tool that i can use to validate this soap message to check  
that it complys with all WS-Security or any other WS-* standard?


Thanks





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



Re: [Axis2] Initialization

2008-07-29 Thread sumedha rubasinghe
Following example might be of help.

http://wso2.org/library/333

And you can find an example on latest axis2 distribution too. Inside
axis2-1.4/samples/servicelifecycle folder. README.txt located there is a
good starting point.

/sumedha



On Tue, Jul 29, 2008 at 10:47 PM, Sameera Jayasoma <
[EMAIL PROTECTED]> wrote:

> On Tue, Jul 29, 2008 at 9:53 PM, David <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> I made my WS in Axis 2 and it's working very well, but I have one last
>> think I would like to implement, I need to launch a method when I deploy my
>> webservice, like an init phase where I'm loading some stuff.
>> In Axis 1.4 I was using an InitServlet with load on startup option, so is
>> it possible in Axis 2 when we use .aar deployed in /services ?
>>
>
> Yes, there is a way to do this. Once you implement the
> org.apache.axis2.engine.ServiceLifeCycle interface in you service class, you
> will get two methods startup() and shutdown().
>
> public interface ServiceLifeCycle {
>
> /**
>  * this will be called during the deployement time of the service.
> irrespective
>  * of the service scope this method will be called
>  */
> public void startUp(ConfigurationContext configctx, AxisService
> service);
>
> /**
>  * this will be called during the system shut down time. irrespective
>  * of the service scope this method will be called
>  */
> public void shutDown(ConfigurationContext configctx, AxisService
> service);
> }
>
>
> Hope you got the answer.
>
> Regards
> Sameera Jayasoma
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://sameera-jayasoma.blogspot.com/
>
> 
>


Re: [Axis2] Initialization

2008-07-29 Thread Sameera Jayasoma
On Tue, Jul 29, 2008 at 9:53 PM, David <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I made my WS in Axis 2 and it's working very well, but I have one last
> think I would like to implement, I need to launch a method when I deploy my
> webservice, like an init phase where I'm loading some stuff.
> In Axis 1.4 I was using an InitServlet with load on startup option, so is
> it possible in Axis 2 when we use .aar deployed in /services ?
>

Yes, there is a way to do this. Once you implement the
org.apache.axis2.engine.ServiceLifeCycle interface in you service class, you
will get two methods startup() and shutdown().

public interface ServiceLifeCycle {

/**
 * this will be called during the deployement time of the service.
irrespective
 * of the service scope this method will be called
 */
public void startUp(ConfigurationContext configctx, AxisService
service);

/**
 * this will be called during the system shut down time. irrespective
 * of the service scope this method will be called
 */
public void shutDown(ConfigurationContext configctx, AxisService
service);
}


Hope you got the answer.

Regards
Sameera Jayasoma
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://sameera-jayasoma.blogspot.com/




Re: Axis with XSLT

2008-07-29 Thread sumedha rubasinghe
Hi,
Data Services is a mechanism to expose relational database objects as web
services.
It will return data in your database object (eg. table) in XML format.

Checkout following tutorial @ http://wso2.org/library/2617 .
A collection of such tutorials can be found @ http://wso2.org/library/3183 .

/sumedha


On Tue, Jul 29, 2008 at 8:39 PM, samsam007 <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I tried to build a AXIS service to return a recordset (from array or
> database) to an AXIS client.
> The client will use the following APIs to request the recordset from the
> AXIS service server:
> CreateCall() -> SetTargetEndpointAddress(..) -> SetOperationName(...) ->
> call.invoke()
>
> Now, I am not sure how to build the AXIS service to return the recordset to
> the soap client.
> I know xslt can be used to interact between soap/axis service and client.
> Can anybody post an example about how tho use AXIS with XSLT to return
> record(xml data) to the client?
>
> Thanks
> S
> --
> View this message in context:
> http://www.nabble.com/Axis-with-XSLT-tp18714395p18714395.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Inherited object serialized in reverse order by server, when subclass contains an array.

2008-07-29 Thread Kraus, David
To further clarify: serialization code provided on the server side by
Axis2, based on my POJO and its supporting parameter/return objects,
serializes a polymorphic object subclass fields first, followed by
superclass fields, when the subclass contains an array. The client code
generated from the WSDL of this POJO based service (using
wsdl2java-ADB), serializes the polymorphic object in the reverse order
with superclass fields preceding subclass fields; and also expects that
polymorphic objects received from the server follow this same order.
Since the server serializes in the reverse order "unexpected subelement"
errors occur.

 

I am going to assume that this is a bug since I don't see this behavior
when the subclass does not contain an array.

 

Dave Kraus

 



From: Kraus, David 
Sent: Monday, July 28, 2008 5:49 PM
To: axis-user@ws.apache.org
Subject: Inherited object serialized in reverse order by server, when
subclass contains an array.

 

I deployed a simple web service as a POJO to both axis2 1.2 and axis2
1.4. This service basically echoes back an object which demonstrates
inheritance. In this example, MWSAttributeObjectInfo is a subclass of
MWSObjectInfo. To create the client I used wsdl2java against the
deployed service.

 

When I invoked the echoAttrObjInfo method, which simply passes in
MWSAttributeObjectInfo, and receives the same MWSAttributeObjectInfo
back, I received an "Unexpected subelement arrayAttributeForms" in Axis2
1.2, and  "Unexpected subelement objCreationTime" in Axis2 1.4.

 

The client serialized the object to the server with MWSObjectInfo
(superclass) fields first, followed by subclass fields (rest of
MWSAttributeObjectInfo - the array). The server responded by passing
back the object with the subclass fields first (the array), followed by
superclass fields (MWSObjectInfo). This caused an exception in the
client. Axis2 1.2 detected that the array shouldn't come first. Axis2
1.4 didn't see the error until after the array was processed, getting an
exception on the first field after the array(objCreationTime).

 

Is this a known bug? I tried a subclass with simple fields (no array),
and no error was generated.

 

Thanks, Dave

 

>From the WSDL:

 

 





 

 

 

 

 

 

 




 

 

 

 





 

 









 









 

Soap Trace

 

Client Request sends MWSAttributeObjectInfo

 

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

http://wsftest.com/xsd";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:type="s13:MWSAttributeObjectInfo">

now

generic test object

DAVEKRAUS0002

false

later

MWSAttributeObjectInfo

Dave

FOLDERID

objPath

1

2

1



XX

XX

100





YY

YY

200







 

Server Response echoes back same MWSAttributeObjectInfo object

 

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

http://microstrategy.com/webservices/";>



http://wsftest.com/xsd";>

XX

XX

100



http://wsftest.com/xsd";>

YY

YY

200



http://wsftest.com/xsd";>now

http://wsftest.com/xsd";>generic test
object

http://wsftest.com/xsd";>DAVEKRAUS0002

http://wsftest.com/xsd";>false

http://wsftest.com/xsd";>later

http://wsftest.com/xsd";>MWSAttributeObjectInfo

http://wsftest.com/xsd";>Dave

http://wsftest.com/xsd";>FOLDERID

http://wsftest.com/xsd";>objPath

http://wsftest.com/xsd";>1

http://wsftest.com/xsd";>2

http://wsftest.com/xsd";>1







 

 



Re: Outgoing SwA binary attachments: All 0xFF bytes are missing

2008-07-29 Thread Thilina Gunarathne
Hi,
We have not come across such an issue before..Can you describe youtr service
implementation more.. Are you using a byte[] data source?..  What Axis2 does
is just write the entire byte stream we get from data handler (==data
source) to the output stream in the correct location(inside MIME boudaries).

It would be really great if you can provide a test case for this so that we
can see whether it's bug in Axis2.

thanks,
Thilina

On Mon, Jul 28, 2008 at 7:41 AM, Nicolas Verbeke <
[EMAIL PROTECTED]> wrote:

>
> Hello
>
> I have a web service that sends binary data as MIME attachments (SwA).
> I realized that the data received by the client was not exactly the same as
> the data given to the web service.
> More precisely, a dozen bytes are missing (out of 12,004). All the missing
> bytes should have had the value 0xFF (255) -- and all the 0xFF bytes from
> the original data are missing.
>
> The original data represents an array of 3001 float values.
>
> I'm suspecting a charset-related problem...
>
> Does anyone have any clue about what happens?
>
> Thanks a lot in advance.
>
> Hereafter: What was received by the client
>
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: multipart/related;
> boundary=MIMEBoundaryurn_uuid_DF83F3FB6FDDA694771217252895835;
> type="text/xml";
> start="<0.urn:uuid:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> >"
> Transfer-Encoding: chunked
> Date: Mon, 28 Jul 2008 13:48:15 GMT
>
> 243
> --MIMEBoundaryurn_uuid_DF83F3FB6FDDA694771217252895835
> Content-Type: text/xml; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> Content-ID: <0.urn:uuid:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> >
>
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "> xmlns:tns="http://www.myplace.com/MyWebService/xsd
> "> tns:href="urn:uuid:DF83F3FB6FDDA694771217252894381" tns:count="3001"
> />
> 38
>
> --MIMEBoundaryurn_uuid_DF83F3FB6FDDA694771217252895835
> 2000
>
> Content-Type: application/octet-stream
> Content-Transfer-Encoding: binary
> Content-ID: 
>
> (... Binary data with missing bytes ...)
>
> 38
>
> --MIMEBoundaryurn_uuid_DF83F3FB6FDDA694771217252895835
> 2
> --
> 0
>
> Connection #0 to host localhost left intact
> --
> View this message in context:
> http://www.nabble.com/Outgoing-SwA-binary-attachments%3A-All-0xFF-bytes-are-missing-tp18689243p18689243.html
>  Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


[Axis2] Initialization

2008-07-29 Thread David
Hi,

I made my WS in Axis 2 and it's working very well, but I have one last think
I would like to implement, I need to launch a method when I deploy my
webservice, like an init phase where I'm loading some stuff.
In Axis 1.4 I was using an InitServlet with load on startup option, so is it
possible in Axis 2 when we use .aar deployed in /services ?

thx


Re: Dynamically Set Preemptive Authentication

2008-07-29 Thread Ted Jones
Let me re-phrase my question...

Is it possible to disable preemptive authentication in Axis2?

Thanks,
Ted

On Mon, 2008-07-28 at 14:30 -0500, Ted Jones wrote:
> I have a client that uses HTTP Basic authentication and was coded for a
> Systinet web service engine. The HTTP Client code did not use preemptive
> authentication with Systinet, but Axis2 does since it uses the
> commons-httpclient code base. Is there anyway to set preemptive
> authentication to true without modifying all the client code? Perhaps a
> setting in axis2.xml or a handler of some sort?
> 
> Also, not setting this value to true and also the absence of the
> credentials altogether results in a HTTP 500 error, shouldn't this be a
> 401?
> 
> 
> Thanks,
> Ted


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



Axis with XSLT

2008-07-29 Thread samsam007

Hi,

I tried to build a AXIS service to return a recordset (from array or
database) to an AXIS client.
The client will use the following APIs to request the recordset from the
AXIS service server:
CreateCall() -> SetTargetEndpointAddress(..) -> SetOperationName(...) ->
call.invoke()

Now, I am not sure how to build the AXIS service to return the recordset to
the soap client.
I know xslt can be used to interact between soap/axis service and client.
Can anybody post an example about how tho use AXIS with XSLT to return
record(xml data) to the client?

Thanks
S
-- 
View this message in context: 
http://www.nabble.com/Axis-with-XSLT-tp18714395p18714395.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Sandesha2 error after Axis2 migration

2008-07-29 Thread Fabien Couvert

I have found the same issue :
https://issues.apache.org/jira/browse/SANDESHA2-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591999#action_12591999

I have the same bug but I don't know how to fix it.
I use Axis2 1.4, Sandesha2 1.3.

The message is sent correctly but the server print a message each minutes :
[WARN] Sender.checkForOrphanMessages() - A message has been waiting for 
a MakeConnection call. The message will continue to wait, but there may 
be a problem with the client configuration. Sandesha message type 7.


Anyone have already have the same problem and correct it please ?

Thanks

Fabien Couvert a écrit :

Thank you very much Amila.
Axis2 1.4.1 RC1 correct the problem :)

But now Sandesha2 give me a recurrent warning every minutes when I try 
to send one message, the message is sent correctly but the server 
write this line in the log :


2008-07-28 11:11:23,354 [WARN] Sender.checkForOrphanMessages() - A 
message has been waiting for a MakeConnection call. The message will 
continue to wait, but there may be a problem with the client 
configuration. Sandesha message type 7.


Do you have any idea please ?

Thank you

Amila Suriarachchi a écrit :
I think this is a problem with Axis2 1.4. Please have a look at with 
the Axis2 1.4.1 RC1


http://people.apache.org/~nandana/axis2-1.4.1/RC1/dist/ 



thanks,
Amila.

On Fri, Jul 25, 2008 at 5:07 PM, Fabien Couvert 
<[EMAIL PROTECTED] > wrote:


Nobody have an idea please ?

Sandesha2 policies needs to be change from Axis2 1.3 to Axis2 1.4 ?!

help

Fabien Couvert a écrit :

Here it is :

2008-07-24 11:40:40,192 [ERROR] AxisServlet.doPost() -
java.lang.NullPointerException
  at

org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:122) 



  at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
  at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
  at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
  at

org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) 



  at

org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 



  at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 



  at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 



  at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) 



  at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 



  at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 



  at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 



  at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) 



  at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) 



  at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) 



  at

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

  at java.lang.Thread.run(Unknown Source)

Samisa Abeysinghe a écrit :

Fabien Couvert wrote:

Hi all,

I did a migration from Axis2 1.3 to Axis2 1.4 on
Tomcat 6.0.

Now I get an error when I deploy my webservice :
/[ERROR] SandeshaModule.init() - Could not load module
policies. Using default values./

When I try to use RM in my application I get a
NullPointerException.


What is the stack trace?

Samisa...


Anyone have an idea please?

Everything works fine with Axis2 1.3.

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

Re: java.lang.IllegalArgumentException: Null OutputStream specified

2008-07-29 Thread johoso

This was solved through (re)installing tomcat, now in version
apache-tomcat-6.0.16. No clue what caused the actual problem.


johoso wrote:
> 
> Hello
> 
> I wonder what the above error message means and how I am supposed to do
> further troubleshooting.
> 
> I've created a wsdl file, done the wsdl2java and am now trying to
> synchronously return a document. 
> 
> If I return a new document without filling it with information:
> public Document   webService(Document document) {
>   return Document.Factory.newInstance();
> }
> 
> I get
>   unknown
>  
> org.apache.axis2.AxisFault
> etc
> 
> Which is probably quite a logical error.
> 
> But if I enter any information to this document or even just return the
> exact same document that just has been received, like this:
> 
> public Document   webService(Document document) {
>   return document;
> }
> 
> The following error occurs: 
> 
> java.lang.IllegalArgumentException: Null OutputStream specified
>  
> org.apache.axis2.AxisFault:
> java.lang.IllegalArgumentException: Null OutputStream specified
>   at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:182)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>   at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>   at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
>   at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>   at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>   at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>   at java.lang.Thread.run(Thread.java:595)
> 
> 
> Please, does anyone have an idea of how to attack this problem?
> Using axis2 v1.4, apache-tomcat-5.5.26 on windows XP.
> 

-- 
View this message in context: 
http://www.nabble.com/java.lang.IllegalArgumentException%3A-Null-OutputStream-specified-tp18587453p18707066.html
Sent from the Axis - User mailing list archive at Nabble.com.


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