HTTP Header SOAPAction

2006-12-18 Thread schalk
Hi All,

When running the code below I get the following error. any idea...

ERROR  - [soap-service] - AxisFault Cause: Server did not recognize the value
of HTTP Header SOAPAction: urn:anonOutInOp.

log.debug("Sending envelope...\n");
opClient.execute(true); // Blocking invocation
MessageContext resp =
opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);

Also, how do I know whether or not the above execute method completed
successfully? Thank everyone!

--
Open WebMail Project (http://openwebmail.org)


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



Axis2 module ?

2006-12-18 Thread Eric Chow

Hello,

I am going to create a logging module for Axis2. I want to log all the
invoking records using log4j.

How can I retrieve the caller's IP or how can I pass some information
from the client to the module ?

Please help me!

Best regards,
Eric

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



Re: Axis2 module ?

2006-12-18 Thread Deepal Jayasinghe
Hi Eric ;
You can get the remote address from the message contest as a property.

messgeContext.getProperty("REMOTE_ADDR");

Thanks
Deepal

> Hello,
>
> I am going to create a logging module for Axis2. I want to log all the
> invoking records using log4j.
>
> How can I retrieve the caller's IP or how can I pass some information
> from the client to the module ?
>
> Please help me!
>
> Best regards,
> Eric
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



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



Re: [Axis2] com.ctc.wstx.exc.WstxEOFException

2006-12-18 Thread Harald Herrmann
It seems like Kaspersky Internet Security 6 ist cutting off the request 
body.

After uninstallation things work well.



Martin Gainty schrieb:

Moxo/Hermann
for verifying proper response for method getVersion as a quick check  
can you go to your version wsdl located at

http://localhost:8080/axis2/services/version?wsdl
your prolog should look something like
http://schemas.xmlsoap.org/wsdl/*";
xmlns:axis2="*http://ws.apache.org/axis2*";
xmlns:mime="*http://schemas.xmlsoap.org/wsdl/mime/*";
xmlns:ns0="*http://axisversion.sample/xsd*";
xmlns:soap12="*http://schemas.xmlsoap.org/wsdl/soap12/*";
xmlns:http="*http://schemas.xmlsoap.org/wsdl/http/*";
xmlns:ns1="*http://org.apache.axis2/xsd*";
xmlns:xs="*http://www.w3.org/2001/XMLSchema*";
xmlns:soap="*http://schemas.xmlsoap.org/wsdl/soap/*";
targetNamespace="*http://ws.apache.org/axis2*";>

any whitespace characters (space,tab,any non-displayable characters) 
before an EOF char
 
then display the element within your wsdl labeled 'getVersionResponse'

you *should* have an element that looks somewhat similar to
*-*  name="*getVersionResponse*">
*-*    

*-*    


* *  
* *   
* *


Thanks,
M-
--- 

This e-mail message (including attachments, if any) is intended for 
the use of the individual or entity to which it is addressed and may 
contain information that is privileged, proprietary , confidential and 
exempt from disclosure. If you are not the intended recipient, you are 
notified that any dissemination, distribution or copying of this 
communication is strictly prohibited.
--- 

Le présent message électronique (y compris les pièces qui y sont 
annexées, le cas échéant) s'adresse au destinataire indiqué et peut 
contenir des renseignements de caractère privé ou confidentiel. Si 
vous n'êtes pas le destinataire de ce document, nous vous signalons 
qu'il est strictement interdit de le diffuser, de le distribuer ou de 
le reproduire.


- Original Message -
*From:* moxi moxi 
*To:* axis-user@ws.apache.org 
*Sent:* Saturday, December 16, 2006 12:06 PM
*Subject:* Re: [Axis2] com.ctc.wstx.exc.WstxEOFException

I have the same problem,

I wrote a dotNET client, !surprise my WebService is working!, the
problem is  when I call webservice with the  generated stub
classes(Axis2, release 1.1).

org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException:
Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]
at

org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
at ...



2006/12/15, Harald Herrmann <[EMAIL PROTECTED]
>:

Hi everyone,

Here's some additional info to my problem:

I made a simple but interesting experiment: I wrote a HTML
form to post something to the webservice
and debugged the AxisServlet.doPost() method as before.
This time the InputStream contained the data I posted.
The webservice failed of course, as the posted data was no
valid soap request.

But something seems to cut off the request body if it's
containing XML.

Regards,
H. Herrmann



Hi everyone,

I get following exception as response when accessing the
Version webservice from the Axis 2-1.1
distribution:

org.apache.axis2.AxisFault:
com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]
at

org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
at
sample.axisversion.VersionStub.getVersion(VersionStub.java:155)
at Test.start(Test.java:11)
at Test.main(Test.java:18)

I generated the stub classes with wsdl2java and wrote
following test class:

import sample.axisversion.VersionStub;
import sample.axisversion.VersionStub.GetVersionResponse;

public class Test {

public void start()
throws Exception
{
VersionStub versionStub = new
VersionStub("http://localhost:8080/axis2/services/Version";
);
GetVersionResponse response =
versionStub.getVersion();
System.out.println(response.get_return());
}

public static void main(String[] args)
throws Exception{
Test test = 

Re: Exception on accesing MessageContext during initalization of ws-service

2006-12-18 Thread Jeff Greif

In Axis 1.x, MessageContext.getCurrentContext() retrieves a value from
ThreadLocal storage.  The same thing may be done in Axis 2.  To make
this call available in some thread you create, you would have to know
its exact implementation and set the ThreadLocal storage of the thread
you create accordingly..

Jeff


On 12/17/06, Julian Hagenauer <[EMAIL PROTECTED]> wrote:

Hi,
i am pretty new to axis.
I am trying to modify the initialize()-function of a webservice of the 
globus-container.

The origin initialize()-Function looks like that:
public synchronized void initialize() {
try {
MessageContext ctx = MessageContext.getCurrentContext();
globusLocation = (String) 
ctx.getProperty(org.apache.axis.Constants.MC_CONFIGPATH);
} catch(Exception e) { ...

This works well as exspected.
I am now trying to rewrite a new initalize-funktion that usees threads:
public synchronized void initialize() throws Exception {
class InitThread extends Thread {
InitThread() { super(); }
public void run() {
try {
MessageContext ctx = 
MessageContext.getCurrentContext();
String globusLocation = (String) 
ctx.getProperty(org.apache.axis.Constants.MC_CONFIGPATH);
} catch(Exception e) { 
System.err.println("3:"+e.getMessage()); }
}

public void test() {
try {
MessageContext ctx = 
MessageContext.getCurrentContext();
String globusLocation = (String) 
ctx.getProperty(org.apache.axis.Constants.MC_CONFIGPATH);
} catch(Exception e) { 
System.err.println("2:"+e.getMessage()); }
};
};
try {
MessageContext ctx = MessageContext.getCurrentContext();
String globusLocation = (String) 
ctx.getProperty(org.apache.axis.Constants.MC_CONFIGPATH);
} catch(Exception e) { System.err.println("1:"+e.getMessage()); }
InitThread initThread = new InitThread();
initThread.test();
initThread.start();
}

If i start the globus-container, i get "3:null". The exception itself is null, 
i can't get further information about it.
So, if you look at the code, all ctx.getProperty()-calls finish with success, 
only the one in the run()-method fails.
Why that? Is there a simple way around that?

Thank you,
Julian


-
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] com.ctc.wstx.exc.WstxEOFException

2006-12-18 Thread Martin Gainty
Vielen Danke Harald
Mit freundlich Grüßen,
Martin --
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
  - Original Message - 
  From: Harald Herrmann 
  To: axis-user@ws.apache.org 
  Sent: Monday, December 18, 2006 8:16 AM
  Subject: Re: [Axis2] com.ctc.wstx.exc.WstxEOFException


  It seems like Kaspersky Internet Security 6 ist cutting off the request body. 
  After uninstallation things work well.



  Martin Gainty schrieb: 
Moxo/Hermann
for verifying proper response for method getVersion as a quick check  can 
you go to your version wsdl located at
http://localhost:8080/axis2/services/version?wsdl
your prolog should look something like
http://schemas.xmlsoap.org/wsdl/"; 
xmlns:axis2="http://ws.apache.org/axis2"; 
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
xmlns:ns0="http://axisversion.sample/xsd"; 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; 
xmlns:ns1="http://org.apache.axis2/xsd"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
targetNamespace="http://ws.apache.org/axis2";>

any whitespace characters (space,tab,any non-displayable characters) before 

-   
-   


 


Thanks,
M-
--- 
This e-mail message (including attachments, if any) is intended for the use 
of the individual or entity to which it is addressed and may contain 
information that is privileged, proprietary , confidential and exempt from 
disclosure. If you are not the intended recipient, you are notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, 
le cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
  - Original Message - 
  From: moxi moxi 
  To: axis-user@ws.apache.org 
  Sent: Saturday, December 16, 2006 12:06 PM
  Subject: Re: [Axis2] com.ctc.wstx.exc.WstxEOFException


  I have the same problem, 

  I wrote a dotNET client, !surprise my WebService is working!, the problem 
is  when I call webservice with the  generated stub classes(Axis2, release 1.1).

  org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException: 
Unexpected EOF in prolog
   at [row,col {unknown-source}]: [1,0]
  at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
  at ...




  2006/12/15, Harald Herrmann <[EMAIL PROTECTED] >: 
Hi everyone,

Here's some additional info to my problem:

I made a simple but interesting experiment: I wrote a HTML form to post 
something to the webservice
and debugged the AxisServlet.doPost() method as before.
This time the InputStream contained the data I posted. 
The webservice failed of course, as the posted data was no valid soap 
request.

But something seems to cut off the request body if it's containing XML.

Regards,
H. Herrmann



  Hi everyone,

  I get following exception as response when accessing the Version 
webservice from the Axis 2-1.1
  distribution:

  org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException: 
Unexpected EOF in prolog
   at [row,col {unknown-source}]: [1,0]
  at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
  at 
sample.axisversion.VersionStub.getVersion(VersionStub.java:155)
  at Test.start(Test.java:11)
  at Test.main(Test.java:18)

  I generated th

RE: Axis2 HttpRequest

2006-12-18 Thread Punnoose, Roshan
Oh, I was just looking through the AxisServlet, and there is a line that
does this:

 

msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST, req); (in
function createMessageContext)

 

Can I use that?

 

Roshan Punnoose

Phone: 301-497-6039



From: sridhar vudutha [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 9:50 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 HttpRequest

 

Hi Roshan,

  There is work around if you want to access the contents of
HttpRequest object. You may place a ServletFilter before AxisServlet and
modify the HttpRequest object as desired.

 

Hope this helps,

- Sridhar.

 

On 12/14/06, Punnoose, Roshan <[EMAIL PROTECTED]> wrote: 

Is it possible to get the incoming HTTPRequest object from the
OperationContext when the web service is invoked? Or how about the
HttpSession? 

 

Roshan Punnoose

Phone: 301-497-6039

 


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




 

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Axis2 HttpRequest

2006-12-18 Thread Punnoose, Roshan
Never mind, I just saw that it is only called if it is a REST message,
which mine is not. I'll log a JIRA.

 

Roshan Punnoose

Phone: 301-497-6039



From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 18, 2006 11:00 AM
To: axis-user@ws.apache.org
Subject: RE: Axis2 HttpRequest

 

Oh, I was just looking through the AxisServlet, and there is a line that
does this:

 

msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST, req); (in
function createMessageContext)

 

Can I use that?

 

Roshan Punnoose

Phone: 301-497-6039



From: sridhar vudutha [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 9:50 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 HttpRequest

 

Hi Roshan,

  There is work around if you want to access the contents of
HttpRequest object. You may place a ServletFilter before AxisServlet and
modify the HttpRequest object as desired.

 

Hope this helps,

- Sridhar.

 

On 12/14/06, Punnoose, Roshan <[EMAIL PROTECTED]> wrote: 

Is it possible to get the incoming HTTPRequest object from the
OperationContext when the web service is invoked? Or how about the
HttpSession? 

 

Roshan Punnoose

Phone: 301-497-6039

 


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




 

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: AxisFault: null; nexted exception is: XmlStreamException

2006-12-18 Thread Tom Muldoon
As previously requested, I posted the wsdl associated with the 
exception. Please excuse the impatience and consider this a friendly 
reminder - I really am stuck. Any and all help is appreciated.


Tom

Tom Muldoon wrote:


http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
xmlns:tns="http://www.netrate.com/webservices"; 
xmlns:s="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; 
targetNamespace="http://www.netrate.com/webservices"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>

 
   targetNamespace="http://www.netrate.com/webservices";>

 
   
 
   type="s:string"/>

 
   
 
 
   
 
   name="CalculateQuoteResult" type="s:string"/>

 
   
 
   
 
 
   
 
 
   
 
 
   
 
 
   
 
 
   http://schemas.xmlsoap.org/soap/http"/>
   
 soapAction="http://www.netrate.com/webservices/CalculateQuote"; 
style="document"/>

 
   
 
 
   
 
   
 
 
   http://schemas.xmlsoap.org/soap/http"/>
   
 soapAction="http://www.netrate.com/webservices/CalculateQuote"; 
style="document"/>

 
   
 
 
   
 
   
 
 
   
 location="http://www.netratedemo.com/RatingService/RatingService.asmx"/>

   
   binding="tns:RatingServiceSoap12">
 location="http://www.netratedemo.com/RatingService/RatingService.asmx"/>

   
 


Martin Gainty wrote:

please post the wsdl
Thank You
--- 
This e-mail message (including attachments, if any) is intended for 
the use of the individual or entity to which it is addressed and may 
contain information that is privileged, proprietary , confidential 
and exempt from disclosure. If you are not the intended recipient, 
you are notified that any dissemination, distribution or copying of 
this communication is strictly prohibited.


- Original Message - From: "Tom Muldoon" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, December 16, 2006 7:03 PM
Subject: AxisFault: null; nexted exception is: XmlStreamException

 
I am admittedly a web service beginner and I'm trying to write my 
first client program - the web service has been provided by a 3rd 
party.  I used the wsdl2java maven2 plugin to generate my stub and 
I've worked my way through a number of issues due to runtime 
dependencies. That said, I'm now blocked by the following 
XmlStreamException. Due to some of the other problems that I already 
worked through, I'm wondering if I am missing another dependency. Of 
course, I could be way off base - remember, I'm a beginner.


Anyway, here's a stack trace. Any help is very much appreciated,

Tom


2006-12-15 15:19:15,906 INFO  HttpMethodDirector executeWithRetry - 
I/O exception (org.apache.axis2.AxisFault) caught when processing 
request: null; nested exception is:

   javax.xml.stream.XMLStreamException
2006-12-15 15:19:15,921 INFO  HttpMethodDirector executeWithRetry - 
Retrying request
2006-12-15 15:19:16,281 INFO  HttpMethodDirector executeWithRetry - 
I/O exception (org.apache.axis2.AxisFault) caught when processing 
request: null; nested exception is:

   javax.xml.stream.XMLStreamException
2006-12-15 15:19:16,281 INFO  HttpMethodDirector executeWithRetry - 
Retrying request
2006-12-15 15:19:16,578 INFO  HttpMethodDirector executeWithRetry - 
I/O exception (org.apache.axis2.AxisFault) caught when processing 
request: null; nested exception is:

   javax.xml.stream.XMLStreamException
2006-12-15 15:19:16,593 INFO  HttpMethodDirector executeWithRetry - 
Retrying request

org.apache.axis2.AxisFault: null; nested exception is:
   javax.xml.stream.XMLStreamException; nested exception is:
   org.apache.axis2.AxisFault: null; nested exception is:
   javax.xml.stream.XMLStreamException; nested exception is:
   org.apache.axis2.AxisFault: null; nested exception is:
   javax.xml.stream.XMLStreamException; nested exception is:
   org.apache.axis2.AxisFault: null; nested exception is:
   javax.xml.stream.XMLStreamException
   at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225) 


   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670)
   at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365) 

   at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295) 

   at 
com.firstbest.underwriting.rating.netrate.axis.RatingServiceStub.CalculateQuote(RatingServiceStub.java:114) 

   at 
com.firstbest.underwriting.rating.netrate.axis.CalculateQuoteTest.test_axis(CalculateQuoteTest.java:25) 


   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown 

MessageReceiverInOut Error with Weblogic 8.1 SP5

2006-12-18 Thread Slim Driss

Hi,

I'm working on Axis2 and Weblogic 8.1. I've generated a Web Services using
the "Eclipse Code Plugin Generator" but when I deploy the aar I got this
error :

Caused by: java.lang.ClassNotFoundException:
com.userupdate.partner.PAVServicesMessageReceiverInOut
   at java.lang.Class.forName(Ljava/lang/String;I)Ljava/lang/Class;(Unknown
Source)
   at org.apache.axis2.util.Loader.loadClass
(Ljava/lang/String;)Ljava/lang/Class;(Loader.java:158)
   at org.apache.axis2.util.Loader.loadClass
(Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/lang/Class;(Loader.java
:130)

The .aar file contains the PAVServicesMessageReceiverInOut and the same
sample works on Tomcat 5.5

I've configured axis2.xml to use an external repository for Axis2 and it
seems working correctly.

Thanks for your help

Driss


[Axis2] Can I get the raw XML?

2006-12-18 Thread Travis Tabbal

I have a service I generated with WSDL2Java. Now some developers want
the ability to run things like XSLT on the raw XML packet. How do I go
about getting the XML message from the web service call and keep
databinding for those that want it?

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



Re: [Axis2] Can I get the raw XML?

2006-12-18 Thread Ajith Ranabahu

Hmm... Interesting issue. So you need to transform some of the
messages and keep databinding for some of the messages ? I can give
you a few options

1. The case is that WSDL2Java creates classes to go with just one
databinding mechanism so either all messages are databound or not.
However each databinding mechanism provides a way to convert objects
in and out of XML. Although it may not be efficient you can convert
the object into  an XML object model and then do the XSLT operation.

2. Generate the skels without databinding ! This may not be an option
for you but if you do need to run XSLT transformations  and work with
the raw XML packet then this is the best way.

3. Modifiy the message receivers. This is a somewhat complex operation
but if you read through the generated code you will find the place
where the XML object model is converted to the databound object. So
you can insert the code right at that place!

HTH

Ajith

On 12/18/06, Travis Tabbal <[EMAIL PROTECTED]> wrote:

I have a service I generated with WSDL2Java. Now some developers want
the ability to run things like XSLT on the raw XML packet. How do I go
about getting the XML message from the web service call and keep
databinding for those that want it?

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





--
Ajith Ranabahu

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



Re: [Axis2] Can I get the raw XML?

2006-12-18 Thread Travis Tabbal

I don't mind modding the message receivers. I want to generate with
databinding as that seems to be the simplest way to get that feature
to work. I didn't see anywhere I could get the actuall received XML in
the message receiver code though. I was looking in there for it.

I was thinking that the XML should be available to Axis2 somewhere, so
it might have an API to get it back, should I need it. I really want
both to be available.

Travis


On 12/18/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:

Hmm... Interesting issue. So you need to transform some of the
messages and keep databinding for some of the messages ? I can give
you a few options

1. The case is that WSDL2Java creates classes to go with just one
databinding mechanism so either all messages are databound or not.
However each databinding mechanism provides a way to convert objects
in and out of XML. Although it may not be efficient you can convert
the object into  an XML object model and then do the XSLT operation.

2. Generate the skels without databinding ! This may not be an option
for you but if you do need to run XSLT transformations  and work with
the raw XML packet then this is the best way.

3. Modifiy the message receivers. This is a somewhat complex operation
but if you read through the generated code you will find the place
where the XML object model is converted to the databound object. So
you can insert the code right at that place!

HTH

Ajith

On 12/18/06, Travis Tabbal <[EMAIL PROTECTED]> wrote:
> I have a service I generated with WSDL2Java. Now some developers want
> the ability to run things like XSLT on the raw XML packet. How do I go
> about getting the XML message from the web service call and keep
> databinding for those that want it?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Ajith Ranabahu

-
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]



How can I use Dll client to send attachment and receive complex return data and attachment?

2006-12-18 Thread Yong Yang

Hi, I am a new guy of Axis. I would like to use the Dll client to send 
attachment and receive complex return data and attachment, for example, there 
is a operation1 which be implemented using Java,

ResultValue operation1(int param1, File file1)

here, ResultValue is a class as follow

Class ResultValue
{
int r1;
float r2;
File r3;
   ..
}

How can I use Dll client to send request and receive reply? I know there is a 
method, setReturnClass, in class Call, but I can not compile it if I use it 
like this, setReturnClass(ResultValue). Could anyone give me some ideas about 
this? Many thanks in advance.

best regards
yong 

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



RE: [axis2] Axis2 filling my /var/tmp with axis.jar

2006-12-18 Thread George Stanchev
I have observed it too. I am running XP, latest SP. My temp folder gets
full with files in the format axis2#.jar where  is
a number. I am building axis2 trunk and 1.1.1 branch regularly (2-3
times 
a week). Its annoying to have to clean it up regularly.

If the OP had crated a JIRA, post the JIRA ID number here so I can add
my 
configuration to it.

George Stanchev

-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 8:55 PM
To: axis-user@ws.apache.org
Subject: Re: [axis2] Axis2 filling my /var/tmp with
axis.jar

Please log a Jira with details about your environment..

~Thilina

On 12/16/06, sean curtis <[EMAIL PROTECTED]> wrote:
> After searching the docs and mailing list, I was unable to come up
with a way to get Axis2 to stop making what looks like "tmp" versions of
all my jars (i.e. axismyjar.jar) in /var/tmp, each time I
deploy a new version of my .aar files.
>
> This problem is being multiplied exponentially by multiple developers
working on the same host, so if anyone has come up with a handy way of
either having axis2 write to, perhaps, /dev/null, or cleaning itself up,
or not doing it all, it would be appreciated.
>
>
>
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorized review, use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please contact the sender by 
reply e-mail and destroy all copies of the original message.


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



[EMAIL PROTECTED]

2006-12-18 Thread Philippe Vandenhove

[EMAIL PROTECTED]


RE: Axis2 HttpRequest

2006-12-18 Thread Punnoose, Roshan
Ok, let me take that back. Axis2 is awesome, the developers thought of
everything, I was able to get the HttpServletRequest from the properties
in the MessageContext, and from there get the UserPrincipal. Thanks
guys.

 

Roshan Punnoose

Phone: 301-497-6039



From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 18, 2006 11:02 AM
To: axis-user@ws.apache.org
Subject: RE: Axis2 HttpRequest

 

Never mind, I just saw that it is only called if it is a REST message,
which mine is not. I'll log a JIRA.

 

Roshan Punnoose

Phone: 301-497-6039



From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 18, 2006 11:00 AM
To: axis-user@ws.apache.org
Subject: RE: Axis2 HttpRequest

 

Oh, I was just looking through the AxisServlet, and there is a line that
does this:

 

msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST, req); (in
function createMessageContext)

 

Can I use that?

 

Roshan Punnoose

Phone: 301-497-6039



From: sridhar vudutha [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 9:50 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 HttpRequest

 

Hi Roshan,

  There is work around if you want to access the contents of
HttpRequest object. You may place a ServletFilter before AxisServlet and
modify the HttpRequest object as desired.

 

Hope this helps,

- Sridhar.

 

On 12/14/06, Punnoose, Roshan <[EMAIL PROTECTED]> wrote: 

Is it possible to get the incoming HTTPRequest object from the
OperationContext when the web service is invoked? Or how about the
HttpSession? 

 

Roshan Punnoose

Phone: 301-497-6039

 


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




 

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

[Axis2] SOAP Transformation

2006-12-18 Thread Christian

Hi,

I'm new to axis2 and I have a question.



I would like to use the REST feature but I like to transform the SOAP 
message to JSON or plain text. The Webservice should also still run with the 
SOAP Interface.




I looked at the handler feature and I was able to change the SOAP but I can 
not transform to a stream or something else. Is this possible?


I also looked at the "TransportSender" but I'm not sure if this is the right 
way.




Thanks


Christian 



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



Re: [Axis2] SOAP Transformation

2006-12-18 Thread Davanum Srinivas

please see the apache synapse project. they have implemented this
transform already.

thx,
dims


On 12/18/06, Christian <[EMAIL PROTECTED]> wrote:

Hi,

I'm new to axis2 and I have a question.



I would like to use the REST feature but I like to transform the SOAP
message to JSON or plain text. The Webservice should also still run with the
SOAP Interface.



I looked at the handler feature and I was able to change the SOAP but I can
not transform to a stream or something else. Is this possible?

I also looked at the "TransportSender" but I'm not sure if this is the right
way.



Thanks


Christian


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





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



RE: Questions about Axis2

2006-12-18 Thread Spies, Brennan
I'd agree with Dennis that, if you know you are using Java on both sides of
the wire, RMI is a more efficient and easier to setup than an XML/SOAP-based
service. But there is another reason (a better one in my mind) than
platform/language neutrality to go with the XML/SOAP option: declarative vs.
imperative programming. RMI introduces a level of coupling to the Java
interfaces that is unavoidable, whereas a good XML "interface" should be like
an SQL statement: tell me what you want, and I (the service) will decide how
to do it.


-Original Message-
From: Dennis Sosnoski [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 16, 2006 10:33 PM
To: axis-user@ws.apache.org
Subject: Re: Questions about Axis2

For sending objects between Java applications RMI is generally your best 
bet. The only reason to use SOAP/XML is if you want to allow non-Java 
clients or servers to be used.

If you *do* want to allow for non-Java support, JiBX data binding lets 
you work with java.util.Collection classes without much effort. The 
upcoming Axis2 1.1.1 release will have improved support for what's 
called "unwrapped" interfaces using JiBX, and I'll be releasing a new 
version of the JiBX tools that provide code->binding and 
code+binding->schema support in conjunction with the Axis2 1.1.1 
release. These new tools include support for Java 5 generic collections, 
so that handling the type of data structures you described becomes very 
easy using JiBX.

The main downside of JiBX is the limited schema support. It's about on a 
par with ADB, and much more limited than XMLBeans. But JiBX is primarily 
focused on working with existing Java code, so for your case it's 
probably the easiest way to implement web services.

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Vanfleet, David wrote:
> Thanks for your comments Anne, what you're saying makes since to me.
> Some of the data I'll be transferring is raw XML so SOAP sounds like a
> reasonable protocol for that. However, other data is in the form of Java
> objects and it would be nice if it could be transferred and received as
> a Java object. How do I specify data binding for those objects (such as
> the one below)? is this done through the services.xml file?
>
> I do think that SOAP is the best protocol for what I need. However, if I
> was to look into using anther protocols do you know of any that you can
> recommend? I could always open an HTTP connection to a Java servlet and
> pass the data as a serialized Java object, I'm not sure what the
> advantages or disadvantages are for doing this?
>
> Thanks again,
> David
>
> -Original Message-
> From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, December 16, 2006 12:01 PM
> To: axis-user@ws.apache.org
> Subject: Re: Questions about Axis2
>
> David,
>
> The first thing you need to understand is that SOAP is not an
> especially good protocol for transferring language-specific
> collections. If your goal is to implement a Java-to-Java client/server
> application, perhaps you should consider using a different protocol --
> one that supports the Java type system. SOAP used the XML Schema type
> system. For best results using SOAP, your service interface should use
> types that map reasonably well to the XML Schema type system. (i.e.,
> don't try to use Vector or List to generate your interface -- use
> simple arrays instead)
>
> The next thing you need to understand is that there is a layer of
> indirection between the data/object model used by the server and
> data/object model used by the client. Just because you use
> language-specific collections on the server to generate your WSDL
> interface, those collections are not apparent to the client. The
> client only sees the schema representation of the objects. If you want
> your client to convert that schema into the same Java object types
> that you use on the server, then you need to specify the data binding
> mapping rather than using a tool like wsdl2java to generate it.
>
> Anne
>
> On 12/16/06, Vanfleet, David <[EMAIL PROTECTED]> wrote:
>   
>>
>>
>> Hi,
>>
>> I'm new to both Axis2 and web services and I'm having a hard time
>> 
> grasping
>   
>> all the various types of databinding that can be created (POJO, AXIOM,
>> 
> ADB,
>   
>> XMLBeans and JiBX). I have a couple of general questions about Axis2
>> 
> and web
>   
>> services.
>>
>>
>>
>> I need to create a service that can pass complex objects between the
>> 
> client
>   
>> and the server. Something like my modified weather example below.
>>
>>
>>
>> My questions about this are as follows:
>>
>>
>>
>> 1) In the testing I've done I noticed that it fails when there are any
>> java.util.Vector or java.util.List objects within the object being
>> transferred. I have seen several other posts about this but with no
>> response

Axis 2 issue : Null InputStream is not a valid argument

2006-12-18 Thread Anil Ranka

Hi All.
 I am runing my application on Tomcat 5.5.9 and I have registered JMX Mbean
to get application information while application is running. My application
and MBean is working fine. Recently I have added new API to my Mbean which
makes WebService call from MBean API. I wrote Client program using AXIS2
WSDL2Java utility. Now when I invoke this WebService call I am getting
following exception:

java.lang.IllegalArgumentException: Null InputStream is not a valid argument
   at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java
:599)
   at com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(
WstxInputFactory.java:305)
   at org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(
StAXUtils.java:68)
   at org.apache.axis2.deployment.DescriptionBuilder.buildOM(
DescriptionBuilder.java:86)
   at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(
AxisConfigBuilder.java:58)
   at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(
DeploymentEngine.java:690)
   at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java:109)
   at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:61)
   at org.apache.axis2.context.ConfigurationContextFactory.
createConfigurationContextFromFileSystem(ConfigurationContextFactory.java
:180)
   at org.apache.axis2.client.ServiceClient.initializeTransports(
ServiceClient.java:189)

I am passing null configurationCentext, so Axis tries to create AXIS context
from file system. It is not able to load
org\apache\axis2\deployment\axis2_default.xml which is part of
axis2-kernel-1.1.jar.

I have included al axis related files into my WEB-INF/lib directory. So how
at run time it doesn't find the jar files and throws Null InputStream is not
a valid argument

Does any one came across this issue. Any pointer is appreciated.

Thanks
Anil S. Ranka


Https access to Axis2 web services

2006-12-18 Thread Gul Onural
Hi,
I am trying to setup https access to Axis2 in tomcat. I have configured
the tomcat to use https on port 8443.
I can get access to the list of services using
https://localhost:8443/axis2/services/listServices.
I can see "version" in the list of available services, but when I click
the version I get 500 error.
What else I need to do to get https access working for a services ?
Gul

HTTP Status 500 - 
type Exception report
message 
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception 
java.lang.NullPointerException

org.apache.axis2.transport.http.ListingAgent$HTTPSListener.getEPRsForSer
vice(ListingAgent.java:406)

org.apache.axis2.description.AxisService.getEPRs(AxisService.java:625)

org.apache.axis2.description.AxisService.printWSDL(AxisService.java:600)

org.apache.axis2.transport.http.ListingAgent.processListService(ListingA
gent.java:184)

org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:177)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.15 logs.



RE: Axis 1.2 to Axis 2.1.1 migration question

2006-12-18 Thread Harish Hirasave
Though I was able to generate java code from the wsdl using databindings
-xmlbeans I am not able to get it working . Axis 2 generated the
attached complex objects ArrayOfTns1DwTcdInfoExt.java and
ArrayOfXsdString.java which extend soap encoded array but does not
provide any features of accessing or setting elements as an array
sequence. The input here is  an array of Strings which will have to be
set to in the ArrayOfXsdString object. This could be due to the reason
that you have mentioned below that Axis 2 does support soap encoded
arrays. I have also attached the wsdl for reference. Please let me know
if the only way here is to change the wsdl to not to use soap encoded
arrays.

Thanks
Harish

-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 14, 2006 6:56 PM
To: axis-user@ws.apache.org
Subject: Re: Axis 1.2 to Axis 2.1.1 migration question

>From the stacktrace, you are using soap encoded arrays which axis2
does not support. I'm not sure how xmlbeans could be working for you
if that's the case. Consider using doc / lit or rpc / lit style WSDL's
if possible. Probably the most popular three databinding options are
adb, xmlbeans and jibx. See the code generation guide on how to deal
with all the xsb files and the like with xmlbeans.

HTH,
Robert

On 12/14/06, Harish Hirasave <[EMAIL PROTECTED]> wrote:
> Axis team,
>
> I am migrating a webservice which is axis 1.2 to axis 2.1.1. I get the
> following error when I generate code using the wsdl in axis 2.1.1 When
I
> used xmlbeans as the databinding type I was able to generate the code
> but it generates a lot of other classes(xmlbeans) which I don't want.
> What is the best way to handle this? Is xmlbeans the only option now?
I
> read thru the documentation but I am not clear what databinding axis
1.*
> used that I did not have a problem. Please help.
>
> Thanks
> Harish
>
> -Original Message-
> From: Harish Hirasave [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 14, 2006 6:02 PM
> To: axis-user@ws.apache.org
> Subject: RE: setting actor in the outgoing wsse headers
>
> Axis team,
>
> I am migrating a webservice which is axis 1.2 to axis 2.1.1. I get the
> following error when I generate code using the wsdl in axis 2.1.1 When
I
> used xmlbeans as the databinding type I was able to generate the code
> but it generates a lot of other classes(xmlbeans) which I don't want.
> What is the best way to handle this? Is xmlbeans the only option now?
I
> read thru the documentation but I am not clear what databinding axis
1.*
> used that I did not have a problem. Please help.
>
> Thanks
> Harish
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationExcepti
> : java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGen
> ationEngine.java:224)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetExcep
> on
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Si
> leDBExtension.java:52)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGen
> ationEngine.java:177)
> ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Si
> leDBExtension.java:49)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException:
> {http://schemas
> mlsoap.org/soap/encoding/}Array is not supported.
> at
> org.apache.axis2.schema.SchemaCompiler.findClassName(SchemaCompiler
> ava:820)
> at
> org.apache.axis2.schema.SchemaCompiler.processComplexContent(Schema
> mpiler.java:1076)
> at
> org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCo
> iler.java:989)
> at
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCom
> ler.java:973)
> at
> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaTyp
> SchemaCompiler.java:909)
> at
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler
> ava:864)
> at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompile
> java:527)
> at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompile
> java:489)
> at
> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:
> 88)
> at
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompil
> .java:14

RE: Axis 1.2 to Axis 2.1.1 migration question

2006-12-18 Thread Harish Hirasave
Will the next version of axis support rpc/encoded style wsdls? 

-Original Message-
From: Harish Hirasave [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 18, 2006 4:58 PM
To: axis-user@ws.apache.org
Subject: RE: Axis 1.2 to Axis 2.1.1 migration question

Though I was able to generate java code from the wsdl using databindings
-xmlbeans I am not able to get it working . Axis 2 generated the
attached complex objects ArrayOfTns1DwTcdInfoExt.java and
ArrayOfXsdString.java which extend soap encoded array but does not
provide any features of accessing or setting elements as an array
sequence. The input here is  an array of Strings which will have to be
set to in the ArrayOfXsdString object. This could be due to the reason
that you have mentioned below that Axis 2 does support soap encoded
arrays. I have also attached the wsdl for reference. Please let me know
if the only way here is to change the wsdl to not to use soap encoded
arrays.

Thanks
Harish

-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 14, 2006 6:56 PM
To: axis-user@ws.apache.org
Subject: Re: Axis 1.2 to Axis 2.1.1 migration question

>From the stacktrace, you are using soap encoded arrays which axis2
does not support. I'm not sure how xmlbeans could be working for you
if that's the case. Consider using doc / lit or rpc / lit style WSDL's
if possible. Probably the most popular three databinding options are
adb, xmlbeans and jibx. See the code generation guide on how to deal
with all the xsb files and the like with xmlbeans.

HTH,
Robert

On 12/14/06, Harish Hirasave <[EMAIL PROTECTED]> wrote:
> Axis team,
>
> I am migrating a webservice which is axis 1.2 to axis 2.1.1. I get the
> following error when I generate code using the wsdl in axis 2.1.1 When
I
> used xmlbeans as the databinding type I was able to generate the code
> but it generates a lot of other classes(xmlbeans) which I don't want.
> What is the best way to handle this? Is xmlbeans the only option now?
I
> read thru the documentation but I am not clear what databinding axis
1.*
> used that I did not have a problem. Please help.
>
> Thanks
> Harish
>
> -Original Message-
> From: Harish Hirasave [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 14, 2006 6:02 PM
> To: axis-user@ws.apache.org
> Subject: RE: setting actor in the outgoing wsse headers
>
> Axis team,
>
> I am migrating a webservice which is axis 1.2 to axis 2.1.1. I get the
> following error when I generate code using the wsdl in axis 2.1.1 When
I
> used xmlbeans as the databinding type I was able to generate the code
> but it generates a lot of other classes(xmlbeans) which I don't want.
> What is the best way to handle this? Is xmlbeans the only option now?
I
> read thru the documentation but I am not clear what databinding axis
1.*
> used that I did not have a problem. Please help.
>
> Thanks
> Harish
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationExcepti
> : java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGen
> ationEngine.java:224)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetExcep
> on
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Si
> leDBExtension.java:52)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGen
> ationEngine.java:177)
> ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Si
> leDBExtension.java:49)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException:
> {http://schemas
> mlsoap.org/soap/encoding/}Array is not supported.
> at
> org.apache.axis2.schema.SchemaCompiler.findClassName(SchemaCompiler
> ava:820)
> at
> org.apache.axis2.schema.SchemaCompiler.processComplexContent(Schema
> mpiler.java:1076)
> at
> org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCo
> iler.java:989)
> at
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCom
> ler.java:973)
> at
> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaTyp
> SchemaCompiler.java:909)
> at
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler
> ava:864)
> at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompile
> java:527)
> at

Re: Axis 1.2 to Axis 2.1.1 migration question

2006-12-18 Thread Anne Thomas Manes

As far as I'm aware, there's no plan to implement support for SOAP
encoding in Axis2.
You should convert your WSDL to document/literal.

On 12/18/06, Harish Hirasave <[EMAIL PROTECTED]> wrote:

Will the next version of axis support rpc/encoded style wsdls?

-Original Message-
From: Harish Hirasave [mailto:[EMAIL PROTECTED]
Sent: Monday, December 18, 2006 4:58 PM
To: axis-user@ws.apache.org
Subject: RE: Axis 1.2 to Axis 2.1.1 migration question

Though I was able to generate java code from the wsdl using databindings
-xmlbeans I am not able to get it working . Axis 2 generated the
attached complex objects ArrayOfTns1DwTcdInfoExt.java and
ArrayOfXsdString.java which extend soap encoded array but does not
provide any features of accessing or setting elements as an array
sequence. The input here is  an array of Strings which will have to be
set to in the ArrayOfXsdString object. This could be due to the reason
that you have mentioned below that Axis 2 does support soap encoded
arrays. I have also attached the wsdl for reference. Please let me know
if the only way here is to change the wsdl to not to use soap encoded
arrays.

Thanks
Harish

-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 14, 2006 6:56 PM
To: axis-user@ws.apache.org
Subject: Re: Axis 1.2 to Axis 2.1.1 migration question

From the stacktrace, you are using soap encoded arrays which axis2
does not support. I'm not sure how xmlbeans could be working for you
if that's the case. Consider using doc / lit or rpc / lit style WSDL's
if possible. Probably the most popular three databinding options are
adb, xmlbeans and jibx. See the code generation guide on how to deal
with all the xsb files and the like with xmlbeans.

HTH,
Robert

On 12/14/06, Harish Hirasave <[EMAIL PROTECTED]> wrote:
> Axis team,
>
> I am migrating a webservice which is axis 1.2 to axis 2.1.1. I get the
> following error when I generate code using the wsdl in axis 2.1.1 When
I
> used xmlbeans as the databinding type I was able to generate the code
> but it generates a lot of other classes(xmlbeans) which I don't want.
> What is the best way to handle this? Is xmlbeans the only option now?
I
> read thru the documentation but I am not clear what databinding axis
1.*
> used that I did not have a problem. Please help.
>
> Thanks
> Harish
>
> -Original Message-
> From: Harish Hirasave [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 14, 2006 6:02 PM
> To: axis-user@ws.apache.org
> Subject: RE: setting actor in the outgoing wsse headers
>
> Axis team,
>
> I am migrating a webservice which is axis 1.2 to axis 2.1.1. I get the
> following error when I generate code using the wsdl in axis 2.1.1 When
I
> used xmlbeans as the databinding type I was able to generate the code
> but it generates a lot of other classes(xmlbeans) which I don't want.
> What is the best way to handle this? Is xmlbeans the only option now?
I
> read thru the documentation but I am not clear what databinding axis
1.*
> used that I did not have a problem. Please help.
>
> Thanks
> Harish
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationExcepti
> : java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGen
> ationEngine.java:224)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetExcep
> on
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Si
> leDBExtension.java:52)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGen
> ationEngine.java:177)
> ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Si
> leDBExtension.java:49)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException:
> {http://schemas
> mlsoap.org/soap/encoding/}Array is not supported.
> at
> org.apache.axis2.schema.SchemaCompiler.findClassName(SchemaCompiler
> ava:820)
> at
> org.apache.axis2.schema.SchemaCompiler.processComplexContent(Schema
> mpiler.java:1076)
> at
> org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCo
> iler.java:989)
> at
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCom
> ler.java:973)
> at
> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaTyp
> SchemaCompiler.java:909)
> 

Re: Targetnamespace confusion with autogenerated WSDL!?

2006-12-18 Thread Anne Thomas Manes

Perhaps this will help: http://ws.apache.org/axis2/1_1/Axis2-rpc-support.html
(Note: Axis2 does not support SOAP encoding)

On 12/17/06, Robert Ayzma <[EMAIL PROTECTED]> wrote:


Well it certainly cleared the fog a little, no doubt I misunderstood what I
read, so thanks.

Now the client soap envelope, in my little test, is created with the Ksoap2
libraries and it seems the attributes(id and root) are ignored by Axis2.

Some things connected to my former question that I need cleared up is then
this:

As it is atm, then to get an autogenerated WSDL file from Axis it looks like
you need  to make a services.xml file that looks a little something like
this:


Simple Echo service



urn:echo

SimpleService


Of course I could create a WSDL file from a POJO by using the java2wsdl tool
or even have Eclipse do it for me, then I might be able to understand what
goes on a little better with those messageReceivers.
But I think that it is essential to understand them if I want to do it
RPC/encoded or... ? I did try to look at the Axis documentation but I
haven't gotten wiser.

-Robert



 On 12/17/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
>
> Whatever sources you are referencing are in error.
>
> The WSDL defines what the document in the message on the wire looks
> like, but that doesn't mean that elements in the document on the wire
> must be in the WSDL targetNamespace.
>
> The WSDL defines a set of elements (e.g., messages, portTypes,
> operations, bindings, services, and ports). All of these defined
> elements are in the WSDL targetNamespace. A  definition
> defines the contents of a message on the wire. In your case:
>
>  
>  
>  
>
> indicates that the  should contain an element called
> "ns0:echo", as defined in the schema in the  section, for
> example:
>
>   http://ws.apache.org/axis2/xsd";>
>  some string
>   
>
> NOTE: This is a document/literal interface, which means that the
> message on the wire should conform to the schema that defines the
> message contents. The schema for ns0:echo does not define any
> attributes, therefore the message that you've created, which contains
> "id="o0" c:root="1"", is not valid. These attributes should only be
> used when using RPC/encoded.
>
> If you were using an RPC style service, then there is no explicit
> definition of the message schema, but you can infer the schema
> definition from the message, operation, and binding definitions. It
> works like this:
>
> The local name of the child element of the  is the taken
> from the operation name in the  definition. The
> qualifying namespace for the operation name comes from the namespace
> attribute in the  definition in the . The
> child elements of the operation element must be unqualified, and they
> take their local names from the names of the  elements in
> the .
>
> Hope this helps.
>
> Anne
>
> On 12/17/06, Robert Ayzma <[EMAIL PROTECTED] > wrote:
> > I have made a very simple web service on an Axis2 Tomcat driven server.
> > Axis generates the wsdl fine heres a snippet.
> >
> >
> > http://ws.apache.org/axis2 ">
> > SimpleService
> > −
> >
> > −
> > > elementFormDefault="qualified"
> > targetNamespace="http://ws.apache.org/axis2/xsd";>
> > −
> >
> > −
> >
> > −
> >
> > 
> > 
> > 
> > 
> > −
> >
> > −
> >
> > −
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > −
> >
> > 
> > 
> > −
> >
> > 
> > 
> > −
> >
> > −
> >
> > 
> > 
> >  
> > 
> > −
> > > type="axis2:SimpleServicePortType">
> > http://schemas.xmlsoap.org/soap/http";
> > style="document"/>
> > −
> >
> > ..snippet ends
> >
> > I have also made a client that can communicate with the echo service
> > but ONLY if I use the targetnamespace of the schema and not the one for
> > wsdl definitions, and I have absolutely no idea why.
> >
> > The request for the client request looks like this:
> > http://www.w3.org/2001/XMLSchema-instance";
> > xmlns:d="http://www.w3.org/2001/XMLSchema";
> > xmlns:c=" http://schemas.xmlsoap.org/soap/encoding/ "
> >
xmlns:v="http://schemas.xmlsoap.org/soap/envelope/";> > /> > xmlns:n0="http://ws.apache.org/axis2/xsd";> > i:type="d:string">Test af Soap
> > Webservice
> >
> > The response looks like this:
> >  > xmlns:soapenv="
> >  http://schemas.xmlsoap.org/soap/envelope/
"> > /> > xmlns:ns="http://ws.apache.org/axis2/xsd";>echo
> > value is: Test af Soap
> >
Webservice
> >
> > And all is fine, but if I change the namespace to: "xmlns:ns="
> >   http://ws.apache.org/axis2"; instead, then I get a faultcode with
unknown
> > method echo.
> >
> > According to all sorts of books and ressources on the net, the WSDL
> > definitions namespace address ALL the elements in the document, so why
> > is it that if I change the namespace to the defintions namespace then
> > my client gets a faultcode saying that the echo method is not known? I
> > am missing out 

Re: [Axis2] SOAP Transformation

2006-12-18 Thread Thilina Gunarathne

Hi,
There is an ongoing effort to implement JSON support for Axis2. With
that you will be able to communicate with Axis2 web services using
JSON too..

~Thilina

On 12/19/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

please see the apache synapse project. they have implemented this
transform already.

thx,
dims


On 12/18/06, Christian <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new to axis2 and I have a question.
>
>
>
> I would like to use the REST feature but I like to transform the SOAP
> message to JSON or plain text. The Webservice should also still run with the
> SOAP Interface.
>
>
>
> I looked at the handler feature and I was able to change the SOAP but I can
> not transform to a stream or something else. Is this possible?
>
> I also looked at the "TransportSender" but I'm not sure if this is the right
> way.
>
>
>
> Thanks
>
>
> Christian
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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





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

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



Re: problems with wsdl2java,need help!

2006-12-18 Thread Peter

thanks I have found that the wsdl file is not correct

On 12/18/06, Martin Gainty <[EMAIL PROTECTED]> wrote:


 Your best bet here is to start small with something that you know
works such as interopTest.wsdl
and add one type at a time..literally start with

 
  
  
  
  
  
 

add 1 element of a xsd primitive such as string or int or float
get that working
construct ComplexType (ThisWorksSoDontTouchIt) and add that 1 ComplexType
element in
get that working
you see the pattern..

What you have now had so many errors that it could take days to verify all
of the incorrect namespances or improperly specified or constructed
complexTypes

HTH,
M-
---

This e-mail message (including attachments, if any) is intended for the
use of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.
---

Le présent message électronique (y compris les pièces qui y sont annexées,
le cas échéant) s'adresse au destinataire indiqué et peut contenir des
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
destinataire de ce document, nous vous signalons qu'il est strictement
interdit de le diffuser, de le distribuer ou de le reproduire.

 - Original Message -
*From:* Peter <[EMAIL PROTECTED]>
*To:* axis-user@ws.apache.org
*Sent:* Sunday, December 17, 2006 7:56 PM
*Subject:* problems with wsdl2java,need help!


hallo all, I have a problem when using wsdl2java, it looks like following

D:\test>java org.apache.axis.wsdl.WSDL2Java province2.wsdl
java.lang.NullPointerException
at org.apache.axis.wsdl.toJava.JavaBeanWriter.preprocess
(JavaBeanWriter.
java:295)
at org.apache.axis.wsdl.toJava.JavaBeanWriter (
JavaBeanWriter.java
:160)
at org.apache.axis.wsdl.toJava.JavaTypeWriter.getBeanWriter
(JavaTypeWrit
er.java:174)
at org.apache.axis.wsdl.toJava.JavaTypeWriter.(
JavaTypeWriter.java
:89)
at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.getGenerator
(JavaGen
eratorFactory.java:318)
at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:545)
at org.apache.axis.wsdl.gen.Parser.generate (Parser.java:432)
at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java
:362)
at java.lang.Thread.run(Unknown Source)

the wsdl file is in the attachment

any idea about how to solve it !

thank you very much


--

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




Re: Https access to Axis2 web services

2006-12-18 Thread Deepal Jayasinghe
Hi Gul;
Yes we a had a problem in 1.1 release with HTTPS , but now we have fixed
th issue in 1.1 branch.

Thanks
Deepal

Gul Onural wrote:

> Hi,
> I am trying to setup https access to Axis2 in tomcat. I have
> configured the tomcat to use https on port 8443.
> I can get access to the list of services using
> _https://localhost:8443/axis2/services/listServices_.
> I can see "version" in the list of available services, but when I
> click the version I get 500 error.
> What else I need to do to get https access working for a services ?
> Gul
>
> *HTTP Status 500 - *
> *type* Exception report
> *message*
> *description*_ The server encountered an internal error () that
> prevented it from fulfilling this request._
> *exception*
> java.lang.NullPointerException
>
> org.apache.axis2.transport.http.ListingAgent$HTTPSListener.getEPRsForService(ListingAgent.java:406)
>
>
> org.apache.axis2.description.AxisService.getEPRs(AxisService.java:625)
>
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:600)
>
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:184)
>
>
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:177)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> *note*_ The full stack trace of the root cause is available in the
> Apache Tomcat/5.5.15 logs._
>

-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



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



Re: Axis 2 issue : Null InputStream is not a valid argument

2006-12-18 Thread Deepal Jayasinghe
Hi Ranka;

Pls create a JIRA issue,

Thanks
Deepal

Anil Ranka wrote:

> Hi All.
>   I am runing my application on Tomcat 5.5.9 and I have registered JMX
> Mbean to get application information while application is running. My
> application  and MBean is working fine. Recently I have added new API
> to my Mbean which makes WebService call from MBean API. I wrote Client
> program using AXIS2 WSDL2Java utility. Now when I invoke this
> WebService call I am getting following exception:
>
> java.lang.IllegalArgumentException: Null InputStream is not a valid
> argument
> at
> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:599)
> at
> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:305)
> at
> org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:68)
> at org.apache.axis2.deployment.DescriptionBuilder.buildOM
> (DescriptionBuilder.java:86)
> at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:58)
> at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java
> :690)
> at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:109)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java
> :61)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
> at org.apache.axis2.client.ServiceClient.initializeTransports
> (ServiceClient.java:189)
>
> I am passing null configurationCentext, so Axis tries to create AXIS
> context from file system. It is not able to load
> org\apache\axis2\deployment\axis2_default.xml which is part of
> axis2-kernel-1.1.jar .
>
> I have included al axis related files into my WEB-INF/lib directory.
> So how at run time it doesn't find the jar files and throws Null
> InputStream is not a valid argument
>
> Does any one came across this issue. Any pointer is appreciated.
>
> Thanks
> Anil S. Ranka


-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



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



Re: Axis 2 issue : Null InputStream is not a valid argument

2006-12-18 Thread Anil Ranka

Deepla,
 Thanks for reply, I am new to axis user group. What do u mean by JIRA
issue. How to create it. Do u mean it is bug and I have to log bug.

Please clarify.

Anil S. Ranka


On 12/18/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:


Hi Ranka;

Pls create a JIRA issue,

Thanks
Deepal

Anil Ranka wrote:

> Hi All.
>   I am runing my application on Tomcat 5.5.9 and I have registered JMX
> Mbean to get application information while application is running. My
> application  and MBean is working fine. Recently I have added new API
> to my Mbean which makes WebService call from MBean API. I wrote Client
> program using AXIS2 WSDL2Java utility. Now when I invoke this
> WebService call I am getting following exception:
>
> java.lang.IllegalArgumentException: Null InputStream is not a valid
> argument
> at
> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:599)
> at
> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(
WstxInputFactory.java:305)
> at
> org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java
:68)
> at org.apache.axis2.deployment.DescriptionBuilder.buildOM
> (DescriptionBuilder.java:86)
> at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(
AxisConfigBuilder.java:58)
> at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(
DeploymentEngine.java
> :690)
> at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java:109)
> at
>
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java
> :61)
> at
>
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
(ConfigurationContextFactory.java:180)
> at org.apache.axis2.client.ServiceClient.initializeTransports
> (ServiceClient.java:189)
>
> I am passing null configurationCentext, so Axis tries to create AXIS
> context from file system. It is not able to load
> org\apache\axis2\deployment\axis2_default.xml which is part of
> axis2-kernel-1.1.jar .
>
> I have included al axis related files into my WEB-INF/lib directory.
> So how at run time it doesn't find the jar files and throws Null
> InputStream is not a valid argument
>
> Does any one came across this issue. Any pointer is appreciated.
>
> Thanks
> Anil S. Ranka


--
Thanks,
Deepal

"The highest tower is built one brick at a time"



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




org.xml.sax.SAXException: Bad envelope tag: HTML

2006-12-18 Thread Mangesh Bais
Hi All, 
 
We are developing an application which is invoking Sharepoint Webservices.
Everyday during 1st unit test run we get the exeception below. Just ignoring
it and running the application once again, it works fine.
 
What is the cause of this error, which only occurs mostly during very 1st run
in a day?
 
Appreciate any help on this
 
 
 
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException: Bad envelope tag:  HTML
 faultActor: 
 faultNode: 
 faultDetail: 
 {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Bad
envelope tag:  HTML
 at
org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:71)
 at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationC
ontext.java:1048)
 at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
 at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
 at org.apache.crimson.parser.Parser2.parse(Unknown Source)
 at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
 at javax.xml.parsers.SAXParser.parse(Unknown Source)
 at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.
java:227)
 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
 at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
 at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChec
ker.java:62)
 at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
 at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
 at org.apache.axis.client.Call.invoke(Call.java:2767)
 at org.apache.axis.client.Call.invoke(Call.java:2443)
 at org.apache.axis.client.Call.invoke(Call.java:2366)
 at org.apache.axis.client.Call.invoke(Call.java:1812)
 at
com.microsoft.schemas.sharepoint.soap.AdminSoapStub.createSite(AdminSoapStub.
java:237)
 at migration.client.MigrateWS.createSite(MigrateWS.java:284)
 at migration.client.MigrateWS.traverseNodes(MigrateWS.java:125)
 at migration.client.MigrateWS.parseDocument(MigrateWS.java:102)
 at migration.client.MigrateWS.migrate(MigrateWS.java:70)
 at migration.client.MigrateWS.main(MigrateWS.java:60)
 
 {http://xml.apache.org/axis/}hostname:mabais-w2k
 
org.xml.sax.SAXException: Bad envelope tag:  HTML
 at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
 at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
 at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChec
ker.java:62)
 at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
 at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
 at org.apache.axis.client.Call.invoke(Call.java:2767)
 at org.apache.axis.client.Call.invoke(Call.java:2443)
 at org.apache.axis.client.Call.invoke(Call.java:2366)
 at org.apache.axis.client.Call.invoke(Call.java:1812)
 at
com.microsoft.schemas.sharepoint.soap.AdminSoapStub.createSite(AdminSoapStub.
java:237)
 at migration.client.MigrateWS.createSite(MigrateWS.java:284)
 at migration.client.MigrateWS.traverseNodes(MigrateWS.java:125)
 at migration.client.MigrateWS.parseDocument(MigrateWS.java:102)
 at migration.client.MigrateWS.migrate(MigrateWS.java:70)
 at migration.client.MigrateWS.main(MigrateWS.java:60)
Caused by: org.xml.sax.SAXException: Bad envelope tag:  HTML
 at
org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:71)
 at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationC
ontext.java:1048)

Regards,

Mangesh Bais


 
P.S. We have used WSDL2Java tool of axis 1.4 for generating the client
classes
 
 


Re: Axis 2 issue : Null InputStream is not a valid argument

2006-12-18 Thread Deepal Jayasinghe
Hi Anil;
You need to go to [1] and register as a JIRA user then create a issue :)

[1] - https://issues.apache.org/jira/browse/AXIS2

Thanks
Deepal

Anil Ranka wrote:

> Deepla,
>   Thanks for reply, I am new to axis user group. What do u mean by
> JIRA issue. How to create it. Do u mean it is bug and I have to log bug.
>
> Please clarify.
>
> Anil S. Ranka
>
>
> On 12/18/06, *Deepal Jayasinghe* <[EMAIL PROTECTED]
> > wrote:
>
> Hi Ranka;
>
> Pls create a JIRA issue,
>
> Thanks
> Deepal
>
> Anil Ranka wrote:
>
> > Hi All.
> >   I am runing my application on Tomcat 5.5.9 and I have
> registered JMX
> > Mbean to get application information while application is
> running. My
> > application  and MBean is working fine. Recently I have added
> new API
> > to my Mbean which makes WebService call from MBean API. I wrote
> Client
> > program using AXIS2 WSDL2Java utility. Now when I invoke this
> > WebService call I am getting following exception:
> >
> > java.lang.IllegalArgumentException: Null InputStream is not a valid
> > argument
> > at
> > com.ctc.wstx.stax.WstxInputFactory.createSR
> (WstxInputFactory.java:599)
> > at
> >
> 
> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:305)
> > at
> > org.apache.axiom.om.util.StAXUtils.createXMLStreamReader
> (StAXUtils.java:68)
> > at org.apache.axis2.deployment.DescriptionBuilder.buildOM
> > (DescriptionBuilder.java:86)
> > at
> >
> 
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java
> :58)
> > at
> >
> 
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java
> > :690)
> > at
> >
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration
> (FileSystemConfigurator.java:109)
> > at
> >
> 
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java
> > :61)
> > at
> >
> 
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
> (ConfigurationContextFactory.java:180)
> > at
> org.apache.axis2.client.ServiceClient.initializeTransports
> > (ServiceClient.java:189)
> >
> > I am passing null configurationCentext, so Axis tries to create
> AXIS
> > context from file system. It is not able to load
> > org\apache\axis2\deployment\axis2_default.xml which is part of
> > axis2-kernel-1.1.jar .
> >
> > I have included al axis related files into my WEB-INF/lib
> directory.
> > So how at run time it doesn't find the jar files and throws Null
> > InputStream is not a valid argument
> >
> > Does any one came across this issue. Any pointer is appreciated.
> >
> > Thanks
> > Anil S. Ranka
>
>
> --
> Thanks,
> Deepal
> 
> "The highest tower is built one brick at a time"
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>
>

-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



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



AxisFault HTTP Header

2006-12-18 Thread schalk
Hi everyone,

I have struggeling with this problem now for a couple of days. If I use 
OperationClient opClient = sender.createClient(ServiceClient.ANON_OUT_ONLY_OP);

The SOAP message is sent and all seems fine. One thing I do get though is:
[org.apache.commons.httpclient.HttpMethodBase] - Discarding unexpected
response: HTTP/1.1 100 Continue

But I do not think this is stopping the service from completing successfully.

However, when I run the client with:
OperationClient opClient = sender.createClient(ServiceClient.ANON_OUT_IN_OP);

I get both the httpclient problem as well as the following:
AxisFault Cause: Server did not recognize the value of HTTP Header SOAPAction:
urn:anonOutInOp.

Any and all help much appreciated. Thanks!
Schalk

--
Open WebMail Project (http://openwebmail.org)


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