Re: Empty Responses in Firefox

2009-01-23 Thread Andriy Zavada
Hi,

Unfortunately disabling favicon.ico in firefox didn't fix it!
Are there any ideas?

Best regards,
Andriy Zavada

From: uthaiyashan...@gmail.com [mailto:uthaiyashan...@gmail.com] On Behalf Of 
Uthaiyashankar
Sent: Friday, January 23, 2009 5:51 AM
To: Apache AXIS C User List
Subject: {Disarmed} Re: {Disarmed} Re: Empty Responses in Firefox

Hi,

In that case, you can disable favicon.ico fetching from firefox. You can follow 
the steps given[1] to disable it. Simple axis server can only serve service 
request. It can't serve other files/images. Hence, if you plan to serve them, 
better to switch to either IIS or apache.

Regards,
Shankar

[1] 
http://www.howtogeek.com/howto/internet/firefox/quick-tip-disable-favicons-in-firefox/

On Fri, Jan 23, 2009 at 12:02 AM, Andriy Zavada 
azav...@softservecom.commailto:azav...@softservecom.com wrote:

I've deployed on IIS and it works!

But I have to use simple axis2 server. For me using IIS or Apache is 
undesirable.



Andriy



From: uthaiyashan...@gmail.commailto:uthaiyashan...@gmail.com 
[mailto:uthaiyashan...@gmail.commailto:uthaiyashan...@gmail.com] On Behalf Of 
Uthaiyashankar
Sent: Thursday, January 22, 2009 5:59 PM
To: Apache AXIS C User List
Subject: {Disarmed} Re: Empty Responses in Firefox



Hi

It seems like when requesting for favicon.ico (MailScanner has detected a 
possible fraud attempt from 127.0.0.1:9090 claiming to be MailScanner 
warning: numerical links are often malicious: 
http://127.0.0.1:9090/favicon.icohttp://127.0.0.1:9090/favicon.ico), it 
returns error. simple axis2 server cannot serve favicon.ico. So could you 
deploy the system in apache httpd, and setup an favicon.ico and see whether it 
works?

Regards,
Shankar

On Thu, Jan 22, 2009 at 4:41 PM, Andriy Zavada 
azav...@softservecom.commailto:azav...@softservecom.com wrote:

I've built latest version of Axis2/C from SVN and still getting empty responses



Best regards,

Andriy Zavada



From: Andriy Zavada 
[mailto:azav...@softservecom.commailto:azav...@softservecom.com]
Sent: Wednesday, January 21, 2009 8:17 PM

To: Apache AXIS C User List
Subject: RE: Empty Responses in Firefox



Even when I call http://localhost:9090/axis2/services I get empty responses 
sometimes.

I'm using Simple Axis2 HTTP Server.



Andriy



From: Andriy Zavada 
[mailto:azav...@softservecom.commailto:azav...@softservecom.com]
Sent: Wednesday, January 21, 2009 6:45 PM
To: Apache AXIS C User List
Subject: RE: Empty Responses in Firefox



I'm using 1.5.0. Attached are tcpmon and server logs.

When I send from Firefox through tcpmon I always receive response, but when 
without tcpmon sometimes (40%) I got empty response (only HTTP OK).



Also I found that tcpmon sometimes sends multiple requests.



Best regards,

Andriy Zavada



From: uthaiyashan...@gmail.commailto:uthaiyashan...@gmail.com 
[mailto:uthaiyashan...@gmail.commailto:uthaiyashan...@gmail.com] On Behalf Of 
Uthaiyashankar
Sent: Wednesday, January 21, 2009 6:19 PM
To: Apache AXIS C User List
Subject: Re: Empty Responses in Firefox



When sending the request from firefox, can you capture the message using tcpmon 
and send it to us? Also, send the server log as well. You haven't specified 
which version of Axis2/C you are using. There was a bug fixed related to 
Firefox request [1][2], not sure you are having same problem. However, that 
problem is solved in the current trunk

Regards,
Shankar

[1] http://issues.apache.org/jira/browse/AXIS2C-1278
[2] 
http://markmail.org/message/m3uc2odt2lawlzwg#query:%22REST%20support%20on%20Axis2%2FC%22+page:1+mid:4kmm6ckuzhn6xwcw+state:results

On Wed, Jan 21, 2009 at 8:52 PM, Andriy Zavada 
azav...@softservecom.commailto:azav...@softservecom.com wrote:

Can anyone help me on this?



From: Andriy Zavada 
[mailto:azav...@softservecom.commailto:azav...@softservecom.com]
Sent: Tuesday, January 20, 2009 10:31 AM

To: Apache AXIS C User List

Subject: RE: Empty Responses in Firefox



The problem is that server doesn't return anything, only HTTP 200.

I'm using HTTP Analyzer to track all requests.



Andriy



From: Rajika Kumarasiri [mailto:rajik...@gmail.commailto:rajik...@gmail.com]
Sent: Monday, January 19, 2009 7:54 PM
To: Apache AXIS C User List
Subject: Re: Empty Responses in Firefox





What's the Content-Type of the response. May be it is set incorrectly, so that 
the browser can't handle.

-Rajika

On Mon, Jan 19, 2009 at 10:43 PM, Andriy Zavada 
azav...@softservecom.commailto:azav...@softservecom.com wrote:

Hi all,



I'm sending several requests from Firefox 3 to my web service and sometimes I'm 
getting empty responses.

When I am using tcpmon I receive response every time, the same in IE.



Can anyone help me on this?



Best regards,

Andriy Zavada





--
http://wso2.org/

Re: Empty Responses in Firefox

2009-01-23 Thread Uthaiyashankar
Can you clear the log files and run it again (disable favicon). When you get
an error (first error), send the log files. This way we can locate exact
cause of the error.

Regards,
Shankar

On Fri, Jan 23, 2009 at 2:13 PM, Andriy Zavada azav...@softservecom.comwrote:

  Hi,



 Unfortunately disabling favicon.ico in firefox didn't fix it!

 Are there any ideas?



 Best regards,

 Andriy Zavada


-- 
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - The Open Source SOA Company


RE: Empty Responses in Firefox

2009-01-23 Thread Andriy Zavada
When sending through tcpmon everything works fine. In such case I can't detect 
error.
I've checked axis2.log while sending without tcpmon and found that no 
information about problem request.

In log attached there is 4 requests logged but I sent 5.

Best regards,
Andriy Zavada

From: uthaiyashan...@gmail.com [mailto:uthaiyashan...@gmail.com] On Behalf Of 
Uthaiyashankar
Sent: Friday, January 23, 2009 1:10 PM
To: Apache AXIS C User List
Subject: Re: Empty Responses in Firefox

Can you clear the log files and run it again (disable favicon). When you get an 
error (first error), send the log files. This way we can locate exact cause of 
the error.

Regards,
Shankar
On Fri, Jan 23, 2009 at 2:13 PM, Andriy Zavada 
azav...@softservecom.commailto:azav...@softservecom.com wrote:

Hi,



Unfortunately disabling favicon.ico in firefox didn't fix it!

Are there any ideas?



Best regards,

Andriy Zavada


--
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - The Open Source SOA Company



axis2.log
Description: axis2.log


Axis C++ 1.6 client app connecting using https through http proxy

2009-01-23 Thread Klitos Kyriacou
Hi, this is my first post, I've searched the list but couldn't find
the answer to my problem.

I have installed Axis C++ 1.6, Xerces and OpenSSL on Windows XP, and
set up the environment variable AXISCPP_DEPLOY and edited
axiscpp.conf.

I am trying to make an HTTPS connection to a web service through an
HTTP proxy. I can connect successfully using Axis for Java, but I also
want to do it in C++. In C++, I have code similar to the following:

MyWebService api;
api.setProxy(199.172.46.58, 8080);
addCredentialsHeader(api, username, password);  // local function
that constructs a header
api.myMethod();

I do the above inside a try block. When the application calls
myMethod(), it catches the following exception:

Axis exception 23:
 HTTPTransportException:Unknown Transport Exception error:140770FC:
   SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

I used Wireshark to see what's being sent through the network. First,
I checked with the Axis Java application, which works ok. It sends a
plain-text HTTP CONNECT request to the proxy server. The proxy server
then responds and the encrypted text is subsequently sent to the web
service through HTTP tunneling.

When I use Wireshark with my equivalent Axis C++ application, I can
see that it connects to the proxy server and then sends what looks
like random binary data instead of a CONNECT request. Could it be
encrypting it prematurely? Obviously, the proxy server doesn't
understand it, so it sends back an HTTP 500 Server Error.

Can anyone give me any help? Has anyone successfully managed to
connect to an HTTPS service through an HTTP proxy?

Thanks,
Klitos


Re: Axis C++ 1.6 client app connecting using https through http proxy

2009-01-23 Thread Nadir Amra
Klitos, 

I am willing to work on this if you help me understand what needs to be 
done.   There is an issue about tunneling here: 

http://issues.apache.org/jira/browse/AXISCPP-899

Maybe if you send me the traces and/or point me to something that tells me 
how this is suppose to work I can take a look into it. 



Nadir Amra


Klitos Kyriacou klitos.kyria...@gmail.com wrote on 01/23/2009 09:26:09 
AM:

 [image removed] 
 
 Axis C++ 1.6 client app connecting using https through http proxy
 
 Klitos Kyriacou 
 
 to:
 
 axis-c-user
 
 01/23/2009 09:26 AM
 
 Please respond to Apache AXIS C User List
 
 Hi, this is my first post, I've searched the list but couldn't find
 the answer to my problem.
 
 I have installed Axis C++ 1.6, Xerces and OpenSSL on Windows XP, and
 set up the environment variable AXISCPP_DEPLOY and edited
 axiscpp.conf.
 
 I am trying to make an HTTPS connection to a web service through an
 HTTP proxy. I can connect successfully using Axis for Java, but I also
 want to do it in C++. In C++, I have code similar to the following:
 
MyWebService api;
api.setProxy(199.172.46.58, 8080);
addCredentialsHeader(api, username, password);  // local function
 that constructs a header
api.myMethod();
 
 I do the above inside a try block. When the application calls
 myMethod(), it catches the following exception:
 
 Axis exception 23:
  HTTPTransportException:Unknown Transport Exception error:140770FC:
SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
 
 I used Wireshark to see what's being sent through the network. First,
 I checked with the Axis Java application, which works ok. It sends a
 plain-text HTTP CONNECT request to the proxy server. The proxy server
 then responds and the encrypted text is subsequently sent to the web
 service through HTTP tunneling.
 
 When I use Wireshark with my equivalent Axis C++ application, I can
 see that it connects to the proxy server and then sends what looks
 like random binary data instead of a CONNECT request. Could it be
 encrypting it prematurely? Obviously, the proxy server doesn't
 understand it, so it sends back an HTTP 500 Server Error.
 
 Can anyone give me any help? Has anyone successfully managed to
 connect to an HTTPS service through an HTTP proxy?
 
 Thanks,
 Klitos



RE: Axis C++ 1.6 client app connecting using https through http proxy

2009-01-23 Thread McCullough, Ryan
Nadir,

I think in HTTPTransport::setProxy( const char *pcProxyHost, unsigned int 
uiProxyPort)

You need to force the unsecure channel to be used.

Klitos, is it true that all communication to the Proxy server is unencrypted, 
but the communication from the proxy server to your web service is encrypted?

-Ryan

-Original Message-
From: Nadir Amra [mailto:a...@us.ibm.com] 
Sent: Friday, January 23, 2009 3:49 PM
To: Apache AXIS C User List
Subject: Re: Axis C++ 1.6 client app connecting using https through http proxy

Klitos, 

I am willing to work on this if you help me understand what needs to be 
done.   There is an issue about tunneling here: 

http://issues.apache.org/jira/browse/AXISCPP-899

Maybe if you send me the traces and/or point me to something that tells me 
how this is suppose to work I can take a look into it. 



Nadir Amra


Klitos Kyriacou klitos.kyria...@gmail.com wrote on 01/23/2009 09:26:09 
AM:

 [image removed] 
 
 Axis C++ 1.6 client app connecting using https through http proxy
 
 Klitos Kyriacou 
 
 to:
 
 axis-c-user
 
 01/23/2009 09:26 AM
 
 Please respond to Apache AXIS C User List
 
 Hi, this is my first post, I've searched the list but couldn't find
 the answer to my problem.
 
 I have installed Axis C++ 1.6, Xerces and OpenSSL on Windows XP, and
 set up the environment variable AXISCPP_DEPLOY and edited
 axiscpp.conf.
 
 I am trying to make an HTTPS connection to a web service through an
 HTTP proxy. I can connect successfully using Axis for Java, but I also
 want to do it in C++. In C++, I have code similar to the following:
 
MyWebService api;
api.setProxy(199.172.46.58, 8080);
addCredentialsHeader(api, username, password);  // local function
 that constructs a header
api.myMethod();
 
 I do the above inside a try block. When the application calls
 myMethod(), it catches the following exception:
 
 Axis exception 23:
  HTTPTransportException:Unknown Transport Exception error:140770FC:
SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
 
 I used Wireshark to see what's being sent through the network. First,
 I checked with the Axis Java application, which works ok. It sends a
 plain-text HTTP CONNECT request to the proxy server. The proxy server
 then responds and the encrypted text is subsequently sent to the web
 service through HTTP tunneling.
 
 When I use Wireshark with my equivalent Axis C++ application, I can
 see that it connects to the proxy server and then sends what looks
 like random binary data instead of a CONNECT request. Could it be
 encrypting it prematurely? Obviously, the proxy server doesn't
 understand it, so it sends back an HTTP 500 Server Error.
 
 Can anyone give me any help? Has anyone successfully managed to
 connect to an HTTPS service through an HTTP proxy?
 
 Thanks,
 Klitos



Re: Axis C++ 1.6 client app connecting using https through http proxy

2009-01-23 Thread Klitos Kyriacou
Hi Ryan,

Yes, communication to and from the proxy server is unencrypted HTTP
requests and responses. As for whether the communication from the
proxy server to your web service is encrypted, I am not sure as I am
not an expert on HTTP. As I understand it (and my understanding here
is very vague), the client sends an HTTP CONNECT request to the proxy
server and that establishes a way of talking to the final destination
(web service) using HTTP tunneling. I think this means the client
continues to send plain-text HTTP requests to the proxy server but the
payload data is encrypted. I can send traces, if you need them, on
Monday when I get back to work.

Thanks,
Klitos


On 23/01/2009, McCullough, Ryan rmccullo...@rightnow.com wrote:
 Nadir,

 I think in HTTPTransport::setProxy( const char *pcProxyHost, unsigned int 
 uiProxyPort)

 You need to force the unsecure channel to be used.

 Klitos, is it true that all communication to the Proxy server is unencrypted, 
 but the communication from the proxy server to your web service is encrypted?

 -Ryan

 -Original Message-
 From: Nadir Amra [mailto:a...@us.ibm.com]
 Sent: Friday, January 23, 2009 3:49 PM
 To: Apache AXIS C User List
 Subject: Re: Axis C++ 1.6 client app connecting using https through http proxy

 Klitos,

 I am willing to work on this if you help me understand what needs to be
 done.   There is an issue about tunneling here:

 http://issues.apache.org/jira/browse/AXISCPP-899

 Maybe if you send me the traces and/or point me to something that tells me
 how this is suppose to work I can take a look into it.



 Nadir Amra


 Klitos Kyriacou klitos.kyria...@gmail.com wrote on 01/23/2009 09:26:09
 AM:

  [image removed]
 
  Axis C++ 1.6 client app connecting using https through http proxy
 
  Klitos Kyriacou
 
  to:
 
  axis-c-user
 
  01/23/2009 09:26 AM
 
  Please respond to Apache AXIS C User List
 
  Hi, this is my first post, I've searched the list but couldn't find
  the answer to my problem.
 
  I have installed Axis C++ 1.6, Xerces and OpenSSL on Windows XP, and
  set up the environment variable AXISCPP_DEPLOY and edited
  axiscpp.conf.
 
  I am trying to make an HTTPS connection to a web service through an
  HTTP proxy. I can connect successfully using Axis for Java, but I also
  want to do it in C++. In C++, I have code similar to the following:
 
 MyWebService api;
 api.setProxy(199.172.46.58, 8080);
 addCredentialsHeader(api, username, password);  // local function
  that constructs a header
 api.myMethod();
 
  I do the above inside a try block. When the application calls
  myMethod(), it catches the following exception:
 
  Axis exception 23:
   HTTPTransportException:Unknown Transport Exception error:140770FC:
 SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
 
  I used Wireshark to see what's being sent through the network. First,
  I checked with the Axis Java application, which works ok. It sends a
  plain-text HTTP CONNECT request to the proxy server. The proxy server
  then responds and the encrypted text is subsequently sent to the web
  service through HTTP tunneling.
 
  When I use Wireshark with my equivalent Axis C++ application, I can
  see that it connects to the proxy server and then sends what looks
  like random binary data instead of a CONNECT request. Could it be
  encrypting it prematurely? Obviously, the proxy server doesn't
  understand it, so it sends back an HTTP 500 Server Error.
 
  Can anyone give me any help? Has anyone successfully managed to
  connect to an HTTPS service through an HTTP proxy?
 
  Thanks,
  Klitos




Transport error: 400 Error: Bad Request

2009-01-23 Thread Kiran Narasareddy
Hi,
   I am consuming a .Net web service in java code.(I used NETBEANS 6.1 to
generate the service client) When i run my client as standalone java
application, it works fine and the .Net service is consumed normally and i
get my result.
Now ,when  I use the same code and deploy it as an web service in axis2, it
doesnt work, giving the following error in return in browser...

* javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault:
Transport error: 400 Error: Bad Request*

Can anyone tell me what might be the reason??
Do i need to change anything when i deploy it as an web service in axis2?

Thanks in advance.

Kiran Narasareddy
Computers make very fast, very accurate mistakes.


AxisServlet:172 error.

2009-01-23 Thread Toriacht

Hi, I have a simple webservice, written in java, that accepts a number of
parameters and processes them. If i implement this service (java method)
returning a string to the client it works fine, but when i change it to a
void method (preferred option) I keep getting an AxisServlet:172 error. The
only change I make is to change the rerurn type from String to void and
generate the web service again (Eclipse). I have pasted the error below.

 

If i change back to a non void method it works fine...

 

Any ideas appreciated. Also if this is the wrong forum please let me know

 

Thanks,

Tori

 

error:

09:51:19,871 ERROR AxisServlet:172 - An access occurred that is not valid.

java.lang.UnsupportedOperationException: An access occurred that is not
valid.

at
org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOperation.java:109)

at
org.apache.axis2.util.MessageContextBuilder.createOutMessageContext(MessageContextBuilder.java:190)

at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:37)

at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)

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

at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

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:191)

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:845)

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)
-- 
View this message in context: 
http://www.nabble.com/AxisServlet%3A172-error.-tp21622535p21622535.html
Sent from the Axis - User mailing list archive at Nabble.com.



Problem: Oracle Server - Rampart Client...

2009-01-23 Thread m4rkuz
Hi Everyone,

I'm new to rampart but learning quickly, well not quikly enough because I've
been having some problems trying to invoke a WS that was made using oracle
tools, is supposed to be easy initialy I just had to sing the message but
even at that level I haven't been able to do it, I went thru examples on the
distribution (1.4.1) and some webs but I'm still getting :

FAULT CODE: UnsupportedSecurityToken FAULT MESSAGE: An unsupported token was
provided

I asked for a  successful soap message example to compare the one I generate
with a good one, (attached to the message) the only big diference I see is
that in the rampart made soap message all the URI attributes are not
encripted as they do in the oracle example

Rampart:
...
ds:Reference URI=#Id-27978063
..
ds:Reference URI=#Timestamp-14707008

wsse:Reference URI=#CertId-1097338


Oracle:
..
dsig:Reference URI=#bcyKqLafyGSUXDbAEVXbIg22
...
dsig:Reference URI=#5KdQ0TRTux484dTYM5mpHQ22

wsse:Reference URI=#5KdQ0TRTux484dTYM5mpHQ22



What is all about? (I'm really newbie) and how can I match that using
rampart ??


Best Regards,


Marcus V. Sánchez D.
__
Enterprise Developer.
Sun Certified Java Programmer (SCJP)
?xml version=1.0 encoding=UTF-8?
env:Envelope xmlns:env=http://schemas.xmlsoap.org/soap/envelope/;
	xmlns:xsd=http://www.w3.org/2001/XMLSchema;
	xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
	xmlns:ns0=http://test.heinsohn.com/types/;
	env:Header
		wsse:Security env:mustUnderstand=1
			xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
			xmlns=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
			xmlns:env=http://schemas.xmlsoap.org/soap/envelope/;
			wsse:BinarySecurityToken
ValueType=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3;
EncodingType=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary;
wsu:Id=5KdQ0TRTux484dTYM5mpHQ22
xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
xmlns=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
MIICQjCCAasCBEjSYtkwDQYJKoZIhvcNAQEFBQAwaDELMAkGA1UEBhMCVVMxEDAOBgNVBAgTB0Zsb3JpZGExEDAOBgNVBAcTB3NhbUhvbWUxDzANBgNVBAoTBnNhbU9yZzEQMA4GA1UECxMHc2FtRGVwdDESMBAGA1UEAxMJU2FtIE1vb3JlMB4XDTA4MDkxODE0MTY1N1oXDTA4MTIxNzE0MTY1N1owaDELMAkGA1UEBhMCVVMxEDAOBgNVBAgTB0Zsb3JpZGExEDAOBgNVBAcTB3NhbUhvbWUxDzANBgNVBAoTBnNhbU9yZzEQMA4GA1UECxMHc2FtRGVwdDESMBAGA1UEAxMJU2FtIE1vb3JlMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCv3cDnMuNkqKweUeC458/74Kp4bht6ipjTQtgiR1xDUotymfMyOuYHzFCzbYv8z5N+jVP0pLXCN4eYqVJKZ20+mnDtxPZPKJsTLtnNF+VwoiVZ7GF5eb9Qrbul/6/veolFaMeJySUJEWaGRhiA3CsyWMUBirYtrItqe+puX2ivkwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAKXJ6hI72drL+HGErxiBi5ToqTOv4frXH4TdTE2scSkl3DSZM0nryWfA76rxmxbxRSRzNAzs+nP6wWthpb5NcfUoMuZ/Zx+mSfTfoNWLDev2QaFbSIv/sFGZNfODGigOvAyCM33BtxFXXkR54bNfe13MBrLe/RSlzsBSrbf5w7/2
			/wsse:BinarySecurityToken
			dsig:Signature xmlns=http://www.w3.org/2000/09/xmldsig#;
xmlns:dsig=http://www.w3.org/2000/09/xmldsig#;
dsig:SignedInfo
	dsig:CanonicalizationMethod
		Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#; /
	dsig:SignatureMethod
		Algorithm=http://www.w3.org/2000/09/xmldsig#rsa-sha1; /
	dsig:Reference URI=#bcyKqLafyGSUXDbAEVXbIg22
		dsig:Transforms
			dsig:Transform
Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#; /
		/dsig:Transforms
		dsig:DigestMethod
			Algorithm=http://www.w3.org/2000/09/xmldsig#sha1; /
		dsig:DigestValue
			r6mS6ytfF/8Hj5qOfC3Vy8o5n5c=
		/dsig:DigestValue
	/dsig:Reference
	dsig:Reference URI=#5KdQ0TRTux484dTYM5mpHQ22
		dsig:Transforms
			dsig:Transform
Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#; /
		/dsig:Transforms
		dsig:DigestMethod
			Algorithm=http://www.w3.org/2000/09/xmldsig#sha1; /
		dsig:DigestValue
			7g8/vO+zjJNHKyKPpJGhBDRNO8A=
		/dsig:DigestValue
	/dsig:Reference
/dsig:SignedInfo
dsig:SignatureValue
	eF1WtunbSIGGMLDEurLqa5QTXoNYbHd0AG9Kg2glQVOZhvFJ0QvmMx3YNPuwbw5x7+lbGjRqSI9eD/EMwXyVAlvMTbMJJsspYoocS/tspTRqxIuKtI72qKIqOaUnXWJDFXocM9nxmqththJuuUf8Dji8+Y1rtHby9WlCh9EWkHI=
/dsig:SignatureValue
dsig:KeyInfo
	wsse:SecurityTokenReference
		xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
		xmlns=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
		wsse:Reference URI=#5KdQ0TRTux484dTYM5mpHQ22
			ValueType=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3;
			xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
			

Re: Axis - return types

2009-01-23 Thread gezhall

Many thanks. I understand in more detail now, but it's all very complex to
me. I think I need a really good step by step guide - a book, or online
resource. The Axis user guides are good, but too brief for me.

Is there anything up-to-date which you would recommend to teach me the
basics?


lkamal wrote:
 
 Not sure whether u haven't looked at the client side class generation
 part.
 Using the WSDL file you can generate classes for client side.
 
 Any custom class that you write, can be used as service return types. Do u
 need further clarifications?
 
 

-- 
View this message in context: 
http://www.nabble.com/Axis---return-types-tp21604479p21624916.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: AxisServlet:172 error.

2009-01-23 Thread Amila Suriarachchi
On Fri, Jan 23, 2009 at 4:37 PM, Toriacht shatner.will...@gmail.com wrote:


 Hi, I have a simple webservice, written in java, that accepts a number of
 parameters and processes them. If i implement this service (java method)
 returning a string to the client it works fine, but when i change it to a
 void method (preferred option) I keep getting an AxisServlet:172 error. The
 only change I make is to change the rerurn type from String to void and
 generate the web service again (Eclipse). I have pasted the error below.



 If i change back to a non void method it works fine...



 Any ideas appreciated. Also if this is the wrong forum please let me know



 Thanks,

 Tori



 error:

 09:51:19,871 ERROR AxisServlet:172 - An access occurred that is not valid.

 java.lang.UnsupportedOperationException: An access occurred that is not
 valid.

at

 org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOperation.java:109)

at

 org.apache.axis2.util.MessageContextBuilder.createOutMessageContext(MessageContextBuilder.java:190)

at

 org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:37)


May be a problem with your services.xml. Can you send that file?

The problem is your Inonly  axisoperation contains an InOut message receiver
which is wrong.

thanks,
Amila.



at

 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)

at

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

at
 org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

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:191)

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:845)

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)
 --
 View this message in context:
 http://www.nabble.com/AxisServlet%3A172-error.-tp21622535p21622535.html
 Sent from the Axis - User mailing list archive at Nabble.com.




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: List of free webservices

2009-01-23 Thread gezhall

Thanks for the replies all - it was my network proxy. Unfortunately all
outgoing calls on most ports are blocked - so I'll have to try this at home!


José Ferreiro wrote:
 
 Hello,
 
 Just to follow on what Andreas said.
 If there is a proxy server you may lauch your client the following
 command:
 
 java -Dhttp.proxyHost=[proxyServer.com] -Dhttp.proxyPort=[#port number]
 -jar
 yourWebServiceClientPackagedAsAjarFile.jar
 
 Hope this helps!
 jose ferreiro
 
 On Thu, Jan 22, 2009 at 8:23 PM, Andreas Veithen
 andreas.veit...@gmail.comwrote:
 
 One thing you should check is whether your client uses an HTTP proxy.
 Maybe the browser you are using is correctly configured to send
 requests through a proxy, but your Axis2 client is not.

 

-- 
View this message in context: 
http://www.nabble.com/List-of-free-webservices-tp21315053p21624962.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: List of free webservices

2009-01-23 Thread gezhall

Thanks for the replies all - it was my network proxy. Unfortunately all
outgoing calls on most ports are blocked - so I'll have to try this at home!


José Ferreiro wrote:
 
 Hello,
 
 Just to follow on what Andreas said.
 If there is a proxy server you may lauch your client the following
 command:
 
 java -Dhttp.proxyHost=[proxyServer.com] -Dhttp.proxyPort=[#port number]
 -jar
 yourWebServiceClientPackagedAsAjarFile.jar
 
 Hope this helps!
 jose ferreiro
 
 On Thu, Jan 22, 2009 at 8:23 PM, Andreas Veithen
 andreas.veit...@gmail.comwrote:
 
 One thing you should check is whether your client uses an HTTP proxy.
 Maybe the browser you are using is correctly configured to send
 requests through a proxy, but your Axis2 client is not.

 

-- 
View this message in context: 
http://www.nabble.com/List-of-free-webservices-tp21315053p21624996.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Axis - return types

2009-01-23 Thread Amila Suriarachchi
this[1] may help if you try to develop a service starting from the wsdl file

thanks,
Amila.
[1] https://wso2.org/library/2873

On Fri, Jan 23, 2009 at 7:33 PM, gezhall ghall12...@hotmail.com wrote:


 Many thanks. I understand in more detail now, but it's all very complex to
 me. I think I need a really good step by step guide - a book, or online
 resource. The Axis user guides are good, but too brief for me.

 Is there anything up-to-date which you would recommend to teach me the
 basics?


 lkamal wrote:
 
  Not sure whether u haven't looked at the client side class generation
  part.
  Using the WSDL file you can generate classes for client side.
 
  Any custom class that you write, can be used as service return types. Do
 u
  need further clarifications?
 
 

 --
 View this message in context:
 http://www.nabble.com/Axis---return-types-tp21604479p21624916.html
 Sent from the Axis - User mailing list archive at Nabble.com.




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: Problem: Oracle Server - Rampart Client...

2009-01-23 Thread m4rkuz
Sorry in the last message I forgot to put another diference that maybe more
trouble,

Rampart:

wsa:Tohttp://localhost:8088/gateway/services/SID0003001/wsa:To

wsa:MessageIDurn:uuid:AECDDCE53586EDD65F1232669747468/wsa:MessageID
wsa:Actionhttp://test.heinsohn.com//talkToMe/wsa:Action
...

In the Oracle version that part doesn't exist, there is no
wsa:To,wsa:MessageID or wsa:Action Tags..


Marcus V. Sánchez D.
__
Enterprise Developer.
Sun Certified Java Programmer (SCJP)


On Fri, Jan 23, 2009 at 8:35 AM, m4rkuz m4r...@gmail.com wrote:


 Hi Everyone,

 I'm new to rampart but learning quickly, well not quikly enough because
 I've been having some problems trying to invoke a WS that was made using
 oracle tools, is supposed to be easy initialy I just had to sing the message
 but even at that level I haven't been able to do it, I went thru examples on
 the distribution (1.4.1) and some webs but I'm still getting :

 FAULT CODE: UnsupportedSecurityToken FAULT MESSAGE: An unsupported token
 was provided

 I asked for a  successful soap message example to compare the one I
 generate with a good one, (attached to the message) the only big diference I
 see is that in the rampart made soap message all the URI attributes are not
 encripted as they do in the oracle example

 Rampart:
 ...
 ds:Reference URI=#Id-27978063
 ..
 ds:Reference URI=#Timestamp-14707008
 
 wsse:Reference URI=#CertId-1097338
 

 Oracle:
 ..
 dsig:Reference URI=#bcyKqLafyGSUXDbAEVXbIg22
 ...
 dsig:Reference URI=#5KdQ0TRTux484dTYM5mpHQ22
 
 wsse:Reference URI=#5KdQ0TRTux484dTYM5mpHQ22
 


 What is all about? (I'm really newbie) and how can I match that using
 rampart ??


 Best Regards,


 Marcus V. Sánchez D.
 __
 Enterprise Developer.
 Sun Certified Java Programmer (SCJP)




Re: AxisServlet:172 error.

2009-01-23 Thread Toriacht

Hi Amila,

Thanks for the reply, I've pasted my short services.xml file below. I
retrieved this from 

C:\brianworkspacetwo\mywebservice\WebContent\WEB-INF\services\AccountEventHandlerSoap\META-INF

Thanks,
Tori

service name=AccountEventHandlerSoap 
Description
Please Type your service description here
/Description
messageReceivers
messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-only;
class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver /
messageReceiver  mep=http://www.w3.org/2004/08/wsdl/in-out; 
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/messageReceivers
parameter name=ServiceClass
locked=falsecom.youpark.webservice.AccountEventHandlerSoap/parameter
/service



Amila Suriarachchi wrote:
 
 
 
 May be a problem with your services.xml. Can you send that file?
 
 The problem is your Inonly  axisoperation contains an InOut message
 receiver
 which is wrong.
 
 thanks,
 Amila.
 


at

 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)

at

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

at
 org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

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:191)

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:845)

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)
 --
 View this message in context:
 http://www.nabble.com/AxisServlet%3A172-error.-tp21622535p21622535.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 
 
 -- 
 Amila Suriarachchi
 WSO2 Inc.
 blog: http://amilachinthaka.blogspot.com/
 
 

-- 
View this message in context: 
http://www.nabble.com/AxisServlet%3A172-error.-tp21622535p21625125.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: http://schemas.xmlsoap.org/ws/2004/08/addressing/:61:1: error: cvc-enumeration-valid

2009-01-23 Thread hakon

hi

Did you manage to solve it, I've got the same problem and could not find any
solution to it.

I just copied the WS-Trust.wsdl and added binding and service.

cheers, håkon



Kai Petersen wrote:
 
 Hi,
 I try to make a Security-Token-Service with a Token form of WS-Security
 from OASIS.
 
 Problem: If I make wsdl2java using xmlbeans I get the following
 stacktrace. If I convert it with adb it works, but I think something
 should be wrong, and I don't want to get problems at a later task.
 
 
 Versions:
 axis2 v1.4
 jdk 1.6.0_06
 
 
 WSDL:
 =
 ?xml version=1.0?
 wsdl:definitions 
   xmlns=http://www.mysts.de/sts;
   xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
   xmlns:soapbind=http://schemas.xmlsoap.org/wsdl/soap/;
 
 xmlns:ns=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
 
 xmlns:ns1=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
   xmlns:ns2=http://schemas.xmlsoap.org/ws/2004/08/addressing;
   xmlns:ns3=http://schemas.xmlsoap.org/ws/2004/09/policy;
   xmlns:ns4=http://schemas.xmlsoap.org/ws/2005/02/trust;
   xmlns:ns5=http://www.w3.org/2000/09/xmldsig#;
   xmlns:ns6=http://www.w3.org/2001/XMLSchema;
   xmlns:ns7=http://schemas.xmlsoap.org/soap/encoding/;
   targetNamespace=http://www.mysts.de/sts;
   
   wsdl:types
   xsd:schema version=1.0
   xmlns=http://www.w3.org/2001/XMLSchema;
   xmlns:xsd=http://www.w3.org/2001/XMLSchema;
   xsd:import
   
 namespace=http://schemas.xmlsoap.org/ws/2005/02/trust;
   
 schemaLocation=http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd;
 /
   /xsd:schema
   /wsdl:types
   
   wsdl:message name=RequestSecurityTokenRequest
   wsdl:part name=parameters element=ns4:RequestSecurityToken 
 /
   /wsdl:message
   wsdl:message name=RequestSecurityTokenResponse
   wsdl:part name=parameters
   element=ns4:RequestSecurityTokenResponse /
   /wsdl:message
   
   wsdl:portType name=SecurityTokenServicePortType
   wsdl:operation name=RequestSecurityToken
   parameterOrder=parameters
   wsdl:documentation
   Dieser Service gibt nach erfolgreicher 
 Authentifizierung
   ein Security Token (Security Context Token) 
 zurueck. Die
   Authentifizierung kann dabei entweder mit 
 Benutzername
   und Passwort oder mit einem VDG-Ticket erfolgen.
   /wsdl:documentation
   wsdl:input message=RequestSecurityTokenRequest /
   wsdl:output message=RequestSecurityTokenResponse /
   /wsdl:operation
   /wsdl:portType
   
   wsdl:binding name=STS-Binding
   type=SecurityTokenServicePortType
   soapbind:binding style=document
   transport=http://schemas.xmlsoap.org/soap/http; /
   wsdl:operation name=RequestSecurityToken
   soapbind:operation 
 soapAction=http://localhost:8080/sts; /
   wsdl:input
   soapbind:body use=literal /
   /wsdl:input
   wsdl:output
   soapbind:body use=literal /
   /wsdl:output
   /wsdl:operation
   /wsdl:binding
   
   wsdl:service name=SecurityTokenService
   wsdl:documentation
   Dieser Service stellt Funktionen fuer die 
 Authentifizierung
   mit Benutzername und Passwort oder mit einem VDG-Ticket 
 zur
   Verfuegung.
   /wsdl:documentation
   wsdl:port name=UserPasswordLogin binding=STS-Binding
   wsdl:documentation
   Diese Funktion erledigt die Authentifizierung 
 mit
   Benutzername und Passwort.
   /wsdl:documentation
   soapbind:address
   
 location=http://host/path/services/UserPasswordLogin; /
   /wsdl:port
   wsdl:port name=VDGTicketLogin binding=STS-Binding
   wsdl:documentation
   Diese Funktion erledigt die Authentifizierung 
 mit einem
   VDG-Ticket.
   /wsdl:documentation
   soapbind:address
   
 location=http://host/path/services/VDGTicketLogin; /
   !-- 
   wsp:PolicyReference URI=#VDGAuthPolicy /
   --
   /wsdl:port
   /wsdl:service
   
 /wsdl:definitions
 
 

RE: AXIS2-4050 Client Proxy Authentication Failed, Screwed up http headers

2009-01-23 Thread Conal Markey
Hi Andreas

Thanks for the link below.  I have forwarded this onto the ISA
administrator and they are looking into it at the moment.  
It may take a few days to resolve but I'll post back with the outcome.

Conal


-Original Message-
From: Andreas Veithen [mailto:andreas.veit...@gmail.com] 
Sent: 22 January 2009 22:12
To: axis-user@ws.apache.org
Subject: Re: AXIS2-4050 Client Proxy Authentication Failed, Screwed up
http headers

I don't see anything wrong in that request. My guess is that we are
actually looking in the wrong place. Probably there is nothing wrong
with the request, but there is an issue with the ISA server that
causes it to return a misleading error message. Something similar to
[1].

Andreas

[1] http://support.microsoft.com/kb/915045

On Thu, Jan 22, 2009 at 18:18, Conal Markey c.mar...@kainos.com wrote:
 Hi Andreas

 Below are the headers captured using wireshark.

 Conal

 POST http://xx..com/xdatawebservice/query.asmx
 HTTP/1.1\r\n
 Request Method: POST
 Request URI:
 http://xxx.x.com/xxdatawebservice/xxquery.asmx
 Request Version: HTTP/1.1
 Content-Type: application/soap+xml; charset=UTF-8;

action=http://..com/xDataWebService/xQuery/Queryxxx
 xxx\r\n
 User-Agent: Axis2\r\n
 Proxy-Authorization: Basic bWF==\r\n
Credentials: xxx:x
 Host: idstaging.moneymate.com\r\n
 Proxy-Connection: Keep-Alive\r\n
 Transfer-Encoding: chunked\r\n
 \r\n



 -Original Message-
 From: Conal Markey [mailto:c.mar...@kainos.com]
 Sent: 21 January 2009 11:09
 To: axis-user@ws.apache.org
 Subject: RE: AXIS2-4050 Client Proxy Authentication Failed, Screwed up
 http headers

 Hi Andreas

 I'll set one of the tools up when I get back to this.  For the moment
 the headers below are what I had from debugging through my test
client.
 I got these from the requestHeaders attribute on the
 org.apache.commons.httpclient.methods.PostMethod object.

 [Content-Type: application/soap+xml;
  charset=UTF-8;

action=http://.xxx.com/xDataWebService/Query/Query;
 , Host: xx..com
 , User-Agent: Axis2
 , Proxy-Authorization: Basic bWxx==

 ]

 Thanks

 Conal


 -Original Message-
 From: Andreas Veithen [mailto:andreas.veit...@gmail.com]
 Sent: 21 January 2009 10:24
 To: axis-user@ws.apache.org
 Subject: Re: AXIS2-4050 Client Proxy Authentication Failed, Screwed up
 http headers

 Conal,

 Can you try to intercept the request (headers) using a tool like
 Wireshark or Apache TCPMon and post it here?

 Andreas

 On Wed, Jan 21, 2009 at 10:25, Conal Markey c.mar...@kainos.com
wrote:
 Andreas, I ran my test client with the code supplied below and I'm
 still
 having the issue with headers.  See message below.

 HTTP/1.1 400 Bad Request ( The HTTP request includes a non-supported
 header. Contact your ISA Server administrator.  )

 I need to get a POC working and have spent some time on this already
 so
 for the moment I'm going to plan B!!  If I get a resolution to this
 I'll
 post back to the forum.

 It seems to me though that the issue in Jira should not be marked as
 resolved.

 Thanks

 Conal


 -Original Message-
 From: Conal Markey [mailto:c.mar...@kainos.com]
 Sent: 20 January 2009 22:16
 To: axis-user@ws.apache.org
 Subject: RE: AXIS2-4050 Client Proxy Authentication Failed, Screwed
up
 http headers

 Thanks for the reply Andreas.

 Yes, I'm still seeing issues with this.  I'll patch the code tomorrow
 with the source from the link you provided and see if it resolves the
 issue I'm having.

 Thanks again

 Conal



 -Original Message-
 From: Andreas Veithen [mailto:andreas.veit...@gmail.com]
 Sent: 20 January 2009 21:46
 To: axis-user@ws.apache.org
 Subject: Re: AXIS2-4050 Client Proxy Authentication Failed, Screwed
up
 http headers

 The code modifications can be found at [1]. Not sure how this change
 would solve problems with screwed up headers. Are you still seeing
 this issue?

 Andreas

 [1] http://svn.apache.org/viewvc?view=revrevision=701047

 On Tue, Jan 20, 2009 at 17:29, Conal Markey c.mar...@kainos.com
 wrote:
 According to JIRA this item is resolved by Dimuthu Leelaranthe.
 Could
 you
 supply details of the fix applied to resolve this and patched source
 if
 possible?



 Thanks

 This e-mail is intended solely for the addressee and is strictly
 confidential; if you are not the addressee please destroy the
message
 and
 all copies. Any opinion or information contained in this email or
its
 attachments that does not relate to the business of Kainos is
personal
 to
 the sender and is not given by or endorsed by Kainos. Kainos is the
 trading
 name of Kainos Software Limited, registered in Northern Ireland
under
 company number: NI19370, having its registered offices at: Kainos
 House, 4-6
 Upper Crescent, Belfast, BT7 1NT, Northern Ireland. Registered in
the
 UK for
 VAT under number: 454598802 and registered in Ireland for 

Design AXIS2 web service for .NET

2009-01-23 Thread etcuser

Hello,

I'm new to AXIS2 web services. I have studied the POJO Weather example of
the AXIS2 user guide. The example runs fine.

Now I have a question to make this web service available for a VB .NET
client.

How can I get access to the methods of the Weather class? Do I have to make
these methods available in the WeatherService class and is this the right
design pattern for this case? I have access to the methods setWeather(...)
and getWeather() from the .NET client.

Best regards, etcuser


-- 
View this message in context: 
http://www.nabble.com/Design-AXIS2-web-service-for-.NET-tp21627641p21627641.html
Sent from the Axis - User mailing list archive at Nabble.com.



RE: Design AXIS2 web service for .NET

2009-01-23 Thread Martin Gainty

http://my.execpc.com/~gopalan/dotnet/webservices/webservice_csharp_client.html

Create the .NET Service call from the WSDL
wsdl /l:CS /protocol:SOAP 
http://localhost/ServerName/ServerServiceName.asmx?wsdl

then compile the service
csc /t:library /r:System.WebServices.sll /r:System.xml.dll OIDServer.cs

then create the client
wsdl /l:CS /protocol:SOAP http://localhost/OIDServer/OIDServer.asmx?WSDL
wsdl /l:CS /protocol:HttpGet http://localhost/OIDServer/OIDServer.asmx?WSDL
wsdl /l:CS /protocol:HttpPost http://localhost/OIDServer/OIDServer.asmx?WSDL

Now compile
csc /t:library /r:System.Web.Services.dll /r:System.Xml.dll OIDServer.cs

HTH
Martin Gainty 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




 Date: Fri, 23 Jan 2009 08:25:44 -0800
 From: mathias.muel...@etc-consult.de
 To: axis-user@ws.apache.org
 Subject: Design AXIS2 web service for .NET
 
 
 Hello,
 
 I'm new to AXIS2 web services. I have studied the POJO Weather example of
 the AXIS2 user guide. The example runs fine.
 
 Now I have a question to make this web service available for a VB .NET
 client.
 
 How can I get access to the methods of the Weather class? Do I have to make
 these methods available in the WeatherService class and is this the right
 design pattern for this case? I have access to the methods setWeather(...)
 and getWeather() from the .NET client.
 
 Best regards, etcuser
 
 
 -- 
 View this message in context: 
 http://www.nabble.com/Design-AXIS2-web-service-for-.NET-tp21627641p21627641.html
 Sent from the Axis - User mailing list archive at Nabble.com.
 

_
Windows Live™ Hotmail®…more than just e-mail. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_howitworks_012009

Help on: unspecified internal server error

2009-01-23 Thread Elisei Rotaru
Hello together,

I need a little help from you guys if it is at all possible. I am getting
crazy around here. My problem is as follows. I am acessing a web service
from Pubmed (that is an online database for literature in medicine) to fetch
for articles, authors and titles.

I wrote therefore a Java Program and i'm using Axis2 1.4 to build Querys and
i get Response Messages, everything works 100% fine.

I am trying now to build my own axis2 1.4 web service which does exactly the
same! Uses the method that works fine in a test class. When i test my own
web service in tomcat an unspecified internal server error.

org.apache.axis2.AxisFault: Unspecified internal server error
at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at
gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub.run_eFetch(EFetchPubmedServiceStub.java:183)
at
de.fraunhofer.isst.dortmund.kis.queryhandler.handlers.pubmed.EFetch.singleEFetch(EFetch.java:158)
at
de.fraunhofer.isst.dortmund.kis.queryhandler.handlers.pubmed.EFetch.eFetch(EFetch.java:54)
at
de.fraunhofer.isst.dortmund.kis.queryhandler.handlers.PubmedQuery.sendQuery(PubmedQuery.java:213)
at
de.fraunhofer.isst.dortmund.kis.queryhandler.services.QueryHandlerSkeleton.sendQuery(QueryHandlerSkeleton.java:69)
at
de.fraunhofer.isst.dortmund.kis.queryhandler.services.QueryHandlerMessageReceiverInOut.invokeBusinessLogic(QueryHandlerMessageReceiverInOut.java:48)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
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:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Message = Unspecified internal server error
LocalizedMessage = Unspecified internal server error


Well, an unspecified internal server error doen't help me much. What does
that mean, and does someone know how to fix it?

I don't even know how to get more information on what is wrong. Server logs
or something? Where could i look?

Thanks in advance.

Elisei

-- 
--
Lass niemals einen PC wissen, dass Du es eilig hast!


NTLM Authentication Problem

2009-01-23 Thread AUYEUNG Andy
 

I am using axis2's ServiceClient to call to a webservice outside my
company's network. However, I got an error that said that there was a
NTLM challenge. 

(SEVERE: Credentials cannot be used for NTLM authentication:
org.apache.commons.httpclient.UsernamePasswordCredentials
org.apache.commons.httpclient.auth.InvalidCredentialsException:
Credentials cannot be used for NTLM authentication:
org.apache.commons.httpclient.UsernamePasswordCredentials)

 

Here is what I don't understand.

1. When I use the ServiceClient to call to a webservice that is inside
the network, everything was fine. (Expected !)

2. When I use the ServiceClient to call to a webservice that is outside
the network, I got NTLM challenge. (hmm, OK...)

3. When I use the plain Java client to call to the same webservice that
is outside the network, everything was fine. (What ?)

 

Below are the code of 2 and 3 respectively. Anyone know why and the
solution to make 2 work ?



public class Scenario1iClient {

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

ServiceClient client = new ServiceClient();

  Options opts = new Options();

  opts.setTo(new
EndpointReference(http://ws.cdyne.com/ip2geo/ip2geo.asmx;));

  opts.setAction(urn:ResolveIP);

  client.setOptions(opts);  

OMElement res = client.sendReceive(createPayLoad());

}

 

public static OMElement createPayLoad() {

OMFactory fac = OMAbstractFactory.getOMFactory();

OMNamespace omNs =
fac.createOMNamespace(http://ws.cdyne.com/IP2Geo;, ns1);

OMElement method = fac.createOMElement(ResolveIP, omNs);

OMElement value1 = fac.createOMElement(ipAddress, omNs);

value1.setText(69.147.76.15);

method.addChild(value1);

OMElement value2 = fac.createOMElement(licenseKey, omNs);

value2.setText(0);

method.addChild(value2);

System.out.println(method:+method.toString());

return method;

}

}

===

public class HttpTest3 {

  public static void main(String[] args) throws Exception

  {

String httpsURL = http://ws.cdyne.com/ip2geo/ip2geo.asmx;;

String urlParameters = soapenv:Envelope\n+  

xmlns:q0=\http://ws.cdyne.com/IP2Geo\
http://ws.cdyne.com/IP2Geo/ \n+  

xmlns:soapenv=\http://schemas.xmlsoap.org/soap/envelope/\
http://schemas.xmlsoap.org/soap/envelope/ \n+  

xmlns:xsd=\http://www.w3.org/2001/XMLSchema\
http://www.w3.org/2001/XMLSchema/ \n+  

xmlns:xsi=\http://www.w3.org/2001/XMLSchema-instance\
http://www.w3.org/2001/XMLSchema-instance/ \n+  

soapenv:Header\n+  

/soapenv:Header\n+  

soapenv:Body\n+  

q0:ResolveIP\n+

q0:ipAddress69.147.76.15/q0:ipAddress\n+

q0:licenseKey0/q0:licenseKey\n+

/q0:ResolveIP\n+  

/soapenv:Body\n+  

/soapenv:Envelope\n;



URL myurl = new URL(httpsURL);

HttpURLConnection con =
(HttpURLConnection)myurl.openConnection();



con.setRequestMethod(POST);

con.setRequestProperty(Content-Type, text/xml;
charset=utf-8);



con.setRequestProperty(Content-Length,  +
Integer.toString(urlParameters.getBytes().length));

con.setRequestProperty(Content-Language, en-US);  

con.setRequestProperty(SOAPAction,
\http://ws.cdyne.com/IP2Geo/ResolveIP\
http://ws.cdyne.com/IP2Geo/ResolveIP/ );



con.setUseCaches (false);

con.setDoInput(true);

con.setDoOutput(true);

 

//Send request

DataOutputStream wr = new DataOutputStream (con.getOutputStream
());

wr.writeBytes (urlParameters);

wr.flush ();

wr.close ();



InputStream ins = con.getInputStream();

InputStreamReader isr=new InputStreamReader(ins);

BufferedReader in =new BufferedReader(isr);

 

String inputLine;

 

while ((inputLine = in.readLine()) != null)

System.out.println(inputLine);

 

in.close();

 

  }  

}

 



Re: Problem: Oracle Server - Rampart Client...

2009-01-23 Thread m4rkuz
More Findings,

Aparently this issue had nothing to do with what I described, but with some
sort of bug that makes rampart build X509v1 security tokens even when we
especifically configure x509v3 tokens like this:

sp:X509Token
sp:IncludeToken=
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient

wsp:Policy
/sp:WssX509V3Token10
/wsp:Policy
/sp:X509Token


Is there a know work around?


regards,


Marcus V. Sánchez D.
__
Enterprise Developer.
Sun Certified Java Programmer (SCJP)


On Fri, Jan 23, 2009 at 9:14 AM, m4rkuz m4r...@gmail.com wrote:


 Sorry in the last message I forgot to put another diference that maybe more
 trouble,

 Rampart:

 wsa:Tohttp://localhost:8088/gateway/services/SID0003001/wsa:To

 wsa:MessageIDurn:uuid:AECDDCE53586EDD65F1232669747468/wsa:MessageID
 wsa:Actionhttp://test.heinsohn.com//talkToMe/wsa:Action
 ...

 In the Oracle version that part doesn't exist, there is no
 wsa:To,wsa:MessageID or wsa:Action Tags..


 Marcus V. Sánchez D.
 __
 Enterprise Developer.
 Sun Certified Java Programmer (SCJP)


 On Fri, Jan 23, 2009 at 8:35 AM, m4rkuz m4r...@gmail.com wrote:


 Hi Everyone,

 I'm new to rampart but learning quickly, well not quikly enough because
 I've been having some problems trying to invoke a WS that was made using
 oracle tools, is supposed to be easy initialy I just had to sing the message
 but even at that level I haven't been able to do it, I went thru examples on
 the distribution (1.4.1) and some webs but I'm still getting :

 FAULT CODE: UnsupportedSecurityToken FAULT MESSAGE: An unsupported token
 was provided

 I asked for a  successful soap message example to compare the one I
 generate with a good one, (attached to the message) the only big diference I
 see is that in the rampart made soap message all the URI attributes are not
 encripted as they do in the oracle example

 Rampart:
 ...
 ds:Reference URI=#Id-27978063
 ..
 ds:Reference URI=#Timestamp-14707008
 
 wsse:Reference URI=#CertId-1097338
 

 Oracle:
 ..
 dsig:Reference URI=#bcyKqLafyGSUXDbAEVXbIg22
 ...
 dsig:Reference URI=#5KdQ0TRTux484dTYM5mpHQ22
 
 wsse:Reference URI=#5KdQ0TRTux484dTYM5mpHQ22
 


 What is all about? (I'm really newbie) and how can I match that using
 rampart ??


 Best Regards,


 Marcus V. Sánchez D.
 __
 Enterprise Developer.
 Sun Certified Java Programmer (SCJP)





Re: Design AXIS2 web service for .NET

2009-01-23 Thread José Ferreiro
Hello,

This information is provided for explanation.

You would like to have a VB .net client.
The explanations provided below (Martin's mail) are for a C# (c-sharp) .net
client.
If you are using .net 2.0 the you may find the program wsdl.exe in the
installed .net package in your computer.

Hope those explanations provided you additional help to the excellent one
provided by Martin below and the link he provided to his example.

HTH too.

Rgds,
jose ferreiro

On Fri, Jan 23, 2009 at 6:29 PM, Martin Gainty mgai...@hotmail.com wrote:


 http://my.execpc.com/~gopalan/dotnet/webservices/webservice_csharp_client.htmlhttp://my.execpc.com/%7Egopalan/dotnet/webservices/webservice_csharp_client.html

 Create the .NET Service call from the WSDL
 wsdl /l:CS /protocol:SOAP
 http://localhost/ServerName/ServerServiceName.asmx?wsdl

 then compile the service
 csc /t:library /r:System.WebServices.sll /r:System.xml.dll OIDServer.cs

 then create the client
 wsdl /l:CS /protocol:SOAP http://localhost/OIDServer/OIDServer.asmx?WSDL
 wsdl /l:CS /protocol:HttpGet
 http://localhost/OIDServer/OIDServer.asmx?WSDL
 wsdl /l:CS /protocol:HttpPost
 http://localhost/OIDServer/OIDServer.asmx?WSDL

 Now compile
 csc /t:library /r:System.Web.Services.dll /r:System.Xml.dll OIDServer.cs

 HTH
 Martin Gainty
 __
 Disclaimer and confidentiality note
 Everything in this e-mail and any attachments relates to the official
 business of Sender. This transmission is of a confidential nature and Sender
 does not endorse distribution to any party other than intended recipient.
 Sender does not necessarily endorse content contained within this
 transmission.




  Date: Fri, 23 Jan 2009 08:25:44 -0800
  From: mathias.muel...@etc-consult.de
  To: axis-user@ws.apache.org
  Subject: Design AXIS2 web service for .NET

 
 
  Hello,
 
  I'm new to AXIS2 web services. I have studied the POJO Weather example of
  the AXIS2 user guide. The example runs fine.
 
  Now I have a question to make this web service available for a VB .NET
  client.
 
  How can I get access to the methods of the Weather class? Do I have to
 make
  these methods available in the WeatherService class and is this the right
  design pattern for this case? I have access to the methods
 setWeather(...)
  and getWeather() from the .NET client.
 
  Best regards, etcuser
 
 
  --
  View this message in context:
 http://www.nabble.com/Design-AXIS2-web-service-for-.NET-tp21627641p21627641.html
  Sent from the Axis - User mailing list archive at Nabble.com.
 

 --
 Windows Live™ Hotmail(R)…more than just e-mail. See how it 
 works.http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_howitworks_012009




-- 
José Ferreiro
Systems Analysis and Design Specialist
MSc in Communication Systems, EPFL.

Think little goals and expect little achievements. Think big goals and win
big success.  David Joseph Schwartz


Re: Design AXIS2 web service for .NET

2009-01-23 Thread etcuser

Thanks Martin, thanks Jose for this rapid answears. I will try it out. Jose,
you're right. I plan to develope a VB.NET client, so I look for the wsdl.exe
in my .NET framwork. The WSDL has defined the complex type Weather and the
methods I mentioned. So I think Martin's approach could work.

Thanks to you and I will report.

etcuser
-- 
View this message in context: 
http://www.nabble.com/Design-AXIS2-web-service-for-.NET-tp21627641p21635202.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: deploying axis2 on Tomcat6 permissions problem

2009-01-23 Thread William Fulton

Problem resolved once I'd turned off the Tomcat security with:
TOMCAT6_SECURITY=no
in /etc/default/tomcat6 and possibly also write permissions needed for 
/etc/tomcat as outlined in 
https://help.ubuntu.com/8.10/serverguide/C/tomcat.html.


The Tomcat security manager documentation (installed by default at 
http://localhost:8080/docs/security-manager-howto.html) talks about 
setting up the catalina.policy file and says Debugging the permission 
that is missing can be challenging. That's exactly how I found it! I 
had a go using info from here:


http://markmail.org/search/?q=axis2+AccessControlException#query:axis2%20AccessControlException+page:1+mid:q7lasiqni2jsbhte+state:results
and http://ubuntuforums.org/archive/index.php/t-227286.html but gave up 
in the end and it looks like I'll have to use TOMCAT6_SECURITY=no instead.


Would be useful to have some documentation from the Axis2 folk as to 
what the security manager settings need to be and add into a Tomcat 
section in Application Server Specific Configuration Guide in the 
Axis2 docs,  as spending an age just getting axis2 working seems plain 
wrong.


William

William Fulton wrote:

Just for clarification, Tomcat reports:
|CATALINA_HOME|: |/usr/share/tomcat6|
|CATALINA_BASE|: |/var/lib/tomcat6|

and I can see the axis2 jsp files in:

/var/lib/tomcat6/webapps/axis2/axis2-web/*.jsp

William

William Fulton wrote:

I'm using a freshly installed Tomcat6 on Intrepid Ubuntu having done:

sudo apt-get install tomcat6
sudo apt-get install tomcat6-docs
sudo apt-get install tomcat6-examples
sudo apt-get install tomcat6-admin

I modified the Realm to use a MemoryRealm. I then used the Tomcat Web 
Application Manager to deploy axis2.war (from axis2-1.4.1-war.zip). 
This succeeded, as I get the following response:


OK - Deployed application at context path /axis2

and I can see the the axis2.war and exploded or unpacked directory 
axis2 under /var/lib/tomcat6/webapps/ ($CATALINA_BASE/webapps). 
However, when I go to http://localhost:8080/axis2, I get one of two 
different exceptions...


If I issue
 sudo /etc/init.d/tomcat6 restart
first, then go to http://localhost:8080/axis2, I get:


HTTP Status 500 -



*type* Exception report

*message*

*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._


*exception*

org.apache.jasper.JasperException: 
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission 
accessClassInPackage.org.apache.jasper.compiler)
   
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:207) 


   org.apache.jasper.compiler.JspConfig.init(JspConfig.java:220)
   
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:273)

   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
   
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586) 

   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) 

   
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


   java.lang.reflect.Method.invoke(Method.java:597)
   
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)

   java.security.AccessController.doPrivileged(Native Method)
   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
   
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
   
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) 



*root cause*

java.security.AccessControlException: access denied 
(java.lang.RuntimePermission 
accessClassInPackage.org.apache.jasper.compiler)
   
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) 

   
java.security.AccessController.checkPermission(AccessController.java:546) 


   java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
   
java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)

   sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:298)
   java.lang.ClassLoader.loadClass(ClassLoader.java:300)
   java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
   
org.apache.jasper.xmlparser.MyEntityResolver.resolveEntity(ParserUtils.java:203) 

   org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown 

WS_Security with Axis2 using ServiceClient and OperationClient

2009-01-23 Thread Wishing Carebear
Hello:
I'm using the Cleint API's (ServiceClient and OperationClient) to consume
webservices. I have been successful so far writing dynamic clients ( without
using wsdl2java).

Now want to integrate WSSecurity feature with the dynamic clients.

Would like to know if there are any examples how to do WS_Security with
Axis2.

Thanks for your time and help,

cabear


Rampart policy to include generated SAML assertion token!!

2009-01-23 Thread Seshi Patibanda
Hi all,
 
I am trying to include a SAML token that was generated by the security provider 
and passed to us as a Session attribute (at Runtime). For testing, I have 
retrieved the SAML assertion token externally and attempting to include in the 
SOAP header by hard-coding the token in the mySamlPolicy.xml file. All I need 
to do (for testing) is just pass the retrieved SAML token to the remote web 
service (SSL-enabled) via SOAP header in the request.
 
Deployed Apache Rampart 1.4 module correctly as per the samples. Using Axis2 
client and stubs generated by WSDL2Java tool. Also, using a policy based 
approach (mySamlPolicy.xml attached). I can see the wsse:Security header but 
NO assertion token included in the SOAP header. Assertion tag shown in the 
policy file is truncated (for security reasons). 
 
Any feedback/suggestions in this regard is highly appreciated. 
 
Thanks,
 
Seshi P.
 
 
SOAP request message:
===
DEBUG [httpclient.wire.content]  ?xml version='1.0' 
encoding='UTF-8'?soapenv:Envelope 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header[\n]
[java] DEBUG [httpclient.wire.content]  wsse:Security 
xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
 soapenv:mustUnderstand=1wsu:Timestamp 
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
 
wsu:Id=Timestamp-20735553wsu:Created2009-01-24T00:44:49.546Z/wsu:Createdwsu:Expires2009-01-24T00:49:49.546Z/wsu:Expires/wsu:Timestamp/wsse:Security/soapenv:Headersoapenv:Bodyns1:echo
 xmlns:ns1=urn:us.mil.osd.atl.avsoa.echons1:messageHello 
Seshi!/ns1:message/ns1:echo/soapenv:Body/soapenv:Envelope
[java] 
==
 
SOAP response message received:
==
 
DEBUG [org.apache.commons.httpclient.methods.EntityEnclosingMethod] Request 
body sent
 [java] DEBUG [httpclient.wire.header]  HTTP/1.1 500 Internal Server 
Error[\r][\n]
 [java] DEBUG [httpclient.wire.header]  HTTP/1.1 500 Internal Server 
Error[\r][\n]
 [java] DEBUG [httpclient.wire.header]  Server: 
Apache-Coyote/1.1[\r][\n]
 [java] DEBUG [httpclient.wire.header]  Content-Type: 
text/xml;charset=UTF-8[\r][\n]
 [java] DEBUG [httpclient.wire.header]  Content-Length: 223[\r][\n]
 [java] DEBUG [httpclient.wire.header]  Date: Sat, 24 Jan 2009 00:44:14 
GMT[\r][\n]
 [java] DEBUG [httpclient.wire.header]  Connection: close[\r][\n]
 [java] DEBUG [httpclient.wire.header]  [\r][\n]
 [java] DEBUG [httpclient.wire.content]  soa
 [java] DEBUG [httpclient.wire.content]  p:Envelope 
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;soap:Bodysoap:Faultfaultcodesoap:Server/faultcodefaultstringNo
 SAML Assertion was 
found!/faultstring/soap:Fault/soap:Body/soap:Envelope
 [java] ERROR [org.apache.axis2.engine.AxisEngine] SOAP header missing
 [java] org.apache.axis2.AxisFault: SOAP header missing

?xml version=1.0 encoding=UTF-8?
wsp:Policy wsu:Id=echo xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy;
	wsp:ExactlyOne
	  wsp:All
		sp:TransportBinding xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
		  wsp:Policy
			sp:TransportToken
			  wsp:Policy
sp:HttpsToken RequireClientCertificate=false/
			  /wsp:Policy
			/sp:TransportToken
			sp:AlgorithmSuite
			  wsp:Policy
sp:Basic256/
			  /wsp:Policy
			/sp:AlgorithmSuite
			sp:Layout
			  wsp:Policy
sp:Lax/
			  /wsp:Policy
			/sp:Layout
			sp:IncludeTimestamp/
		  /wsp:Policy
		/sp:TransportBinding
		
		sp:SignedSupportingTokens xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
			wsp:Policy xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy;
  	sp:SamlToken sp:IncludeToken=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient;
	wsp:Policy
		sp:WssSamlV10Token11
Assertion xmlns=urn:oasis:names:tc:SAML:1.0:assertion xmlns:saml=urn:oasis:names:tc:SAML:1.0:assertion xmlns:samlp=urn:oasis:names:tc:SAML:1.0:protocol xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; AssertionID=_87df086111ccda39741d133dcdffe001 IssueInstant=2009-01-23T15:05:04.650Z Issuer=https://; MajorVersion=1 MinorVersion=1/Assertion

	  /sp:WssSamlV10Token11
	/wsp:Policy
/sp:SamlToken
			
			/wsp:Policy
		/sp:SignedSupportingTokens			
		
		
		ramp:RampartConfig xmlns:ramp=http://ws.apache.org/rampart/policy; 
			ramp:sslConfig 
ramp:property name=javax.net.ssl.keyStoreTypePKCS12/ramp:property
ramp:property name=javax.net.ssl.keyStoreC:\tomcat_5.5\xxx.p12/ramp:property

doubt regarding samples.stock.GetQuote in Step 7: Testing in installation guide

2009-01-23 Thread Sachin Parnami
Hi All,

Being a novice i have just embarked on my studies with Axis when i was
trying to figure out the RESPONSE coming from server for the Step 7: Testing
in installation guide
 with that when ever we pass this command
java -cp $AXISCLASSPATH samples.stock.GetQuote
-lhttp://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX

we get result some thing like

55.25

Could any buddy please help me out for the Responsible file which generates
the response for this request?

-- 
Regards,
Sachin Parnami


The security token could not be authenticated or authorized

2009-01-23 Thread jchappelle

I am having a problem with my java client talking to a .NET web service. I've
bee working on this for two weeks so I'm hoping for any response.

I have a .NET client that was provided to me and it works fine. I was
emailed a security token from the organization providing the service with no
instructions on what that is for or how to use it. Here is the output of the
.NET client followed by my java client output:

?xml version=1.0 encoding=utf-8?
soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/03/addressing;

xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;

xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
soap:Header
wsa:Action
http://cdr.ffiec.gov/public/services/TestUserAccess
/wsa:Action
wsa:MessageID
uuid:5149a310-2cad-4cb6-b991-2d77ab80c578
/wsa:MessageID
wsa:ReplyTo
wsa:Address

http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
/wsa:Address
/wsa:ReplyTo
wsa:To

https://cdr.ffiec.gov/public/pws/webservices/retrievalservice.asmx
/wsa:To
wsse:Security soap:mustUnderstand=1
wsu:Timestamp

wsu:Id=Timestamp-2ffdff2a-03df-403c-a9bc-5e5fe19448ae
wsu:Created2009-01-16T19:12:49Z/wsu:Created
wsu:Expires2009-01-16T19:17:49Z/wsu:Expires
/wsu:Timestamp
wsse:UsernameToken

xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;

wsu:Id=SecurityToken-4009939f-0fa7-4d03-bda4-bf2035e3b562
wsse:Usernameusername/wsse:Username
wsse:Password

Type=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest;
8jFVXIDZvSw8+YWW58gabBE9+1c=
/wsse:Password

wsse:NonceO8twiauocM1xHeFCwTPFQg==/wsse:Nonce
wsu:Created2009-01-16T19:12:49Z/wsu:Created
/wsse:UsernameToken
/wsse:Security
/soap:Header
soap:Body
TestUserAccess xmlns=http://cdr.ffiec.gov/public/services; /
/soap:Body
/soap:Envelope

?xml version='1.0' encoding='utf-8'?
soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
soapenv:Header xmlns:wsa=http://www.w3.org/2005/08/addressing;
wsse:Security

xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
soapenv:mustUnderstand=1
wsse:UsernameToken

xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
wsu:Id=UsernameToken-29194312
wsse:Usernameusername/wsse:Username
wsse:Password

Type=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest;
/td4td6ueFVGxXf5V/xk3Lix7NA=
/wsse:Password

wsse:NonceGws4hhqV1nu1fGCxT5ImXg==/wsse:Nonce

wsu:Created2009-01-23T16:12:57.296Z/wsu:Created
/wsse:UsernameToken
/wsse:Security
wsa:To

https://cdr.ffiec.gov/public/pws/webservices/retrievalservice.asmx
/wsa:To
wsa:ReplyTo
wsa:Address

http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
/wsa:Address
/wsa:ReplyTo
wsa:MessageID
urn:uuid:DC39179C3DE50AA4D11232727177131
/wsa:MessageID
wsa:Action
http://cdr.ffiec.gov/public/services/TestUserAccess
/wsa:Action
/soapenv:Header
soapenv:Body
ns1:TestUserAccess
xmlns:ns1=http://cdr.ffiec.gov/public/services; /
/soapenv:Body
/soapenv:Envelope


My java client using a generated stub from the wsdl:

public class