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

2009-02-05 Thread Klitos Kyriacou
Thanks! That issue seems to have been open for two years. Hopefully,
your useful test report will help to move things on.

Klitos


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

2009-02-05 Thread McCullough, Ryan
I think I have a working solution.

Klitos, would you be willing to test my changes? Do you need Axis binaries or 
source code?

Nadir, if Klitos reports that my changes work, how can I go about getting these 
changes included in the project?

-Ryan

-Original Message-
From: Klitos Kyriacou [mailto:klitos.kyria...@gmail.com] 
Sent: Thursday, February 05, 2009 3:36 AM
To: Apache AXIS C User List
Subject: Re: Axis C++ 1.6 client app connecting using https through http proxy

Thanks! That issue seems to have been open for two years. Hopefully,
your useful test report will help to move things on.

Klitos


Re: Error in signature with X509Token

2009-02-05 Thread TomazM
Thx, I'll try rampart 1.4

service.xml, it contain policy:
service name=RampartSignService
description
Security Service, messages are signed
/description
parameter name=ServiceClassrampart.sign.service.PojoService/parameter
operation name=sestej
messageReceiver 
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/operation

!-- security --
module ref=rampart/

wsp:Policy wsu:Id=SigOnly 
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:AsymmetricBinding 
xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
wsp:Policy
sp:InitiatorToken
wsp:Policy
sp:X509Token 
sp:IncludeToken=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never;
wsp:Policy
sp:WssX509V3Token10/
/wsp:Policy
/sp:X509Token
 /wsp:Policy
 /sp:InitiatorToken
 sp:RecipientToken
 wsp:Policy
 sp:X509Token 
sp:IncludeToken=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never;
 wsp:Policy
 sp:WssX509V3Token10/
 /wsp:Policy
 /sp:X509Token
 /wsp:Policy
 /sp:RecipientToken
 sp:AlgorithmSuite
 wsp:Policy
 sp:TripleDesRsa15/

 /wsp:Policy
 /sp:AlgorithmSuite
 sp:Layout
 wsp:Policy
 sp:Strict/
 /wsp:Policy
 /sp:Layout
 sp:IncludeTimestamp/
 sp:OnlySignEntireHeadersAndBody/
/wsp:Policy
/sp:AsymmetricBinding
sp:Wss10 
xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
wsp:Policy
sp:MustSupportRefKeyIdentifier/
sp:MustSupportRefIssuerSerial/
/wsp:Policy
/sp:Wss10
sp:SignedParts 
xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
sp:Body/
/sp:SignedParts
ramp:RampartConfig 
xmlns:ramp=http://ws.apache.org/rampart/policy;
!-- alias v keystoru od servica --
ramp:userservice/ramp:user

ramp:passwordCallbackClassrampart.sign.service.SecurityHandler/ramp:passwordCallbackClass

ramp:signatureCrypto
ramp:crypto 
provider=org.apache.ws.security.components.crypto.Merlin
ramp:property 
name=org.apache.ws.security.crypto.merlin.keystore.typeJKS/ramp:property
ramp:property 
name=org.apache.ws.security.crypto.merlin.file

D:\\SOAP_TUTOR\\article-transport\\keys\\server.jks
/ramp:property
ramp:property 
name=org.apache.ws.security.crypto.merlin.keystore.password/ramp:property
/ramp:crypto
/ramp:signatureCrypto
/ramp:RampartConfig
/wsp:All
/wsp:ExactlyOne
/wsp:Policy
/service
--


Req:
--
POST /axis2/services/RampartSignService HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8; action=urn:sestej
User-Agent: Axis2
Host: jalovec.arnes.si:8080
Transfer-Encoding: chunked


?xml version=1.0 encoding=http://www.w3.org/2003/05/soap-envelope; 
standalone=no?
soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
soapenv:Header
wsse:Security 
xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;
 soapenv:mustUnderstand=true
wsu:Timestamp 
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
 wsu:Id=Timestamp-32189467
wsu:Created2009-02-05T08:11:11.735Z/wsu:Created

RE: Getting all parameters of the request

2009-02-05 Thread Yoav Naveh
Hi Everyone,

 

I managed to find a solution for this. In case anyone is interested, here it
is:

org.apache.axis2.description.AxisOperation op =
msgContext.getOperationContext().getAxisOperation();

envelope = msgContext.getEnvelope()

IteratorOMElement iter =
envelope.getBody().getFirstElement().getChildElements();

while(iter.hasNext()) {

OMElement omElem = iter.next();

  System.out.println(omElem.getText());

  System.out.println(omElem.getQName().getLocalPart());

}

 

Same can be done for the response parameters, by getting the envelope as
such:

envelope = toEnvelope(getSOAPFactory(msgContext), your_func_nameResponse,
false);

 

From: Yoav Naveh [mailto:y...@contextin.com] 
Sent: Monday, February 02, 2009 9:55 AM
To: axis-user@ws.apache.org
Subject: Getting all parameters of the request

 

Hello,

 

I would like to be able to log all the parameters given to my WS function.

To do so in the most generic way, I was wondering if there is any way to
iterate all input parameters from the MessageContext or anything similar.

 

For example, suppose my WS exposes a function called test that receives 3
String parameters as input,

I would like to print these variables and values to my log, without querying
for them in the function implementation.

Instead, I would like each exposed function's implementation call one
utility function to extract all the fields.

 

Does anyone know of a way to perform this?

 

In addition, I would like to do something similar with the response (save
all returned variables to a log file without function-specific
implementation)

 

Thanks!

Yoav



Re: Error establishing end to end conectivity in axis and jboss

2009-02-05 Thread Guo Tianchong
hi Salman,

It seems that you didn't speify the action of M/C-3's WebService.

| http://192.168.1.28:9000/axis2/services/ and the WSA 
| Action = null

please check your code in M/C-1 calling the M/C-3's WebService

Guo

- Original Message - 
From: Salman A. Kagzi salma...@s7software.com
To: axis-user@ws.apache.org; axis-...@ws.apache.org
Sent: Thursday, February 05, 2009 2:33 PM
Subject: Error establishing end to end conectivity in axis and jboss


| Hi All,
| 
| I have an axis web service which can acts as a client as well as server.
| 
| I am trying to deploy two instances of this web service on separate servers
| and try and setup a communication link between them.
| 
| On M/C-1 I have installed axis2 1.3 under jboss 4.0.5 and have deployed my
| web service.
| On M/C-2 I have installed a standalone axis2 1.3 server and have my service
| deployed there.
| Both deployments are successful and no error/exception is seen.
| 
| I have a client running on M/C-3, this is a simple java program to call my
| web service deployed on M/C-1 which will in turn call the web service on
| M/C-2.
| Web service on M/C-2 returns some data through callback to M/C-1 which will
| in turn pass it over to M/C-3.
| 
| When I call this service I am getting following exception on axis2 server
| running on M/C-2
| org.apache.axis2.AxisFault: The endpoint reference (EPR) for the 
| Operation not found is 
| http://192.168.1.28:9000/axis2/services/ and the WSA 
| Action = null
|at 
| org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java
| :86)
|at org.apache.axis2.engine.Phase.invoke(Phase.java:308)
|at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
|at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
|at 
| org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
| TPTransportUtils.java:275)
|at 
| org.apache.axis2.transport.nhttp.ServerWorker.processPost(ServerWorker.java:
| 207)
|at 
| org.apache.axis2.transport.nhttp.ServerWorker.run(ServerWorker.java:171)
|at 
| edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
| Task(ThreadPoolExecutor.java:665)
|at 
| edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
| (ThreadPoolExecutor.java:690)
|at java.lang.Thread.run(Thread.java:595)
| 
| I am trying to use HttpCoreNIOListener on both ends. As on later stage I
| need to enable ssl as well for these web service
| 
| transportReceiver name=http
| class=org.apache.axis2.transport.nhttp.HttpCoreNIOListener
|  parameter name=port locked=false8080/parameter 
|  parameter name=non-blocking locked=falsetrue/parameter 
| /transportReceiver
| 
| PS: I have tested many different configurations and only this one works for
| me.
| On Jboss axis2.xml when I use SimpleHTTPServer for transportReceiver and
| CommonsHTTPTransportSender for transportSender and disable global addressing
| module, end to end communication is achieved. But this is not acceptable as
| on later stage I need to enable ssl also and am forced to use non-blocking
| methods.
| 
| I have been working out for 5-6 days to figure this out and am still no
| where. Any help would be appreciated.
| 
| -Salman


RE: Error establishing end to end conectivity in axis and jboss

2009-02-05 Thread Salman A. Kagzi
Hi Guo,

Thanks for your response.

But M/C-3 is not a hosting a webservice. It's a plain java client to invoke
WS on M/C-1 which will invoke WS on M/C-2. M/C-2 now returns some data which
is later stored on M/C-1.

You can see that now M/C-1 in not trying to connect to M/C-3 at all.
Also the exception is seen on M/C-2 console.

-Salman

-Original Message-
From: Guo Tianchong [mailto:gu...@nec-as.nec.com.cn] 
Sent: Thursday, February 05, 2009 1:59 PM
To: axis-user@ws.apache.org
Subject: Re: Error establishing end to end conectivity in axis and jboss

hi Salman,

It seems that you didn't speify the action of M/C-3's WebService.

| http://192.168.1.28:9000/axis2/services/ and the WSA 
| Action = null

please check your code in M/C-1 calling the M/C-3's WebService

Guo

- Original Message - 
From: Salman A. Kagzi salma...@s7software.com
To: axis-user@ws.apache.org; axis-...@ws.apache.org
Sent: Thursday, February 05, 2009 2:33 PM
Subject: Error establishing end to end conectivity in axis and jboss


| Hi All,
| 
| I have an axis web service which can acts as a client as well as server.
| 
| I am trying to deploy two instances of this web service on separate
servers
| and try and setup a communication link between them.
| 
| On M/C-1 I have installed axis2 1.3 under jboss 4.0.5 and have deployed my
| web service.
| On M/C-2 I have installed a standalone axis2 1.3 server and have my
service
| deployed there.
| Both deployments are successful and no error/exception is seen.
| 
| I have a client running on M/C-3, this is a simple java program to call my
| web service deployed on M/C-1 which will in turn call the web service on
| M/C-2.
| Web service on M/C-2 returns some data through callback to M/C-1 which
will
| in turn pass it over to M/C-3.
| 
| When I call this service I am getting following exception on axis2 server
| running on M/C-2
| org.apache.axis2.AxisFault: The endpoint reference (EPR) for the 
| Operation not found is 
| http://192.168.1.28:9000/axis2/services/ and the WSA 
| Action = null
|at 
|
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java
| :86)
|at org.apache.axis2.engine.Phase.invoke(Phase.java:308)
|at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
|at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
|at 
|
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
| TPTransportUtils.java:275)
|at 
|
org.apache.axis2.transport.nhttp.ServerWorker.processPost(ServerWorker.java:
| 207)
|at 
| org.apache.axis2.transport.nhttp.ServerWorker.run(ServerWorker.java:171)
|at 
|
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
| Task(ThreadPoolExecutor.java:665)
|at 
|
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
| (ThreadPoolExecutor.java:690)
|at java.lang.Thread.run(Thread.java:595)
| 
| I am trying to use HttpCoreNIOListener on both ends. As on later stage I
| need to enable ssl as well for these web service
| 
| transportReceiver name=http
| class=org.apache.axis2.transport.nhttp.HttpCoreNIOListener
|  parameter name=port locked=false8080/parameter 
|  parameter name=non-blocking locked=falsetrue/parameter 
| /transportReceiver
| 
| PS: I have tested many different configurations and only this one works
for
| me.
| On Jboss axis2.xml when I use SimpleHTTPServer for transportReceiver and
| CommonsHTTPTransportSender for transportSender and disable global
addressing
| module, end to end communication is achieved. But this is not acceptable
as
| on later stage I need to enable ssl also and am forced to use non-blocking
| methods.
| 
| I have been working out for 5-6 days to figure this out and am still no
| where. Any help would be appreciated.
| 
| -Salman



Fwd: Git repo request: Axis2

2009-02-05 Thread Alexis Midon
FYI, 2 Git repos are now available here http://jukka.zitting.name/git/:
axis2-java, axis2-c.
By default they are synchronized with svn every day. If you need a
per-commit synchronization, ask infra-dev.


-- Forwarded message --
From: Jukka Zitting jukka.zitt...@gmail.com
Date: Wed, Feb 4, 2009 at 2:57 PM
Subject: Re: Git repo request: Axis2
To: Alexis Midon alexismi...@gmail.com, infrastructure-...@apache.org


Hi,

On Wed, Feb 4, 2009 at 4:26 PM, Alexis Midon alexismi...@gmail.com wrote:
 that looks like a good to split them actually.

OK, thanks. I created the axis2-java.git and axis2-c.git mirrors and
the initial synchronization of version histories is now taking place.
The mirrors should be ready for normal use by tomorrow.

BR,

Jukka Zitting


Re: Error establishing end to end conectivity in axis and jboss

2009-02-05 Thread Guo Tianchong
hi Salman,

I'm sorry. It should be M/C-2.

please check your code in M/C-1 calling the M/C-2's WebService

Guo

- Original Message - 
From: Salman A. Kagzi salma...@s7software.com
To: axis-user@ws.apache.org
Sent: Thursday, February 05, 2009 4:43 PM
Subject: RE: Error establishing end to end conectivity in axis and jboss


| Hi Guo,
| 
| Thanks for your response.
| 
| But M/C-3 is not a hosting a webservice. It's a plain java client to invoke
| WS on M/C-1 which will invoke WS on M/C-2. M/C-2 now returns some data which
| is later stored on M/C-1.
| 
| You can see that now M/C-1 in not trying to connect to M/C-3 at all.
| Also the exception is seen on M/C-2 console.
| 
| -Salman
| 
| -Original Message-
| From: Guo Tianchong [mailto:gu...@nec-as.nec.com.cn] 
| Sent: Thursday, February 05, 2009 1:59 PM
| To: axis-user@ws.apache.org
| Subject: Re: Error establishing end to end conectivity in axis and jboss
| 
| hi Salman,
| 
| It seems that you didn't speify the action of M/C-3's WebService.
| 
|| http://192.168.1.28:9000/axis2/services/ and the WSA 
|| Action = null
| 
| please check your code in M/C-1 calling the M/C-3's WebService
| 
| Guo
| 
| - Original Message - 
| From: Salman A. Kagzi salma...@s7software.com
| To: axis-user@ws.apache.org; axis-...@ws.apache.org
| Sent: Thursday, February 05, 2009 2:33 PM
| Subject: Error establishing end to end conectivity in axis and jboss
| 
| 
|| Hi All,
|| 
|| I have an axis web service which can acts as a client as well as server.
|| 
|| I am trying to deploy two instances of this web service on separate
| servers
|| and try and setup a communication link between them.
|| 
|| On M/C-1 I have installed axis2 1.3 under jboss 4.0.5 and have deployed my
|| web service.
|| On M/C-2 I have installed a standalone axis2 1.3 server and have my
| service
|| deployed there.
|| Both deployments are successful and no error/exception is seen.
|| 
|| I have a client running on M/C-3, this is a simple java program to call my
|| web service deployed on M/C-1 which will in turn call the web service on
|| M/C-2.
|| Web service on M/C-2 returns some data through callback to M/C-1 which
| will
|| in turn pass it over to M/C-3.
|| 
|| When I call this service I am getting following exception on axis2 server
|| running on M/C-2
|| org.apache.axis2.AxisFault: The endpoint reference (EPR) for the 
|| Operation not found is 
|| http://192.168.1.28:9000/axis2/services/ and the WSA 
|| Action = null
||at 
||
| org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java
|| :86)
||at org.apache.axis2.engine.Phase.invoke(Phase.java:308)
||at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
||at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
||at 
||
| org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
|| TPTransportUtils.java:275)
||at 
||
| org.apache.axis2.transport.nhttp.ServerWorker.processPost(ServerWorker.java:
|| 207)
||at 
|| org.apache.axis2.transport.nhttp.ServerWorker.run(ServerWorker.java:171)
||at 
||
| edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
|| Task(ThreadPoolExecutor.java:665)
||at 
||
| edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
|| (ThreadPoolExecutor.java:690)
||at java.lang.Thread.run(Thread.java:595)
|| 
|| I am trying to use HttpCoreNIOListener on both ends. As on later stage I
|| need to enable ssl as well for these web service
|| 
|| transportReceiver name=http
|| class=org.apache.axis2.transport.nhttp.HttpCoreNIOListener
||  parameter name=port locked=false8080/parameter 
||  parameter name=non-blocking locked=falsetrue/parameter 
|| /transportReceiver
|| 
|| PS: I have tested many different configurations and only this one works
| for
|| me.
|| On Jboss axis2.xml when I use SimpleHTTPServer for transportReceiver and
|| CommonsHTTPTransportSender for transportSender and disable global
| addressing
|| module, end to end communication is achieved. But this is not acceptable
| as
|| on later stage I need to enable ssl also and am forced to use non-blocking
|| methods.
|| 
|| I have been working out for 5-6 days to figure this out and am still no
|| where. Any help would be appreciated.
|| 
|| -Salman


Re: Error in signature with X509Token

2009-02-05 Thread TomazM
I'm using rampart version 1.4, but it seem as the 
rampart(org.apache.ws.security.crypto.merlin.file) doesn't pick the keystore,
because I change the name to a  nonexistent file and I don't get any error that 
file don't exist.

Regards, Tomaz

Erwin Reinhoud wrote:
 Hello Tomaz,
  
 Try also using rampart version 1.4 io 1.3.
  
 Regards,
 Erwin
 
 
 *Van:* m4rkuz [mailto:m4r...@gmail.com]
 *Verzonden:* woensdag 4 februari 2009 15:16
 *Aan:* axis-user@ws.apache.org
 *Onderwerp:* Re: Error in signature with X509Token
 
 Hi Tomaz,
 
 I think you should attach you'r policy.xml file  and your services.xml,
 and maybe an example of the soap message generated, so it could be esiar
 to help you.
 
 
 
 Marcus V. Sánchez D.
 __
 Enterprise Developer.
 Sun Certified Java Programmer (SCJP)
 
 
 On Wed, Feb 4, 2009 at 9:08 AM, TomazM tomaz.majerh...@arnes.si
 mailto:tomaz.majerh...@arnes.si wrote:
 
 Env:
OS: Microsoft Windows XP [Version 5.1.2600]
java: Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Tomcat: 6.0.16
Axis2: 1.4.1
Rampart: 1.3
 
 
 I'm trying to sign message with my CallbackHandler and wsp:Policy,
 keys are in keystore of JKS type(server.jks and client.jks)
 
 1) In service.xml  I have:
 .
 
 ramp:passwordCallbackClassrampart.sign.service.SecurityHandler/ramp:passwordCallbackClass
ramp:signatureCrypto
ramp:crypto
 provider=org.apache.ws.security.components.crypto.Merlin
ramp:property
 
 name=org.apache.ws.security.crypto.merlin.keystore.typeJKS/ramp:property
ramp:property
 
 name=org.apache.ws.security.crypto.merlin.filekeys\\server.jks/ramp:property
ramp:property
 
 name=org.apache.ws.security.crypto.merlin.keystore.password/ramp:property
 /ramp:crypto
 
 
 2) In client I also have my CallbackHandler and applying
 RampartConfig which use client.jks(contain server key)
 
 
 The finger print of server and client certificates are the same in
 both keystore.
 
 
 
 Error:
 org.apache.axis2.AxisFault: Error in signature with X509Token
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)
 
 
 
 
 Is anybody have a clue what I'm doing wrong
 
 
 
 
 Best regards, Tomaz
 
 

begin:vcard
fn;quoted-printable:Toma=C5=BE Majerhold
n;quoted-printable:Majerhold;Toma=C5=BE
org:ARNES, Slovenian NREN;Development team
adr:;;Jamova 39;Ljubljana;;;Slovenia
title:Developer
tel;work:+386 14798930
tel;fax:+386 1 479 88 99  
tel;home:+386 1425 38 01
tel;cell:(040) 757-229
url:http://www.arnes.si/
version:2.1
end:vcard



how to enable rampart logging

2009-02-05 Thread TomazM
Is there any way to have full logging for rampart, let say as TRACE or DEBUG 
mode.

Best Regard; Tomaz
begin:vcard
fn;quoted-printable:Toma=C5=BE Majerhold
n;quoted-printable:Majerhold;Toma=C5=BE
org:ARNES, Slovenian NREN;Development team
adr:;;Jamova 39;Ljubljana;;;Slovenia
title:Developer
tel;work:+386 14798930
tel;fax:+386 1 479 88 99  
tel;home:+386 1425 38 01
tel;cell:(040) 757-229
url:http://www.arnes.si/
version:2.1
end:vcard



Unexpected subelement while parsing nilled response

2009-02-05 Thread Phil Davies
I have used axis2 to build client stubs using:
wsdl2java -s -u -uw -or -uri wsdl-jimbo.wsdl

and when I hit the server I got a response which looked fine, but my
client rejects it with the error:

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement errorMessage

I have no idea why - it looks like it should be completely happy with
this kind of element here. Any help would be greatly appreciated.

Thanks,
Phil
-SOAP response, then WSDL file--
soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Body
  ns:loginResponse
xmlns:ns=http://webservices.basic.wrapper.authentisec.fod.com;
 ns:return
type=com.fod.authentisec.wrapper.basic.webservices.WsResponse
ns:errorMessage xsi:nil=true
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance/
 
ns:sessionId186311778900720554061472776531421868378/ns:sessionId
ns:statusSUCCESS/ns:status
ns:tins xsi:nil=true
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance/
ns:tokenDetail xsi:nil=true
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance/
ns:wsTokenDataResponse xsi:nil=true
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance/
 /ns:return
  /ns:loginResponse
   /soapenv:Body
/soapenv:Envelope
-
wsdl:definitions
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;

xmlns:thisNs=http://webservices.basic.wrapper.authentisec.fod.com;
xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl;
xmlns:http=http://schemas.xmlsoap.org/wsdl/http/;

xmlns:xsdNs=http://webservices.basic.wrapper.authentisec.fod.com/xsd;
xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/;
xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/;

targetNamespace=http://webservices.basic.wrapper.authentisec.fod.com;
wsdl:documentation
Please Type your service description here
/wsdl:documentation
wsdl:types
xs:schema
 
xmlns:ax21=http://webservices.basic.wrapper.authentisec.fod.com/xsd;
attributeFormDefault=qualified
elementFormDefault=qualified
 
targetNamespace=http://webservices.basic.wrapper.authentisec.fod.com/xs
d
xs:complexType name=WsResponse
xs:sequence
xs:element minOccurs=0 maxOccurs=1
name=errorMessage type=xs:string/
xs:element minOccurs=0 name=sessionId
nillable=true type=xs:string/
xs:element minOccurs=1 name=status
type=xs:string/
xs:element maxOccurs=unbounded minOccurs=0
name=tins nillable=true type=xs:string/
xs:element minOccurs=0 name=tokenDetail
nillable=true type=ax21:WsTokenDetails/
xs:element maxOccurs=unbounded minOccurs=0
name=wsTokenDataResponse nillable=true type=ax21:WsTokenData/
/xs:sequence
/xs:complexType
xs:complexType name=WsTokenDetails
xs:sequence
xs:element minOccurs=0 name=additionalPayload
nillable=true type=xs:string/
xs:element minOccurs=0 name=embeddedPayload
nillable=true type=xs:string/
xs:element minOccurs=0 name=endDate
nillable=true type=xs:dateTime/
xs:element minOccurs=0 name=exported
nillable=true type=xs:boolean/
xs:element minOccurs=0 name=pin nillable=true
type=xs:string/
xs:element minOccurs=0 name=pinSecured
nillable=true type=xs:boolean/
xs:element minOccurs=0 name=redemptionCount
nillable=true type=xs:long/
xs:element minOccurs=0 name=redemptionLimit
nillable=true type=xs:long/
xs:element minOccurs=0 name=startDate
nillable=true type=xs:dateTime/
xs:element minOccurs=0 name=suspended
nillable=true type=xs:boolean/
xs:element minOccurs=0 name=tin nillable=true
type=xs:string/
xs:element minOccurs=0 name=tokenStatusName
nillable=true type=xs:string/
xs:element minOccurs=0 name=tokenTypeName
nillable=true type=xs:string/
/xs:sequence
/xs:complexType
xs:complexType name=WsTokenData
xs:sequence
xs:element minOccurs=0 name=errorMessage
nillable=true type=xs:string/
xs:element minOccurs=0 name=status
nillable=true type=xs:string/
xs:element minOccurs=0 name=tin nillable=true
type=xs:string/
xs:element minOccurs=0 name=tokenData
nillable=true type=xs:string/
/xs:sequence
/xs:complexType
xs:complexType name=WsKeyStringPair
xs:sequence

RE: Axis2 consumer within Axis2 provider classpath issue

2009-02-05 Thread Paul French
Any chance someone could give some insight into this thread?
 
I've created a web client project (project A), to use this project you need
to specify the respository location and axis2.xml file location since if you
need to add modules/handlers you can.
 
Hence somewhere on the file system I have the following setup
 
respository/axis2.xml
respository/modules/myLoggingModule.mar
 
Project A is built into a jar and works perfectly fine standalone.
 
I have a web application (project B) that has an axis2 web service (the
axis2 servlet has been merged into the web application). Hence part of this
web application has the structure
 
WEB-INF/axis2.xml
WEB-INF/services/MyWebService/META-INF/services.xml
WEB-INF/modules/myLoggingModule.mar
 
Now I need to use the the web client (project A) in the web application
(project B). Basically I am struggling to see how to do this? I am now
assuming it is not a good idea to try and share the same AxisConfiguration
like is mentioned in Deepal's book. Any pointers would be appreciated.
 
Paul
 

  _  

From: matthias.gai...@t-systems.com [mailto:matthias.gai...@t-systems.com] 
Sent: 03 February 2009 08:05
To: axis-user@ws.apache.org
Subject: AW: Axis2 consumer within Axis2 provider classpath issue



Hi group,

 

I am jumping in as well.. I got the same question what the recommended way
is in such a case? I got problems that the handlers were used for my service
and my stub communications which confused me.

 

Any standard ways here?

 

Matthias.

 

Von: Paul French [mailto:paul.fre...@kirona.com] 
Gesendet: Mittwoch, 14. Januar 2009 10:41
An: axis-user@ws.apache.org
Betreff: RE: Axis2 consumer within Axis2 provider classpath issue

 

Apologies for jumping in on this thread but I too would be very interested
in the recommended way to provide an AXIS2 web service which may contain
AXIS2 client stubs to other web services.

 

I believe I read some where that you need to use the same
ConfigurationContext for both? This would only make sense to me if you plan
to provide the same handlers and modules for both.

 

For example I have a web service client stub that works great (as a jar
file) - the axis2.xml file is in the classpath

 

I have an AXIS2 web service which works great where the axis2.xml file is in
the WEB-INF directory. (axis2 included as part of the web application)

 

How would you combine the two?

 

  _  

From: Hundtofte, Rex A [mailto:rex.hundto...@eds.com] 
Sent: 14 January 2009 05:43
To: axis-user@ws.apache.org
Subject: Axis2 consumer within Axis2 provider classpath issue

I am getting a NoClassDefFoundError when my Axis2 consumer code is executed
inside of an Axis2 provided web service.  I have an aar file deployed to my
web server, the consumer code and generated client stub classes are in
separate jar files under the WEB-INF/lib directory.  The incoming request
processes fine but apparently the classloader that needs to load the
consumer Axis2 classes cannot find the Axis2 classes.  I appreciate any tips
on how I might resolve this issue?

Thanks, 
Rex Hundtofte 



__ NOD32 3763 (20090113) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



__ NOD32 3820 (20090203) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



Multiref client request to axis2 service

2009-02-05 Thread ashley_in

I am newbie to webservice. My axis2 webservice is generated using wsdl2java
tool with XMLBeans data binding extension. Webservice client is sending
multiref soap envelope in the request. My WSDL is document/encoded.
I am receiving the values of input parameters as null in the service. Can
someone help me to find out why? Do I need to change anything else in my
service? please help
-- 
View this message in context: 
http://www.nabble.com/Multiref-client-request-to-axis2-service-tp21850304p21850304.html
Sent from the Axis - User mailing list archive at Nabble.com.



RE: Error establishing end to end conectivity in axis and jboss

2009-02-05 Thread Salman A. Kagzi
Guo,

If I replace jboss integrated axis2 with a standalone axis2 server, the same
code works fine.

As mentioned earlier everything works (i.e. code works) when I deploy my web
service under axis2 standalone server. I face this issue only when I try to
deploy my web service under jboss.

-Salman

-Original Message-
From: Guo Tianchong [mailto:gu...@nec-as.nec.com.cn] 
Sent: Thursday, February 05, 2009 2:50 PM
To: axis-user@ws.apache.org
Subject: Re: Error establishing end to end conectivity in axis and jboss

hi Salman,

I'm sorry. It should be M/C-2.

please check your code in M/C-1 calling the M/C-2's WebService

Guo

- Original Message - 
From: Salman A. Kagzi salma...@s7software.com
To: axis-user@ws.apache.org
Sent: Thursday, February 05, 2009 4:43 PM
Subject: RE: Error establishing end to end conectivity in axis and jboss


| Hi Guo,
| 
| Thanks for your response.
| 
| But M/C-3 is not a hosting a webservice. It's a plain java client to
invoke
| WS on M/C-1 which will invoke WS on M/C-2. M/C-2 now returns some data
which
| is later stored on M/C-1.
| 
| You can see that now M/C-1 in not trying to connect to M/C-3 at all.
| Also the exception is seen on M/C-2 console.
| 
| -Salman
| 
| -Original Message-
| From: Guo Tianchong [mailto:gu...@nec-as.nec.com.cn] 
| Sent: Thursday, February 05, 2009 1:59 PM
| To: axis-user@ws.apache.org
| Subject: Re: Error establishing end to end conectivity in axis and jboss
| 
| hi Salman,
| 
| It seems that you didn't speify the action of M/C-3's WebService.
| 
|| http://192.168.1.28:9000/axis2/services/ and the WSA 
|| Action = null
| 
| please check your code in M/C-1 calling the M/C-3's WebService
| 
| Guo
| 
| - Original Message - 
| From: Salman A. Kagzi salma...@s7software.com
| To: axis-user@ws.apache.org; axis-...@ws.apache.org
| Sent: Thursday, February 05, 2009 2:33 PM
| Subject: Error establishing end to end conectivity in axis and jboss
| 
| 
|| Hi All,
|| 
|| I have an axis web service which can acts as a client as well as server.
|| 
|| I am trying to deploy two instances of this web service on separate
| servers
|| and try and setup a communication link between them.
|| 
|| On M/C-1 I have installed axis2 1.3 under jboss 4.0.5 and have deployed
my
|| web service.
|| On M/C-2 I have installed a standalone axis2 1.3 server and have my
| service
|| deployed there.
|| Both deployments are successful and no error/exception is seen.
|| 
|| I have a client running on M/C-3, this is a simple java program to call
my
|| web service deployed on M/C-1 which will in turn call the web service on
|| M/C-2.
|| Web service on M/C-2 returns some data through callback to M/C-1 which
| will
|| in turn pass it over to M/C-3.
|| 
|| When I call this service I am getting following exception on axis2 server
|| running on M/C-2
|| org.apache.axis2.AxisFault: The endpoint reference (EPR) for the 
|| Operation not found is 
|| http://192.168.1.28:9000/axis2/services/ and the WSA 
|| Action = null
||at 
||
|
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java
|| :86)
||at org.apache.axis2.engine.Phase.invoke(Phase.java:308)
||at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
||at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
||at 
||
|
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
|| TPTransportUtils.java:275)
||at 
||
|
org.apache.axis2.transport.nhttp.ServerWorker.processPost(ServerWorker.java:
|| 207)
||at 
|| org.apache.axis2.transport.nhttp.ServerWorker.run(ServerWorker.java:171)
||at 
||
|
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
|| Task(ThreadPoolExecutor.java:665)
||at 
||
|
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
|| (ThreadPoolExecutor.java:690)
||at java.lang.Thread.run(Thread.java:595)
|| 
|| I am trying to use HttpCoreNIOListener on both ends. As on later stage I
|| need to enable ssl as well for these web service
|| 
|| transportReceiver name=http
|| class=org.apache.axis2.transport.nhttp.HttpCoreNIOListener
||  parameter name=port locked=false8080/parameter 
||  parameter name=non-blocking locked=falsetrue/parameter 
|| /transportReceiver
|| 
|| PS: I have tested many different configurations and only this one works
| for
|| me.
|| On Jboss axis2.xml when I use SimpleHTTPServer for transportReceiver and
|| CommonsHTTPTransportSender for transportSender and disable global
| addressing
|| module, end to end communication is achieved. But this is not acceptable
| as
|| on later stage I need to enable ssl also and am forced to use
non-blocking
|| methods.
|| 
|| I have been working out for 5-6 days to figure this out and am still no
|| where. Any help would be appreciated.
|| 
|| -Salman



Re: Error in signature with X509Token

2009-02-05 Thread m4rkuz
HI Tomaz,

I'm no guru in the subject but I had a similar problem and I don't see
BinarySecurityToken being send in the request, so try changing the correct
lines for this one:

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



Regards,


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


On Thu, Feb 5, 2009 at 6:28 AM, Erwin Reinhoud erwin.reinh...@ictu.nlwrote:

 Hello Tomaz,

 In my sanbox env i have put the file in the tomcat bin dir and no path
 indication in service.xml.

 Regards,

 Erwin

 -Oorspronkelijk bericht-
 Van: TomazM [mailto:tomaz.majerh...@arnes.si]
 Verzonden: donderdag 5 februari 2009 12:13
 Aan: axis-user@ws.apache.org
 Onderwerp: Re: Error in signature with X509Token

 I'm using rampart version 1.4, but it seem as the
 rampart(org.apache.ws.security.crypto.merlin.file) doesn't pick the
 keystore, because I change the name to a  nonexistent file and I don't get
 any error that file don't exist.

 Regards, Tomaz

 Erwin Reinhoud wrote:
  Hello Tomaz,
 
  Try also using rampart version 1.4 io 1.3.
 
  Regards,
  Erwin
 
  --
  --
  *Van:* m4rkuz [mailto:m4r...@gmail.com]
  *Verzonden:* woensdag 4 februari 2009 15:16
  *Aan:* axis-user@ws.apache.org
  *Onderwerp:* Re: Error in signature with X509Token
 
  Hi Tomaz,
 
  I think you should attach you'r policy.xml file  and your
  services.xml, and maybe an example of the soap message generated, so
  it could be esiar to help you.
 
 
 
  Marcus V. Sánchez D.
  __
  Enterprise Developer.
  Sun Certified Java Programmer (SCJP)
 
 
  On Wed, Feb 4, 2009 at 9:08 AM, TomazM tomaz.majerh...@arnes.si
  mailto:tomaz.majerh...@arnes.si wrote:
 
  Env:
 OS: Microsoft Windows XP [Version 5.1.2600]
 java: Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
 Tomcat: 6.0.16
 Axis2: 1.4.1
 Rampart: 1.3
 
 
  I'm trying to sign message with my CallbackHandler and wsp:Policy,
  keys are in keystore of JKS type(server.jks and client.jks)
 
  1) In service.xml  I have:
  .
 
 ramp:passwordCallbackClassrampart.sign.service.SecurityHandler/ramp:passwordCallbackClass
 ramp:signatureCrypto
 ramp:crypto
  provider=org.apache.ws.security.components.crypto.Merlin
 ramp:property
 
 name=org.apache.ws.security.crypto.merlin.keystore.typeJKS/ramp:property
 ramp:property
 
 name=org.apache.ws.security.crypto.merlin.filekeys\\server.jks/ramp:property
 ramp:property
 
 name=org.apache.ws.security.crypto.merlin.keystore.password/ramp:property
  /ramp:crypto
 
 
  2) In client I also have my CallbackHandler and applying
  RampartConfig which use client.jks(contain server key)
 
 
  The finger print of server and client certificates are the same in
  both keystore.
 
 
 
  Error:
  org.apache.axis2.AxisFault: Error in signature with X509Token
 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:1
  63)
 
 
 
 
  Is anybody have a clue what I'm doing wrong
 
 
 
 
  Best regards, Tomaz
 
 






Re: how to enable rampart logging

2009-02-05 Thread m4rkuz
Asuming you have log4j in your project,

you can modify this line in your log4j.properties

# Set the enterprise logger priority to FATAL
log4j.logger.org.apache.axis2.enterprise=DEBUG


Regards,


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

PD: full file attached


On Thu, Feb 5, 2009 at 6:22 AM, TomazM tomaz.majerh...@arnes.si wrote:

 Is there any way to have full logging for rampart, let say as TRACE or
 DEBUG mode.

 Best Regard; Tomaz



log4j.properties
Description: Binary data


Re: how to enable rampart logging

2009-02-05 Thread TomazM
Thx, I have already done this, but I still have to small information to rely 
debug my problem

Regards, Tomaz

m4rkuz wrote:
 
 Asuming you have log4j in your project,
 
 you can modify this line in your log4j.properties
 
 # Set the enterprise logger priority to FATAL
 log4j.logger.org.apache.axis2.enterprise=DEBUG
 
 
 Regards,
 
 
 Marcus V. Sánchez D.
 __
 Enterprise Developer.
 Sun Certified Java Programmer (SCJP)
 
 PD: full file attached
 
 
 On Thu, Feb 5, 2009 at 6:22 AM, TomazM tomaz.majerh...@arnes.si
 mailto:tomaz.majerh...@arnes.si wrote:
 
 Is there any way to have full logging for rampart, let say as TRACE
 or DEBUG mode.
 
 Best Regard; Tomaz
 
 

begin:vcard
fn;quoted-printable:Toma=C5=BE Majerhold
n;quoted-printable:Majerhold;Toma=C5=BE
org:ARNES, Slovenian NREN;Development team
adr:;;Jamova 39;Ljubljana;;;Slovenia
title:Developer
tel;work:+386 14798930
tel;fax:+386 1 479 88 99  
tel;home:+386 1425 38 01
tel;cell:(040) 757-229
url:http://www.arnes.si/
version:2.1
end:vcard



Soap 1.2 Fault - Internal Server Error

2009-02-05 Thread Renzo Callant
Hi all,

When i throw an AxisFault with SOAP 1.1 I get this kind of SOAPFault :

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Body
  soapenv:Fault
 faultcodeCODE:1001/faultcode
 faultstringCode does not exist !/faultstring
 detail/
  /soapenv:Fault
   /soapenv:Body
/soapenv:Envelope

Which is correct.

When I do the same with SOAP 1.2, I receive a HTTP Internal Server Error (500).
What causes this error ?

Regards,

Renzo Callant



Re: Parser has already reached end of the document. No siblings found

2009-02-05 Thread Andreas Veithen
While working on some other stuff, I discovered one case where this
exception is triggered. Not sure though if it is exactly the same
issue as you encountered. See WSCOMMONS-438 for a description.

Andreas

On Mon, Jan 26, 2009 at 09:20, asheikh asad.a.she...@gmail.com wrote:
 Dear Andreas,

 Thanks a lot for you help, I will try to debug it from my side and  will
 update you if I find anything.

 Again, thanks Andreas for you time.




 On Fri, Jan 23, 2009 at 1:40 AM, Andreas Veithen andreas.veit...@gmail.com
 wrote:

 I tried to reproduce the issue using the SOAP message you posted and
 trying to emulate the sequence of Axiom calls your code is making, but
 I didn't succeed. My guess is that this is a subtle issue somewhere in
 Axiom and that is triggered under particular conditions. The only way
 to locate the root cause would be to debug the issue using your code.
 If you are willing to share your code with us in a form that allows us
 to easily reproduce the issue, we can do this. Otherwise, as a
 workaround for this issue, you could add the following instruction to
 your code (in place of the System.out.println):

 msgContext.getEnvelope().build()

 Regards,

 Andreas

 On Wed, Jan 21, 2009 at 11:03, asheikh asad.a.she...@gmail.com wrote:
  Hi Andreas,
 
  did this show anything that I am doing, thanks for  your help
 
 
  On Wed, Jan 21, 2009 at 7:34 AM, asheikh asad.a.she...@gmail.com
  wrote:
 
  Andreas,
 
  I couldn't respond earlier than this,  It is a soap request,
 
  soapenv:Envelope
  xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:q0=http://www.qnb.com.qa/mwSchema;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   soapenv:Body
   q0:BillRequest
   section
uidtest012565/uid
requestorIDXYZA/requestorID
langEN/lang
branchCode0011/branchCode
clientxx.xx.xx.xx/client
date2009-01-20T07:07:54.587Z/date
id0011/id
/section
Data /
/q0:BillRequest
/soapenv:Body
/soapenv:Envelope
 
 
 
  On Tue, Jan 20, 2009 at 4:11 PM, Andreas Veithen
  andreas.veit...@gmail.com wrote:
 
  Can you also post a sample request that triggers this issue? In
  particular is it a SOAP or plain XML request?
 
  Andreas
 
  On Tue, Jan 20, 2009 at 12:40, asheikh asad.a.she...@gmail.com
  wrote:
   Andreas,
  
   Below is the code that calls check method
  
   if (retreiveBillservice.equals(methodName)) {
  
   RAIResponse rAIResponse = null;
   RAIRequest wrappedParam = (RAIRequest)
   fromOM(msgContext
  
   .getEnvelope().getBody().getFirstElement(),
   RAIRequest.class,
   getEnvelopeNamespaces(msgContext
   .getEnvelope()));
  
   try {
   if(doCheckMM)
   mmc.check(msgContext);
  
  
  
   On Tue, Jan 20, 2009 at 2:36 PM, asheikh asad.a.she...@gmail.com
   wrote:
  
   Thansk andreas, yes this is the code that causes  the exception
  
   public void check(MessageContext ctx) throws MiddlewareException {
   Iterator iter =
   ctx.getEnvelope().getBody().getChildElements();
   OMElement content = null;
   while (iter.hasNext()) {
   OMNode node = (OMNode) iter.next();
   if (node.getType() == OMNode.ELEMENT_NODE) {
   content = (OMElement) node;
   break;
   }
   }
   ..
   ...
  
  
   On Tue, Jan 20, 2009 at 2:34 PM, Andreas Veithen
   andreas.veit...@gmail.com wrote:
  
   Can you post the code in MMCHandler#check?
  
   Andreas
  
   On Tue, Jan 20, 2009 at 12:11, asheikh asad.a.she...@gmail.com
   wrote:
Thanks a lot Andreas,
   
Please see the stactrace below:
   
Start- Stactrace:
   
org.apache.axiom.om.OMException: Parser has already reached end
of
the
document. No siblings found
at
   
   
   
org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling()Lorg/apache/axiom/om/OMNode;(OMElementImpl.java:339)
at
   
   
   
org.apache.axiom.om.impl.traverse.OMChildElementIterator.next()Ljava/lang/Object;(OMChildElementIterator.java:104)
at
   
   
   
com.xxx.yyy.mmc.MMCHandler.check(Lorg/apache/axis2/context/MessageContext;)V(MMCHandler.java:51)
at
   
   
   
com.xxx.yyy.retrieve.RetrieveServiceMessageReceiverInOut.invokeBusinessLogic(Lorg/apache/axis2/context/MessageContext;Lorg/apache/axis2/context/MessageContext;)V(RetrieveServiceMessageReceiverInOut.java:172)
at
   
   
   
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(Lorg/apache/axis2/context/MessageContext;)V(AbstractInOutSyncMessageReceiver.java:42)
at
   
   
   
org.apache.axis2.receivers.AbstractMessageReceiver.receive(Lorg/apache/axis2/context/MessageContext;)V(AbstractMessageReceiver.java:100)
at
   
   
   

InOnlyAxisOperation Error

2009-02-05 Thread Sanjay Gupta
Hi,

I just have upgraded my axis 1.2 web services to 1.4.1 and getting error while 
calling a service which returns nothing(void). See the stack trace below. The 
doc mentions these four types of operations but I don't know which one to pick 
and how to set it during client generation. 

DoInOnly, NoParameters, TwoWayOneParameterEcho, and MultipleParametersAddItem

 

I have both types of operations with return and without return. All my 
operations takes some kind of argument simple as well as some that takes 
customer objects.  Any help will be greatly appreciated.

 

Sanjay

 

[ERROR] 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.jav

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

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

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

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

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

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

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

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

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

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

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

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

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

at java.lang.Thread.run(Thread.java:619)

 

 



SSL tunnel (https through proxy)

2009-02-05 Thread McCullough, Ryan
I am trying to add the ability to do SSL tunneling through a proxy server to 
Axis1 C++.

I was curious how this works. I did find some reference works by Ari Luotonen 
from 1995 and 1998.
http://muffin.doit.org/docs/rfc/tunneling_ssl.html
http://www.web-cache.com/Writings/Internet-Drafts/draft-luotonen-web-proxy-tunneling-01.txt
http://www.w3.org/Daemon/User/Patch/SSL.patch

It looks like you need to send an HTTP 'CONNECT host:port HTTP/1.1\r\n' 
un-encrypted. The question I have is if the ssl encrypted request follow this 
http header in the request or if it is a separate request.

I guess what I am looking for is what requests are necessary and what the 
content should be.

-Ryan

Ryan McCullough | RightNow Technologies | Integration Tools Engineer
406-556-3162 office | Bozeman, MT | 
rmccullo...@rightnow.commailto:rmccullo...@rightnow.com | 
http://www.rightnow.comhttp://www.rightnow.com/



Re: Why Axis2 Engine sends type in the return tag of SOAP Response Messages?

2009-02-05 Thread ChandraR

Hi Deepal,

I'm also facing the same problem. Is this fixed? 

Regards,
Chandra R



Deepal Jayasinghe wrote:
 
 
 Hello,

 Please, if someone can help me, I would like to know why Axis2 Engine 
 includes an attribute /type/ in the /return/ tag of a SOAP 
 /myMethodResponse/ message, when the returning type of this method is 
 a complex, custom-defined, object.

 Actually that is something in my list for immediate fix. The idea of 
 type is something like xsi:type. But we are not handling that correctly. 
 So with this you can have interface which returns interfaces , but at 
 the run time you can return any implementation class of that interface. 
 So putting the type attribute help other side to figure out the type of 
 the object in the message.
 
 Thank you!
 Deepal
 
 
 -
 To unsubscribe, e-mail: axis-user-unsubscr...@ws.apache.org
 For additional commands, e-mail: axis-user-h...@ws.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Why-Axis2-Engine-sends-%22type%22-in-the-%22return%22-tag-of-SOAP-Response-Messages--tp17781129p21857991.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Rampart dynamic configuration with axis2

2009-02-05 Thread Wishing Carebear
Hello:1) I tried to use the Policy based examples. When I try to get the
wsdl, get the following exception o the axis2 server:

[INFO] getData request failed for dialect, http://schemas.xmlsoap.org/wsdl/
org.apache.axis2.dataretrieval.DataRetrievalException:
java.lang.NullPointerExce
ption
at
org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(WSDLD
ataLocator.java:134)
at
org.apache.axis2.dataretrieval.WSDLDataLocator.getData(WSDLDataLocato
r.java:73)
at
org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLo
catorImpl.java:81)
at
org.apache.axis2.description.AxisService.getData(AxisService.java:272
5)
at
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:146
5)
at
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1
337)
at
org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:14
6)
at
org.apache.axis2.transport.http.server.AxisHttpService.doService(Axis
HttpService.java:281)
at
org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(
AxisHttpService.java:187)
at
org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpS
erviceProcessor.java:82)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
Worker(ThreadPoolExecutor.java:1061)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
ker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at
org.apache.axis2.util.ExternalPolicySerializer.serialize(ExternalPoli
cySerializer.java:175)
at
org.apache.axis2.util.PolicyUtil.getPolicyComponentAsOMElement(Policy
Util.java:110)
at
org.apache.axis2.description.AxisService2WSDL11.addPoliciesToDefiniti
onElement(AxisService2WSDL11.java:621)
at
org.apache.axis2.description.AxisService2WSDL11.generateOM(AxisServic
e2WSDL11.java:238)
at
org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(WSDLD
ataLocator.java:130)
... 12 more
Caused by: java.lang.NullPointerException
at
org.apache.ws.secpolicy.model.TransportToken.serialize(TransportToken
.java:90)
at
org.apache.ws.secpolicy.model.TransportBinding.serialize(TransportBin
ding.java:157)
at
org.apache.axis2.util.ExternalPolicySerializer.serialize(ExternalPoli
cySerializer.java:159)
... 16 more

2) Wondering how I could do the policy based client using dynamically
(coding)

3) Is it not recommended to use the OutflowConfiguration with axis2 since
the class is deprecated

4) Is WS-Policy needs to be used along with WS-Security.. if only
WS-Security needs to be used, how to do that programmitically without the
deprecated OutflowConfiguration

Thanks,
cabear

On Fri, Jan 30, 2009 at 7:18 PM, Nandana Mihindukulasooriya 
nandana@gmail.com wrote:

 Yes, In Rampart , there are two configurations. One used custom
 configuration language and the other option uses standard WS - Security
 Policy. You are looking in to the custom configuration one which is
 deprecated. Please look at the Rampart policy based samples (samples/policy)
 for policy based configuration. It also can be configured either using files
 or dynamically using code.

 thanks,
 nandana



 On Fri, Jan 30, 2009 at 6:43 AM, Wishing Carebear 
 wishing.careb...@gmail.com wrote:

 OutflowConfiguration is deprecated.
 Right now I'm able to do dynamic invocation using OperationClient and
 OutflowConfiguration for WSSecurity. Is there any other equivalent for
 OutflowConfiguration that is recommended.


 On Thu, Jan 29, 2009 at 4:47 PM, Wishing Carebear 
 wishing.careb...@gmail.com wrote:

 Got the source code from Googling :)



 On Thu, Jan 29, 2009 at 2:08 PM, Wishing Carebear 
 wishing.careb...@gmail.com wrote:

 Hello:Read the following of sample 11 for dynamic configuration with
 axis2 for WSSeurity. But could not find the file in Rampart distribution.
 Could someone point me to the location where I can get it:


 http://blog.sweetxml.org/2007/12/rampart-basic-examples-how-you-add-ws.html
 11. Dynamic configuration : Get rid of the config files ... let's use
 code!

 Both client and servce are configured to first sign and then encrypt the
 outgoing message and to decrypt and verify the incoming message using their
 key pairs.

 Note that we don't use any parameters in the client.axis2.xml, see 
 org.apache.rampart.samples.sample11.Client's
 getOutflowConfiguration() and getInflowConfiguration() methods and
 their usage.
 Thanks,cabear






 --
 Nandana Mihindukulasooriya
 WSO2 inc.

 http://nandana83.blogspot.com/
 http://www.wso2.org



Re: how to enable rampart logging

2009-02-05 Thread Alexis Midon
set  log4j.category.org.apache.rampart=TRACE

Alexis


On Thu, Feb 5, 2009 at 6:11 AM, TomazM tomaz.majerh...@arnes.si wrote:

 Thx, I have already done this, but I still have to small information to
 rely debug my problem

 Regards, Tomaz

 m4rkuz wrote:
 
  Asuming you have log4j in your project,
 
  you can modify this line in your log4j.properties
 
  # Set the enterprise logger priority to FATAL
  log4j.logger.org.apache.axis2.enterprise=DEBUG
 
 
  Regards,
 
 
  Marcus V. Sánchez D.
  __
  Enterprise Developer.
  Sun Certified Java Programmer (SCJP)
 
  PD: full file attached
 
 
  On Thu, Feb 5, 2009 at 6:22 AM, TomazM tomaz.majerh...@arnes.si
  mailto:tomaz.majerh...@arnes.si wrote:
 
  Is there any way to have full logging for rampart, let say as TRACE
  or DEBUG mode.
 
  Best Regard; Tomaz
 
 




Regression in MessageContext#getEffectivePolicy

2009-02-05 Thread Alexis Midon
may I ask your feedback on this issue please?

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

Alexis


Fw: WSDL2java : Duplicate global type error

2009-02-05 Thread Guo Tianchong
  Can someone give some insight on this


Guo

- Original Message - 
From: Guo Tianchong gu...@nec-as.nec.com.cn
To: axis-user axis-user@ws.apache.org
Sent: Tuesday, February 03, 2009 6:14 PM
Subject: WSDL2java : Duplicate global type error


| Hi, all
|
| When I run WSDL2java in xmlbeans databinding. it's always report the 
following exception.
|
| Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: 
project://local/soapenc.xsd:95:3: error:
| sch-props-correct.2: Duplicate global type: 
ar...@http://schemas.xmlsoap.org/soap/encoding/ (Original global type found in 
file:
| null)
|at 
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)
|... 8 more
| Caused by: org.apache.xmlbeans.XmlException: 
project://local/soapenc.xsd:95:3: error: sch-props-correct.2: Duplicate global 
type:
| ar...@http://schemas.xmlsoap.org/soap/encoding/ (Original global type found 
in file: null)
|at 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
|at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
|at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
|at java.lang.reflect.Method.invoke(Method.java:324)
|at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
|
|
| The soapenc.xsd file has been downloaded from 
http://schemas.xmlsoap.org/soap/encoding/, and has been saved in localhost.
| My applications's wsdl import the soapenc.xsd file as this:
|
| xs:import namespace=http://schemas.xmlsoap.org/soap/envelope/;
| schemaLocation=./soapenc.xsd/
|
| Can anyone tell me how to resolve this problem?
| Thanks
|
| Guo
|
|
|
|
|
|
| 



Re: Regression in MessageContext#getEffectivePolicy

2009-02-05 Thread keith chapman
Added a comment to the JIRA.

Thanks,
Keith.

On Fri, Feb 6, 2009 at 3:35 AM, Alexis Midon mi...@intalio.com wrote:

 may I ask your feedback on this issue please?

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

 Alexis




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Fw: WSDL2java : Duplicate global type error

2009-02-05 Thread keith chapman
I'm not sure about your exact scenario. But Axis2 does not support
soap-encoding

Thanks,
Keith.

On Fri, Feb 6, 2009 at 7:15 AM, Guo Tianchong gu...@nec-as.nec.com.cnwrote:

  Can someone give some insight on this


 Guo

 - Original Message -
 From: Guo Tianchong gu...@nec-as.nec.com.cn
 To: axis-user axis-user@ws.apache.org
 Sent: Tuesday, February 03, 2009 6:14 PM
 Subject: WSDL2java : Duplicate global type error


 | Hi, all
 |
 | When I run WSDL2java in xmlbeans databinding. it's always report the
 following exception.
 |
 | Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
 project://local/soapenc.xsd:95:3: error:
 | sch-props-correct.2: Duplicate global type: Array@
 http://schemas.xmlsoap.org/soap/encoding/ (Original global type found in
 file:
 | null)
 |at
 org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)
 |... 8 more
 | Caused by: org.apache.xmlbeans.XmlException:
 project://local/soapenc.xsd:95:3: error: sch-props-correct.2: Duplicate
 global type:
 | ar...@http://schemas.xmlsoap.org/soap/encoding/ (Original global type
 found in file: null)
 |at
 org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
 |at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 |at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 |at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 |at java.lang.reflect.Method.invoke(Method.java:324)
 |at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
 |
 |
 | The soapenc.xsd file has been downloaded from
 http://schemas.xmlsoap.org/soap/encoding/, and has been saved in
 localhost.
 | My applications's wsdl import the soapenc.xsd file as this:
 |
 | xs:import namespace=http://schemas.xmlsoap.org/soap/envelope/;
 | schemaLocation=./soapenc.xsd/
 |
 | Can anyone tell me how to resolve this problem?
 | Thanks
 |
 | Guo
 |
 |
 |
 |
 |
 |
 |




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: InOnlyAxisOperation Error

2009-02-05 Thread keith chapman
Can you provide your service please. You haven't provided enough information
to help you...

Thanks,
Keith.

On Thu, Feb 5, 2009 at 10:55 PM, Sanjay Gupta sanjay.gu...@primal.comwrote:

  Hi,

 I just have upgraded my axis 1.2 web services to 1.4.1 and getting error
 while calling a service which returns nothing(void). See the stack trace
 below. The doc mentions these four types of operations but I don't know
 which one to pick and how to set it during client generation.

 DoInOnly, NoParameters, TwoWayOneParameterEcho, and
 MultipleParametersAddItem



 I have both types of operations with return and without return. All my
 operations takes some kind of argument simple as well as some that takes
 customer objects.  Any help will be greatly appreciated.



 Sanjay



 [ERROR] 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.jav

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

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

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

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

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

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

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

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

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

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

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

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

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

 at java.lang.Thread.run(Thread.java:619)








-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


RE: InOnlyAxisOperation Error

2009-02-05 Thread Sanjay Gupta
Hi Keith,
Here is my services.xml files. 
Thanks
Sanjay

serviceGroup
service name=Provision scope=application 
targetNamespace=http://provision.ws.ccb.primalsw.com/;
description
Provision Service
/description
messageReceivers
messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out;
 
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-only;
 
class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver/
   
/messageReceivers
schema schemaNamespace=http://provision.ws.ccb.primalsw.com/xsd/
parameter 
name=ServiceClasscom.primalsw.ccb.ws.ProvisionHandler/parameter
/service
/serviceGroup



-Original Message-
From: keith chapman [mailto:keithgchap...@gmail.com]
Sent: Thu 2/5/2009 10:01 PM
To: axis-user@ws.apache.org
Subject: Re: InOnlyAxisOperation Error
 
Can you provide your service please. You haven't provided enough information
to help you...

Thanks,
Keith.

On Thu, Feb 5, 2009 at 10:55 PM, Sanjay Gupta sanjay.gu...@primal.comwrote:

  Hi,

 I just have upgraded my axis 1.2 web services to 1.4.1 and getting error
 while calling a service which returns nothing(void). See the stack trace
 below. The doc mentions these four types of operations but I don't know
 which one to pick and how to set it during client generation.

 DoInOnly, NoParameters, TwoWayOneParameterEcho, and
 MultipleParametersAddItem



 I have both types of operations with return and without return. All my
 operations takes some kind of argument simple as well as some that takes
 customer objects.  Any help will be greatly appreciated.



 Sanjay



 [ERROR] 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.jav

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

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

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

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

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

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

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

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

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

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

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

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

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

 at java.lang.Thread.run(Thread.java:619)








-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org



Re: Fw: WSDL2java : Duplicate global type error

2009-02-05 Thread Guo Tianchong
Thanks for your response!

Guo
  - Original Message - 
  From: keith chapman
  To: axis-user@ws.apache.org
  Sent: Friday, February 06, 2009 1:52 PM
  Subject: Re: Fw: WSDL2java : Duplicate global type error


  I'm not sure about your exact scenario. But Axis2 does not support 
soap-encoding

  Thanks,
  Keith.


  On Fri, Feb 6, 2009 at 7:15 AM, Guo Tianchong gu...@nec-as.nec.com.cn wrote:

 Can someone give some insight on this


Guo


- Original Message -
From: Guo Tianchong gu...@nec-as.nec.com.cn
To: axis-user axis-user@ws.apache.org
Sent: Tuesday, February 03, 2009 6:14 PM
Subject: WSDL2java : Duplicate global type error


| Hi, all
|
| When I run WSDL2java in xmlbeans databinding. it's always report the 
following exception.
|
| Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: 
project://local/soapenc.xsd:95:3: error:
| sch-props-correct.2: Duplicate global type: 
ar...@http://schemas.xmlsoap.org/soap/encoding/ (Original global type found in 
file:
| null)
|at 
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)
|... 8 more
| Caused by: org.apache.xmlbeans.XmlException: 
project://local/soapenc.xsd:95:3: error: sch-props-correct.2: Duplicate global 
type:
| ar...@http://schemas.xmlsoap.org/soap/encoding/ (Original global type 
found in file: null)
|at 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
|at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
|at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
|at java.lang.reflect.Method.invoke(Method.java:324)
|at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
|
|
| The soapenc.xsd file has been downloaded from 
http://schemas.xmlsoap.org/soap/encoding/, and has been saved in localhost.
| My applications's wsdl import the soapenc.xsd file as this:
|
| xs:import namespace=http://schemas.xmlsoap.org/soap/envelope/;
| schemaLocation=./soapenc.xsd/
|
| Can anyone tell me how to resolve this problem?
| Thanks
|
| Guo
|
|
|
|
|
|
|





  -- 
  Keith Chapman
  Senior Software Engineer
  WSO2 Inc.
  Oxygenating the Web Service Platform.
  http://wso2.org/

  blog: http://www.keith-chapman.org