Re: AW: AW: AXIS2/C and scope=soapsession

2007-12-05 Thread Samisa Abeysinghe

Stadelmann Josef wrote:

Hi Samisa

Samisa tell me why we have a routine which is able to set / get
session scope if it is not used by any code? Where is it used?
May I just overlook something.

Where I talk about scope=soapsession support in Axis2/C
I mean that Axis2/C should be able to read from service.xml
this attribute and then act acordingly. AFAIK this is not the
case. .. to read and behave about like Axis2/Java
  


Unfortunately soapsession is not implemented with Axis2/C.

Samisa...



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



Embedded axis2 (SimpleHTTPServer)

2007-12-05 Thread Bastiaan
Hello,

I'd like to run axis2 embedded in a java program, and decided to do some 
tests.

Running this application gives me the following log4j messages:
 Required MessageReceiver couldn't be found, thus, default MessageReceiver
has 
been used
Listening on port 8080

sending a soap request gives (without much surprise) an exception, stating:
Message Receiver not found for AxisOperation: echo

Browsing through the various api's (seems like the syntax of 'createservice' 
is changed recently, lots of outdated docs on the net) doesn't give me much 
options.

I found out that the exception is thrown if there is no entry in the 'mrMap' 
(see code below) for the right mep.

messageReceiverClassMap.get(mep) == null

so my guess is, i dont use the right key in the Map, the docs give me
exactly 
these values, and i couldn't find any more information.

Thanks in advance,
 Bas


Here is some code:

package test;
 
import java.util.HashMap;
import java.util.Map;
 
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.ConfigurationContextFactory;
import org.apache.axis2.description.AxisService;
import org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver;
import org.apache.axis2.rpc.receivers.RPCMessageReceiver;
import org.apache.axis2.transport.http.SimpleHTTPServer;
 
public class Test {
 public static void main(String[] args) throws Exception {
ConfigurationContext context = ConfigurationContextFactory.
createConfigurationContextFromFileSystem(null, null);
Map mrMap = new HashMap();
mrMap.put(http://www.w3.org/2006/01/wsdl/in-only;, 
RPCInOnlyMessageReceiver.class.newInstance()); 
mrMap.put(http://www.w3.org/2006/01/wsdl/in-out;, 
RPCMessageReceiver.class.newInstance());
AxisService service =
AxisService.createService(Echo.class.getName(), 
context.getAxisConfiguration(),
   
mrMap, http://test.com;, http://test2.com;, 
ClassLoader.getSystemClassLoader());
context.getAxisConfiguration().addService(service);
SimpleHTTPServer server = new SimpleHTTPServer(context,
8080);
server.start();
}
}
 
 
===
package test;
 
public class Echo {
public String echo(String in) {
return in;
}
}
===

the wsdl generated:
wsdl:definitions targetNamespace=http://test.com;
?
wsdl:types
?
xs:schema attributeFormDefault=qualified
elementFormDefault=unqualified 
targetNamespace=http://test2.com;
?
xs:element name=echo
?
xs:complexType
?
xs:sequence
xs:element minOccurs=0 name=in nillable=true type=xs:string/
/xs:sequence
/xs:complexType
/xs:element
?
xs:element name=echoResponse
?
xs:complexType
?
xs:sequence
xs:element minOccurs=0 name=return nillable=true type=xs:string/
/xs:sequence
/xs:complexType
/xs:element
/xs:schema
/wsdl:types
?
wsdl:message name=echoRequest
wsdl:part name=parameters element=ns0:echo/
/wsdl:message
?
wsdl:message name=echoResponse
wsdl:part name=parameters element=ns0:echoResponse/
/wsdl:message
?
wsdl:portType name=EchoPortType
?
wsdl:operation name=echo
wsdl:input message=axis2:echoRequest wsaw:Action=urn:echo/
wsdl:output message=axis2:echoResponse wsaw:Action=urn:echoResponse/
/wsdl:operation
/wsdl:portType
?
wsdl:binding name=EchoSOAP11Binding type=axis2:EchoPortType
soap:binding transport=http://schemas.xmlsoap.org/soap/http; 
style=document/
?
wsdl:operation name=echo
soap:operation soapAction=urn:echo style=document/
?
wsdl:input
soap:body use=literal/
/wsdl:input
?
wsdl:output
soap:body use=literal/
/wsdl:output
/wsdl:operation
/wsdl:binding
?
wsdl:binding name=EchoSOAP12Binding type=axis2:EchoPortType
soap12:binding transport=http://schemas.xmlsoap.org/soap/http; 
style=document/
?
wsdl:operation name=echo
soap12:operation soapAction=urn:echo style=document/
?
wsdl:input
soap12:body use=literal/
/wsdl:input
?
wsdl:output
soap12:body use=literal/
/wsdl:output
/wsdl:operation
/wsdl:binding
?
wsdl:binding name=EchoHttpBinding type=axis2:EchoPortType
http:binding verb=POST/
?
wsdl:operation name=echo
http:operation location=Echo/echo/
?
wsdl:input
mime:content type=text/xml part=echo/
/wsdl:input
?
wsdl:output
mime:content type=text/xml part=echo/
/wsdl:output
/wsdl:operation
/wsdl:binding
?
wsdl:service name=Echo
?
wsdl:port name=EchoSOAP11port_http
binding=axis2:EchoSOAP11Binding
soap:address location=http://localhost:8080/axis2/services/Echo/
/wsdl:port
?
wsdl:port name=EchoSOAP12port_http
binding=axis2:EchoSOAP12Binding
soap12:address location=http://localhost:8080/axis2/services/Echo/
/wsdl:port
?
wsdl:port name=EchoHttpport binding=axis2:EchoHttpBinding
http:address 

RE: Command line for AXIS2

2007-12-05 Thread sietsenicolaas.tenhoeve
Hi,

I think more information can be found in the architecture guide I think.

In case of Apache Tomcat this is:

Starting the servlet container:
- Windows: net start Apache Tomcat
- Debian: /etc/init.d/tomcat start

Stopping:
- Windows: net stop Apache Tomcat
- Debian: /etc/init.d/tomcat stop

If the container runs, you can deploy the services into it. Just deploy
a war into the webapps directory and wait to see some magic and it is
ready for usage. By default you can put the axis2.war in here as
mentioned on the getting-started guide. Your own service can then be
deployed in different ways.

Checking it from the command line is just a http request imho. So you
send it using a tool which can generate that.

Regards,
Sietse



From: Zur, Don [mailto:[EMAIL PROTECTED] 
Sent: 05 December 2007 01:41
To: axis-user@ws.apache.org
Subject: RE: Command line for AXIS2



Apache Axis2 1.2 build (April 27 2007)



From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 04, 2007 6:16 PM
To: axis-user@ws.apache.org
Subject: Re: Command line for AXIS2

 

which version axis are you implementing?


M-

- Original Message - 

From: Zur, Don mailto:[EMAIL PROTECTED]  

To: axis-user@ws.apache.org 

Sent: Tuesday, December 04, 2007 7:45 PM

Subject: Command line for AXIS2

 

Is there any way to:

 

Start service

Stop service

Check if service is active

 

from the command line.


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



Migrating from Axis 1.0 to Axis 1.4: different SOAP response with Array

2007-12-05 Thread matabo

Hello gentlemen, 

I'm evaluating the impact of migrating from Axis 1.0 to Axis 1.4.

What I found, between others, is the following:

Response from Axis 1.0:
HTTP/1.1 200 OK
Date: Fri, 30 Nov 2007 08:22:13 GMT
Server: Apache/2.0.46 (Red Hat)
Connection: close
Content-Type: text/xml; charset=utf-8
?xml version=1.0 encoding=UTF-8?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 soapenv:Body
  ns1:getProfilesResponse
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:ns1=urn:Minosse
   getProfilesReturn xsi:type=soapenc:Array
soapenc:arrayType=xsd:string[5]
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
itemRIMENU/item
itemSPEDPRAT/item
itemW-REPR/item
itemW-REPRIS/item
itemW-REPRP/item
   /getProfilesReturn
  /ns1:getProfilesResponse
 /soapenv:Body
/soapenv:Envelope


Response, to the same request, from Axis 1.4:



HTTP/1.1 200 OK
Date: Fri, 30 Nov 2007 08:26:03 GMT
Content-Type: text/xml; charset=utf-8
Connection: close
?xml version=1.0 encoding=utf-8?soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
soapenv:Body
ns1:getProfilesResponse
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:ns1=urn:Minosse
getProfilesReturn soapenc:arrayType=soapenc:string[5]
xsi:type=soapenc:Array
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
getProfilesReturn xsi:type=soapenc:stringRIMENU/getProfilesReturn
getProfilesReturn xsi:type=soapenc:stringSPEDPRAT/getProfilesReturn
getProfilesReturn xsi:type=soapenc:stringW-REPR/getProfilesReturn
getProfilesReturn xsi:type=soapenc:stringW-REPRIS/getProfilesReturn
getProfilesReturn xsi:type=soapenc:stringW-REPRP/getProfilesReturn
/getProfilesReturn
/ns1:getProfilesResponse
/soapenv:Body
/soapenv:Envelope



WSDL genrated from Axis 1.4 is:

?xml version=1.0 encoding=UTF-8?
wsdl:definitions
targetNamespace=http://minosse01.intra.infocamere.it:7050/Minosse2WebService/services/urn:Minosse;
xmlns:apachesoap=http://xml.apache.org/xml-soap;
xmlns:impl=http://minosse01.intra.infocamere.it:7050/Minosse2WebService/services/urn:Minosse;
xmlns:intf=http://minosse01.intra.infocamere.it:7050/Minosse2WebService/services/urn:Minosse;
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)--
 wsdl:types
  schema targetNamespace=http://xml.apache.org/xml-soap;
xmlns=http://www.w3.org/2001/XMLSchema;
   import
namespace=http://minosse01.intra.infocamere.it:7050/Minosse2WebService/services/urn:Minosse/
   import namespace=http://schemas.xmlsoap.org/soap/encoding//
   complexType name=mapItem
sequence
 element name=key nillable=true type=xsd:anyType/
 element name=value nillable=true type=xsd:anyType/
/sequence
   /complexType
   complexType name=Map
sequence
 element maxOccurs=unbounded minOccurs=0 name=item
type=apachesoap:mapItem/
/sequence
   /complexType
  /schema
  schema
targetNamespace=http://minosse01.intra.infocamere.it:7050/Minosse2WebService/services/urn:Minosse;
xmlns=http://www.w3.org/2001/XMLSchema;
   import namespace=http://xml.apache.org/xml-soap/
   import namespace=http://schemas.xmlsoap.org/soap/encoding//
   complexType name=ArrayOf_xsd_string
complexContent
 restriction base=soapenc:Array
  attribute ref=soapenc:arrayType wsdl:arrayType=xsd:string[]/
 /restriction
/complexContent
   /complexType
  /schema
 /wsdl:types
   wsdl:message name=getProfilesResponse
  wsdl:part name=getProfilesReturn type=impl:ArrayOf_xsd_string/
   /wsdl:message
   wsdl:message name=getProfilesRequest
  wsdl:part name=in0 type=xsd:string/
   /wsdl:message
   wsdl:portType name=Servizio
   wsdl:operation name=getProfiles parameterOrder=in0
 wsdl:input message=impl:getProfilesRequest
name=getProfilesRequest/
 wsdl:output message=impl:getProfilesResponse
name=getProfilesResponse/
  /wsdl:operation
   /wsdl:portType
   wsdl:binding name=urn:MinosseSoapBinding type=impl:Servizio
  wsdlsoap:binding style=rpc
transport=http://schemas.xmlsoap.org/soap/http/
  wsdl:operation name=getProfiles
 wsdlsoap:operation soapAction=/
 wsdl:input name=getProfilesRequest
wsdlsoap:body
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
namespace=http://webservice.mnse; use=encoded/
 /wsdl:input
 wsdl:output name=getProfilesResponse
wsdlsoap:body
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
namespace=http://minosse01.intra.infocamere.it:7050/Minosse2WebService/services/urn:Minosse;
use=encoded/
 /wsdl:output
  

RE: How to create a service using external jar files other than axis jar files

2007-12-05 Thread sietsenicolaas.tenhoeve
I think you should read into the area of buildtools. 
Key terms to search for:
- ant
- maven
- automatic build

Good luck,
Sietse

-Original Message-
From: chanakanilan [mailto:[EMAIL PROTECTED] 
Sent: 05 December 2007 12:54
To: axis-user@ws.apache.org
Subject: How to create a service using external jar files other than
axis jar files


I m wrote a service that which uses some external jar files(connection
pool.jar-To connect with the database)I try to search a good article for
how to add external jars other than axis jars but not found.so plz tell
me the relevent steps to deploy the service.And plz help and tell good
articals about axis1.4
--
View this message in context:
http://www.nabble.com/How-to-create-a-service-using-external-jar-files-o
ther-than-axis-jar-files-tf4949446.html#a14171024
Sent from the Axis - User mailing list archive at Nabble.com.


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


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



Query about AXIS2 1.3 asynchronous web service

2007-12-05 Thread Chiradeep_Banik

Hi,

I am new to web service and AXIS2 engine. I have a basic doubt about the 
asynchronous web service AXIS2 provides. Does it provide a complete 
asynchronous communication? I have seen the following code in AXIS2 site, the 
client basically waits until a response comes from server. Comparing this with 
JMS/MQ communication, the client does not wait when a message is put in the 
queue and a seperate a seperate MDB picks up the response when send by server.

try {
OMElement payload = ClientUtil.getEchoOMElement();

Options options = new Options();
options.setTo(targetEPR);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
options.setUseSeparateListener(true);
options.setAction(urn:echo);  // this is the action mapping we 
put within the service.xml

//Callback to handle the response
Callback callback = new Callback() {
public void onComplete(AsyncResult result) {
System.out.println(result.getResponseEnvelope());
}

public void onError(Exception e) {
e.printStackTrace();
}
};
//Non-Blocking Invocation
sender = new ServiceClient();
sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
sender.setOptions(options);
sender.sendReceiveNonBlocking(payload, callback);
//Wait till the callback receives the response.
while (!callback.isComplete()) {
 Thread.sleep(1000);
}
//Need to close the Client Side Listener.
} catch (AxisFault axisFault) {
  axisFault.printStackTrace();
} catch (Exception ex) {
  ex.printStackTrace();
} finally {
try {
sender.cleanup();
} catch (AxisFault axisFault) {
//have to ignore this
}
}


Can somebody share with me a sample asynchronous web service client code using 
AXIS2 1.3?

Thanks and Regards,

Chiradeep

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

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



Re: Incorrect facet with name maxlength found

2007-12-05 Thread Leif Ashley

I can clip out the part that is failing, but I have to changed the element
name to lookup to protect the innocent. The exception is:

Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped
to the name str_nbr with namespace lookup

WSDL Element:

xsd:element name=lookup
xsd:complexType
xsd:sequence
/xsd:sequence
xsd:attribute name=str_nbr use=required
xsd:simpleType
xsd:restriction base=xsd:string
xsd:maxlength value=4/
/xsd:restriction
/xsd:simpleType
/xsd:attribute
xsd:attribute name=rgstr_nbr type=xsd:unsignedShort
use=required/
xsd:attribute name=sls_hr use=required
xsd:simpleType
xsd:restriction base=xsd:string
   xsd:maxlength value=14/
/xsd:restriction
/xsd:simpleType
/xsd:attribute
xsd:attribute name=max_rows_to_retrieve
type=xsd:unsignedInt use=required/
/xsd:complexType
/xsd:element





Amila Suriarachchi wrote:
 
 Can you paste your simple type here?
 
 thanks,
 Amila.
 
 On Dec 4, 2007 11:01 PM, Leif Ashley [EMAIL PROTECTED] wrote:
 

 I'm not sure what the deal is on this one. I've used the wsdl2java in the
 past, and had no problems. This is for AXIS2 1.3.

 I'm executing:
 wsdl2java -d xmlbeans -uri C:\data\projects\MyProject\service.wsdl

 There shouldn't be a problem with the maxlength, best I can tell. Yet I'm
 getting this error.

 Anyone have ideas on this one?
 --
 View this message in context:
 http://www.nabble.com/Incorrect-facet-with-name-%22maxlength%22-found-tf4944512.html#a14155327
 Sent from the Axis - User mailing list archive at Nabble.com.


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


 
 
 -- 
 Amila Suriarachchi,
 WSO2 Inc.
 
 

-- 
View this message in context: 
http://www.nabble.com/Incorrect-facet-with-name-%22maxlength%22-found-tf4944512.html#a14171955
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: Command line for AXIS2

2007-12-05 Thread sietsenicolaas.tenhoeve
He asked for command line commands.

I agree that the browser is better for this. Or maybe use some command
line tool to execute the requests Martin listed if you want to avoid a
browser.

Sietse

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 05 December 2007 14:19
To: axis-user@ws.apache.org
Subject: Re: Command line for AXIS2

yes sietse rather intrusive (but it will work!)

To be more specific about handling just your webapp

if your axis2 webapp is called axis2 and is located on localhost put
this address in your browser to start axis2 webapp
http://localhost:8080/manager/html/stop?path=/axis2

if your axis2 webapp is called axis2 and is located on localhost put
this address in your browser to stop axis2 webapp
http://localhost:8080/manager/html/start?path=/axis2

if your axis2 webapp is called axis2 and is located on localhost put
this address in your browser to list your webapps
http://localhost:8080/manager/html/list

HTH/
Martin
- Original Message -
Wrom: MHVIBGDADRZFSQHYUCDDJBLVLMHAALPT
To: axis-user@ws.apache.org
Sent: Wednesday, December 05, 2007 4:09 AM
Subject: RE: Command line for AXIS2


Hi,

I think more information can be found in the architecture guide I think.

In case of Apache Tomcat this is:

Starting the servlet container:
- Windows: net start Apache Tomcat
- Debian: /etc/init.d/tomcat start

Stopping:
- Windows: net stop Apache Tomcat
- Debian: /etc/init.d/tomcat stop

If the container runs, you can deploy the services into it. Just deploy
a war into the webapps directory and wait to see some magic and it is
ready for usage. By default you can put the axis2.war in here as
mentioned on the getting-started guide. Your own service can then be
deployed in different ways.

Checking it from the command line is just a http request imho. So you
send it using a tool which can generate that.

Regards,
Sietse



Wrom: CXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFM
Sent: 05 December 2007 01:41
To: axis-user@ws.apache.org
Subject: RE: Command line for AXIS2



Apache Axis2 1.2 build (April 27 2007)



Wrom: YXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFX
Sent: Tuesday, December 04, 2007 6:16 PM
To: axis-user@ws.apache.org
Subject: Re: Command line for AXIS2



which version axis are you implementing?


M-

- Original Message -

Wrom: ISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPK

To: axis-user@ws.apache.org

Sent: Tuesday, December 04, 2007 7:45 PM

Subject: Command line for AXIS2



Is there any way to:



Start service

Stop service

Check if service is active



from the command line.


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



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


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



Re: Adding WS-Security to an embedded axis2 web application

2007-12-05 Thread Martin Gainty
you get ws-security support with rampart-1.1 and above
http://www.apache.org/dyn/closer.cgi/ws/rampart/1_1

take a look at
/samples/basic/sample11/src/org/apache/rampart/samples/sample11/Client.java
for an example of configuring
Timestamp Signature Encryption for inflow and outflow as identified via this
example services.xml
parameter name=InflowSecurity
  action
itemsTimestamp Signature Encrypt/items

passwordCallbackClassorg.apache.rampart.samples.sample11.PWCBHandler/pass
wordCallbackClass
signaturePropFileservice.properties/signaturePropFile
  /action
/parameter

the declarative operation identifies the password callback handler via
setPasswordCallbackClass in the client stub as in
ofc.setPasswordCallbackClass(org.apache.rampart.samples.sample11.PWCBHandle
r);

take a look at PWCBHandler.java which handles the Password validation

also be sure to service.properties is located on the classpath and has the
ability to initialise all of the crypto parameters e.g.
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.cry
pto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=jks
org.apache.ws.security.crypto.merlin.keystore.password=apache
org.apache.ws.security.crypto.merlin.file=service.jks

Martin--
- Original Message -
From: ndthuy [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Wednesday, December 05, 2007 12:03 PM
Subject: Adding WS-Security to an embedded axis2 web application



 All,

 Does anyone know how to set up WS-Security to an embedded Axis2 web
 application ? I am using Axis2 1.3 and Rampart 1.3. This is my set up for
 embedded Axis2 web application.

 WebApp:
 + src
 + WebRoot
 + conf
 + lib
 + modules
 + services
+ common
+ META-INF
   + AdminRetrieveUserService.wsdl
   + apschema.xsd
   + services.xml

 I added rampart-1.3.mar to the modules folder. I also added all the
rampart
 libraries. I added the following to services.xml :

 module ref=rampart/

 parameter name=Inflowsecurity
 action
 itemsTimestamp/items
 /action
 /parameter
 parameter name=Outflowsecurity
 action
 itemsTimestamp/items
 /action
 /parameter

 And I haven't modified my client yet. I supposed to receive the error if I
 send my message without the soap header. However nothing happened and I
 still received a successful soap message back. Does anyone try to do this
 before?

 Thanks.
 --
 View this message in context:
http://www.nabble.com/Adding-WS-Security-to-an-embedded-axis2-web-applicatio
n-tf4950998.html#a14175976
 Sent from the Axis - User mailing list archive at Nabble.com.


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




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



Problem using MTOM with a JPEF file.

2007-12-05 Thread Raghu Upadhyayula
Hi,

 

I have a webservice which is used to upload images to the server.

 

I'm getting an exception if I am sending a JPEG file with MTOM enabled.
It works fine if MTOM is not enabled (Base64 encoded).  It works fine if
I send a GIF file with or without MTOM enabled.

 

Here is the exception I'm getting.  Is this a bug?

 

17:30:43,469 ERROR [[AxisServlet]] Servlet.service() for servlet
AxisServlet threw exception

java.lang.ArrayIndexOutOfBoundsException

at java.lang.System.arraycopy(Native Method)

at
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:414)

at
org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:312)

at
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.j
ava:193)

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read1(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

at java.io.FilterInputStream.read(Unknown Source)

at java.io.PushbackInputStream.read(Unknown Source)

at
org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(
BoundaryPushbackInputStream.java:102)

at
org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(
BoundaryPushbackInputStream.java:122)

at
org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPu
shbackInputStream.java:172)

at
org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartIn
putStream.java:87)

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

at
com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)

at
javax.mail.internet.InternetHeaders.load(InternetHeaders.java:329)

at
javax.mail.internet.InternetHeaders.init(InternetHeaders.java:301)

at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:168)

at
org.apache.axiom.attachments.PartOnMemory.init(PartOnMemory.java:34)

at
org.apache.axiom.attachments.Attachments.getPart(Attachments.java:598)

at
org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachme
nts.java:462)

at
org.apache.axiom.attachments.Attachments.getContentIDSet(Attachments.jav
a:427)

at
org.apache.axiom.attachments.Attachments.getAllContentIDs(Attachments.ja
va:420)

at
org.apache.axis2.transport.TransportUtils.deleteAttachments(TransportUti
ls.java:481)

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

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(Applica
tionFilterChain.java:290)

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

at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)

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

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:230)

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

at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:179)

at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:84)

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

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

at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConn
ectionValve.java:157)

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

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

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

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

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

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

 

Thanks

Raghu



XML request contains unknown element Header. SoapUI test also failed.

2007-12-05 Thread Srinivasa K
axis-user@ws.apache.orgWe have a Web Service from Oracle COREid System and
we created the web service client. When we run the client, its giving an
error message: XML request contains unknown element Header

It seems that an empty header element (soapenv:Header/) is causing the
issue. I have tested the same Web Service using SoapUI tool and got the same
error message. But, when I remove the soapenv:Header/ element from the
SOAP request then its working fine.
So, is there any way to exclude the empty header element from SOAP Request
Or please suggest any right way to get rid of this error. The below are the
request and response

*Request:*

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:obl=http://www.oblix.com/; xmlns:obl1=
http://www.oblix.com/OblixXMLLocalSchema;
*soapenv:Header/*
   soapenv:Body
  obl:authentication
 obl:loginRama/obl:login
 obl:passwordpasswrd/obl:password
 obl:domain/obl:domain
  /obl:authentication
  obl1:request version=NPWSDL1.0 application=userservcenter
function=canICreateUser mode=
 params
!--Optional:--
obl:ObDomainName?/obl:ObDomainName
!--Zero or more repetitions:--
obl:Objectclass?/obl:Objectclass
 /params
  /obl1:request
   /soapenv:Body
/soapenv:Envelope

*Response:*
**
?xml version=1.0 encoding=ISO-8859-1?
SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/

SOAP-ENV:Body
Oblix xmlns:oblix=http://www.oblix.com/; xmlns=http://www.oblix.com/;
ObError
ObTextMessageParse error: XML document is invalid.
../obxreader.cpp:182: Error: ObX::Reader::read
obsoapdomfactory.cpp:51: Error: Exception re-thrown in
ObSOAPDOMFactory::StartElement.
obsoapdomfactoryI.cpp:275: Error: Exception re-thrown in
ObSOAPDOMFactoryImpl::StartElement.
obsoapdomfactoryI.cpp:104: Error: XML request contains unknown element
Header.
/ObTextMessage
ObStatus1/ObStatus
/ObError
ObStatus1/ObStatus
/Oblix
/SOAP-ENV:Body
/SOAP-ENV:Envelope

 thanks

Srinivas


RE: Axis2 phantom webservice!

2007-12-05 Thread cporter

Solved

1. Re-deployed the Archive Generator plugin (new download)
2. Re-attached all jar's required for WS (I removed all the suggestions
given by the wizard (from previous processes))
3. Re-exported project JAR (since certain custom built packages were
required by the WS)
4. Re-started JBoss
5. Re-deployed Axis2
6. Uploaded AAR

Worked perfectly well!

I guess it was an issue of JAR files refresh!

Thanks Sietse for your interest.

Chris



cporter wrote:
 
 Hi Sietse,
 
 First of all I thank you for your reply... 
 
 So...
 
 1) The AAR is surely the newly generated one
 2) I use the Axis2 Eclipse plugin to do that process (I am a bit sceptic
 about it, somehow)
 3) I restarted JBoss several times... in vain.
 
 Incredible! It's fascinating to see results coming out of inexistent code!
 :-/
 
 I thank you for your opinion maybe someone has had the same situation.
 
 Chris
 
 
 sietsenicolaas.tenhoeve wrote:
 
 Hello Chris,
 
 I don't know JBoss but that's maybe not relevant. 
 My ideas about this are the following:
 - Does the server logs say anything about new deployed services?
 - Is the provided aar the new one? (Do you use a buildtool which
 automates this process?)
 - Do you have the same problem in the test environment?
 - Have you tried to restart JBoss?
 
 I know this is not an answer on your question, but maybe these points
 help you.
 
 Regards,
 Sietse
 
 -Original Message-
 From: cporter [mailto:[EMAIL PROTECTED] 
 Sent: 05 December 2007 13:06
 To: axis-user@ws.apache.org
 Subject: Axis2 phantom webservice!
 
 
 Hello all,
 
 I have been trying to find the root of my problem for 3 days now, all in
 vain. I am sure it is some detail which I might be overlooking here, and
 I hope that someone out there would be able to enlighten me.
 
 The situation is as follows:
 
 1) JBoss server (with Axis2 hot deployed and archive uploaded through
 Axis2's admin pages).
 2) Webservice returns a simple XML structure
 
 Suddenly, changes on a particular webservice (after compiling,
 generating AAR and uploading), are not being reproduced when called over
 any client.
 Even if I hard code the return value e.g. to null or empty Element, it
 still somehow provides me with the old (original) return values.
 
 One of the behaviors I am noticing, which obviously is rising some
 questions is that when I deploy the web service (through Axis2 Admin), I
 get 2 deployment messages (2 seconds apart) from the JBoss console
 window.
 
 It seems that there is an old version of my webservice being deployed
 with Axis2. Is that possible? And if so, how can I go about solving the
 problem?
 
 On my side, I have tried the following:
 1) Remove ALL bin folders, and recompiled all my code
 2) Removed all relevant archives (.aar) (even from JBoss tmp folders)
 and regenerated from newly compiled classes
 3) Tested the modified service (successfully) through static debugging,
 and the results are as desired. But somehow, when I generate an archive
 and publish the web service, the old web service comes to life (as if a
 phantom WS).
 
 I appreciate some feedback.
 
 Best Regards,
 
 Chris Porter
 
 
 
 --
 View this message in context:
 http://www.nabble.com/Axis2-phantom-webservice%21-tf4949452.html#a141710
 33
 Sent from the Axis - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Axis2-phantom-webservice%21-tf4949452.html#a14177709
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: [Axis2] Problem using MTOM with a JPEG file.

2007-12-05 Thread Martin Gainty
Base64 (non-optimisable) and MTOM (optimisable) technologies are complimentary
http://ws.apache.org/axis2/1_1_1/mtom-guide.html

ONE possible workaround is to enable SWA
 options.setProperty(Constants.Configuration.ENABLE_SWA, Constants.VALUE_TRUE);

have your client.addMessageContext(MessageContext) where the messageContext has 
an added Base64 Attachment
MessageContext.addAttachment(Attachment,datahandler);

where the Datahandler is a wrapper on a Datasource 
dataHandler =new DataHandler(fileDataSource);

and the datasource is a wrapper DataSource for your Base64 file
FileDataSource fileDataSource = new FileDataSource(whatever.jpg);

M-
  - Original Message - 
  From: Raghu Upadhyayula 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, December 05, 2007 12:58 PM
  Subject: [Axis2] Problem using MTOM with a JPEG file.


  Hi,

   

  I have a webservice which is used to upload images to the server.

   

  I'm getting an exception if I am sending a JPEG file with MTOM enabled.  It 
works fine if MTOM is not enabled (Base64 encoded).  It works fine if I send a 
GIF file with or without MTOM enabled.

   

  Here is the exception I'm getting.  Is this a bug? (I'm using Axis2 1.3 
Version).

   

  17:30:43,469 ERROR [[AxisServlet]] Servlet.service() for servlet AxisServlet 
threw exception

  java.lang.ArrayIndexOutOfBoundsException

  at java.lang.System.arraycopy(Native Method)

  at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:414)

  at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:312)

  at 
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)

  at java.io.BufferedInputStream.fill(Unknown Source)

  at java.io.BufferedInputStream.read1(Unknown Source)

  at java.io.BufferedInputStream.read(Unknown Source)

  at java.io.FilterInputStream.read(Unknown Source)

  at java.io.PushbackInputStream.read(Unknown Source)

  at 
org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(BoundaryPushbackInputStream.java:102)

  at 
org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(BoundaryPushbackInputStream.java:122)

  at 
org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPushbackInputStream.java:172)

  at 
org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:87)

  at java.io.BufferedInputStream.fill(Unknown Source)

  at java.io.BufferedInputStream.read(Unknown Source)

  at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)

  at javax.mail.internet.InternetHeaders.load(InternetHeaders.java:329)

  at javax.mail.internet.InternetHeaders.init(InternetHeaders.java:301)

  at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:168)

  at org.apache.axiom.attachments.PartOnMemory.init(PartOnMemory.java:34)

  at org.apache.axiom.attachments.Attachments.getPart(Attachments.java:598)

  at 
org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachments.java:462)

  at 
org.apache.axiom.attachments.Attachments.getContentIDSet(Attachments.java:427)

  at 
org.apache.axiom.attachments.Attachments.getAllContentIDs(Attachments.java:420)

  at 
org.apache.axis2.transport.TransportUtils.deleteAttachments(TransportUtils.java:481)

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

  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.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilterjava:96)

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

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

  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValvejava:230)

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

  at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)

  at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

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

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

  at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

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

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

  at 

RE: Axis2 phantom webservice!

2007-12-05 Thread cporter

Hi Sietse,

First of all I thank you for your reply... 

So...

1) The AAR is surely the newly generated one
2) I use the Axis2 Eclipse plugin to do that process (I am a bit sceptic
about it, somehow)
3) I restarted JBoss several times... in vain.

Incredible! It's fascinating to see results coming out of inexistent code!
:-/

I thank you for your opinion maybe someone has had the same situation.

Chris


sietsenicolaas.tenhoeve wrote:
 
 Hello Chris,
 
 I don't know JBoss but that's maybe not relevant. 
 My ideas about this are the following:
 - Does the server logs say anything about new deployed services?
 - Is the provided aar the new one? (Do you use a buildtool which
 automates this process?)
 - Do you have the same problem in the test environment?
 - Have you tried to restart JBoss?
 
 I know this is not an answer on your question, but maybe these points
 help you.
 
 Regards,
 Sietse
 
 -Original Message-
 From: cporter [mailto:[EMAIL PROTECTED] 
 Sent: 05 December 2007 13:06
 To: axis-user@ws.apache.org
 Subject: Axis2 phantom webservice!
 
 
 Hello all,
 
 I have been trying to find the root of my problem for 3 days now, all in
 vain. I am sure it is some detail which I might be overlooking here, and
 I hope that someone out there would be able to enlighten me.
 
 The situation is as follows:
 
 1) JBoss server (with Axis2 hot deployed and archive uploaded through
 Axis2's admin pages).
 2) Webservice returns a simple XML structure
 
 Suddenly, changes on a particular webservice (after compiling,
 generating AAR and uploading), are not being reproduced when called over
 any client.
 Even if I hard code the return value e.g. to null or empty Element, it
 still somehow provides me with the old (original) return values.
 
 One of the behaviors I am noticing, which obviously is rising some
 questions is that when I deploy the web service (through Axis2 Admin), I
 get 2 deployment messages (2 seconds apart) from the JBoss console
 window.
 
 It seems that there is an old version of my webservice being deployed
 with Axis2. Is that possible? And if so, how can I go about solving the
 problem?
 
 On my side, I have tried the following:
 1) Remove ALL bin folders, and recompiled all my code
 2) Removed all relevant archives (.aar) (even from JBoss tmp folders)
 and regenerated from newly compiled classes
 3) Tested the modified service (successfully) through static debugging,
 and the results are as desired. But somehow, when I generate an archive
 and publish the web service, the old web service comes to life (as if a
 phantom WS).
 
 I appreciate some feedback.
 
 Best Regards,
 
 Chris Porter
 
 
 
 --
 View this message in context:
 http://www.nabble.com/Axis2-phantom-webservice%21-tf4949452.html#a141710
 33
 Sent from the Axis - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Axis2-phantom-webservice%21-tf4949452.html#a14176540
Sent from the Axis - User mailing list archive at Nabble.com.


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



Axis2: Excluding of fields

2007-12-05 Thread Simon Steinacker

Hello,

Is there a way of to exclude certain fields of a Java class (e.g. 
database ids), when generating a wsdl from java classes?


Thanks,
Simon

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



Creating OMElement from file

2007-12-05 Thread pmarchwiak

I have an XML file whose root element I would like to add as a child to an
OMElement I have created. Is there a way to create an OMElement from an XML
file?
-- 
View this message in context: 
http://www.nabble.com/Creating-OMElement-from-file-tf4952009.html#a14179531
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: [Axis2] FileNotFoundException during session unloading

2007-12-05 Thread robert lazarski
Just a wild guess - are you sure tomcat can file glob $HOME ? Googling
turned up several hits on this - seems to be tomcat related and not
axis2. If its a linux box do an updatedb and a 'locate SESSIONS.ser' .
It might has something to do with your CATALINA_HOME var.

HTH,
Robert

On Dec 5, 2007 1:37 PM, Michele Mazzucco [EMAIL PROTECTED] wrote:
 Hi all,

 I'm running axis2 1.3 inside tomcat 6.0.13 (NIO connector) and I get
 this exception:

 05-Dec-2007 18:26:39 org.apache.catalina.session.StandardManager stop
 SEVERE: Exception unloading sessions to persistent storage
 java.io.FileNotFoundException:
 $HOME/apache-tomcat-6.0.13/work/Catalina/localhost/axis2/SESSIONS.ser
 (No such file or directory)
 at java.io.FileOutputStream.open(Native Method)
 at java.io.FileOutputStream.init(FileOutputStream.java:179)
 at java.io.FileOutputStream.init(FileOutputStream.java:70)
 at
 org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:489)
 at
 org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
 at
 org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
 at
 org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496)
 at
 org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
 at
 org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1180)
 at
 org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1151)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 at
 org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
 at
 org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
 at
 org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
 at
 org.apache.catalina.core.StandardService.stop(StandardService.java:584)
 at
 org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:591)
 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:597)
 at
 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)




 I'm testing only one service -- and it's deployed in request scope.

 Any idea?
 Michele



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



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



Re: [Axis2] FileNotFoundException during session unloading

2007-12-05 Thread Michele Mazzucco


On 5 Dec 2007, at 18:47, robert lazarski wrote:


Just a wild guess - are you sure tomcat can file glob $HOME ?


I've changed the full path with $HOME, the log states the full path.


Googling
turned up several hits on this - seems to be tomcat related and not
axis2. If its a linux box do an updatedb and a 'locate SESSIONS.ser' .
It might has something to do with your CATALINA_HOME var.


OK, I'll give it a try.


Thanks,
Michele


HTH,
Robert

On Dec 5, 2007 1:37 PM, Michele Mazzucco  
[EMAIL PROTECTED] wrote:

Hi all,

I'm running axis2 1.3 inside tomcat 6.0.13 (NIO connector) and I get
this exception:

05-Dec-2007 18:26:39 org.apache.catalina.session.StandardManager stop
SEVERE: Exception unloading sessions to persistent storage
java.io.FileNotFoundException:
$HOME/apache-tomcat-6.0.13/work/Catalina/localhost/axis2/SESSIONS.ser
(No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:70)
at
org.apache.catalina.session.StandardManager.doUnload 
(StandardManager.java:489)

at
org.apache.catalina.session.StandardManager.unload 
(StandardManager.java:463)

at
org.apache.catalina.session.StandardManager.stop 
(StandardManager.java:667)

at
org.apache.catalina.core.StandardContext.stop(StandardContext.java: 
4496)

at
org.apache.catalina.core.ContainerBase.removeChild 
(ContainerBase.java:924)

at
org.apache.catalina.startup.HostConfig.undeployApps 
(HostConfig.java:1180)

at
org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1151)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent 
(HostConfig.java:313)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent 
(LifecycleSupport.java:117)

at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
at
org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
at
org.apache.catalina.core.StandardService.stop(StandardService.java: 
584)

at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java: 
616)
at org.apache.catalina.startup.Catalina.start 
(Catalina.java:591)
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:597)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)




I'm testing only one service -- and it's deployed in request scope.

Any idea?
Michele



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




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




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



Re: General security error (Unexpected number of X509Data: for Signature)

2007-12-05 Thread Rachel Primrose
Right on the button - eclipse + classpaths = pain.

I renamed everything to wow.whatever and now I'm onto the .NET interop
problems, which I will probably be posting about when I get really
stuck.

Thanks so much.

On Dec 5, 2007 7:46 PM, Ruchith Fernando [EMAIL PROTECTED] wrote:
 Yep ... everything looks fine ... However I'm wondering whether you
 have any other client_crypto.properties file in your classpath that
 causes the wrong keystore to be picked where there's no key with alias
 test123.

 Therefore can you please rename the keystore file and the .properties
 file and check.

 Thanks,
 Ruchith


 On Dec 5, 2007 5:50 AM, Rachel Primrose [EMAIL PROTECTED] wrote:
  Hello,
 
  I've been having trouble signing my messages as they go out, and the
  usual is the alias the right one solution I've been reading about
  does not work!
 
  Here is my keystore:
 
  Keystore type: PKCS12
  Keystore provider: SunJSSE
 
  Your keystore contains 1 entry
 
  Alias name: test123
  Creation date: 5/12/2007
  Entry type: PrivateKeyEntry
  Certificate chain length: 3
  Certificate[1]:
 
  Here is my axis2.xml security outflow:
 
  parameter name=OutflowSecurity
action
  itemsTimestamp Signature/items
  usertest123/user
  passwordCallbackClasstest.oot.PWCallback/passwordCallbackClass
  signaturePropFileclient_crypto.properties/signaturePropFile
  signatureKeyIdentifierDirectReference/signatureKeyIdentifier
  parameter name=referencePropertyNames
  value={Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}Action;{Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}MessageID;{Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}ReplyTo;{Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}To;
  /
  parameter name=signatureParts value=

  {Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;

  {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}Action;

  {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}MessageID;

  {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}To;

  {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}From;

  {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}ReplyTo;

  {Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;
  /
/action
  /parameter
 
  Here is my client_crypto.properties file:
 
  org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
  org.apache.ws.security.crypto.merlin.keystore.type=pkcs12
  org.apache.ws.security.crypto.merlin.keystore.password=test
  org.apache.ws.security.crypto.merlin.keystore.alias=test123
  org.apache.ws.security.crypto.merlin.file=oot-stage.p12
 
  And my pwcallback class:
 
   pc.setPassword(test);
 
  The error I get is:
 
  org.apache.axis2.AxisFault: WSHandler: Signature: error during message
  procesingorg.apache.ws.security.WSSecurityException: General security
  error (Unexpected number of X509Data: for Signature); nested exception
  is:
  org.apache.ws.security.WSSecurityException: WSHandler: Signature:
  error during message
  procesingorg.apache.ws.security.WSSecurityException: General security
  error (Unexpected number of X509Data: for Signature)
  at 
  org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:92)
  at 
  org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:74)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:382)
  at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522)
  at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:655)
  at 
  org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
  at 
  org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
  Caused by: org.apache.ws.security.WSSecurityException: WSHandler:
  Signature: error during message
  procesingorg.apache.ws.security.WSSecurityException: General security
  error (Unexpected number of X509Data: for Signature)
  at 
  org.apache.ws.security.action.SignatureAction.execute(SignatureAction.java:57)
  at 
  org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:192)
  at 
  org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:254)
  at 
  org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:86)
  ... 8 more
 
  And when I set level=DEBUG in my log4j.properties:
 
  985  [main] DEBUG org.apache.ws.security.util.Loader  - Trying to find
  [client_crypto.properties] using
  [EMAIL PROTECTED] class loader.
  1000 [main] DEBUG
  org.apache.ws.security.components.crypto.CryptoFactory  - Using Crypto
  

missing REST-epr after installing the standard WAR-distribution

2007-12-05 Thread Achim Seufert
Hi there,

in case I'm missing something obvious... my apologies in advance. :-)

According to most tutorials and the official documentation of Axis2
(1.3) you're able to access your services via the two standard
webservice-endpoints - SOAP and REST.
So after installing the WAR-distribution there should be two ways to
invoke the built-in Version-service:

http://localhost:8080/axis2/services/Version/getVersion

... for a SOAP-response and ...

http://localhost:8080/axis2/rest/Version/getVersion

... for a simple REST/XML-response.

Unfortunately I just get one endpoint listed when calling the
http://localhost:8080/axis2/services/listServices; page:

Service EPR : http://localhost:8080/axis2/services/Version

So I'm missing the endpoint called...

Service REST epr : http://localhost:8080/axis2/rest/Version

... which the tutorials' screenshots show.

On top of that - strangely the only listed endpoint also doesn't give
me a proper SOAP-response (including header, body, etc.) but a simple
XML-document telling me the used Axis2-version.

I tried various different installations (Linux with Tomcat 5.5 / 6,
MacOSX with Tomcat 6, etc.) ... same situation.

Could anyone point me to the right direction on how to get both SOAP
and REST running?!

Any help would be appreciated. Thanks.

Achim

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



Re: Adding WS-Security to an embedded axis2 web application

2007-12-05 Thread ndthuy

Hi,

It seems like I didn't get anything after engage the rampart module on
services.xml. I should get an error if I send a soap message that doesn't
have the timestamp header. Do I have to turn on anything else ? I am using
the embedded Axis2 Web app.

Thanks.

mgainty wrote:
 
 you get ws-security support with rampart-1.1 and above
 http://www.apache.org/dyn/closer.cgi/ws/rampart/1_1
 
 take a look at
 /samples/basic/sample11/src/org/apache/rampart/samples/sample11/Client.java
 for an example of configuring
 Timestamp Signature Encryption for inflow and outflow as identified via
 this
 example services.xml
 parameter name=InflowSecurity
   action
 itemsTimestamp Signature Encrypt/items
 
 passwordCallbackClassorg.apache.rampart.samples.sample11.PWCBHandler/pass
 wordCallbackClass
 signaturePropFileservice.properties/signaturePropFile
   /action
 /parameter
 
 the declarative operation identifies the password callback handler via
 setPasswordCallbackClass in the client stub as in
 ofc.setPasswordCallbackClass(org.apache.rampart.samples.sample11.PWCBHandle
 r);
 
 take a look at PWCBHandler.java which handles the Password validation
 
 also be sure to service.properties is located on the classpath and has the
 ability to initialise all of the crypto parameters e.g.
 org.apache.ws.security.crypto.provider=org.apache.ws.security.components.cry
 pto.Merlin
 org.apache.ws.security.crypto.merlin.keystore.type=jks
 org.apache.ws.security.crypto.merlin.keystore.password=apache
 org.apache.ws.security.crypto.merlin.file=service.jks
 
 Martin--
 - Original Message -
 From: ndthuy [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Sent: Wednesday, December 05, 2007 12:03 PM
 Subject: Adding WS-Security to an embedded axis2 web application
 
 

 All,

 Does anyone know how to set up WS-Security to an embedded Axis2 web
 application ? I am using Axis2 1.3 and Rampart 1.3. This is my set up for
 embedded Axis2 web application.

 WebApp:
 + src
 + WebRoot
 + conf
 + lib
 + modules
 + services
+ common
+ META-INF
   + AdminRetrieveUserService.wsdl
   + apschema.xsd
   + services.xml

 I added rampart-1.3.mar to the modules folder. I also added all the
 rampart
 libraries. I added the following to services.xml :

 module ref=rampart/

 parameter name=Inflowsecurity
 action
 itemsTimestamp/items
 /action
 /parameter
 parameter name=Outflowsecurity
 action
 itemsTimestamp/items
 /action
 /parameter

 And I haven't modified my client yet. I supposed to receive the error if
 I
 send my message without the soap header. However nothing happened and I
 still received a successful soap message back. Does anyone try to do this
 before?

 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Adding-WS-Security-to-an-embedded-axis2-web-applicatio
 n-tf4950998.html#a14175976
 Sent from the Axis - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Adding-WS-Security-to-an-embedded-axis2-web-application-tf4950998.html#a14181158
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Creating OMElement from file

2007-12-05 Thread Simon Steinacker

Here is the code that works for me:

StAXOMBuilder sab = new StAXOMBuilder(someXmlFile.xml);
OMElement dataEl = sab.getDocument().getOMDocumentElement();

Simon


pmarchwiak wrote:

I have an XML file whose root element I would like to add as a child to an
OMElement I have created. Is there a way to create an OMElement from an XML
file?
  



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



Adding WS-Security to an embedded axis2 web application

2007-12-05 Thread ndthuy

All,

Does anyone know how to set up WS-Security to an embedded Axis2 web
application ? I am using Axis2 1.3 and Rampart 1.3. This is my set up for
embedded Axis2 web application.

WebApp:
+ src
+ WebRoot
+ conf
+ lib
+ modules
+ services
   + common
   + META-INF
  + AdminRetrieveUserService.wsdl
  + apschema.xsd
  + services.xml

I added rampart-1.3.mar to the modules folder. I also added all the rampart
libraries. I added the following to services.xml :

module ref=rampart/

parameter name=Inflowsecurity
action
itemsTimestamp/items
/action
/parameter
parameter name=Outflowsecurity
action
itemsTimestamp/items
/action
/parameter

And I haven't modified my client yet. I supposed to receive the error if I
send my message without the soap header. However nothing happened and I
still received a successful soap message back. Does anyone try to do this
before?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Adding-WS-Security-to-an-embedded-axis2-web-application-tf4950998.html#a14175976
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Problem with Using Spring and Hibernate with Axis2

2007-12-05 Thread ndthuy

All,

I solve the problem by not using Spring 2.X version. I go back to Spring 1.x
version and everything works fine.

Thanks.

ndthuy wrote:
 
 Hi All,
 
 I am using Spring and Hibernate with Axis2. I have the problem with
 loading the applicationContext.xml. Does anyone has similar problems? 
 Attached are service.xml, applicationContext.xml and error meesage.
 
 Thanks a lot.
 
 service.xml
 
 ?xml version=1.0 encoding=UTF-8?
 !-- This file was auto-generated from WSDL --
 !-- by the Apache Axis2 version: 1.3  Built on : Aug 10, 2007 (04:45:47
 LKT) --
 serviceGroup
   service name=SpringInit class=com.cvg.ap.util.SpringInit
   descriptionThis web service initializes Spring./description
   parameter name=ServiceClass
   sample.spring.service.SpringInit
   /parameter
   parameter name=ServiceTCCLcomposite/parameter
   parameter name=load-on-startuptrue/parameter
   operation name=springInit
   messageReceiver
   
 class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
   /operation
   /service
 
   service name=AdminRetrieveUserService
   messageReceivers
   messageReceiver mep=http://www.w3.org/ns/wsdl/in-out;
   
 class=com.cvg.ap.ws.service.publicservices.adminretrieveuserservice.AdminRetrieveUserServiceMessageReceiverInOut
 /
   /messageReceivers
   parameter name=ServiceClass
   
 com.cvg.ap.ws.service.publicservices.impl.AdminRetrieveUserServiceImpl
   /parameter
   parameter name=ServiceObjectSupplier
   
 org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier
   /parameter
   parameter name=SpringBeanName
   springAdminRetrieveUserService
   /parameter
   parameter name=useOriginalwsdltrue/parameter
   parameter name=modifyUserWSDLPortAddresstrue/parameter
   operation name=retrieveUserProfile
   mep=http://www.w3.org/ns/wsdl/in-out;
   actionMappingurn:retrieveUserProfile/actionMapping
   outputActionMapping
   
 http://AdminRetrieveUserService.publicservices.service.ws.ap.cvg.com/AdminRetrieveUserServicePortType/retrieveUserProfileResponse
   /outputActionMapping
   /operation
   /service
 /serviceGroup
 
 
 ApplicationContext.xml
 
 ?xml version=1.0 encoding=UTF-8?
 beans xmlns=http://www.springframework.org/schema/beans;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://www.springframework.org/schema/beans
 http://www.springframework.org/schema/beans/spring-beans-2.0.xsd;
 
   bean id=applicationContext
   
 class=org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder
 /
   
   bean id=sessionFactory
   
 class=org.springframework.orm.hibernate3.LocalSessionFactoryBean
   property name=configLocation
   value=classpath:hibernate.cfg.xml
   /property
   property name=dataSource
   ref local=c3poDataSource /
   /property
   /bean
   bean id=propertyConfigurer
   
 class=org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
   property name=location
   value
   
 file:${ACCESSPOINT_WS_CFG_HOME}/accesspoint_ws/config/accesspoint_ws.properties
   /value
   /property
   /bean
   bean id=c3poDataSource
   class=com.mchange.v2.c3p0.ComboPooledDataSource
   destroy-method=close
   property name=driverClass
   valueoracle.jdbc.driver.OracleDriver/value
   /property
   property name=jdbcUrl
   value
   
 jdbc:oracle:thin:@${jdbc.host}:${jdbc.port}:${jdbc.database}
   /value
   /property
 
   property name=properties
   props
   prop key=user${jdbc.username}/prop
   prop key=password
   ${ACCESSPOINT_DB_PWD_DECRYPTED}
   /prop
   prop key=c3p0.min_size
   ${jdbc.connectionPool.minSize}
   /prop
   prop key=c3p0.max_size
   ${jdbc.connectionPool.maxSize}
   /prop
   prop key=c3p0.acquire_increment
   

different java package for wsdl2java generated fault classes (Axis2 1.3)

2007-12-05 Thread Leon Searl

Hi,

I've been using Axis2 v1.3 and wsdl2java with the ADB binding
to create the classes for my services and clients. This has worked
pretty well for me. But I would like to have wsdl2java do one
thing different.

wsdl2java puts the classes for faults into the same java package as the
service skeleton reguardless of the namespace that the fault name
is in.

Is there a way to have a wsdl2java generated fault class package
be based on the namespace of the wsdl fault name?

The rational for wanting this would be cumbersome to explain so
I've left it out of this message. But I will way that it will
allow me to modularize/reuse wsdl 'interfaces' that include faults.
I can provide the rational for anyone that wants it.

Thanks for any information/help you can provide.

leon

--
Leon S. Searl, Software Research Engineer
Information and Telecommunication Technology Center, University of Kansas
Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612
Ph: 785-864-7820 Fax: 785-864-0387
http://www.ittc.ku.edu

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



RE: Axis2 phantom webservice!

2007-12-05 Thread sietsenicolaas.tenhoeve
Hello Chris,

I don't know JBoss but that's maybe not relevant. 
My ideas about this are the following:
- Does the server logs say anything about new deployed services?
- Is the provided aar the new one? (Do you use a buildtool which
automates this process?)
- Do you have the same problem in the test environment?
- Have you tried to restart JBoss?

I know this is not an answer on your question, but maybe these points
help you.

Regards,
Sietse

-Original Message-
From: cporter [mailto:[EMAIL PROTECTED] 
Sent: 05 December 2007 13:06
To: axis-user@ws.apache.org
Subject: Axis2 phantom webservice!


Hello all,

I have been trying to find the root of my problem for 3 days now, all in
vain. I am sure it is some detail which I might be overlooking here, and
I hope that someone out there would be able to enlighten me.

The situation is as follows:

1) JBoss server (with Axis2 hot deployed and archive uploaded through
Axis2's admin pages).
2) Webservice returns a simple XML structure

Suddenly, changes on a particular webservice (after compiling,
generating AAR and uploading), are not being reproduced when called over
any client.
Even if I hard code the return value e.g. to null or empty Element, it
still somehow provides me with the old (original) return values.

One of the behaviors I am noticing, which obviously is rising some
questions is that when I deploy the web service (through Axis2 Admin), I
get 2 deployment messages (2 seconds apart) from the JBoss console
window.

It seems that there is an old version of my webservice being deployed
with Axis2. Is that possible? And if so, how can I go about solving the
problem?

On my side, I have tried the following:
1) Remove ALL bin folders, and recompiled all my code
2) Removed all relevant archives (.aar) (even from JBoss tmp folders)
and regenerated from newly compiled classes
3) Tested the modified service (successfully) through static debugging,
and the results are as desired. But somehow, when I generate an archive
and publish the web service, the old web service comes to life (as if a
phantom WS).

I appreciate some feedback.

Best Regards,

Chris Porter



--
View this message in context:
http://www.nabble.com/Axis2-phantom-webservice%21-tf4949452.html#a141710
33
Sent from the Axis - User mailing list archive at Nabble.com.


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


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



Re: Query about AXIS2 1.3 asynchronous web service

2007-12-05 Thread Michele Mazzucco

Chiradeep,

where's the problem?, JMS listeners run in separate threads as well.
Are you worried about the sleep() call? If so, it's only because the  
main thread has to wait until the response has been received before  
exiting - in the meantime the main thread could accomplish other  
tasks as well.


Michele

On 5 Dec 2007, at 14:51, Chiradeep_Banik wrote:



Hi,

I am new to web service and AXIS2 engine. I have a basic doubt  
about the asynchronous web service AXIS2 provides. Does it provide  
a complete asynchronous communication? I have seen the following  
code in AXIS2 site, the client basically waits until a response  
comes from server. Comparing this with JMS/MQ communication, the  
client does not wait when a message is put in the queue and a  
seperate a seperate MDB picks up the response when send by server.


try {
OMElement payload = ClientUtil.getEchoOMElement();

Options options = new Options();
options.setTo(targetEPR);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
options.setUseSeparateListener(true);
options.setAction(urn:echo);  // this is the action  
mapping we put within the service.xml


//Callback to handle the response
Callback callback = new Callback() {
public void onComplete(AsyncResult result) {
System.out.println(result.getResponseEnvelope());
}

public void onError(Exception e) {
e.printStackTrace();
}
};
//Non-Blocking Invocation
sender = new ServiceClient();
sender.engageModule(new QName 
(Constants.MODULE_ADDRESSING));

sender.setOptions(options);
sender.sendReceiveNonBlocking(payload, callback);
//Wait till the callback receives the response.
while (!callback.isComplete()) {
 Thread.sleep(1000);
}
//Need to close the Client Side Listener.
} catch (AxisFault axisFault) {
  axisFault.printStackTrace();
} catch (Exception ex) {
  ex.printStackTrace();
} finally {
try {
sender.cleanup();
} catch (AxisFault axisFault) {
//have to ignore this
}
}


Can somebody share with me a sample asynchronous web service client  
code using AXIS2 1.3?


Thanks and Regards,

Chiradeep

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION  
intended solely for the use of the addressee(s). If you are not the  
intended recipient, please notify the sender by e-mail and delete  
the original message. Further, you are not to copy, disclose, or  
distribute this e-mail or its contents to any other person and any  
such actions are unlawful. This e-mail may contain viruses. Infosys  
has taken every reasonable precaution to minimize this risk, but is  
not liable for any damage you may sustain as a result of any virus  
in this e-mail. You should carry out your own virus checks before  
opening the e-mail or attachment. Infosys reserves the right to  
monitor and review the content of all messages sent to or from this  
e-mail address. Messages sent to or from this e-mail address may be  
stored on the Infosys e-mail system.

***INFOSYS End of Disclaimer INFOSYS***

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




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



HttpURLConnection - java.net.ConnectException: Connection timed out

2007-12-05 Thread sh_santosh


Dear all,

   I am usging Apache-Tomcat 5.5.20 and Axis 1.2 RC.
I am invoking the web services method by my java client program.

In SoapBindingImpl class i have written a Implementation method
sendAndReceive().
sendAndReceive method code is --

public String sendAndReceive(String sRequest, String sMode)
{

StringBuffer sbResponse = new StringBuffer();
URL url = null;

try
{
sbResponse = new StringBuffer();
String _sServerURL =_sLocalServerPath;  
url = new URL(_sServerURL+/wsTestServiceServlet);  //Servlet
- where business Implementation code is written.
HttpURLConnection conn =
(HttpURLConnection)url.openConnection();//
sun.net.www.protocol.http.HttpURLConnection {rt.jar}
conn.setRequestMethod(POST);
conn.setDoOutput(true);
conn.setDoInput(true);

PrintStream outStream = new
PrintStream(conn.getOutputStream());== java:140 from Exception
stack
outStream.print(request=+URLEncoder.encode(sRequest));
outStream.print(BIZ_ACTION_MODE= +sMode);   
outStream.close();

BufferedReader rd = new BufferedReader(new
InputStreamReader(conn.getInputStream()));

String line;

while ((line = rd.readLine()) != null) 
{
sbResponse.append(line);
}

rd.close(); 

} catch (MalformedURLException e)
{
sbResponse.setLength(0);
sbResponse.append(e.getMessage());
e.printStackTrace();
} catch (IOException e)
{
e.printStackTrace();
sbResponse.setLength(0);
sbResponse.append(e.getMessage());
}

return sbResponse.toString();

}
 
From this method i am getting Connection Time out Exception.
On this line program is hanged :
PrintStream outStream = new PrintStream(conn.getOutputStream());

Please see Exception == 

java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:516)
at java.net.Socket.connect(Socket.java:466)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.http.HttpClient.init(HttpClient.java:214)
at sun.net.www.http.HttpClient.New(HttpClient.java:287)
at sun.net.www.http.HttpClient.New(HttpClient.java:299)

at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:796)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:748)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:673)
at
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:840)
at
webservices.wsHotelEngine.WssearchdetailsSoapBindingImpl.sendAndReceive(WssearchdetailsSoapBindingImpl.java:198)
at
webservices.wsHotelEngine.WsseardetailsSoapBindingImpl.getHotelDetailsXML(WssearchdetailsSoapBindingImpl.java:43)
at
webservices.wsHotelEngine.WssearchdetailsSoapBindingSkeleton.getHotelDetailsXML(WssearchdetailsSoapBindingSkeleton.java:140)

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:585)
at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:384)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:281)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:653)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at

Re: [Axis2] FileNotFoundException during session unloading

2007-12-05 Thread Martin Gainty
Good Evening Michele

if you take a look at /META-INF/context.xml
you'll have to custom define your own javax.servlet.context.tempdir

  attribute name=workDir required=false
pPathname to a scratch directory to be provided by this Context
for temporary read-write use by servlets within the associated web
application.  This directory will be made visible to servlets in the
web application by a servlet context attribute (of type
codejava.io.File/code) named
codejavax.servlet.context.tempdir/code as described in the
Servlet Specification.  If not specified, a suitable directory
underneath code$CATALINA_HOME/work/code will be provided./p
  /attribute

the situation  is that this mechanism works great when tomcat is stopped and
started as the $CATALINA_HOME/work folder is cleaned
hopefully specifying the new javax.servlet.context.tempdir will enable you
to redirect SESSIONS.ser to a folder which is not deleted

In any event I would encourage you to post this to [EMAIL PROTECTED]

HTH/
Martin--
- Original Message -
From: Michele Mazzucco [EMAIL PROTECTED]
To: axis2 axis-user@ws.apache.org
Sent: Wednesday, December 05, 2007 1:37 PM
Subject: [Axis2] FileNotFoundException during session unloading


 Hi all,

 I'm running axis2 1.3 inside tomcat 6.0.13 (NIO connector) and I get
 this exception:

 05-Dec-2007 18:26:39 org.apache.catalina.session.StandardManager stop
 SEVERE: Exception unloading sessions to persistent storage
 java.io.FileNotFoundException:
 $HOME/apache-tomcat-6.0.13/work/Catalina/localhost/axis2/SESSIONS.ser
 (No such file or directory)
 at java.io.FileOutputStream.open(Native Method)
 at java.io.FileOutputStream.init(FileOutputStream.java:179)
 at java.io.FileOutputStream.init(FileOutputStream.java:70)
 at

org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:48
9)
 at

org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
 at
 org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
 at
 org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496)
 at
 org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
 at
 org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1180)
 at
 org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1151)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
 at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:117)
 at
 org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
 at
 org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
 at
 org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
 at
 org.apache.catalina.core.StandardService.stop(StandardService.java:584)
 at
 org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:591)
 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:597)
 at
 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)




 I'm testing only one service -- and it's deployed in request scope.

 Any idea?
 Michele



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




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



[Axis2] FileNotFoundException during session unloading

2007-12-05 Thread Michele Mazzucco
Hi all,

I'm running axis2 1.3 inside tomcat 6.0.13 (NIO connector) and I get
this exception:

05-Dec-2007 18:26:39 org.apache.catalina.session.StandardManager stop
SEVERE: Exception unloading sessions to persistent storage
java.io.FileNotFoundException:
$HOME/apache-tomcat-6.0.13/work/Catalina/localhost/axis2/SESSIONS.ser
(No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:70)
at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:489)
at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496)
at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
at
org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1180)
at
org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1151)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
at
org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:584)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
at org.apache.catalina.startup.Catalina.start(Catalina.java:591)
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:597)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)




I'm testing only one service -- and it's deployed in request scope.

Any idea?
Michele



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



[Axis2] Problem using MTOM with a JPEG file.

2007-12-05 Thread Raghu Upadhyayula
Hi,

 

I have a webservice which is used to upload images to the server.

 

I'm getting an exception if I am sending a JPEG file with MTOM enabled.
It works fine if MTOM is not enabled (Base64 encoded).  It works fine if
I send a GIF file with or without MTOM enabled.

 

Here is the exception I'm getting.  Is this a bug? (I'm using Axis2 1.3
Version).

 

17:30:43,469 ERROR [[AxisServlet]] Servlet.service() for servlet
AxisServlet threw exception

java.lang.ArrayIndexOutOfBoundsException

at java.lang.System.arraycopy(Native Method)

at
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:414)

at
org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:312)

at
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.j
ava:193)

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read1(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

at java.io.FilterInputStream.read(Unknown Source)

at java.io.PushbackInputStream.read(Unknown Source)

at
org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(
BoundaryPushbackInputStream.java:102)

at
org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(
BoundaryPushbackInputStream.java:122)

at
org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPu
shbackInputStream.java:172)

at
org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartIn
putStream.java:87)

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

at
com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)

at
javax.mail.internet.InternetHeaders.load(InternetHeaders.java:329)

at
javax.mail.internet.InternetHeaders.init(InternetHeaders.java:301)

at javax.mail.internet.MimeBodyPart.init(MimeBodyPart.java:168)

at
org.apache.axiom.attachments.PartOnMemory.init(PartOnMemory.java:34)

at
org.apache.axiom.attachments.Attachments.getPart(Attachments.java:598)

at
org.apache.axiom.attachments.Attachments.getNextPartDataHandler(Attachme
nts.java:462)

at
org.apache.axiom.attachments.Attachments.getContentIDSet(Attachments.jav
a:427)

at
org.apache.axiom.attachments.Attachments.getAllContentIDs(Attachments.ja
va:420)

at
org.apache.axis2.transport.TransportUtils.deleteAttachments(TransportUti
ls.java:481)

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

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(Applica
tionFilterChain.java:290)

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

at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)

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

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:230)

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

at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:179)

at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:84)

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

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

at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConn
ectionValve.java:157)

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

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

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

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

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

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

 

Thanks

Raghu

 



Intel(r) SOA Security Toolkit 1.0 Beta- Content Security End to End

2007-12-05 Thread Johnson, David E
Looking for feedback- 

 

The Intel(r) SOA Security Toolkit 1.0 Beta (for the Linux* operating
system) provides XML Digital Signature and XML Encryption following the
WS-Security standard. The high-performance software library is delivered
as an Axis2* interface and Apache Rampart* configuration files.  

You can register and join this beta program by visiting
http://www3.intel.com/cd/software/products/asmo-na/eng/373639.htm
http://www3.intel.com/cd/software/products/asmo-na/eng/373639.htm 

Additional Intel(r) XML Software Products and information can be found
at  http://www.intel.com/software/xml
http://www.intel.com/software/xml 

Dave

 

 



Re: Ordering of RPC Elements

2007-12-05 Thread Anne Thomas Manes
The WSDL binding/operation parameterOrder attribute specifies the
required order.

Anne

On Dec 3, 2007 8:53 AM, Nathan Hook [EMAIL PROTECTED] wrote:

 When calling a RPC (encoded) service does the ordering of the parameters 
 matter?

 For example are the following two calls the same for an RPC - Encoded service?





 soap
 text1
 text2









 text2
 text1
 soap




 The ordering of the two calls are different, but is a RPC - Encoded Service 
 suppose to correctly place the incoming attributes into the correct order?

 Thank you for your Time.
 _
 Share life as it happens with the new Windows Live.Download today it's FREE!
 http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_sharelife_112007
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: Command line for AXIS2

2007-12-05 Thread Zur, Don
Thanks for help. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 05, 2007 7:27 AM
To: axis-user@ws.apache.org
Subject: RE: Command line for AXIS2

He asked for command line commands.

I agree that the browser is better for this. Or maybe use some command
line tool to execute the requests Martin listed if you want to avoid a
browser.

Sietse

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 05 December 2007 14:19
To: axis-user@ws.apache.org
Subject: Re: Command line for AXIS2

yes sietse rather intrusive (but it will work!)

To be more specific about handling just your webapp

if your axis2 webapp is called axis2 and is located on localhost put
this address in your browser to start axis2 webapp
http://localhost:8080/manager/html/stop?path=/axis2

if your axis2 webapp is called axis2 and is located on localhost put
this address in your browser to stop axis2 webapp
http://localhost:8080/manager/html/start?path=/axis2

if your axis2 webapp is called axis2 and is located on localhost put
this address in your browser to list your webapps
http://localhost:8080/manager/html/list

HTH/
Martin
- Original Message -
Wrom: MHVIBGDADRZFSQHYUCDDJBLVLMHAALPT
To: axis-user@ws.apache.org
Sent: Wednesday, December 05, 2007 4:09 AM
Subject: RE: Command line for AXIS2


Hi,

I think more information can be found in the architecture guide I think.

In case of Apache Tomcat this is:

Starting the servlet container:
- Windows: net start Apache Tomcat
- Debian: /etc/init.d/tomcat start

Stopping:
- Windows: net stop Apache Tomcat
- Debian: /etc/init.d/tomcat stop

If the container runs, you can deploy the services into it. Just deploy
a war into the webapps directory and wait to see some magic and it is
ready for usage. By default you can put the axis2.war in here as
mentioned on the getting-started guide. Your own service can then be
deployed in different ways.

Checking it from the command line is just a http request imho. So you
send it using a tool which can generate that.

Regards,
Sietse



Wrom: CXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFM
Sent: 05 December 2007 01:41
To: axis-user@ws.apache.org
Subject: RE: Command line for AXIS2



Apache Axis2 1.2 build (April 27 2007)



Wrom: YXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFX
Sent: Tuesday, December 04, 2007 6:16 PM
To: axis-user@ws.apache.org
Subject: Re: Command line for AXIS2



which version axis are you implementing?


M-

- Original Message -

Wrom: ISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPK

To: axis-user@ws.apache.org

Sent: Tuesday, December 04, 2007 7:45 PM

Subject: Command line for AXIS2



Is there any way to:



Start service

Stop service

Check if service is active



from the command line.


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



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


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


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



Re: Command line for AXIS2

2007-12-05 Thread mgainty
yes sietse rather intrusive (but it will work!)

To be more specific about handling just your webapp

if your axis2 webapp is called axis2 and is located on localhost put this
address in your browser to start axis2 webapp
http://localhost:8080/manager/html/stop?path=/axis2

if your axis2 webapp is called axis2 and is located on localhost put this
address in your browser to stop axis2 webapp
http://localhost:8080/manager/html/start?path=/axis2

if your axis2 webapp is called axis2 and is located on localhost put this
address in your browser to list your webapps
http://localhost:8080/manager/html/list

HTH/
Martin
- Original Message -
Wrom: MHVIBGDADRZFSQHYUCDDJBLVLMHAALPT
To: axis-user@ws.apache.org
Sent: Wednesday, December 05, 2007 4:09 AM
Subject: RE: Command line for AXIS2


Hi,

I think more information can be found in the architecture guide I think.

In case of Apache Tomcat this is:

Starting the servlet container:
- Windows: net start Apache Tomcat
- Debian: /etc/init.d/tomcat start

Stopping:
- Windows: net stop Apache Tomcat
- Debian: /etc/init.d/tomcat stop

If the container runs, you can deploy the services into it. Just deploy
a war into the webapps directory and wait to see some magic and it is
ready for usage. By default you can put the axis2.war in here as
mentioned on the getting-started guide. Your own service can then be
deployed in different ways.

Checking it from the command line is just a http request imho. So you
send it using a tool which can generate that.

Regards,
Sietse



Wrom: CXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFM
Sent: 05 December 2007 01:41
To: axis-user@ws.apache.org
Subject: RE: Command line for AXIS2



Apache Axis2 1.2 build (April 27 2007)



Wrom: YXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZAAFX
Sent: Tuesday, December 04, 2007 6:16 PM
To: axis-user@ws.apache.org
Subject: Re: Command line for AXIS2



which version axis are you implementing?


M-

- Original Message -

Wrom: ISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPK

To: axis-user@ws.apache.org

Sent: Tuesday, December 04, 2007 7:45 PM

Subject: Command line for AXIS2



Is there any way to:



Start service

Stop service

Check if service is active



from the command line.


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



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



Re: General security error (Unexpected number of X509Data: for Signature)

2007-12-05 Thread Ruchith Fernando
Interop problems ...  You probably want to switch to using the
WS-SecurityPolicy based configuration.
I can assure you that Rampart + WS-SecurityPolicy interops with .NET
(WCF) on WS-Security 1.0, WS-Security 1.1 and WS-SecureConversation
scenarios.

The test suite we used for the interop with WCF services is available
here [1] where we have 66 successful scenarios on the above three
specs.

Thanks,
Ruchith

[1] https://wso2.org/repos/wso2/trunk/interop/test-suites/security

On Dec 6, 2007 3:07 AM, Rachel Primrose [EMAIL PROTECTED] wrote:
 Right on the button - eclipse + classpaths = pain.

 I renamed everything to wow.whatever and now I'm onto the .NET interop
 problems, which I will probably be posting about when I get really
 stuck.

 Thanks so much.


 On Dec 5, 2007 7:46 PM, Ruchith Fernando [EMAIL PROTECTED] wrote:
  Yep ... everything looks fine ... However I'm wondering whether you
  have any other client_crypto.properties file in your classpath that
  causes the wrong keystore to be picked where there's no key with alias
  test123.
 
  Therefore can you please rename the keystore file and the .properties
  file and check.
 
  Thanks,
  Ruchith
 
 
  On Dec 5, 2007 5:50 AM, Rachel Primrose [EMAIL PROTECTED] wrote:
   Hello,
  
   I've been having trouble signing my messages as they go out, and the
   usual is the alias the right one solution I've been reading about
   does not work!
  
   Here is my keystore:
  
   Keystore type: PKCS12
   Keystore provider: SunJSSE
  
   Your keystore contains 1 entry
  
   Alias name: test123
   Creation date: 5/12/2007
   Entry type: PrivateKeyEntry
   Certificate chain length: 3
   Certificate[1]:
  
   Here is my axis2.xml security outflow:
  
   parameter name=OutflowSecurity
 action
   itemsTimestamp Signature/items
   usertest123/user
   passwordCallbackClasstest.oot.PWCallback/passwordCallbackClass
   signaturePropFileclient_crypto.properties/signaturePropFile
   signatureKeyIdentifierDirectReference/signatureKeyIdentifier
   parameter name=referencePropertyNames
   value={Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}Action;{Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}MessageID;{Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}ReplyTo;{Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}To;
   /
   parameter name=signatureParts value=
 
   {Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;
 
   {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}Action;
 
   {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}MessageID;
 
   {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}To;
 
   {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}From;
 
   {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}ReplyTo;
 
   {Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;
   /
 /action
   /parameter
  
   Here is my client_crypto.properties file:
  
   org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
   org.apache.ws.security.crypto.merlin.keystore.type=pkcs12
   org.apache.ws.security.crypto.merlin.keystore.password=test
   org.apache.ws.security.crypto.merlin.keystore.alias=test123
   org.apache.ws.security.crypto.merlin.file=oot-stage.p12
  
   And my pwcallback class:
  
pc.setPassword(test);
  
   The error I get is:
  
   org.apache.axis2.AxisFault: WSHandler: Signature: error during message
   procesingorg.apache.ws.security.WSSecurityException: General security
   error (Unexpected number of X509Data: for Signature); nested exception
   is:
   org.apache.ws.security.WSSecurityException: WSHandler: Signature:
   error during message
   procesingorg.apache.ws.security.WSSecurityException: General security
   error (Unexpected number of X509Data: for Signature)
   at 
   org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:92)
   at 
   org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:74)
   at org.apache.axis2.engine.Phase.invoke(Phase.java:382)
   at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522)
   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:655)
   at 
   org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
   at 
   org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
   Caused by: org.apache.ws.security.WSSecurityException: WSHandler:
   Signature: error during message
   procesingorg.apache.ws.security.WSSecurityException: General security
   error (Unexpected number of X509Data: for Signature)
   at 
   

How to create a service using external jar files other than axis jar files

2007-12-05 Thread chanakanilan

I m wrote a service that which uses some external jar files(connection
pool.jar-To connect with the database)I try to search a good article for how
to add external jars other than axis jars but not found.so plz tell me the
relevent steps to deploy the service.And plz help and tell good articals
about axis1.4
-- 
View this message in context: 
http://www.nabble.com/How-to-create-a-service-using-external-jar-files-other-than-axis-jar-files-tf4949446.html#a14171024
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: [Axis2] WstxEOFException: Unexpected EOF in prolog error while calling .NET2.0 webservice from Axis2 webservice

2007-12-05 Thread Pantvaidya, Vishwajit
Did some monitoring using TCPMon and saw that axis2 was sending the request as 
multipart. This particular .Net websvc call did not have any attachments and 
hence did not need to be send as multipart - I think the .Net side service was 
assuming it would not be multipart. I set MTOM to off in axis2.xml and that 
particular call worked. I will now try to turn MTOM back on in axis2.xml and 
try to see if I can set it on and off at the call level.


- Vish.


From: Pantvaidya, Vishwajit
Sent: Tuesday, December 04, 2007 1:25 PM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] WstxEOFException: Unexpected EOF in prolog error while 
calling .NET2.0 webservice from Axis2 webservice

Attaching the wsdl and aar and axis2.xml file for my axis2 service 
(ECMServiceSoap) and the wsdl for the .NET service (CPMPDFToWord.wsdl). I am 
running tomcat and have deployed the axis2 1.3 webapp in an exploded format. So 
my lib folder has axis2 1.3 xerces 2.8.1, xalan 2.7.0, wstx-asl-3.2.1.jar, 
xml-apis-1.3.03.jar among others. I am using jdk1.5.0.


- Vish.


From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 04, 2007 7:23 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] WstxEOFException: Unexpected EOF in prolog error while 
calling .NET2.0 webservice from Axis2 webservice

Please post WSDL
also please post location and version-number of your xml parsers such as 
xerces/jax

M--
- Original Message -
From: Pantvaidya, Vishwajitmailto:[EMAIL PROTECTED]
To: axis-user@ws.apache.orgmailto:axis-user@ws.apache.org
Sent: Monday, December 03, 2007 11:04 PM
Subject: RE: [Axis2] WstxEOFException: Unexpected EOF in prolog error while 
calling .NET2.0 webservice from Axis2 webservice

I tried calling the .NET service with a coded Axis2 client that does not use 
the stub code I generated from the .NET wsdl earlier (code is enclosed at end 
of this posting) - but I get same exception. However when I try calling the 
.NET service from some UI based client like SoapUI (that is independent of 
axis) the call to the .NET service works. So I presume there is something wrong 
in the way in the way my client code is invoking the .NET service. Tomorrow I 
will try seeing the messages with soapmonitor.


String pingURL = 
http://192.168.254.151/SCPMPDFToWord/Services/CPMPDFToWord.asmx;;
Options options = new Options();
options.setTo(new EndpointReference(pingURL));

String methodName = SetWorkingFolder;
String methodNameSpaceURI = http://ws.selectica.com/ecm1/;;
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace ns = fac.createOMNamespace(methodNameSpaceURI, ns1);
OMElement payload = fac.createOMElement(methodName, ns);

OMElement value = fac.createOMElement(ClientWorkingFolderOnServer, ns);
value.addChild(fac.createOMText(value, clientWorkingFolderOnServer));
payload.addChild(value);

ServiceClient client = new ServiceClient();
client.setOptions(options);
OMElement result = client.sendReceive(payload);



From: Pantvaidya, Vishwajit [mailto:[EMAIL PROTECTED]
Sent: Monday, December 03, 2007 6:09 PM
To: axis-user@ws.apache.org
Subject: [Axis2] WstxEOFException: Unexpected EOF in prolog error while 
calling .NET2.0 webservice from Axis2 webservice

I am using Axis1.3 and have deployed an Axis2 webservice which calls a .NET2.0 
webservice. I got the wsdl for the .NET service and used wsdl2java to generate 
the client code (stub) for calling it. I am calling that stub from my deployed 
axis2 service. This stub call returns the following exception:

Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]
at 
com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
at 
com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
at 
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)
at 
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:153)

Any idea what this signifies? To me it seems like there is no reply from the 
.NET side.


- Vish.


Re: missing REST-epr after installing the standard WAR-distribution

2007-12-05 Thread keith chapman
Hi,

You dont have to tune anything both REST and SOAP works out of the box and
off the same endpoint. When you type
http://localhost:8080/axis2/services/Version/getVersion in the browser Axis2
gets a REST request hence it gives you a REST response. If you send a SOAP
request to this endpoint it will give you a SOAP response.

Thanks,
Keith.

On Dec 5, 2007 8:47 PM, Achim Seufert [EMAIL PROTECTED] wrote:

 Hi there,

 in case I'm missing something obvious... my apologies in advance. :-)

 According to most tutorials and the official documentation of Axis2
 (1.3) you're able to access your services via the two standard
 webservice-endpoints - SOAP and REST.
 So after installing the WAR-distribution there should be two ways to
 invoke the built-in Version-service:

http://localhost:8080/axis2/services/Version/getVersion

 ... for a SOAP-response and ...

http://localhost:8080/axis2/rest/Version/getVersion

 ... for a simple REST/XML-response.

 Unfortunately I just get one endpoint listed when calling the
 http://localhost:8080/axis2/services/listServices; page:

Service EPR : http://localhost:8080/axis2/services/Version

 So I'm missing the endpoint called...

Service REST epr : http://localhost:8080/axis2/rest/Version

 ... which the tutorials' screenshots show.

 On top of that - strangely the only listed endpoint also doesn't give
 me a proper SOAP-response (including header, body, etc.) but a simple
 XML-document telling me the used Axis2-version.

 I tried various different installations (Linux with Tomcat 5.5 / 6,
 MacOSX with Tomcat 6, etc.) ... same situation.

 Could anyone point me to the right direction on how to get both SOAP
 and REST running?!

 Any help would be appreciated. Thanks.

 Achim

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




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


PROBLEM WHEN I TRY TO DEVELOP MY FIRST SOAP MESSAGE

2007-12-05 Thread Luis Salazar
Hi everyone:

I have a problem when I try to develop my first Web Service using SOAP
messages request-response:

Previously I've compiled succesfully either client and server side, I'´ve
located all java .class in the correct directories.

When I try to make visible this service.. doing this:

Directories I use:

C:\Archivos de programa\Apache Software Foundation\Tomcat
5.5\webapps\axis\SimpleSoapMessage

//***
   -- Here is located the server side; and the .class is located in:

//***
C:\Archivos de programa\Apache Software Foundation\Tomcat
5.5\webapps\axis\WEB-INF\classes\SimpleSoapMessage

When I make the service visible:

//***
 java org.apache.axis.client.AdminClient deploy.wsdd
//***

My deploy.wsdd file looks like this:

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

service name=MyFirstSoap provider=java:MSG

parameter name=className value=SimpleSoapMessage.ResponseMessage
/
parameter name=allowedMethods value=*/
/service
/deployment


after that because I'm using command lines, it shows:

//***
Processing file deploy.wsdd
AdminDone  process /Admin
//***

I suppose that's means everything is right , but when I go to test it :
http://localhost:8080/axis/servlet/AxisServlet

It shows = And Now ... Some Services... and  the foreground look
completely white , with nothing on it.

I need to develop this example to improve later Soap with Attachment, I need
to my project.

Thanks in advance.


Axis2 phantom webservice!

2007-12-05 Thread cporter

Hello all,

I have been trying to find the root of my problem for 3 days now, all in
vain. I am sure it is some detail which I might be overlooking here, and I
hope that someone out there would be able to enlighten me.

The situation is as follows:

1) JBoss server (with Axis2 hot deployed and archive uploaded through
Axis2's admin pages).
2) Webservice returns a simple XML structure

Suddenly, changes on a particular webservice (after compiling, generating
AAR and uploading), are not being reproduced when called over any client.
Even if I hard code the return value e.g. to null or empty Element, it still
somehow provides me with the old (original) return values.

One of the behaviors I am noticing, which obviously is rising some questions
is that when I deploy the web service (through Axis2 Admin), I get 2
deployment messages (2 seconds apart) from the JBoss console window.

It seems that there is an old version of my webservice being deployed with
Axis2. Is that possible? And if so, how can I go about solving the problem?

On my side, I have tried the following:
1) Remove ALL bin folders, and recompiled all my code
2) Removed all relevant archives (.aar) (even from JBoss tmp folders) and
regenerated from newly compiled classes
3) Tested the modified service (successfully) through static debugging, and
the results are as desired. But somehow, when I generate an archive and
publish the web service, the old web service comes to life (as if a phantom
WS).

I appreciate some feedback.

Best Regards,

Chris Porter



-- 
View this message in context: 
http://www.nabble.com/Axis2-phantom-webservice%21-tf4949452.html#a14171033
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: [Axis2] WstxEOFException: Unexpected EOF in prolog error while calling .NET2.0 webservice from Axis2 webservice

2007-12-05 Thread Pantvaidya, Vishwajit
A quick question - if I have only a few service operations that need to be 
mtom-enabled - can I set mtom to false in axis2.xml and/or services.xml at 
service level, and set it to true only for those few operations at the 
services.xml operation level?




From: Pantvaidya, Vishwajit [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 05, 2007 4:40 PM
To: 'axis-user@ws.apache.org'
Subject: RE: [Axis2] WstxEOFException: Unexpected EOF in prolog error while 
calling .NET2.0 webservice from Axis2 webservice

Did some monitoring using TCPMon and saw that axis2 was sending the request as 
multipart. This particular .Net websvc call did not have any attachments and 
hence did not need to be send as multipart - I think the .Net side service was 
assuming it would not be multipart. I set MTOM to off in axis2.xml and that 
particular call worked. I will now try to turn MTOM back on in axis2.xml and 
try to see if I can set it on and off at the call level.


- Vish.


From: Pantvaidya, Vishwajit
Sent: Tuesday, December 04, 2007 1:25 PM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] WstxEOFException: Unexpected EOF in prolog error while 
calling .NET2.0 webservice from Axis2 webservice

Attaching the wsdl and aar and axis2.xml file for my axis2 service 
(ECMServiceSoap) and the wsdl for the .NET service (CPMPDFToWord.wsdl). I am 
running tomcat and have deployed the axis2 1.3 webapp in an exploded format. So 
my lib folder has axis2 1.3 xerces 2.8.1, xalan 2.7.0, wstx-asl-3.2.1.jar, 
xml-apis-1.3.03.jar among others. I am using jdk1.5.0.


- Vish.


From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 04, 2007 7:23 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] WstxEOFException: Unexpected EOF in prolog error while 
calling .NET2.0 webservice from Axis2 webservice

Please post WSDL
also please post location and version-number of your xml parsers such as 
xerces/jax

M--
- Original Message -
From: Pantvaidya, Vishwajitmailto:[EMAIL PROTECTED]
To: axis-user@ws.apache.orgmailto:axis-user@ws.apache.org
Sent: Monday, December 03, 2007 11:04 PM
Subject: RE: [Axis2] WstxEOFException: Unexpected EOF in prolog error while 
calling .NET2.0 webservice from Axis2 webservice

I tried calling the .NET service with a coded Axis2 client that does not use 
the stub code I generated from the .NET wsdl earlier (code is enclosed at end 
of this posting) - but I get same exception. However when I try calling the 
.NET service from some UI based client like SoapUI (that is independent of 
axis) the call to the .NET service works. So I presume there is something wrong 
in the way in the way my client code is invoking the .NET service. Tomorrow I 
will try seeing the messages with soapmonitor.


String pingURL = 
http://192.168.254.151/SCPMPDFToWord/Services/CPMPDFToWord.asmx;;
Options options = new Options();
options.setTo(new EndpointReference(pingURL));

String methodName = SetWorkingFolder;
String methodNameSpaceURI = http://ws.selectica.com/ecm1/;;
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace ns = fac.createOMNamespace(methodNameSpaceURI, ns1);
OMElement payload = fac.createOMElement(methodName, ns);

OMElement value = fac.createOMElement(ClientWorkingFolderOnServer, ns);
value.addChild(fac.createOMText(value, clientWorkingFolderOnServer));
payload.addChild(value);

ServiceClient client = new ServiceClient();
client.setOptions(options);
OMElement result = client.sendReceive(payload);



From: Pantvaidya, Vishwajit [mailto:[EMAIL PROTECTED]
Sent: Monday, December 03, 2007 6:09 PM
To: axis-user@ws.apache.org
Subject: [Axis2] WstxEOFException: Unexpected EOF in prolog error while 
calling .NET2.0 webservice from Axis2 webservice

I am using Axis1.3 and have deployed an Axis2 webservice which calls a .NET2.0 
webservice. I got the wsdl for the .NET service and used wsdl2java to generate 
the client code (stub) for calling it. I am calling that stub from my deployed 
axis2 service. This stub call returns the following exception:

Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]
at 
com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
at 
com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
at 
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)
at 
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:153)

Any idea what this signifies? To me it seems like there is no reply from the 
.NET side.


- Vish.


Re: General security error (Unexpected number of X509Data: for Signature)

2007-12-05 Thread Rachel Primrose
Actually, all is going well.

However, the server that I'm sending requests to requires a From field
in the addressing headers.

I've been googling for about two hours, and can't seem to find a
solution for this.

Here is my current axis2.xml (well the important parts)

axisconfig name=AxisJava2.0
parameter name=enableNamespacePrefixOptimization value=false/
parameter name=addressing.setMustUnderstand value=false /
parameter name=axis.sendMinimizedElements value=false /
parameter name=addressing.namespace.URI
value=http://schemas.xmlsoap.org/ws/2004/03/addressing/
parameter name=addressing.sendReplyTo value=true/
parameter name=addressing.sendFrom value=true/
parameter name=disablePrettyXML value=true/

!-- Engage the addressing module --
module ref=addressing/
moduleConfig name=addressing
parameter name=addressing.sendFromtrue/parameter
/moduleConfig

!-- Engage the security module --
module ref=rampart/

parameter name=OutflowSecurity
  action
itemsTimestamp Signature/items
userwow/user

passwordCallbackClassnz.co.maxnet.oot.utils.PWCallback/passwordCallbackClass
signaturePropFilewow.properties/signaturePropFile
signatureKeyIdentifierDirectReference/signatureKeyIdentifier
!-- signatureParts
  {Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;
  
{Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}Action;
  
{Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}MessageID;
  
{Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}To;
  
{Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}From;
  
{Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}ReplyTo;
  
{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;
/signatureParts --
  /action
/parameter

parameter name=InflowSecurity
action
itemsTimestamp Signature Encrypt/items

passwordCallbackClassnz.co.maxnet.oot.utils.PWCallback/passwordCallbackClass
signaturePropFilewow.properties/signaturePropFile
/action
 /parameter

   transportSender name=https

class=org.apache.axis2.transport.http.CommonsHTTPTransportSender
parameter name=PROTOCOL locked=falseHTTP/1.1/parameter
parameter name=Transfer-Encoding locked=falsechunked/parameter
/transportSender

   phaseOrder type=InFlow
!--  System pre defined phases   --
phase name=Transport
handler name=RequestURIBasedDispatcher
 class=org.apache.axis2.engine.RequestURIBasedDispatcher
order phase=Transport/
/handler
handler name=SOAPActionBasedDispatcher
 class=org.apache.axis2.engine.SOAPActionBasedDispatcher
order phase=Transport/
/handler
/phase
phase name=Addressing
handler name=AddressingBasedDispatcher
class=org.apache.axis2.dispatchers.AddressingBasedDispatcher
order phase=Addressing /
/handler
/phase
phase name=Security/
phase name=PreDispatch/
phase name=Dispatch class=org.apache.axis2.engine.DispatchPhase
handler name=SOAPMessageBodyBasedDispatcher

class=org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher
order phase=Dispatch/
/handler
handler name=InstanceDispatcher
 class=org.apache.axis2.engine.InstanceDispatcher
order phase=Dispatch/
/handler
/phase
!--  System pre defined phases   --
!--   After Postdispatch phase module author or or service
author can add any phase he want  --
phase name=OperationInPhase/
phase name=soapmonitorPhase/
/phaseOrder
phaseOrder type=OutFlow
phase name=Addressing
handler name=AddressingBasedDispatcher
class=org.apache.axis2.dispatchers.AddressingBasedDispatcher
order phase=Addressing /
/handler
/phase
phase name=soapmonitorPhase/
phase name=OperationOutPhase/
!--system predefined phase--
!--these phase will run irrespective of the service--
phase name=PolicyDetermination/
phase name=MessageOut/
phase name=Security/
/phaseOrder

As always, any help is appreciated.

Thanks.

 - Rachel

On Dec 6, 2007 1:45 PM, Ruchith Fernando [EMAIL PROTECTED] wrote:
 Interop problems ...  You probably want to switch to using the
 WS-SecurityPolicy based configuration.

How to speed up AXIS2 HTTPS/SSL connection?

2007-12-05 Thread Youpak2000
 Hi All
We have implemented a SOAP Web Services server and client using Java 1.6, 
Apache Axis 2 v1.3 and Tomcat 6. We have also implemented a client in C# and 
.NET. The http connection using Java is slower than .NET but still acceptable. 
The https/SSL connection using Java client (and self-signed certificate) is 
much slower than .NET and about 100 times slower than http (non-SLL) connection 
which is not acceptable!.
 
I'm wondering if there are ways to improve the https performance and whether 
there are configurable parameters in AXIS server or client which can improve 
https speed for Java clients. (e.g. less strong encryption in SSL).
 
We even replaced the Tomcat Java SSL library with native C library but it 
didn't help that much!
 
Based on the SSL logs, apparently axis uses shared SSL sessions, but still each 
SAOP operation takes more than 4 seconds (40ms without SSL).
 
Note that I don't specifically create HTTPS/SSL connections in my code. I use 
the AXIS2 libraries and the Java classes generated from the WSDL file using 
wsdl2java.
 
I'd appreciate your help.
 
Thanks
Jim

   
-
Never miss a thing.   Make Yahoo your homepage.

Re: different java package for wsdl2java generated fault classes (Axis2 1.3)

2007-12-05 Thread Amila Suriarachchi
On Dec 5, 2007 11:04 PM, Leon Searl [EMAIL PROTECTED] wrote:

 Hi,

 I've been using Axis2 v1.3 and wsdl2java with the ADB binding
 to create the classes for my services and clients. This has worked
 pretty well for me. But I would like to have wsdl2java do one
 thing different.

 wsdl2java puts the classes for faults into the same java package as the
 service skeleton reguardless of the namespace that the fault name
 is in.

 Is there a way to have a wsdl2java generated fault class package
 be based on the namespace of the wsdl fault name?

fault class package is based on the wsdl targetnamespace. try to codegen
using the -p option to
specify an different package for wsdl namesapce components.

Thanks,
Amila.



 The rational for wanting this would be cumbersome to explain so
 I've left it out of this message. But I will way that it will
 allow me to modularize/reuse wsdl 'interfaces' that include faults.
 I can provide the rational for anyone that wants it.

 Thanks for any information/help you can provide.

 leon

 --
 Leon S. Searl, Software Research Engineer
 Information and Telecommunication Technology Center, University of Kansas
 Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612
 Ph: 785-864-7820 Fax: 785-864-0387
 http://www.ittc.ku.edu

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




-- 
Amila Suriarachchi,
WSO2 Inc.


Re: General security error (Unexpected number of X509Data: for Signature)

2007-12-05 Thread Ruchith Fernando
Please try using the setFrom() method in the Options[1] instance of
the ServiceClient[2].

Thanks,
Ruchith

1. 
https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java
2. 
https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java

On Dec 6, 2007 8:20 AM, Rachel Primrose [EMAIL PROTECTED] wrote:
 Actually, all is going well.

 However, the server that I'm sending requests to requires a From field
 in the addressing headers.

 I've been googling for about two hours, and can't seem to find a
 solution for this.

 Here is my current axis2.xml (well the important parts)

 axisconfig name=AxisJava2.0
 parameter name=enableNamespacePrefixOptimization value=false/
 parameter name=addressing.setMustUnderstand value=false /
 parameter name=axis.sendMinimizedElements value=false /
 parameter name=addressing.namespace.URI
 value=http://schemas.xmlsoap.org/ws/2004/03/addressing/
 parameter name=addressing.sendReplyTo value=true/
 parameter name=addressing.sendFrom value=true/
 parameter name=disablePrettyXML value=true/

 !-- Engage the addressing module --
 module ref=addressing/
 moduleConfig name=addressing
 parameter name=addressing.sendFromtrue/parameter
 /moduleConfig

 !-- Engage the security module --
 module ref=rampart/

 parameter name=OutflowSecurity
   action
 itemsTimestamp Signature/items
 userwow/user
 
 passwordCallbackClassnz.co.maxnet.oot.utils.PWCallback/passwordCallbackClass
 signaturePropFilewow.properties/signaturePropFile
 signatureKeyIdentifierDirectReference/signatureKeyIdentifier
 !-- signatureParts
   
 {Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;
   
 {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}Action;
   
 {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}MessageID;
   
 {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}To;
   
 {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}From;
   
 {Element}{http://schemas.xmlsoap.org/ws/2004/03/addressing}ReplyTo;
   
 {Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;
 /signatureParts --
   /action
 /parameter

 parameter name=InflowSecurity
 action
 itemsTimestamp Signature Encrypt/items
 
 passwordCallbackClassnz.co.maxnet.oot.utils.PWCallback/passwordCallbackClass
 signaturePropFilewow.properties/signaturePropFile
 /action
  /parameter

transportSender name=https

 class=org.apache.axis2.transport.http.CommonsHTTPTransportSender
 parameter name=PROTOCOL locked=falseHTTP/1.1/parameter
 parameter name=Transfer-Encoding locked=falsechunked/parameter
 /transportSender

phaseOrder type=InFlow
 !--  System pre defined phases   --
 phase name=Transport
 handler name=RequestURIBasedDispatcher
  
 class=org.apache.axis2.engine.RequestURIBasedDispatcher
 order phase=Transport/
 /handler
 handler name=SOAPActionBasedDispatcher
  
 class=org.apache.axis2.engine.SOAPActionBasedDispatcher
 order phase=Transport/
 /handler
 /phase
 phase name=Addressing
 handler name=AddressingBasedDispatcher
 class=org.apache.axis2.dispatchers.AddressingBasedDispatcher
 order phase=Addressing /
 /handler
 /phase
 phase name=Security/
 phase name=PreDispatch/
 phase name=Dispatch class=org.apache.axis2.engine.DispatchPhase
 handler name=SOAPMessageBodyBasedDispatcher

 class=org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher
 order phase=Dispatch/
 /handler
 handler name=InstanceDispatcher
  class=org.apache.axis2.engine.InstanceDispatcher
 order phase=Dispatch/
 /handler
 /phase
 !--  System pre defined phases   --
 !--   After Postdispatch phase module author or or service
 author can add any phase he want  --
 phase name=OperationInPhase/
 phase name=soapmonitorPhase/
 /phaseOrder
 phaseOrder type=OutFlow
 phase name=Addressing
 handler name=AddressingBasedDispatcher
 class=org.apache.axis2.dispatchers.AddressingBasedDispatcher
 order phase=Addressing /
 /handler
 

Re: [Axis2] Problem Axis2 sample - jaxws-calculator

2007-12-05 Thread Lahiru Sandakith
This fix is now committed to the trunk with the latest revision.
Thanks
Sandakith.

On Dec 3, 2007 9:10 PM, Lahiru Sandakith [EMAIL PROTECTED] wrote:

 Hi ,
 we found that this was an issue with JAXWS MR could not found the service
 impl class,
 I have attached a patch to the 
 https://issues.apache.org/jira/browse/AXIS2-3382

 And it addresses the class loading issue and now,
 With the patch if we build axis2 jaxws-calculator and deploy it in axis2

 Both code generate stubs with client invocation and rest like invocation
 works for me.
 Could not commit since there are some test failures in the kernel module
 currently in the trunk.
 Can someone who is more familiar with JAXWS look more at the issue and the
 patch.
 The patch address a class loader switch from service to current and vise
 versa at the time needed to load the impl service class.


 Thanks
 Sandakith.


 On Dec 3, 2007 8:42 AM, Lahiru Sandakith [EMAIL PROTECTED] wrote:

  Hi Rick,
 
  On Dec 2, 2007 11:17 PM, Rick Isaacs [EMAIL PROTECTED] wrote:
 
  
   Hi Charitha,
  
   Thank you for your email and that you have reported this problem.
  
   I am not familiar with the Axis2 snapshot releases.
  
   Where can I find out more about snapshots?
 
 
  If you need the latest snapshot build its available here,
  http://people.apache.org/dist/axis2/nightly/
  One more thing, if you are building axis2 from the source, it is
  recommended to use latest maven version (I have 2.0.7)
 
  I tried to look at the issue that you have reported against the
  jaxws-calcualter service archive with the axis2 with the latest snapshot
  build. I noticed that the service getting deployed with correct operations,
  and its seems to be an issue with the rest like way of invoking the service.
  Will update you more on this as soon as I have more info.
  Thanks
  Sandakith.
 
  
  
   I noticed that the maven project was using a 1.3-snapshot.
  
   Thanks,
   Rick
  
  
  
   On Dec 2, 2007 2:37 AM, Charitha Kankanamge  [EMAIL PROTECTED]
   wrote:
  
Rick,
I also experienced some issues with jax-ws sample. That sample did
not
have any document and I had reported a jira sometime back
( https://issues.apache.org/jira/browse/AXIS2-3091 ).
A seperate jira was reported for the nullpointer exception.
(https://issues.apache.org/jira/browse/AXIS2-3382)
   
Hope these issues will be resolved in the snapshot builds ASAP.
   
regards
Charitha
   
Rick Isaacs wrote:
   

 Hi,

 I am trying to get the axis2-1.3\samples\jaxws-calculator sample
to
 work, but I get
 the error in Tomcat

 java.lang.ClassNotFoundException:
 org.apache.axis2.jaxws.calculator.Calculator


 - downloaded and installed maven

 - called maven package for the the sample, but maven could not
 download the necessary files

 - changed the pom.xml

 artifactIdaxis2-aar-maven-plugin/artifactId
 version 1.3-SNAPSHOT/version

 artifactIdaxis2-jaxws/artifactId
   version1.3-SNAPSHOT/version

 to

 version1.3/version

 - maven package downloaded many files and built
 samples\jaxws-calculator\target\jaxws-calculator-1.3.aar

 - copied aar file to /services to deploy

 - service is found by the Axis2 Service servlet along with wsdl

 -

http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1value2=3
 http://127.0.0.1:8080/axis2/services/CalculatorService/add?value1=1value2=3


 response in browser

 faultstringjava.lang.NullPointerException/faultstring


 Tomcat shows
 faultstringjava.lang.NullPointerException/faultstring


 I could not find an documentation for this sample, so I am not
sure,
 how to correctly install this sample.

 Maybe I am missing some jars.

 Thanks,
 Rick

   
   
--
Charitha Kankanamge
WSO2 inc.
Flower Road, Colombo 07
+94 714268070
   
A bug in the hand is better than one as yet undetected
   
   
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
 
 
  --
  Thanks
  Lahiru Sandakith
 
  http://sandakith.wordpress.com/
  GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F
 




 --
 Thanks
 Lahiru Sandakith

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




-- 
Thanks
Lahiru Sandakith

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


Re: Embedded axis2 (SimpleHTTPServer)

2007-12-05 Thread Upul Godage
Try it with,

mrMap.put(http://www.w3.org/ns/wsdl/in-only;,
RPCInOnlyMessageReceiver.class.newInstance());
mrMap.put(http://www.w3.org/ns/wsdl/in-out;, RPCMessageReceiver.class
.newInstance());

Upul

On Dec 5, 2007 1:32 PM, Bastiaan [EMAIL PROTECTED] wrote:

 Hello,

 I'd like to run axis2 embedded in a java program, and decided to do some
 tests.

 Running this application gives me the following log4j messages:
  Required MessageReceiver couldn't be found, thus, default MessageReceiver
 has
 been used
 Listening on port 8080

 sending a soap request gives (without much surprise) an exception,
 stating:
 Message Receiver not found for AxisOperation: echo

 Browsing through the various api's (seems like the syntax of
 'createservice'
 is changed recently, lots of outdated docs on the net) doesn't give me
 much
 options.

 I found out that the exception is thrown if there is no entry in the
 'mrMap'
 (see code below) for the right mep.

 messageReceiverClassMap.get(mep) == null

 so my guess is, i dont use the right key in the Map, the docs give me
 exactly
 these values, and i couldn't find any more information.

 Thanks in advance,
  Bas


 Here is some code:

 package test;

 import java.util.HashMap;
 import java.util.Map;

 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.ConfigurationContextFactory;
 import org.apache.axis2.description.AxisService;
 import org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver;
 import org.apache.axis2.rpc.receivers.RPCMessageReceiver;
 import org.apache.axis2.transport.http.SimpleHTTPServer;

 public class Test {
 public static void main(String[] args) throws Exception {
ConfigurationContext context = ConfigurationContextFactory.
createConfigurationContextFromFileSystem(null, null);
Map mrMap = new HashMap();
mrMap.put(http://www.w3.org/2006/01/wsdl/in-only;,
 RPCInOnlyMessageReceiver.class.newInstance());
mrMap.put(http://www.w3.org/2006/01/wsdl/in-out;,
 RPCMessageReceiver.class.newInstance());
AxisService service =
AxisService.createService(Echo.class.getName(),
 context.getAxisConfiguration(),

 mrMap, http://test.com;, http://test2.com;,
 ClassLoader.getSystemClassLoader());
context.getAxisConfiguration().addService(service);
SimpleHTTPServer server = new SimpleHTTPServer(context,
 8080);
server.start();
}
 }


 ===
 package test;

 public class Echo {
public String echo(String in) {
return in;
}
 }
 ===

 the wsdl generated:
 wsdl:definitions targetNamespace=http://test.com;
 ?
wsdl:types
 ?
xs:schema attributeFormDefault=qualified
 elementFormDefault=unqualified
 targetNamespace=http://test2.com;
 ?
xs:element name=echo
 ?
xs:complexType
 ?
xs:sequence
 xs:element minOccurs=0 name=in nillable=true type=xs:string/
 /xs:sequence
 /xs:complexType
 /xs:element
 ?
xs:element name=echoResponse
 ?
xs:complexType
 ?
xs:sequence
 xs:element minOccurs=0 name=return nillable=true type=xs:string/
 /xs:sequence
 /xs:complexType
 /xs:element
 /xs:schema
 /wsdl:types
 ?
wsdl:message name=echoRequest
 wsdl:part name=parameters element=ns0:echo/
 /wsdl:message
 ?
wsdl:message name=echoResponse
 wsdl:part name=parameters element=ns0:echoResponse/
 /wsdl:message
 ?
wsdl:portType name=EchoPortType
 ?
wsdl:operation name=echo
 wsdl:input message=axis2:echoRequest wsaw:Action=urn:echo/
 wsdl:output message=axis2:echoResponse wsaw:Action=urn:echoResponse/
 /wsdl:operation
 /wsdl:portType
 ?
wsdl:binding name=EchoSOAP11Binding type=axis2:EchoPortType
 soap:binding transport=http://schemas.xmlsoap.org/soap/http;
 style=document/
 ?
wsdl:operation name=echo
 soap:operation soapAction=urn:echo style=document/
 ?
wsdl:input
 soap:body use=literal/
 /wsdl:input
 ?
wsdl:output
 soap:body use=literal/
 /wsdl:output
 /wsdl:operation
 /wsdl:binding
 ?
wsdl:binding name=EchoSOAP12Binding type=axis2:EchoPortType
 soap12:binding transport=http://schemas.xmlsoap.org/soap/http;
 style=document/
 ?
wsdl:operation name=echo
 soap12:operation soapAction=urn:echo style=document/
 ?
wsdl:input
 soap12:body use=literal/
 /wsdl:input
 ?
wsdl:output
 soap12:body use=literal/
 /wsdl:output
 /wsdl:operation
 /wsdl:binding
 ?
wsdl:binding name=EchoHttpBinding type=axis2:EchoPortType
 http:binding verb=POST/
 ?
wsdl:operation name=echo
 http:operation location=Echo/echo/
 ?
wsdl:input
 mime:content type=text/xml part=echo/
 /wsdl:input
 ?
wsdl:output
 mime:content type=text/xml part=echo/
 /wsdl:output
 /wsdl:operation
 /wsdl:binding
 ?
wsdl:service name=Echo
 ?
wsdl:port name=EchoSOAP11port_http