Re: [MTOM/XOP+WSRM] servlet error

2006-07-20 Thread Mancinelli Elodie

Hi Chamikara,

Thanks for your explain.

I download the mar and jar last version on link. I change the value of 
InOrderInvocation to false in the module.xml.

And now, I have an error, at the start of tomcat.

- Deploying module : sandesha2
- StandardWrapper.Throwable
java.lang.ExceptionInInitializerError
   at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:54)
   at 
org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:128)
   at 
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:104)
   at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:40)
   at 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
   at 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
   at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
   at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
   at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   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.catalina.startup.Bootstrap.start(Bootstrap.java:275)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.util.MissingResourceException: Cannot find resource 
'org.apache.sandesha2.i18n.resource'
   at 
org.apache.axis2.i18n.ProjectResourceBundle.getBundle(ProjectResourceBundle.java:259)
   at 
org.apache.sandesha2.i18n.SandeshaMessageHelper.(SandeshaMessageHelper.java:19)

   ... 32 more
- La servlet /axis2 a généré une exception "load()"
java.lang.ExceptionInInitializerError
   at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:54)
   at 
org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:128)
   at 
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:104)
   at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:40)
   at 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213)
   at 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
   at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
   at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
   at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
   at 
org.

WSDL Converting error

2006-07-20 Thread Saehoon Cheon
I want to test JAVA2WSDL process. But it caused the lots of errors, but I have no idea why?Other examples worked successfully in the same environment. I put the source code and error message. please let me know why.
==  Source Code ===public class TaxService{    public double calcTaxRate(double subtotal, double total)    {    double rate =  (total - subtotal) / subtotal;
    return rate;    }        public double calcSubTotal(double total, double taxpercent)    {    double subtotal = total / (1 + taxpercent);    return subtotal;    }    
    public double calcTotal(double subtotal, double taxpercent)    {    double total = subtotal * (1 + taxpercent);    return total;    }}   Source Code End ==
  = Error message Sorry, something seems to have gone wrong... here are the details:Fault - Error while compiling:  C:\Program Files\Apache Group\Tomcat 
4.1\webapps\axis\WEB-INF\jwsClasses\TaxService.java
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.compileError
 faultSubcode: 
 faultString: Error while compiling:  C:\Program Files\Apache Group\Tomcat 4.1\webapps\axis\WEB-INF\jwsClasses\TaxService.java
 faultActor: 
 faultNode: 
 faultDetail: 
	{}Errors:Error compiling C:\Program Files\Apache Group\Tomcat 4.1\webapps\axis\WEB-INF\jwsClasses\TaxService.java:
Line 1, column 0:  'class' or 'interface' expected
Line 1, column 1:  illegal character: \92
Line 1, column 6:  illegal character: \92
Line 1, column 11:  illegal character: \92
Line 1, column 22:  illegal character: \92
Line 1, column 28:  illegal character: \92
Line 1, column 40:  illegal character: \92
Line 1, column 55:  illegal character: \92
Line 1, column 64:  illegal character: \92
Line 1, column 67:  illegal character: \92
Line 1, column 75:  illegal character: \92
Line 1, column 81:  illegal character: \92
Line 1, column 94:  illegal character: \92
Line 1, column 95:  unclosed character literal
Line 1, column 98:  illegal character: \92
Line 1, column 99:  unclosed character literal
Line 1, column 102:  illegal character: \92
Line 1, column 103:  unclosed character literal
Line 1, column 106:  illegal character: \92
Line 1, column 107:  unclosed character literal
Line 2, column 1:  illegal character: \92
Line 2, column 3:  illegal character: \92
Line 2, column 37:  illegal character: \92
Line 2, column 47:  illegal unicode escape
Line 2, column 51:  illegal character: \92
Line 2, column 56:  illegal character: \92
Line 2, column 65:  illegal character: \92
Line 2, column 68:  illegal character: \92
Line 2, column 97:  illegal character: \92
Line 3, column 0:  illegal character: \92
Line 3, column 2:  illegal character: \92
Line 4, column 60:  illegal character: \92
Line 5, column 4:  illegal character: \92
Line 5, column 6:  illegal character: \92
Line 6, column 53:  illegal character: \92
Line 7, column 20:  illegal character: \92
Line 8, column 4:  illegal character: \92
Line 8, column 6:  illegal character: \92
Line 9, column 4:  illegal character: \92
Line 10, column 63:  illegal character: \92
Line 11, column 4:  illegal character: \92
Line 11, column 6:  illegal character: \92
Line 12, column 51:  illegal character: \92
Line 13, column 24:  illegal character: \92
Line 14, column 4:  illegal character: \92
Line 14, column 6:  illegal character: \92
Line 15, column 4:  illegal character: \92
Line 16, column 63:  illegal character: \92
Line 17, column 4:  illegal character: \92
Line 17, column 6:  illegal character: \92
Line 18, column 51:  illegal character: \92
Line 19, column 21:  illegal character: \92
Line 20, column 4:  illegal character: \92
Line 20, column 6:  illegal character: \92
Line 21, column 0:  illegal character: \92
Line 21, column 2:  illegal character: \92
Line 22, column 0:  illegal character: \92
Line 24, column 0:  illegal character: \0
Line 24, column 1:  'class' or 'interface' expected
Line 0, column 0: 
59 errors



migration of webservice axis1.1 to axis2.0

2006-07-20 Thread Prasad Chaudhari
Hi All,I have two questions regarding migration.. 1)I have a webservice running in our production using axis1.1. It is a message style simple webservice with a service method definition 
public void method(SOAPEnvelope req, SOAPEnvelope resp);I have one .NET external client at the moment actively using this webservice.If I rewrite this using axis 
2.0, will the existing webservice client (.NET) will work without changing anything?  I hope this issue is already addressed as normally applications can have webservices running on axis1.x and they would like to migrate to 
axis2.0 without bothering their external clients for this change.2) Also I have a client using axis1.1 which connects to 10 difft. webservices using axis(I do not know version), php and .NET. What will happen if I migrate my client to 
axis2.0. Will it work with all webservices or there will be compatiblity issue.Best Regards,-Prasad


please recommend a good wsdl validation tool

2006-07-20 Thread xu cai
thanks in advance.
Could anybody recommend a good wsdl validation tool for me ?-- - xucai 


Re: [Axis2]Why cannot hot delete services?

2006-07-20 Thread xu cai
I am not sure with axis2, 
but for axis 1.4, you can do that from 
http://yourhostname:port/axis/servlet/AdminServlet 
On 7/21/06, zhu jiang <[EMAIL PROTECTED]> wrote:


Hi All,
 
    How could I hot delete a service instead of rebooting the servlet container?
 
Thanks,

Jiang-- - xucai 


Re: [Axis2 v1.0] send file with security

2006-07-20 Thread Wan Kaveevivitchai

Dear Ruchith,

my mistake, my message receiver in services.xml is 
RAWXMLInOutMessageReceiver.

what should i do now?

Best regards,
Wan



From: "Ruchith Fernando" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] send file with security
Date: Thu, 20 Jul 2006 17:46:18 +0530

Hi Wan,

Can you also change
true
to
false

in both axis2.xml s (client and server) and try again.

And if this fails please send what you see in tcpmon and the exception.

Thanks,
Ruchith

On 7/20/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

Thank you Ruchith,

   I have made change as your advice. However, i still got the same
error...

   Any other possibility?

   Best regards,

Wan


>From: "Ruchith Fernando" <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Thu, 20 Jul 2006 16:09:23 +0530
>
>Yes from your services.xml and the client's axis2.xml
>
>Thanks,
>Ruchith
>
>On 7/20/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>>Dear Ruchith,
>>
>>you means
>>remove :
>>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue
>>
>> from my services.xml right? or other place?
>>
>> Wan
>>
>> >
>> >Hi Wan,
>> >
>> >Please remove :
>> 
>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue

>> >
>> >entry from your rampart configuration parameters and try again.
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >On 7/20/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>> >>Dear All,
>> >>
>> >>I have been trying to combine the test about sending file 
and

>> >>securing message.
>> >>My environment is Axis2 v1.0, nightly build released 4 June 
06

>>on
>> >>the
>> >>Jetty Servlet.
>> >>
>> >>From other individual test such as sending text file, and
>>security
>> >>sample had no problem on this, however with the combination one i 
got

>>the
>> >>following error.
>> >>
>> >>Client code:
>> >>
>> >>/*
>> >>* Created on 19.07.2006
>> >>*
>> >>* TODO To change the template for this generated file go to
>> >>* Window - Preferences - Java - Code Style - Code Templates
>> >>*/
>> >>package security;
>> >>
>> >>/**
>> >>* @author alice3
>> >>*
>> >>* TODO To change the template for this generated type comment go to
>> >>* Window - Preferences - Java - Code Style - Code Templates
>> >>*/
>> >>
>> >>import org.apache.axiom.om.OMAbstractFactory;
>> >>import org.apache.axiom.om.OMElement;
>> >>import org.apache.axiom.om.OMFactory;
>> >>import org.apache.axiom.om.OMNamespace;
>> >>import org.apache.axiom.om.OMText;
>> >>import org.apache.axis2.AxisFault;
>> >>import org.apache.axis2.Constants;
>> >>import org.apache.axis2.addressing.EndpointReference;
>> >>import org.apache.axis2.client.Options;
>> >>import org.apache.axis2.client.ServiceClient;
>> >>import org.apache.axis2.context.ConfigurationContext;
>> >>import org.apache.axis2.context.ConfigurationContextFactory;
>> >>
>> >>//import org.apache.axis2.soapmonitor.*;
>> >>
>> >>import javax.activation.DataHandler;
>> >>import javax.activation.FileDataSource;
>> >>import javax.xml.namespace.QName;
>> >>import javax.xml.stream.XMLOutputFactory;
>> >>import javax.xml.stream.XMLStreamException;
>> >>
>> >>import java.io.File;
>> >>import java.io.StringWriter;
>> >>
>> >>
>> >>public class SecureClient {
>> >>
>> >> private File inputFile = null;
>> >>
>> >> private QName operationName = new QName("fileSecurity");
>> >>
>> >> public static void main(String[] args) {
>> >>
>> >> try {
>> >>
>> >> // Get the repository location from the args
>> >> String repo = args[0];
>> >> String port = args[1];
>> >>
>> >> OMElement payload =
>> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> >> ConfigurationContext configContext =
>> 
>>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,

>> >>null);
>> >> ServiceClient serviceClient = new
>> >>ServiceClient(configContext,
>> >>null);
>> >> Options options = new Options();
>> >> options.setTo(new EndpointReference("http://127.0.0.1:"; 
+

>> >>port +
>> >>"/axis2/services/FileSecurity"));
>> >> //options.setTo(new
>> 
>>EndpointReference("http://localhost:8080/axis2_new/services/SecureService";));
>> >> 
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >> 
options.setProperty(Constants.Configuration.ENABLE_MTOM,

>> >>Constants.VALUE_TRUE);
>> >> options.setAction("urn:fileSecurity");
>> >> serviceClient.setOptions(options);
>> >>
>> >> //Blocking invocation
>> >> OMElement result = serviceClient.sendReceive(payload);
>> >>
>> >> StringWriter writer = new StringWriter();
>> >> result.serialize(XMLOutputFactory.newInstance()
>> >> .createXMLSt

[Axis 1.4] java.lang.reflect.InvocationTargetException

2006-07-20 Thread xu cai
hi all, 
 I am testing my web-service using the stub classed generated by wsdl2java. and get following exception.
anybody know what happens ?
 
faultDetail:     {http://xml.apache.org/axis/}stackTrace:java.lang.reflect.InvocationTargetException    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:388)    at org.apache.axis.providers.java.RPCProvider.processMessage
(RPCProvider.java:283)    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)    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:453)    at org.apache.axis.server.AxisServer.invoke
(AxisServer.java:281)    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)    at org.apache.axis.transport.http.AxisServletBase.service
(AxisServletBase.java:327)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)    at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java
:198)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)    at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)    at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)    at org.apache.coyote.tomcat5.CoyoteAdapter.service
(CoyoteAdapter.java:160)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java
:705)    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)    at java.lang.Thread.run
(Thread.java:595)Caused by: java.lang.NoClassDefFoundError    at com.sswitch.oam.pcsp.impl.BTSPcspAdapter.get(BTSPcspAdapter.java:54)    at com.packetcable.www.pcsp.i01.PcspI01ServiceImpl.get(PcspI01ServiceImpl.java
:27)    at com.packetcable.www.pcsp.i01.PcspI01ServiceSkeleton.get(PcspI01ServiceSkeleton.java:120)    ... 40 more
    {http://xml.apache.org/axis/}hostname:priems-240-- - xucai 


[Axis 1.4] how to setup log4j.properties at Axis client side

2006-07-20 Thread xu cai
Hi All,
  I am testing my web-service using Axis, and how to setup log enviroment at client side. 
where  should I put log4j.properties ? on classpath ? , but I still can't see any log information or log file generated.
 
- xucai 


Re: [Axis2 v1.0] send file with security

2006-07-20 Thread Wan Kaveevivitchai


Hi Ruchith,

   The result after i have done changing the enableMTOM parameters as 
you've suggested.


   from TCPMON server:
 HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=747hh2970j5g6;path=/axis2
Content-Type: text/xml; charset=UTF-8
Transfer-Encoding: chunked
Server: Jetty(6.0.x)

2BE
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://www.w3.org/2005/08/addressing/anonymoushttp://www.w3.org/2005/08/addressing/anonymousurn:uuid:7C4E23A809E753F67F11534625977653http://www.w3.org/2005/08/addressing/faultwsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply";>urn:uuid:ABD64AE313FF73B9DF11534625909471soapenv:Client

22
unknown
77A
org.apache.axis2.AxisFault
	at 
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
	at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
	at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)

at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
	at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
	at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)

at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.handle(Server.java:245)
at 
org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
	at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
	at 
org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
	at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)


32

0

from TCPMON client seems to be ok.

Server response on the shell:
21.07.2006 08:16:37 org.apache.xml.security.signature.Reference verify
INFO: Verification successful for URI "#id-22377952"
21.07.2006 08:16:37 org.apache.xml.security.signature.Reference verify
INFO: Verification successful for URI "#id-8499707"
21.07.2006 08:16:37 org.apache.xml.security.signature.Reference verify
INFO: Verification successful for URI "#id-13359904"
21.07.2006 08:16:37 org.apache.xml.security.signature.Reference verify
INFO: Verification successful for URI "#Timestamp-4300037"
before creating OMText

Client response:

21.07.2006 08:16:28 org.apache.axis2.deployment.DeploymentEngine 
prepareRepository

INFO: no services directory found , new one created
21.07.2006 08:16:28 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : addressing
21.07.2006 08:16:30 org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : rampart
16145
org.apache.axis2.AxisFault: unknown
	at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
	at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
	at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)

at security.SecureClient.main(SecureClient.java:68)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault
	at 
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
	at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480)
	at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)

at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(Servl

[Axis2]Why cannot hot delete services?

2006-07-20 Thread zhu jiang
Hi All,
 
    How could I hot delete a service instead of rebooting the servlet container?
 
Thanks,
Jiang


Upgrade from Axis Beta 2 to Axis 1.4

2006-07-20 Thread Bharadwaj, Nandita \(GE Healthcare\)



Hello 
all,
 
I am upgrading from 
Axis Beta 2 to Axis 1.4.
 
Is there a link 
telling me which members in a class in one version of Axis are 
deprecated? I want to compare them and try to know the impact on my 
application, also I want to share the particular changes that needs to be 
done.
 
Please help 
me out in this. 
 
Thanks in 
advance,
Nandita


Why I could not get MessageContext in error routine method processAxisFault()?

2006-07-20 Thread 蘇 軼(CEC)
hi all,

Using Axis1.4 I extended the AxisServlet class and overwrote the
processAxisFault(AxisFault fault) method to do some error handlering things,
like logging the service name and method name, but when I use
MessageContext.getCurrentContext() in that method to get the message
context, it is null.

Is there any way to get the service name and method name in that method?
or is there another method to do the error routine?

Any help or web resources would be greatly appreciated !

Regards,
- sukie


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



Re: [Axis2]Module not found

2006-07-20 Thread zhu jiang
Hi Chinthaka,
 
    I have read the userguide, and followed all the instructions, but still it shows module not found. What should I do?   
 
Thanks,
Jiang 
2006/7/20, Eran Chinthaka <[EMAIL PROTECTED]>:
zhu jiang wrote:> Hi All,>> When I run the sample of EchoBlockingDualClient, I receive that:
>   *org.apache.axis2.AxisFault: Module not found*> **What should I do?Did u read "Engaging Addressing in Client Side" in
http://ws.apache.org/axis2/1_0/userguide3.html.-- Chinthaka


Re: [Axis2]Module not found

2006-07-20 Thread zhu jiang
Hi Martin,
 
    Do I only need Axis2.jar,or all the jars in lib directory of axis2-std-1.0-bin?
 
Thanks,
Jiang 
2006/7/20, Martin Gainty <[EMAIL PROTECTED]>:




Jiang-
Is axis.jar is on your CLASSPATH??M-
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.

 
 

- Original Message - 
From: zhu jiang 

To: axis-user@ws.apache.org 
Sent: Wednesday, July 19, 2006 11:49 PM
Subject: [Axis2]Module not found
 
Hi All,
 
    When I run the sample of EchoBlockingDualClient, I receive that:
  org.apache.axis2.AxisFault: Module not found
    What should I do?
 
Thanks,
Jiang



RE: Generating soap:header info in the WSDL

2006-07-20 Thread Brian Fitzpatrick
It's really an interoperability problem with .NET clients. .NET requires
that the soap header definition appear in the WSDL, otherwise you are
forced to modify the generated proxies to allow them to pass the soap
header. Forcing clients of the API to have to modify the proxies is not
viable.

One of the advantages of the header is that you can pass information to
the service that does not clutter up the method signature; otherwise you
might as well just pass it as a regular parameter.

Ideally, wsdl2java would interpret the WSDL by allowing the header
information to be set once on the service, and then unwrap the
parameters so that you would have the intended method signature.

I do believe the way it is generating the header information in the WSDL
is a bug, since it is set to be wrapped document-literal, yet it
generates messages with 2 parts.

How it decides to represent the header in the proxies, either as a
parameter or a way to set the header on the service is certainly a
design choice, but not unwrapping the rest of the parameters certainly
results in a proxy that does not honor the intent of the service author.

Does Axis 1.4 support WS-Policy?  I did not see any reference to it in
the docs or samples.

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 20, 2006 5:07 PM
To: axis-user@ws.apache.org
Subject: Re: Generating soap:header info in the WSDL

If you specify the header in the WSDL, then you intend the application
to supply the header (hence the inclusion of the AuthenticationHeader
parameter in the interface). If you don't intend the application to
supply the header, then you should not include the header in the WSDL.
Your security policies should be specified using WS-Policy.

Anne

On 7/19/06, Brian Fitzpatrick <[EMAIL PROTECTED]> wrote:
>
>
>
>
> So, I figured out how to configure Axis to generate soap:header
information
> in the WSDL file, but it breaks the wrapped document-literal spec.
>
>
>
> Configuring Axis to send a parameter in the header, by setting
 inHeader="true"> in the WSDD file creates WSDL that does not comply
with the
> wrapped document-literal spec.
>
>
>
> It generates a wsdl:message that contains 2 parts instead of the 1
required
> by the spec.
>
>
>
> 
>
> name="AuthenticationHeader"/>
>
>
>
> 
>
>
>
> As a result, when trying to create an Axis client using WSDL2Java, it
fails
> to unwrap the TestParameters type (the code will only unwrap if it
contains
> only one part and meets other criteria).  Thus a service operation
defined
> as:
>
>
>
> public void testParameters(String stringParam, int integerParam,
Boolean
> booleanParam )
>
>
>
> becomes
>
>
>
> public void testParameters(AuthenticationHeader header,
> TestParameters parameters )
>
>
>
> in the generated Axis client proxies.
>
>
>
> It seems like the WSDL generation for headers is incorrect. It should
be
> generated like .NET generates them, using 2 wsdl:message's: one for
the
> parameters and one for the header. Then the header is referenced in
the
> wsdl:binding.
>
>
>
> If Axis is going to generate the soap:header information in this way
in the
> WSDL, then at least the Axis client proxies should be able to
recognize this
> pattern and unwrap the parameters.  Currently, the .NET 2.0 proxies
(against
> the Axis generated WSDL) do correctly recognize the header and create
method
> signatures that match the parameters, not a wrapped object containing
the
> parameters.
>
>
>
>
>
>  
>
>
> From: Brian Fitzpatrick
>  Sent: Wednesday, July 12, 2006 8:19 AM
>  To: axis-user@ws.apache.org
>  Subject: Generating soap:header info in the WSDL
>
>
>
> Does Axis 1.4 support generating the WSDL for a soap header?  I can't
find a
> configuration or samples where it is done.
>
>
>
> We have a web service deployed under .NET and Axis. In .NET you can
add a
> directive to the source code and it will create the wsdl that includes
the
> soap header info. It creates the binding shown below and also the
message
> and parts required.
>
>
>
> If this is not supported, any suggestions on how to accomplish this
> (handlers?, sample code?).
>
>
>
> Thanks.
>
>
>
> 
>
>style="document"/>
>
>   
>
> 
>
>  message="tns:TestParametersAuthenticationHeader"
> part="AuthenticationHeader" use="literal"/>
>
>   
>
>   
>
> 
>
>   
>
> 
>
>
>
>

-
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] userguide Writing Web Service Clients using Code Generation with Data Binding Support

2006-07-20 Thread 郝俊杰



 
There are some mistakes in  
Axis2SampleDocLit.wsdl; you can replace those word "RPC" or 
"rpc" with "document" in it,then try again. 
发件人: Fabien 
Couble
发送时间: 
2006-07-21 03:15:53
收件人: 
axis-user@ws.apache.org
抄送: 
主题: [AXIS2] userguide 
Writing Web Service Clients using Code Generation with Data Binding 
Support
 

Hi all,
I have one question concerning the userguide and 
more precisely the part: 
Writing Web Service Clients using Code Generation with Data Binding 
Support
 
In fact, I did everything and more precisely, I deployed the service but 
now I have a problem with the client.
 
In fact, I copy paste the following client to invoke the service (like it 
is written in the userguide):
try {
 //Create the stub by passing the AXIS_HOME and target EPR.
 //We pass null to the AXIS_HOME and hence the stub will use the current directory as the AXIS_HOME 
 Axis2SampleDocLitPortTypeStub stub= new Axis2SampleDocLitPortTypeStub(null,
"http://localhost:8080/axis2/services/Axis2SampleDocLitPortType");
 //Create the request document to be sent.
 EchoStringParamDocument  reqDoc= EchoStringParamDocument.Factory.newInstance();
 reqDoc.setEchoStringParam("Axis2 Echo");
 //invokes the Web service.
 EchoStringReturnDocument resDoc=stub.echoString(reqDoc);
 System.out.println(resDoc.getEchoStringReturn());

} catch (Exception e) {
e.printStackTrace();
} The problem is that this code above is wrong or maybe I have missed something. I mean the echoString cannot take a EchoStringParamDocument  parameter. It is a EchoStringParam which is convenient. How can I translate a EchoStringParamDocument  parameter to EchoStringParam?Thx for your responsesFabien 


Re: How can I use my Axis2 service with Cpp client ?

2006-07-20 Thread Kinichiro Inoguchi
Hi,

Add "Web reference" to your project from menu, if you use Visual Studio
.NET. 

--- ºÂ¿¡½Ü <[EMAIL PROTECTED]> wrote:

> hi all, 
>I have deployed my service on axis2 ,could I use it with a cpp
> client and how  ?
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



How can I use my Axis2 service with Cpp client ?

2006-07-20 Thread 郝俊杰



hi all, 
   I have deployed my service on axis2 ,could I use it with a cpp 
client and how  ?


Re: Can't generate SOAP Envelope, "org.xml.sax.SAXParseException: Premature end of file"

2006-07-20 Thread xu cai
Martin, 
 thanks for your reply. I appreciate it. 
I know that it's may because the input xml is not well-formed.
but, as you know, I am invoking an web-service through the generatd stub class by wsdl2java.  the soap request is also generated by Axis, so I even can't see the content of the generated soap request. 
 
can anybody tell me how can I have a look at the generated soap request ?
 
if the soap message is not well-formed, what's the possible root cause ?  what should I do ? should I report a bug to axis ? or it's caused by my own code or wsdl ?
 
thanks
-xucai.
 
 
On 7/21/06, Martin Gainty <[EMAIL PROTECTED]> wrote:



Xu-
Things to look for are is the input XML contain perhapsmissing End Tag (e.g.  without a )Sub elements content clipped or chopped off

...no end tag
or missing 
Use any XML Editor such as XMLSpy or even IE in a pinch and the XMLParser will tell you where the error/missing content occurs
Martin
*This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy.  Thank you.
 
 


- Original Message - 
From: 
xu cai 
To: axis-user@ws.apache.org
 ; axis-dev@ws.apache.org 


Sent: Thursday, July 20, 2006 5:41 AM
Subject: Can't generate SOAP Envelope, "org.xml.sax.SAXParseException: Premature end of file"
 
Hi All , I run a simple test class to access my webservice deployed on axis 1.2.1 (Built on Jun 14, 2005 (09:15:57 EDT). and got an exception.
 The truth is soap msg can't be generated and an SAX xml exception is thrown. Could anyone tell me what happened ? and how to fix that ?
 
many thanks.
 
 
the src code SoapPart.java looks as:
    dser.getEnvelope().setOwnerDocument(this);    // This may throw a SAXException    try {    dser.parse();  // exception     } catch (SAXException e) {    Exception real = 
e.getException();    if (real == null)    real = e;    throw AxisFault.makeFault(real);    }
Exception msg: 

AxisFault faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:  faultString: org.xml.sax.SAXParseException : Premature end of file. faultActor:  faultNode:  faultDetail:     {

http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException : Premature end of file.    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError
(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion
 (Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XMLParser.parse
 (Unknown Source)    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)    at javax.xml.parsers.SAXParser.parse
 (SAXParser.java:375)    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)    at org.apache.axis.Message.getSOAPEnvelope
 (Message.java:424)    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)    at org.apache.axis.client.Call.invokeEngine
 (Call.java:2765)    at org.apache.axis.client.Call.invoke(Call.java:2748)    at org.apache.axis.client.Call.invoke(Call.java:2424)    at org.apache.axis.client.Call.invoke(Call.java:2347)    at 
org.apache.axis.client.Call.invoke(Call.java:1804)    at com.sswitch.oam.soap.intf.Bts10200SoapBindingStub.request(Bts10200SoapBindingStub.java:297)    at com.sswitch.oam.soap.test.SimpleTest.main(SimpleTest.java
 :22)
    {http://xml.apache.org/axis/}hostname:sha-view1.cisco.com

org.xml.sax.SAXParseException: Premature end of file.    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)    at org.apache.axis.Message.getSOAPEnvelope
 (Message.java:424)    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)    at org.apache.axis.client.Call.invokeEngine
 (Call.java:2765)    at org.apache.axis.client.Call.invoke(Call.java:2748)    at org.apac

Re: CalendarDeserializer and empty dates

2006-07-20 Thread Jeff Greif
The empty string is not a valid xsd:dateTime. 

To make this a valid response from your service, you would have to 
specify in the schema that assignedDate was nillable and in the 
respponse,  .  I don't know whether the 
Calendar serializer would have to be able to handle it then -- probably not.


Another possibility is to make the assignedDate element optional in the 
schema (minOccurs="0") and omit in the response when it has no value.


Jeff

Mike Wallace wrote:

The XML message we're attempting to deserialize has
the following elements in it:

2006-07-19T18:23:46.327Z

The createDate element has no problems, but
assignedDate, which has no data, fails with the
following:

java.lang.NumberFormatException: Invalid date/time

Is this a known limitation of the Calendar deserializer?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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


  



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



CalendarDeserializer and empty dates

2006-07-20 Thread Mike Wallace
The XML message we're attempting to deserialize has
the following elements in it:

2006-07-19T18:23:46.327Z

The createDate element has no problems, but
assignedDate, which has no data, fails with the
following:

java.lang.NumberFormatException: Invalid date/time

Is this a known limitation of the Calendar deserializer?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: No 'message' attribute in for operation ...

2006-07-20 Thread Anne Thomas Manes

Start by validating the WSDL. The error message indicates that you're
missing the "message" attribute in the  definition for the
"SellServiceFee" operation.

Proper format for a portType definition looks something like this:

 
   
 
 
   
 

The message attribute must reference a  definition.

Anne

On 7/18/06, akkachotu <[EMAIL PROTECTED]> wrote:

I have a complex WSDL with lot of schema files and when I generated
WSDL2Java using AXIS 1.3 then I am getting below error:



java.io.IOException: No 'message' attribute in  for operation
'SellServiceFee'
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.ensureOperationValid(SymbolTable.java:1536)
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.ensureOperationsOfPortTypeValid(SymbolTable.java:1608)
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populatePortTypes(SymbolTable.java:1629)
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:743)
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:734)
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Thread.java:534)




I  cannot paste the wsdl and the schemas (.xsd) files here as they are
very huge and can anyone please let me know what can be problem with
my wsdl ?



Thanks in advance.

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



Axis 1.3 document-style client-side handling of Japanese characters

2006-07-20 Thread David Nesbitt
Title: Axis 1.3 document-style client-side handling of Japanese characters






I have an Axis 1.3 HTTP web service that is returning Japanese characters.  TcpMon shows these characters to be in the response.  However, call.invoke() returns a SOAPEnvelope where the Japanese characters have been converted into question marks (?).

The HTTP response has the following XML declaration (from TcpMon):



A snippet of the actual response (from TcpMon) looks like the following:

>日本語

>花子

But after calling call.invoke(), the snippet looks like:

>???

>??>

Any ideas how I can preserve the Japanese characters that are being returned using client-side Axis 1.3?


Regards,

Dave

P.S.  The HTTP response content-type header (from TcpMon) is:

Content-Type: text/xml;charset=utf-8




Re: Repost: WSSecurityException - Check Signature confirmation (Axis 1.4 + wss4j)

2006-07-20 Thread Ravi Krishnamurthy




Trying my luck if anybody can suggest any pointers,

Hello:
Would appreciate if someone could give me some pointers.
  
Thanks,
Ravi
  
Ravi Krishnamurthy wrote:
  


Hello:
I'm trying to use wss4j with Axis1.4 and trying out the samples that
comes with wss4j/interop.

On executing the org.apache.ws.axis.oasis.Scenario3  I get the
following exception:

WSHandler: Check Signature confirmation: stored SV vector not empty;
nested exception is: 
    org.apache.ws.security.WSSecurityException: WSHandler: Check
Signature confirmation: stored SV vector not empty
    at
org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:351)

I monitor the soap messages through the tcpmon and they are below:

request soap message:
--

   "http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  
 "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
soapenv:mustUnderstand="1">
    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="Timestamp-6559246">
  
2006-07-10T20:19:53.011Z
  
2006-07-10T20:24:53.011Z
    
    
   "http://www.w3.org/2001/04/xmlenc#rsa-1_5">
   "http://www.w3.org/2000/09/xmldsig#">
  
 "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">Xeg55vRyK3ZhAEhEf+YT0z986L0=
  
   
   
 
HEhP2Wm923TOcrC6vcfyf3I7BQPFW6pzZb4oRsV6GHL1THJvLbmjeIGTX9p3/6bLL4lQEy/7M3Sk2znE7QBjTtQuip+WAiJuiKONzQRC175FZTkhNgF6iD62/ikuGMihR3yn/1KZtjMiH8k/gh1Q+sRW0pD8JmEKnBWw2hhX/n8=
   
   
  
   
    
    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
wsu:Id="CertId-1776694">MIIDDDCCAfSgAwIBAgIQM6YEf7FVYx/tZyEXgVComTANBgkqhkiG9w0BAQUFADAwMQ4wDAYDVQQKDAVPQVNJUzEeMBwGA1UEAwwVT0FTSVMgSW50ZXJvcCBUZXN0IENBMB4XDTA1MDMxOTAwMDAwMFoXDTE4MDMxOTIzNTk1OVowQjEOMAwGA1UECgwFT0FTSVMxIDAeBgNVBAsMF09BU0lTIEludGVyb3AgVGVzdCBDZXJ0MQ4wDAYDVQQDDAVBbGljZTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAoqi99By1VYo0aHrkKCNT4DkIgPL/SgahbeKdGhrbu3K2XG7arfD9tqIBIKMfrX4Gp90NJa85AV1yiNsEyvq+mUnMpNcKnLXLOjkTmMCqDYbbkehJlXPnaWLzve+mW0pJdPxtf3rbD4PS/cBQIvtpjmrDAU8VsZKT8DN5Kyz+EZsCAwEAAaOBkzCBkDAJBgNVHRMEAjAAMDMGA1UdHwQsMCowKKImhiRodHRwOi8vaW50ZXJvcC5iYnRlc3QubmV0L2NybC9jYS5jcmwwDgYDVR0PAQH/BAQDAgSwMB0GA1UdDgQWBBQK4l0TUHZ1QV3V2QtlLNDm+PoxiDAfBgNVHSMEGDAWgBTAnSj8wes1oR3WqqqgHBpNwkkPDzANBgkqhkiG9w0BAQUFAAOCAQEABTqpOpvW+6yrLXyUlP2xJbEkohXHI5OWwKWleOb9hlkhWntUalfcFOJAgUyH30TTpHldzx1+vK2LPzhoUFKYHE1IyQvokBN2JjFO64BQukCKnZhldLRPxGhfkTdxQgdf5rCK/wh3xVsZCNTfuMNmlAM6lOAg8QduDah3WFZpEA0s2nwQaCNQTNMjJC8tav1CBr6+E5FAmwPXP7pJxn9Fw9OXRyqbRA4v2y7YpbGkG2GI9UvOHw6SGvf4FRSthMMO35

YbpikGsLix3vAsXWWi4rwfVOYzQK0OFPNi9RMCUdSH06m9uLWckiCxjos0FQODZE9l4ATGy9s9hNVwryOJTw==
    "http://www.w3.org/2000/09/xmldsig#"
Id="Signature-2950265">
   
  "http://www.w3.org/2001/10/xml-exc-c14n#">
  "http://www.w3.org/2000/09/xmldsig#rsa-sha1">
  
 
    "http://www.w3.org/2001/10/xml-exc-c14n#">
 
 "http://www.w3.org/2000/09/xmldsig#sha1">

zzx3ig1a7LmzkrkBpLOTIJbLd3s=
  
   
  
IuRirKy+x18gU00p0uhMEDzEAFvpoHMGKcq45ROmpzQ6ZpD/VEghpYjru6Kff0y3tyWzSvW6nA1mH1pudDP1yLxP5geYvXNPQlFV5X+7T60QPlM6ho3sBj2D3IDAZZXZQdJV+fqC7JycqdzLfXU15fHw+ReZm2r7hIPoys9eHgg=
   
  "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="STRId-29769356">
 "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3">
  
   
    
 
  
  "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="id-30568553">
 "http://www.w3.org/2001/04/xmlenc#Content">
    "http://www.w3.org/2001/04/xmlenc#aes128-cbc">
    
  
oXcNsV8AMx98dJom1wFX1i6y0Q90oPf7SpLM88MqCsc9dbVFkJNwN5prhs3WXUtjQ40IKuBRxX+MRNg+J79tT3sm+ivzH7+qol3JaudVz5ahPyLO7BPHmjOLNFV0YrtVs+dUbjhtJHk152uU6Lty/3l9RKuPbC6FDy6NGNpFolt27gqIfOfnQgGFEYpEFST7Vjt/QD6VoLkA7JdjNsJmQceWtn6jQ0ZUHW5lsBCR1fFRYRCBTSp2NHAHf+PqpFuNJ+8jr4HZhhy71dfxACQ4n7BuS0MelKtF/Sf+Gk4MIGsh2

Re: Generating soap:header info in the WSDL

2006-07-20 Thread Anne Thomas Manes

If you specify the header in the WSDL, then you intend the application
to supply the header (hence the inclusion of the AuthenticationHeader
parameter in the interface). If you don't intend the application to
supply the header, then you should not include the header in the WSDL.
Your security policies should be specified using WS-Policy.

Anne

On 7/19/06, Brian Fitzpatrick <[EMAIL PROTECTED]> wrote:





So, I figured out how to configure Axis to generate soap:header information
in the WSDL file, but it breaks the wrapped document-literal spec.



Configuring Axis to send a parameter in the header, by setting  in the WSDD file creates WSDL that does not comply with the
wrapped document-literal spec.



It generates a wsdl:message that contains 2 parts instead of the 1 required
by the spec.





   

   





As a result, when trying to create an Axis client using WSDL2Java, it fails
to unwrap the TestParameters type (the code will only unwrap if it contains
only one part and meets other criteria).  Thus a service operation defined
as:



public void testParameters(String stringParam, int integerParam, Boolean
booleanParam )



becomes



public void testParameters(AuthenticationHeader header,
TestParameters parameters )



in the generated Axis client proxies.



It seems like the WSDL generation for headers is incorrect. It should be
generated like .NET generates them, using 2 wsdl:message's: one for the
parameters and one for the header. Then the header is referenced in the
wsdl:binding.



If Axis is going to generate the soap:header information in this way in the
WSDL, then at least the Axis client proxies should be able to recognize this
pattern and unwrap the parameters.  Currently, the .NET 2.0 proxies (against
the Axis generated WSDL) do correctly recognize the header and create method
signatures that match the parameters, not a wrapped object containing the
parameters.





 


From: Brian Fitzpatrick
 Sent: Wednesday, July 12, 2006 8:19 AM
 To: axis-user@ws.apache.org
 Subject: Generating soap:header info in the WSDL



Does Axis 1.4 support generating the WSDL for a soap header?  I can't find a
configuration or samples where it is done.



We have a web service deployed under .NET and Axis. In .NET you can add a
directive to the source code and it will create the wsdl that includes the
soap header info. It creates the binding shown below and also the message
and parts required.



If this is not supported, any suggestions on how to accomplish this
(handlers?, sample code?).



Thanks.





  

  





  

  



  








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



Re: Problems with WSDL2Java

2006-07-20 Thread Anne Thomas Manes

And just for clarity -- the sample WSDL in the WSDL spec is not valid...

Anne

On 7/19/06, Christian Pöcher <[EMAIL PROTECTED]> wrote:

Just for the archive: I resolved the problem. It was of course my fault,
although I wished the WSDL2Java tool would do a validity check, before
generating code.

In  I defined elements like 
while in  I used a type attribute.




I also seem to have referenced an old version of the Schema namespace.
Changing http://www.w3.org/2000/10/XMLSchema";> to http://www.w3.org/2001/XMLSchema";> finally helped.

-Chris

-
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 1.0] newbie: operation params and return types

2006-07-20 Thread Anne Thomas Manes

Axis2 only automatically generates a WSDL document if you use the RPC
Receiver. If you use the Raw or Message Receiver you must supply the
WSDL. For best results, always start with WSDL.

Anne

On 7/20/06, Nirmit Desai <[EMAIL PROTECTED]> wrote:


Hi All,

I am new to Axis2 and wondering about the supported datatypes for method
parameters and return types. All the samples use OMElement.

If an implementation class were to be written with all OMElements, would
the generated WSDL show the corresponding schemas? If not, how would a
client know the format of the params and returned results by looking at a
WSDL?

If this is a limitation of OM, then what other options does one have? I
need to be able to return a List/Array of custom Beans. How can I do that?

Excuse me for this basic question, but I couldn't find a good pointer.

Thanks,

-Nirmit


-
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: WSDD reference or examples

2006-07-20 Thread Anne Thomas Manes

See http://www.oio.de/axis-wsdd/


On 7/20/06, Andrew Morrison <[EMAIL PROTECTED]> wrote:





Thanks, but I am looking for something a bit more detailed.



I am able to create working Message style web services from a WSDD, but I
would like to specify a schema in the generated WSDL to state the type of
the XML in the soap body. Has anyone done this?



I want to:

1. Include a schema in the generated WSDL – this can be achieved using:

http://localhost:8080/axis/schemas/eligibility_noxs.xsd"/>



2. Specify that the request message should contain an XML message that can
also be validated against the same schema – does anyone know if this is
possible, or have an example of how to specify this in the WSDD?



3. Specify the response will be of a type defined by that schema – I think
this can be achieved with:







My complete WSDD so far is below – if anyone can suggest any references or
examples they would be appreciated.

BTW: this site is useful but not complete:
http://www.oio.de/axis-wsdd/deployment.htm



Thanks

Andrew.



http://xml.apache.org/axis/wsdd/";
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";>

http://localhost:8080/axis/services/MyMessageService1Namespace";>


http://localhost:8080/axis/services/MyMessageService1Namespace





http://localhost:8080/axis/schemas/eligibility_noxs.xsd"/>

http://localhost:8080/axis/services/MyMessageService1Namespace"/>












 


From: Ted Jones [mailto:[EMAIL PROTECTED]
 Sent: 20 July 2006 16:49
 To: axis-user@ws.apache.org; Andrew Morrison
 Subject: RE: WSDD reference or examples




Here is an example of wsdd for what you describe:



http://xml.apache.org/axis/wsdd/";

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

xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";>
   
   
 
 
   
 








 


From: Andrew Morrison [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 20, 2006 7:11 AM
 To: axis-user@ws.apache.org
 Subject: WSDD reference or examples

Hi,



Can anyone point me to a reference for creating a *.wsdd?



I am trying to create a WSDD for a Message style web service.

The intention is that the Axis generated WSDL will specify a user-defined
XML schema (wsdlInputSchema) and assert that the input and output for the
web service should be an XML document as defined by the schema.



If anyone knows where I could see an example that would be great – I am
finding snippets of info on the web, but am having difficulty finding a
detailed listing of the options etc.



All the best,

Andrew.
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.


The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.




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



General error handling question

2006-07-20 Thread D P
When an uncaught exception occurs, I would like to send a generic message saying only that an error occurred, instead of the default behavior which returns the exception message to the client in a soap fault.  While I do have appropriate exception handling in my services, does axis2 have any functionality to do this in a more centralized manner? 



Michael Rheinheimer/Austin/IBM is out of the office.

2006-07-20 Thread Michael Rheinheimer

I will be out of the office starting  07/20/2006 and will not return until 07/31/2006.

If you need to reach me immediately, please try my personal cell phone at 512-797-6788.

You may also contact Henry Deangelis or Ann Robinson, who both know my backups for all related projects.

Thanks.
Mike

[Axis2 1.0] newbie: operation params and return types

2006-07-20 Thread Nirmit Desai

Hi All,

I am new to Axis2 and wondering about the supported datatypes for method
parameters and return types. All the samples use OMElement.

If an implementation class were to be written with all OMElements, would
the generated WSDL show the corresponding schemas? If not, how would a
client know the format of the params and returned results by looking at a
WSDL?

If this is a limitation of OM, then what other options does one have? I
need to be able to return a List/Array of custom Beans. How can I do that?

Excuse me for this basic question, but I couldn't find a good pointer.

Thanks,

-Nirmit


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



Re: [Axis2] log4j configuration issue

2006-07-20 Thread robert lazarski

WEB-INF/classes . Make sure you have log4j.jar under WEB-INF/lib or
another appropriate place.

HTH,
Robert
http://www.braziloutsource.com/

On 7/20/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:

Hi all,

where should I put the log4j.properties file into my axis2 web service?
And how do I locate it?


Thanks in advance,
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: Cannot load SchemaTypeSystem

2006-07-20 Thread Derek
Thanks for your response, Robert.

I did some more looking, and found that my IDE (IntelliJ Idea) was hiding
the class file that was generated from me, so I didn't know it existed. I
also found that the specific run target that I was using wasn't including
the resources directory in the class path like I thought it was. I had set
up Idea to include the directory in the source path for compilation, not the
class path, assuming that what was going to be generated was Java source
code rather than a class file. I am still a bit surprised that an actual
class file is being generated here, particularly after looking at the code
in WSDL2Java which does it by copying and modifying an existing class file
(!). With the directory now properly included in my runtime class path, the
code now seems to run correctly.

Derek

> -Original Message-
> From: robert lazarski [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 20, 2006 9:20 AM
> To: axis-user@ws.apache.org; [EMAIL PROTECTED]
> Subject: Re: Cannot load SchemaTypeSystem
> 
> 
> When you run WSDL2Java with xmlbeans, there will indeed be a 
> TypeSystemHolder class generated and you have to somehow get 
> that class into you classpath. From the codegen guide:
> 
> http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html
> 
> "An important detail is that an XMLBean class file is also 
> generated by WSDL2Java, TypeSystemHolder.class. That file is 
> placed into build/classes by the above ant task and will be 
> needed to compile the generated sources. A frequent problem 
> is users get an error such as:
> 
> ClassNotFoundException : Cannot load SchemaTypeSystem. Unable 
> to load class with name 
> schemaorg_apache_xmlbeans.system.s68C41DB812F52C975439BA10FE4F
> EE54.TypeSystemHolder.
> Make sure the generated binary files are on the classpath.
> 
> The TypeSystemHolder.class generated by WSDL2Java must be 
> placed in your classpath in order to avoid this error."
> 
> For example, when I run WSDL2Java, I do it thru an ant task:
> 
> 
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>value="br.com.atlantico.maragato.webservices.endpoint"/>
>   
> 
>   
>   
>   
>   
>   
>   
>   
> 
>   
> 
> In this case, I get:
> 
> build/classes/schemaorg_apache_xmlbeans/system/sC4DADC577FF83F
> 46C2C248EE4254F70D/TypeSystemHolder.class
> 
> I just confirmed that still works with todays svn.
> 
> HTH,
> Robert
> http://www.braziloutsource.com/
> 
> On 7/19/06, Derek <[EMAIL PROTECTED]> wrote:
> >
> > Hi, folks.
> >
> > I just ran WSDL2Java (from yesterday's nightly build), and 
> generated a 
> > bunch of output files. Now, I am trying to test a client which is 
> > written with those output files. Whenever I try, however, I get the 
> > following exception:
> >
> > Exception in thread "main" java.lang.ExceptionInInitializerError
> > at
> > 
> crc.ieee1512import.xmlbeans.im.IMWrapper$Factory.newInstance(IMWrapper
> > .java:
> > 79)
> > at
> > 
> crc.importtestclient.IEEE1512Client.createIMWrapper(IEEE1512Cl
> ient.java:67)
> > at
> > crc.importtestclient.IEEE1512Client.runTest(IEEE1512Client.java:50)
> > at crc.importtestclient.ClientMain.main(ClientMain.java:39)
> > at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39
> > )
> > at
> > 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl
> > .java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at
> > com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
> > Caused by: java.lang.RuntimeException: Cannot load 
> SchemaTypeSystem. Unable
> > to load class with name
> > 
> schemaorg_apache_xmlbeans.system.s3F178E0A50CC587BC745803A994C
> E78D.TypeSyste
> > mHolder. Make sure the generated binary files are on the classpath.
> > at
> > 
> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans
> .java:781)
> > at
> > crc.ieee1512import.xmlbeans.im.IMWrapper.(IMWrapper.java:18)
> > ... 9 more
> > Caused by: java.lang.ClassNotFoundException:
> > 
> schemaorg_apache_xmlbeans.system.s3F178E0A50CC587BC745803A994C
> E78D.TypeSyste
> > mHolder
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > at 
> java.security.AccessController.doPrivileged(Native Method)
> > at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> > at
> > 
> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans
>

Re: Can't generate SOAP Envelope, "org.xml.sax.SAXParseException: Premature end of file"

2006-07-20 Thread Martin Gainty



Xu-
Things to look for are is the input XML contain 
perhapsmissing End Tag (e.g.  without a 
)Sub elements content clipped or chopped 
off
...no end tag
or missing 
Use any XML Editor such as XMLSpy or even IE in a 
pinch and the XMLParser will tell you where the 
error/missing content occurs
Martin
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  xu cai 
  
  To: axis-user@ws.apache.org ; axis-dev@ws.apache.org 
  Sent: Thursday, July 20, 2006 5:41 
  AM
  Subject: Can't generate SOAP Envelope, 
  "org.xml.sax.SAXParseException: Premature end of file"
  
  Hi All , I run a simple test class to access my webservice deployed on 
  axis 1.2.1 (Built on Jun 14, 2005 (09:15:57 EDT). 
  and got an exception. The truth is soap msg can't be generated and an SAX xml 
  exception is thrown. Could anyone tell me what 
  happened ? and how to fix that ?
   
  many thanks.
   
   
  the src code SoapPart.java looks 
  as:
      
  dser.getEnvelope().setOwnerDocument(this);    
  // This may throw a SAXException    
  try {    
  dser.parse();  // exception 
      } catch (SAXException e) 
  {    
  Exception real = 
  e.getException();    
  if (real == 
  null)    
  real = 
  e;    throw 
  AxisFault.makeFault(real);    
  }
  Exception msg: 
  
  AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: 
   faultString: org.xml.sax.SAXParseException : Premature end of 
  file. faultActor:  faultNode:  faultDetail: 
      {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException 
  : Premature end of file.    at 
  org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
  Source)    at 
  org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown 
  Source)    at 
  org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
  Source)    at 
  org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
  Source)    at 
  org.apache.xerces.impl.XMLVersionDetector.determineDocVersion (Unknown 
  Source)    at 
  org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
  Source)    at 
  org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
  Source)    at 
  org.apache.xerces.parsers.XMLParser.parse (Unknown 
  Source)    at 
  org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
  Source)    at 
  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
  Source)    at 
  javax.xml.parsers.SAXParser.parse 
  (SAXParser.java:375)    at 
  org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)    
  at 
  org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)    
  at org.apache.axis.Message.getSOAPEnvelope 
  (Message.java:424)    at 
  org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    
  at 
  org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)    
  at org.apache.axis.client.Call.invokeEngine 
  (Call.java:2765)    at 
  org.apache.axis.client.Call.invoke(Call.java:2748)    
  at 
  org.apache.axis.client.Call.invoke(Call.java:2424)    
  at 
  org.apache.axis.client.Call.invoke(Call.java:2347)    
  at 
  org.apache.axis.client.Call.invoke(Call.java:1804)    
  at 
  com.sswitch.oam.soap.intf.Bts10200SoapBindingStub.request(Bts10200SoapBindingStub.java:297)    
  at com.sswitch.oam.soap.test.SimpleTest.main(SimpleTest.java :22)
      {http://xml.apache.org/axis/}hostname:sha-view1.cisco.com
  org.xml.sax.SAXParseException: Premature end of 
  file.    at 
  org.apache.axis.AxisFault.makeFault(AxisFault.java:101)    
  at 
  org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)    
  at org.apache.axis.Message.getSOAPEnvelope 
  (Message.java:424)    at 
  org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    
  at 
  org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)    
  at org.apache.axis.client.Call.invokeEngine 
  (Call.java:2765)    at 
  org.apache.axis.client.Call.invoke(Call.java:2748)    
  at 
  org.apache.axis.client.Call.invoke(Call.java:2424)    
  at 
  org.apache.axis.client.Call.invoke(Call.java:2347)    
  at 
  org.apache.axis.client.Call.invoke(Call.java:1804)    
  at 
  com.sswitch.oam.soap.intf.Bts10200SoapBindingStub.request(Bts10200SoapBindingStub.java:297)    
  at com.sswitch.oam.soap.test.SimpleTest.main(SimpleTest.java :22)Caused

RE: WSDD reference or examples

2006-07-20 Thread Andrew Morrison









Thanks, but I am looking for something a
bit more detailed. 

 

I am able to create working Message style
web services from a WSDD, but I would like to specify a schema in the generated
WSDL to state the type of the XML in the soap body. Has anyone done this?

 

I want to:

1. Include a schema in the generated WSDL
– this can be achieved using:



 

2. Specify that the request message should
contain an XML message that can also be validated against the same schema
– does anyone know if this is possible, or have an example of how to
specify this in the WSDD? 

 

3. Specify the response will be of a type
defined by that schema – I think this can be achieved with:

    

    operation>

 

My
complete WSDD so far is below – if anyone can suggest any references or
examples they would be appreciated. 

BTW:
this site is useful but not complete: http://www.oio.de/axis-wsdd/deployment.htm

 

Thanks

Andrew.

 



    

    http://localhost:8080/axis/services/MyMessageService1Namespacenamespace>

    

        

    

           

    

    operation>

    service>

deployment>

 









From: Ted Jones
[mailto:[EMAIL PROTECTED] 
Sent: 20 July 2006 16:49
To: axis-user@ws.apache.org;
Andrew Morrison
Subject: RE: WSDD reference or
examples



 

Here is an example of wsdd for what you describe:

 

http://xml.apache.org/axis/wsdd/" 
   
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
   
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance">
  
     
    
    
  




 




  

 







From: Andrew
Morrison [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 20, 2006 7:11
AM
To: axis-user@ws.apache.org
Subject: WSDD reference or
examples

Hi,

 

Can anyone point me to a reference for creating a
*.wsdd?

 

I am trying to create a WSDD for a Message style web
service. 

The intention is that the Axis generated WSDL will
specify a user-defined XML schema (wsdlInputSchema) and
assert that the input and output for the web service should be an XML document
as defined by the schema.

 

If anyone knows where I could see an example that
would be great – I am finding snippets of info on the web, but am having
difficulty finding a detailed listing of the options etc.

 

All the best,

Andrew.

 The information in this email is confidential and may be legally privileged.It is intended solely for the addressee. Access to this email by anyone elseis unauthorized. If you are not the intended recipient, any disclosure,copying, distribution or any action taken or omitted to be taken in relianceon it, is prohibited and may be unlawful. If you are not the intendedaddressee please contact the sender and dispose of this e-mail. Thank you.



The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.





Re: Cannot load SchemaTypeSystem

2006-07-20 Thread robert lazarski

When you run WSDL2Java with xmlbeans, there will indeed be a
TypeSystemHolder class generated and you have to somehow get that
class into you classpath. From the codegen guide:

http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html

"An important detail is that an XMLBean class file is also generated
by WSDL2Java, TypeSystemHolder.class. That file is placed into
build/classes by the above ant task and will be needed to compile the
generated sources. A frequent problem is users get an error such as:

ClassNotFoundException : Cannot load SchemaTypeSystem. Unable to load
class with name
schemaorg_apache_xmlbeans.system.s68C41DB812F52C975439BA10FE4FEE54.TypeSystemHolder.
Make sure the generated binary files are on the classpath.

The TypeSystemHolder.class generated by WSDL2Java must be placed in
your classpath in order to avoid this error."

For example, when I run WSDL2Java, I do it thru an ant task:


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 

 

In this case, I get:

build/classes/schemaorg_apache_xmlbeans/system/sC4DADC577FF83F46C2C248EE4254F70D/TypeSystemHolder.class

I just confirmed that still works with todays svn.

HTH,
Robert
http://www.braziloutsource.com/

On 7/19/06, Derek <[EMAIL PROTECTED]> wrote:


Hi, folks.

I just ran WSDL2Java (from yesterday's nightly build), and generated a bunch
of output files. Now, I am trying to test a client which is written with
those output files. Whenever I try, however, I get the following exception:

Exception in thread "main" java.lang.ExceptionInInitializerError
at
crc.ieee1512import.xmlbeans.im.IMWrapper$Factory.newInstance(IMWrapper.java:
79)
at
crc.importtestclient.IEEE1512Client.createIMWrapper(IEEE1512Client.java:67)
at
crc.importtestclient.IEEE1512Client.runTest(IEEE1512Client.java:50)
at crc.importtestclient.ClientMain.main(ClientMain.java:39)
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
com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable
to load class with name
schemaorg_apache_xmlbeans.system.s3F178E0A50CC587BC745803A994CE78D.TypeSyste
mHolder. Make sure the generated binary files are on the classpath.
at
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:781)
at
crc.ieee1512import.xmlbeans.im.IMWrapper.(IMWrapper.java:18)
... 9 more
Caused by: java.lang.ClassNotFoundException:
schemaorg_apache_xmlbeans.system.s3F178E0A50CC587BC745803A994CE78D.TypeSyste
mHolder
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:767)
... 10 more

I have verified that the generated 'resources' directory is in my classpath.
I have also verified that there exists a subdirectory of it named
schemaorg_apache_xmlbeans/system/s3F178E0A50CC587BC745803A994CE78D. However,
there is no TypeSystemHolder class in that directory (although there are a
bunch of .xsb files in it).

I am rather flummoxed as to what to do. Has anybody seen this before?

Derek



-
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: WSDD reference or examples

2006-07-20 Thread Ted Jones



Here is an example of wsdd for what you 
describe:
 
http://xml.apache.org/axis/wsdd/" 
    
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"    
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance">               
  

 
  


From: Andrew Morrison 
[mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 
7:11 AMTo: axis-user@ws.apache.orgSubject: WSDD reference 
or examples


Hi,
 
Can anyone point me to a reference 
for creating a *.wsdd?
 
I am trying to create a WSDD for a 
Message style web service. 
The intention is that the Axis 
generated WSDL will specify a user-defined XML schema (wsdlInputSchema) 
and assert that the input and output for the web service should be an XML 
document as defined by the schema.
 
If anyone knows where I could see an 
example that would be great – I am finding snippets of info on the web, but am 
having difficulty finding a detailed listing of the options 
etc.
 
All the 
best,
Andrew.
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.



Object reference not set to an instance of an object

2006-07-20 Thread Dale Herrig



Hi,
 
I have a consumer 
that is accessing another producers web service, the producer gets my request 
fine and then sends a response, however I am getting the following. Does anybody 
know what might be causing this.
 
org.apache.axis2.AxisFault: Server was unable to 
process request. ---> Object reference not set to an instance of an 
object.    at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)    
at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)    
at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)
 
 
Thanks for any 
help
 
Dale


[AXIS2] userguide Writing Web Service Clients using Code Generation with Data Binding Support

2006-07-20 Thread Fabien Couble



Hi all,
I have one question concerning the userguide and 
more precisely the part: 
Writing Web Service Clients using Code Generation with Data Binding 
Support
 
In fact, I did everything and more precisely, I deployed the service but 
now I have a problem with the client.
 
In fact, I copy paste the following client to invoke the service (like it 
is written in the userguide):
try {
 //Create the stub by passing the AXIS_HOME and target EPR.
 //We pass null to the AXIS_HOME and hence the stub will use the current directory as the AXIS_HOME 
 Axis2SampleDocLitPortTypeStub stub= new Axis2SampleDocLitPortTypeStub(null,
"http://localhost:8080/axis2/services/Axis2SampleDocLitPortType");
 //Create the request document to be sent.
 EchoStringParamDocument  reqDoc= EchoStringParamDocument.Factory.newInstance();
 reqDoc.setEchoStringParam("Axis2 Echo");
 //invokes the Web service.
 EchoStringReturnDocument resDoc=stub.echoString(reqDoc);
 System.out.println(resDoc.getEchoStringReturn());

} catch (Exception e) {
e.printStackTrace();
} The problem is that this code above is wrong or maybe I have missed something. I mean the echoString cannot take a EchoStringParamDocument  parameter. It is a EchoStringParam which is convenient. How can I translate a EchoStringParamDocument  parameter to EchoStringParam?Thx for your responsesFabien 

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



Re: [Axis2]Module not found

2006-07-20 Thread Martin Gainty




Jiang-
Is axis.jar is on your 
CLASSPATH??M-
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  zhu jiang 
  
  To: axis-user@ws.apache.org 
  Sent: Wednesday, July 19, 2006 11:49 
  PM
  Subject: [Axis2]Module not found
  
  Hi All,
   
      When I run the sample of EchoBlockingDualClient, I 
  receive that:
    org.apache.axis2.AxisFault: Module 
  not found
      What should I do?
   
  Thanks,
  Jiang


[AXIS2] userguide Writing Web Service Clients using Code Generation with Data Binding Support

2006-07-20 Thread Fabien Couble



Hi all,
I have one question concerning the userguide and 
more precisely the part: 
Writing Web Service Clients using Code Generation with Data Binding 
Support
 
In fact, I did everything and more precisely, I deployed the service but 
now I have a problem with the client.
 
In fact, I copy paste the following client to invoke the service (like it 
is written in the userguide):
try {
 //Create the stub by passing the AXIS_HOME and target EPR.
 //We pass null to the AXIS_HOME and hence the stub will use the current directory as the AXIS_HOME 
 Axis2SampleDocLitPortTypeStub stub= new Axis2SampleDocLitPortTypeStub(null,
"http://localhost:8080/axis2/services/Axis2SampleDocLitPortType");
 //Create the request document to be sent.
 EchoStringParamDocument  reqDoc= EchoStringParamDocument.Factory.newInstance();
 reqDoc.setEchoStringParam("Axis2 Echo");
 //invokes the Web service.
 EchoStringReturnDocument resDoc=stub.echoString(reqDoc);
 System.out.println(resDoc.getEchoStringReturn());

} catch (Exception e) {
e.printStackTrace();
} The problem is that this code above is wrong or maybe I have missed something. I mean the echoString cannot take a EchoStringParamDocument  parameter. It is a EchoStringParam which is convenient. How can I translate a EchoStringParamDocument  parameter to EchoStringParam?Thx for your responsesFabien 

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



Re: WSDD reference or examples

2006-07-20 Thread Martin Gainty



Good Morning Andrew-
AdminClient can create it with -lEndpoint 
option OR if you want to automateyou can execute create-wsdd ant 
targetImplementation details are available at 
http://bioinfo.mpiz-koeln.mpg.de/araws/documentation/help/jmoby-step-by-step/deploy-on-tomcat
Be sure to make a backup of server-config.wsdd 
beforehand!
 
Viel Gluck,Martin --
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed.  If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy.  Thank you.
 
 

  - Original Message - 
  From: 
  Andrew Morrison 
  To: axis-user@ws.apache.org 
  Sent: Thursday, July 20, 2006 8:11 
  AM
  Subject: WSDD reference or examples
  
  
  Hi,
   
  Can anyone point me to a reference 
  for creating a *.wsdd?
   
  I am trying to create a WSDD for a 
  Message style web service. 
  The intention is that the Axis 
  generated WSDL will specify a user-defined XML schema (wsdlInputSchema) and assert that the input and 
  output for the web service should be an XML document as defined by the 
  schema.
   
  If anyone knows where I could see 
  an example that would be great – I am finding snippets of info on the web, but 
  am having difficulty finding a detailed listing of the options 
  etc.
   
  All the 
  best,
  Andrew.
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.



[Axis2] log4j configuration issue

2006-07-20 Thread Michele Mazzucco
Hi all,

where should I put the log4j.properties file into my axis2 web service?
And how do I locate it?


Thanks in advance,
Michele

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



[Axis2 v1.0] Deployment Engine BUG?

2006-07-20 Thread Angel Cholchev

Hi
I have questions on the implementation of DeploymentEngine.buidModule()
The method takes a AxisConfiguration as a parameter, but in its 
implementation uses the private member AxisConfiguration of the 
DeploymentEngine.
Since the only way to initialize the privet member is trough 
DeploymentEngine.populateAxisConfiguration() the .buildModule() method 
uses a reference
that points null. I can't understand the point of taking a 
AxisConfiguration and then using the privet member to build the module.
For those of the users,who for one or other reason try not to use 
axis2.xml a AxisConfiguration setter would be nice to have.



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



RE: Article on Intalio|BPMS Community site

2006-07-20 Thread Arnaud Blandin
Hi Robert,

The axis team has already reported the issue at:
http://issues.apache.org/jira/browse/WSCOMMONS-11?page=all
I am not sure why the bug is reported as minor though.

Thanks,

Arnaud 

> -Original Message-
> From: robert lazarski [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 19, 2006 9:56 PM
> To: axis-user@ws.apache.org
> Subject: Re: Article on Intalio|BPMS Community site
> 
> Is there a JIRA for this issue? If not, could you please file one?
> From the links src download,
> src/com/intalio/bpms/tools/webservices/email/Body_type1.java
> 
> // This is horrible, but the OM implementation of 
> getElementText() does not obey the proper contract.  
> Specifically, it does
> // does not advance the reader to the END_ELEMENT.  
> This bug is triggered by calls to getElementText() 
> unpredictably, e.g. it
> // happens with outer (document) elements, but not 
> with inner elements.  The root bug is in OMStAXWrapper.java, 
> which is now part
> // of commons and so cannot just be fixed in axis2.  
> This method should be removed and the calls to it below replaced with
> // simple calls to getElementText() as soon as this 
> serious bug can be fixed.
> 
> Thanks,
> Robert
> http://www.braziloutsource.com/
> 
> On 7/19/06, Arnaud Blandin <[EMAIL PROTECTED]> wrote:
> > Dear Axis users and developers,
> >
> > We have just released an article detailling how you can write a web 
> > service with Axis 2 to later embed it in a business process 
> defined in
> > Intalio|BPMS.
> > The article details the process of writing a webservice to send an 
> > email and how you can leverage the Axis2 Code Generator and 
> Service Archiver.
> > There is also a section presenting the Axis2 project.
> >
> > You can find the article at:
> > http://bpms.intalio.com/content/view/114/84/
> >
> > Can you please add it in your list of articles on the Axis2 page?
> >
> > Do not hesitate to contact me if you need more information 
> about the 
> > article or Intalio|BPMS.
> >
> > Cheers,
> >
> > Arnaud
> >
> > EMEA Manager
> > Intalio, The OpenSource BPMS Company
> > www.intalio.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]
> 
> 

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



Re: [Axis2] Importance of SwA (Need Your Feedback)

2006-07-20 Thread Thilina Gunarathne

Hi Thilina,

On 7/19/06, Ben Malek, Hamid <[EMAIL PROTECTED]> wrote:


I certainly will be happy to help you guys with this if you need to.

Thanks a lot. You are always welcome to join.




[Hamid]: Thilina, I know very well what the MTOM specification is saying,
and I agree with you that MTOM is a particular case of SwA, but the converse
is not true. And that is where the problem is (for example, a
mutipart/related MimeMessage is a very good example of an SwA message that
is not an MTOM message). MTOM does not only differ from SwA by the use of
XOP or not (the way the Mime Headers are written down on the wire is not the
same when the message is SwA versus MTOM message. For example, the value of
the Content-Type Mime Header is not the same for a MimeMessage versus an
MTOM message). ebXML processors as well as many other SwA processors expect
a MimeMessage format on the wire, not an MTOM format. If you read the spec
of ebms-2 for example, you will see the mime format well specified in the
spec, and the MSH processor will throw a fault if the mime headers are not
consistent with the spec. This is not about parsing (SAAJ and other parsers
may be able to parse both format).

 Axis2 supports receiving of SwA  messages which are not MTOM. I
agree that there are limitations like not supporting content location
based addressing of MIME parts(supports content-id based addressing
only).




[Thilina]: We can always come up with a separate API, as I have mentioned in
my reply to your earlier mail. May be you can start working on it as Dims
suggested:).



[Hamid]: I don't know if that is a good idea to have two different APIs. I
know that you believe that Axiom should stay an XML infoset, but I don't
believe like you that it will break the goal of Axiom to add functionality
to the Axiom API to allow MimeMessage format on the wire when serialized.
Since everything that circulates inside Axis2 is from the Axiom Object
Model, I think it would better to just add the functionality to the Axiom
API itself. For example, when you call the method
ServiceClient.sendReceive(OMElement elem), you want this API to work
correctly regardless of whether you specify MTOM format or MimeMessage
format.

OMElement as in  ServiceClient.sendReceive(OMElement elem) represents
the XML payload which goes inside the SOAP body. IMHO SwA attachments
belong to the SOAP message level. They do not belong to the SOAP
envelope or the XML payload, since they do not have defined
relationship to the XML payload. According to what I understand
MessageContext is the Axis2 entity which contains the SOAP message
level information. I believe SwA attachments should be put in to
MsgContext. I do not see any justifiable placeholder  for SwA type
attachments in XML representation of the payload.
This is just how I feel:).


[Thilina]: BTW try to convince the the ebms guys to use MTOM. SwA is just a
submission to W3C. AFAIK it never came out of W3C as a spec. IMHO SwA is
fast out dating.



[Hamid]: I indeed suggested to ebMS-3 TC to support MTOM in the core spec
(as an addition to SwA), and I presented all the positive arguments, but the
TC decided to do this in the second part of the spec and not in the first
part. It is not that simple to just ignore SwA and replace it with MTOM. SwA
is well alive and has a big deployment. Whether it is out-dated or not does
not change anything in the matter. For example, we all say that Cobol is
dead but the reality is that 70% of the transactions are done in Cobol. We
have designed the ebMS-3 spec very differently from the ebms-2 spec (for
very good reasons), and one of the feedback we got when our spec was in
public review was the "backward compatibility" issue. Big companies such as
TMobile (which has thousands of deployed software) were not very happy to
know that ebMS-3 SOAP headers were not the same thing as those of ebMS-2.
Below is an extract of TMobile feedback:



 Extract of TMobile
feedback ===

   From Gait Boxman (TIE) :


 This is a major change and will certainly mean that we can no longer reuse
a lot of the coding done for ebMS2. It will also mean a serious migration
problem. I hope you didn't rule out SwA use, because the last thing I want
to do is to push data through an XML parser that doesn't need to do anything
with it. The separation of control data from the payload as a *very good
thing*, and should be kept. IMO, the ebMS handler should not touch payloads
ever. If I pass it a zipped executable or PDF on one side, it should come
out on the other side bitwise identical. While I'm sure it's possible to do
this by embedding the info inside XML after some wrapping and encoding, I
don't want to push that data through the XML parser in the SOAP handler, if
only to ensure it doesn't stall.

 End of feedback
===

Just to add my two cents, In Axis2 we don't parse a

Re: thread-safe problems with Rampart

2006-07-20 Thread Ruchith Fernando

Hi Roy,

We found a rampart-1.0 thead safety problem sometime back. This is
fixed in the latest SVN and you can try the latest nightly releases.

If you are tryign the latest nightly rampart-SNAPSHOT[1] then you also
need the latest wss4j-SNAPSHOT.jar[2] and the axis2-rahas-SNAPSHOT[3]
along with the latest axis2 nightly distros[4].

Thanks,
Ruchith

[1] http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar
[2] http://people.apache.org/repository/wss4j/jars/wss4j-SNAPSHOT.jar
[3] http://people.apache.org/repository/axis2/jars/axis2-rahas-SNAPSHOT.jar
[4] http://people.apache.org/dist/axis2/nightly/


On 7/20/06, Reshef Roy <[EMAIL PROTECTED]> wrote:


Hi Ruchith,

I have an Axis2 client webapp which determines which
Axis2 Services it should call (according to own
"capabilities" mechanisms) and then spawns threads,
each one calling an Axis2 Service synchronously using
ServiceClient.sendReceive().
Problem is, that sometimes 2 or more services are
located on the same Axis2 server (actually, within the
same ServiceGroup), then - usually the first time I
have to invoke the services since the start of Tomcat
(but sometimes also other times), one service fails,
sometimes more than one. The failure is always on the
Server side.

My security configuration is either "TimeStamp
Signature" (1) or "Timestamp Signatrure Encrypt" (2),
according to the user's request (encryption yes/ no);
of course, the client side and the server side are
using the same security configuration. When I invoke I
invoke either only services of type (1), or of type
(2).
I am sure it is a thread-safe issue, as if I invoke my
services syncronously (by calling Thread.run() myself
i.s.o Thread.start()) I have no problem whatsoever.

I saw a mail on this issue, or a similar one; but i'm
not sure if it was about the client side or the server
side. Is there a new version of Rampart which I can
download and try out?

Hereunder you have 2 stack-traces:
NullPointerExceptions at different methods of
WSDoAllReceiver. The second one (II) happens only with

"Timestamp Signatrure Encrypt" (2), the first one
happens with both configurations.

I

2006-07-20 13:37:12,796 [http-8080-3] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[AxisServlet]
 - Servlet.service() for servlet AxisServlet threw
exception
java.lang.NullPointerException
at
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:195)
at
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
at
org.apache.axis2.engine.Phase.invoke(Phase.java:381)
at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
at java.lang.Thread.run(Thread.java:595)
2006-07-20 13:37:12,968 [http-8080-3] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[jsp]
 - Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at
org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:70)
at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:92)
at
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:76)
at
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:197)
at
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:249)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
at
org.apache.jasper.compiler.Compiler.compile(

Re: [Axis2 v1.0] send file with security

2006-07-20 Thread Ruchith Fernando

Hi Wan,

Can you also change
true
to
false

in both axis2.xml s (client and server) and try again.

And if this fails please send what you see in tcpmon and the exception.

Thanks,
Ruchith

On 7/20/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

Thank you Ruchith,

   I have made change as your advice. However, i still got the same
error...

   Any other possibility?

   Best regards,

Wan


>From: "Ruchith Fernando" <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2 v1.0] send file with security
>Date: Thu, 20 Jul 2006 16:09:23 +0530
>
>Yes from your services.xml and the client's axis2.xml
>
>Thanks,
>Ruchith
>
>On 7/20/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>>Dear Ruchith,
>>
>>you means
>>remove :
>>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue
>>
>> from my services.xml right? or other place?
>>
>> Wan
>>
>> >
>> >Hi Wan,
>> >
>> >Please remove :
>> 
>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue
>> >
>> >entry from your rampart configuration parameters and try again.
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >On 7/20/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>> >>Dear All,
>> >>
>> >>I have been trying to combine the test about sending file and
>> >>securing message.
>> >>My environment is Axis2 v1.0, nightly build released 4 June 06
>>on
>> >>the
>> >>Jetty Servlet.
>> >>
>> >>From other individual test such as sending text file, and
>>security
>> >>sample had no problem on this, however with the combination one i got
>>the
>> >>following error.
>> >>
>> >>Client code:
>> >>
>> >>/*
>> >>* Created on 19.07.2006
>> >>*
>> >>* TODO To change the template for this generated file go to
>> >>* Window - Preferences - Java - Code Style - Code Templates
>> >>*/
>> >>package security;
>> >>
>> >>/**
>> >>* @author alice3
>> >>*
>> >>* TODO To change the template for this generated type comment go to
>> >>* Window - Preferences - Java - Code Style - Code Templates
>> >>*/
>> >>
>> >>import org.apache.axiom.om.OMAbstractFactory;
>> >>import org.apache.axiom.om.OMElement;
>> >>import org.apache.axiom.om.OMFactory;
>> >>import org.apache.axiom.om.OMNamespace;
>> >>import org.apache.axiom.om.OMText;
>> >>import org.apache.axis2.AxisFault;
>> >>import org.apache.axis2.Constants;
>> >>import org.apache.axis2.addressing.EndpointReference;
>> >>import org.apache.axis2.client.Options;
>> >>import org.apache.axis2.client.ServiceClient;
>> >>import org.apache.axis2.context.ConfigurationContext;
>> >>import org.apache.axis2.context.ConfigurationContextFactory;
>> >>
>> >>//import org.apache.axis2.soapmonitor.*;
>> >>
>> >>import javax.activation.DataHandler;
>> >>import javax.activation.FileDataSource;
>> >>import javax.xml.namespace.QName;
>> >>import javax.xml.stream.XMLOutputFactory;
>> >>import javax.xml.stream.XMLStreamException;
>> >>
>> >>import java.io.File;
>> >>import java.io.StringWriter;
>> >>
>> >>
>> >>public class SecureClient {
>> >>
>> >> private File inputFile = null;
>> >>
>> >> private QName operationName = new QName("fileSecurity");
>> >>
>> >> public static void main(String[] args) {
>> >>
>> >> try {
>> >>
>> >> // Get the repository location from the args
>> >> String repo = args[0];
>> >> String port = args[1];
>> >>
>> >> OMElement payload =
>> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> >> ConfigurationContext configContext =
>> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>> >>null);
>> >> ServiceClient serviceClient = new
>> >>ServiceClient(configContext,
>> >>null);
>> >> Options options = new Options();
>> >> options.setTo(new EndpointReference("http://127.0.0.1:"; +
>> >>port +
>> >>"/axis2/services/FileSecurity"));
>> >> //options.setTo(new
>> 
>>EndpointReference("http://localhost:8080/axis2_new/services/SecureService";));
>> >> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >> options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> >>Constants.VALUE_TRUE);
>> >> options.setAction("urn:fileSecurity");
>> >> serviceClient.setOptions(options);
>> >>
>> >> //Blocking invocation
>> >> OMElement result = serviceClient.sendReceive(payload);
>> >>
>> >> StringWriter writer = new StringWriter();
>> >> result.serialize(XMLOutputFactory.newInstance()
>> >> .createXMLStreamWriter(writer));
>> >> writer.flush();
>> >>
>> >>
>> >>
>> >>//System.out.println("Response: " + writer.toString());
>> >>
>> >> System.out.println("SecureService Invocation successful
>> >>:-)");
>> >> } catch (AxisFault axisFault) {
>> >> axisFault.printStackTrace();
>> >> } catch (XMLStreamException e) {
>> >

thread-safe problems with Rampart

2006-07-20 Thread Reshef Roy

Hi Ruchith,

I have an Axis2 client webapp which determines which
Axis2 Services it should call (according to own
"capabilities" mechanisms) and then spawns threads,
each one calling an Axis2 Service synchronously using
ServiceClient.sendReceive().
Problem is, that sometimes 2 or more services are
located on the same Axis2 server (actually, within the
same ServiceGroup), then - usually the first time I
have to invoke the services since the start of Tomcat
(but sometimes also other times), one service fails,
sometimes more than one. The failure is always on the
Server side.

My security configuration is either "TimeStamp
Signature" (1) or "Timestamp Signatrure Encrypt" (2),
according to the user's request (encryption yes/ no);
of course, the client side and the server side are
using the same security configuration. When I invoke I
invoke either only services of type (1), or of type
(2).
I am sure it is a thread-safe issue, as if I invoke my
services syncronously (by calling Thread.run() myself
i.s.o Thread.start()) I have no problem whatsoever.

I saw a mail on this issue, or a similar one; but i'm
not sure if it was about the client side or the server
side. Is there a new version of Rampart which I can
download and try out?

Hereunder you have 2 stack-traces:
NullPointerExceptions at different methods of
WSDoAllReceiver. The second one (II) happens only with

"Timestamp Signatrure Encrypt" (2), the first one
happens with both configurations.

I

2006-07-20 13:37:12,796 [http-8080-3] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[AxisServlet]
 - Servlet.service() for servlet AxisServlet threw
exception
java.lang.NullPointerException
at
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:195)
at
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
at
org.apache.axis2.engine.Phase.invoke(Phase.java:381)
at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
at java.lang.Thread.run(Thread.java:595)
2006-07-20 13:37:12,968 [http-8080-3] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[jsp]
 - Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at
org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:70)
at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:92)
at
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:76)
at
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:197)
at
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:249)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte

WSDD reference or examples

2006-07-20 Thread Andrew Morrison








Hi,

 

Can anyone point me to a reference for creating a
*.wsdd?

 

I am trying to create a WSDD for a Message style web
service. 

The intention is that the Axis generated WSDL will
specify a user-defined XML schema (wsdlInputSchema) and
assert that the input and output for the web service should be an XML document
as defined by the schema.

 

If anyone knows where I could see an example that
would be great – I am finding snippets of info on the web, but am having
difficulty finding a detailed listing of the options etc.

 

All the best,

Andrew.





The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.





Re: [Axis2] Importance of SwA (Need Your Feedback)

2006-07-20 Thread Paul Fremantle

Couldn't we add a flag to MTOM attachments OMText which simply says
don't include the XOP. In other words, you create a standard MTOM
attachment but there is no reference in the XML.

Paul

On 7/20/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

Sanjiva,

We handle recieving SwA attachments. We don't have support for sending them.

-- dims

On 7/20/06, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote:
> On Thu, 2006-07-20 at 05:14 +0600, Thilina Gunarathne wrote:
> > Agreed. We need to do something to serialize the NON-MTOM attachments
> > in the MsgContxt attachments object.
>
> I thought we did this .. Dims, didn't u put some stuff to store an
> unreferenced attachment in the MC??
>
> Sanjiva.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Re: [Axis2 v1.0] send file with security

2006-07-20 Thread Wan Kaveevivitchai

Thank you Ruchith,

  I have made change as your advice. However, i still got the same 
error...


  Any other possibility?

  Best regards,

   Wan



From: "Ruchith Fernando" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2 v1.0] send file with security
Date: Thu, 20 Jul 2006 16:09:23 +0530

Yes from your services.xml and the client's axis2.xml

Thanks,
Ruchith

On 7/20/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

Dear Ruchith,

   you means
remove :
//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue

from my services.xml right? or other place?

Wan

>
>Hi Wan,
>
>Please remove :
>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue
>
>entry from your rampart configuration parameters and try again.
>
>Thanks,
>Ruchith
>
>On 7/20/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>>Dear All,
>>
>>I have been trying to combine the test about sending file and
>>securing message.
>>My environment is Axis2 v1.0, nightly build released 4 June 06 
on

>>the
>>Jetty Servlet.
>>
>>From other individual test such as sending text file, and 
security
>>sample had no problem on this, however with the combination one i got 
the

>>following error.
>>
>>Client code:
>>
>>/*
>>* Created on 19.07.2006
>>*
>>* TODO To change the template for this generated file go to
>>* Window - Preferences - Java - Code Style - Code Templates
>>*/
>>package security;
>>
>>/**
>>* @author alice3
>>*
>>* TODO To change the template for this generated type comment go to
>>* Window - Preferences - Java - Code Style - Code Templates
>>*/
>>
>>import org.apache.axiom.om.OMAbstractFactory;
>>import org.apache.axiom.om.OMElement;
>>import org.apache.axiom.om.OMFactory;
>>import org.apache.axiom.om.OMNamespace;
>>import org.apache.axiom.om.OMText;
>>import org.apache.axis2.AxisFault;
>>import org.apache.axis2.Constants;
>>import org.apache.axis2.addressing.EndpointReference;
>>import org.apache.axis2.client.Options;
>>import org.apache.axis2.client.ServiceClient;
>>import org.apache.axis2.context.ConfigurationContext;
>>import org.apache.axis2.context.ConfigurationContextFactory;
>>
>>//import org.apache.axis2.soapmonitor.*;
>>
>>import javax.activation.DataHandler;
>>import javax.activation.FileDataSource;
>>import javax.xml.namespace.QName;
>>import javax.xml.stream.XMLOutputFactory;
>>import javax.xml.stream.XMLStreamException;
>>
>>import java.io.File;
>>import java.io.StringWriter;
>>
>>
>>public class SecureClient {
>>
>> private File inputFile = null;
>>
>> private QName operationName = new QName("fileSecurity");
>>
>> public static void main(String[] args) {
>>
>> try {
>>
>> // Get the repository location from the args
>> String repo = args[0];
>> String port = args[1];
>>
>> OMElement payload =
>>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> ConfigurationContext configContext =
>>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>>null);
>> ServiceClient serviceClient = new
>>ServiceClient(configContext,
>>null);
>> Options options = new Options();
>> options.setTo(new EndpointReference("http://127.0.0.1:"; +
>>port +
>>"/axis2/services/FileSecurity"));
>> //options.setTo(new
>>EndpointReference("http://localhost:8080/axis2_new/services/SecureService";));
>> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> options.setProperty(Constants.Configuration.ENABLE_MTOM,
>>Constants.VALUE_TRUE);
>> options.setAction("urn:fileSecurity");
>> serviceClient.setOptions(options);
>>
>> //Blocking invocation
>> OMElement result = serviceClient.sendReceive(payload);
>>
>> StringWriter writer = new StringWriter();
>> result.serialize(XMLOutputFactory.newInstance()
>> .createXMLStreamWriter(writer));
>> writer.flush();
>>
>>
>>
>>//System.out.println("Response: " + writer.toString());
>>
>> System.out.println("SecureService Invocation successful
>>:-)");
>> } catch (AxisFault axisFault) {
>> axisFault.printStackTrace();
>> } catch (XMLStreamException e) {
>> e.printStackTrace();
>> }
>> }
>>
>>
>> private static OMElement getEchoElement(String fileName) {
>>
>>
>> DataHandler dh;
>>
>> OMFactory fac = OMAbstractFactory.getOMFactory();
>> OMNamespace omNs =
>>fac.createOMNamespace("http://ws.apache.org/axis2/xsd";, "example1");
>>
>> OMElement data = fac.createOMElement("fileSecurity", omNs);
>> OMElement input = fac.createOMElement("file", omNs);
>> OMElement pack = fac.createOMElement("pack", omNs);
>>
>> FileDataSource f1 = new FileDataSource(fileName);
>> dh = new DataHand

Re: [Axis2 v1.0] send file with security

2006-07-20 Thread Ruchith Fernando

Yes from your services.xml and the client's axis2.xml

Thanks,
Ruchith

On 7/20/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

Dear Ruchith,

   you means
remove :
//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue

from my services.xml right? or other place?

Wan

>
>Hi Wan,
>
>Please remove :
>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue
>
>entry from your rampart configuration parameters and try again.
>
>Thanks,
>Ruchith
>
>On 7/20/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:
>>Dear All,
>>
>>I have been trying to combine the test about sending file and
>>securing message.
>>My environment is Axis2 v1.0, nightly build released 4 June 06 on
>>the
>>Jetty Servlet.
>>
>>From other individual test such as sending text file, and security
>>sample had no problem on this, however with the combination one i got the
>>following error.
>>
>>Client code:
>>
>>/*
>>* Created on 19.07.2006
>>*
>>* TODO To change the template for this generated file go to
>>* Window - Preferences - Java - Code Style - Code Templates
>>*/
>>package security;
>>
>>/**
>>* @author alice3
>>*
>>* TODO To change the template for this generated type comment go to
>>* Window - Preferences - Java - Code Style - Code Templates
>>*/
>>
>>import org.apache.axiom.om.OMAbstractFactory;
>>import org.apache.axiom.om.OMElement;
>>import org.apache.axiom.om.OMFactory;
>>import org.apache.axiom.om.OMNamespace;
>>import org.apache.axiom.om.OMText;
>>import org.apache.axis2.AxisFault;
>>import org.apache.axis2.Constants;
>>import org.apache.axis2.addressing.EndpointReference;
>>import org.apache.axis2.client.Options;
>>import org.apache.axis2.client.ServiceClient;
>>import org.apache.axis2.context.ConfigurationContext;
>>import org.apache.axis2.context.ConfigurationContextFactory;
>>
>>//import org.apache.axis2.soapmonitor.*;
>>
>>import javax.activation.DataHandler;
>>import javax.activation.FileDataSource;
>>import javax.xml.namespace.QName;
>>import javax.xml.stream.XMLOutputFactory;
>>import javax.xml.stream.XMLStreamException;
>>
>>import java.io.File;
>>import java.io.StringWriter;
>>
>>
>>public class SecureClient {
>>
>> private File inputFile = null;
>>
>> private QName operationName = new QName("fileSecurity");
>>
>> public static void main(String[] args) {
>>
>> try {
>>
>> // Get the repository location from the args
>> String repo = args[0];
>> String port = args[1];
>>
>> OMElement payload =
>>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
>> ConfigurationContext configContext =
>>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
>>null);
>> ServiceClient serviceClient = new
>>ServiceClient(configContext,
>>null);
>> Options options = new Options();
>> options.setTo(new EndpointReference("http://127.0.0.1:"; +
>>port +
>>"/axis2/services/FileSecurity"));
>> //options.setTo(new
>>EndpointReference("http://localhost:8080/axis2_new/services/SecureService";));
>> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> options.setProperty(Constants.Configuration.ENABLE_MTOM,
>>Constants.VALUE_TRUE);
>> options.setAction("urn:fileSecurity");
>> serviceClient.setOptions(options);
>>
>> //Blocking invocation
>> OMElement result = serviceClient.sendReceive(payload);
>>
>> StringWriter writer = new StringWriter();
>> result.serialize(XMLOutputFactory.newInstance()
>> .createXMLStreamWriter(writer));
>> writer.flush();
>>
>>
>>
>>//System.out.println("Response: " + writer.toString());
>>
>> System.out.println("SecureService Invocation successful
>>:-)");
>> } catch (AxisFault axisFault) {
>> axisFault.printStackTrace();
>> } catch (XMLStreamException e) {
>> e.printStackTrace();
>> }
>> }
>>
>>
>> private static OMElement getEchoElement(String fileName) {
>>
>>
>> DataHandler dh;
>>
>> OMFactory fac = OMAbstractFactory.getOMFactory();
>> OMNamespace omNs =
>>fac.createOMNamespace("http://ws.apache.org/axis2/xsd";, "example1");
>>
>> OMElement data = fac.createOMElement("fileSecurity", omNs);
>> OMElement input = fac.createOMElement("file", omNs);
>> OMElement pack = fac.createOMElement("pack", omNs);
>>
>> FileDataSource f1 = new FileDataSource(fileName);
>> dh = new DataHandler(f1);
>>
>> OMElement filename = fac.createOMElement("fileName", omNs);
>>// OMText textName = fac.createOMText(filename, "myFile.txt");
>>
>> OMText textData = fac.createOMText(dh, true);
>>
>> input.addChild(textData);
>>
>> pack.addChild(filename);
>> pack.addChild(input);
>> data.addChild(pack);
>>
>>

Re: [Axis2] Yet another security/rampart question

2006-07-20 Thread Ruchith Fernando

Hi,

Yes !! This is possible..
In this case the  value has to be "useReqSigCert"
And the client must send a signed request to the service to pick the
cert to encrypt with.

thanks,
Ruchith

On 7/20/06, Jan Bauer Nielsen <[EMAIL PROTECTED]> wrote:

Hi.

I'm still a novice concerning ws-security but I have been studying the
security sample from the axis2 distribution and I think I have a fair
understanding of how it works.

But now I am considering a use case where a number of clients each has
its ows certificate. This excludes me from using  in the
server side services.xml.

So is it possible to set this dynamically from the service class to get
the response encrypted with the public key of the current client and how
would I go about doing it?

Kind regards,
--
Jan Bauer Nielsen
Center of Knowledge Technology, Technical Knowledge Center of Denmark
Anker Engelunds Vej 1, Postboks 777, 2800 Kongens Lyngby, Denmark
Direct: (+45) 4525 7221, [EMAIL PROTECTED]

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





--
www.ruchith.org

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



Re: [Axis2] Importance of SwA (Need Your Feedback)

2006-07-20 Thread Davanum Srinivas

Sanjiva,

We handle recieving SwA attachments. We don't have support for sending them.

-- dims

On 7/20/06, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote:

On Thu, 2006-07-20 at 05:14 +0600, Thilina Gunarathne wrote:
> Agreed. We need to do something to serialize the NON-MTOM attachments
> in the MsgContxt attachments object.

I thought we did this .. Dims, didn't u put some stuff to store an
unreferenced attachment in the MC??

Sanjiva.


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





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

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



Can't generate SOAP Envelope, "org.xml.sax.SAXParseException: Premature end of file"

2006-07-20 Thread xu cai
Hi All , I run a simple test class to access my webservice deployed on axis 1.2.1 (Built on Jun 14, 2005 (09:15:57 EDT). and got an exception.
The truth is soap msg can't be generated and an SAX xml exception is thrown. Could anyone tell me what happened ? and how to fix that ?
 
many thanks.
 
 
the src code SoapPart.java looks as:
    dser.getEnvelope().setOwnerDocument(this);    // This may throw a SAXException    try {    dser.parse();  // exception     } catch (SAXException e) {    Exception real = 
e.getException();    if (real == null)    real = e;    throw AxisFault.makeFault(real);    }
Exception msg: 

AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:  faultString: org.xml.sax.SAXParseException
: Premature end of file. faultActor:  faultNode:  faultDetail:     {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException
: Premature end of file.    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)    at 
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion
(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XMLParser.parse
(Unknown Source)    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)    at javax.xml.parsers.SAXParser.parse
(SAXParser.java:375)    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)    at org.apache.axis.Message.getSOAPEnvelope
(Message.java:424)    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)    at org.apache.axis.client.Call.invokeEngine
(Call.java:2765)    at org.apache.axis.client.Call.invoke(Call.java:2748)    at org.apache.axis.client.Call.invoke(Call.java:2424)    at org.apache.axis.client.Call.invoke(Call.java:2347)    at 
org.apache.axis.client.Call.invoke(Call.java:1804)    at com.sswitch.oam.soap.intf.Bts10200SoapBindingStub.request(Bts10200SoapBindingStub.java:297)    at com.sswitch.oam.soap.test.SimpleTest.main(SimpleTest.java
:22)
    {http://xml.apache.org/axis/}hostname:sha-view1.cisco.com
org.xml.sax.SAXParseException: Premature end of file.    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)    at org.apache.axis.Message.getSOAPEnvelope
(Message.java:424)    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)    at org.apache.axis.client.Call.invokeEngine
(Call.java:2765)    at org.apache.axis.client.Call.invoke(Call.java:2748)    at org.apache.axis.client.Call.invoke(Call.java:2424)    at org.apache.axis.client.Call.invoke(Call.java:2347)    at 
org.apache.axis.client.Call.invoke(Call.java:1804)    at com.sswitch.oam.soap.intf.Bts10200SoapBindingStub.request(Bts10200SoapBindingStub.java:297)    at com.sswitch.oam.soap.test.SimpleTest.main(SimpleTest.java
:22)Caused by: org.xml.sax.SAXParseException: Premature end of file.    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError
(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion
(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XMLParser.parse
(Unknown Source)    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)    at javax.xml.parsers.SAXParser.parse
(SAXParser.java:375)    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)


Re: [Axis2 v1.0] send file with security

2006-07-20 Thread Wan Kaveevivitchai

Dear Ruchith,

  you means
remove :
//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue

   from my services.xml right? or other place?

   Wan



Hi Wan,

Please remove :
//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue

entry from your rampart configuration parameters and try again.

Thanks,
Ruchith

On 7/20/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

Dear All,

   I have been trying to combine the test about sending file and
securing message.
   My environment is Axis2 v1.0, nightly build released 4 June 06 on 
the

Jetty Servlet.

   From other individual test such as sending text file, and security
sample had no problem on this, however with the combination one i got the
following error.

   Client code:

/*
* Created on 19.07.2006
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package security;

/**
* @author alice3
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/

import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.OMText;
import org.apache.axis2.AxisFault;
import org.apache.axis2.Constants;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.client.ServiceClient;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.ConfigurationContextFactory;

//import org.apache.axis2.soapmonitor.*;

import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;

import java.io.File;
import java.io.StringWriter;


public class SecureClient {

private File inputFile = null;

private QName operationName = new QName("fileSecurity");

public static void main(String[] args) {

try {

// Get the repository location from the args
String repo = args[0];
String port = args[1];

OMElement payload =
getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
null);
ServiceClient serviceClient = new 
ServiceClient(configContext,

null);
Options options = new Options();
options.setTo(new EndpointReference("http://127.0.0.1:"; + 
port +

"/axis2/services/FileSecurity"));
//options.setTo(new
EndpointReference("http://localhost:8080/axis2_new/services/SecureService";));
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
options.setProperty(Constants.Configuration.ENABLE_MTOM,
Constants.VALUE_TRUE);
options.setAction("urn:fileSecurity");
serviceClient.setOptions(options);

//Blocking invocation
OMElement result = serviceClient.sendReceive(payload);

StringWriter writer = new StringWriter();
result.serialize(XMLOutputFactory.newInstance()
.createXMLStreamWriter(writer));
writer.flush();



   //System.out.println("Response: " + writer.toString());

System.out.println("SecureService Invocation successful 
:-)");

} catch (AxisFault axisFault) {
axisFault.printStackTrace();
} catch (XMLStreamException e) {
e.printStackTrace();
}
}


private static OMElement getEchoElement(String fileName) {


DataHandler dh;

OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs =
fac.createOMNamespace("http://ws.apache.org/axis2/xsd";, "example1");

OMElement data = fac.createOMElement("fileSecurity", omNs);
OMElement input = fac.createOMElement("file", omNs);
OMElement pack = fac.createOMElement("pack", omNs);

FileDataSource f1 = new FileDataSource(fileName);
dh = new DataHandler(f1);

OMElement filename = fac.createOMElement("fileName", omNs);
   // OMText textName = fac.createOMText(filename, "myFile.txt");

OMText textData = fac.createOMText(dh, true);

input.addChild(textData);

pack.addChild(filename);
pack.addChild(input);
data.addChild(pack);

//System.out.println(data);

 return data;
}
}

server code:

public class fileS {

public OMElement fileSecurity(OMElement element) throws Exception
{
//System.out.println(element);

element.build();
element.detach();

Iterator children = element.getChildElements();

OMElement name = (OMElement)children.next();
//get name of

Re: [Axis2 v1.0] send file with security

2006-07-20 Thread Ruchith Fernando

Hi Wan,

Please remove :
//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue

entry from your rampart configuration parameters and try again.

Thanks,
Ruchith

On 7/20/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

Dear All,

   I have been trying to combine the test about sending file and
securing message.
   My environment is Axis2 v1.0, nightly build released 4 June 06 on the
Jetty Servlet.

   From other individual test such as sending text file, and security
sample had no problem on this, however with the combination one i got the
following error.

   Client code:

/*
* Created on 19.07.2006
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package security;

/**
* @author alice3
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/

import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.OMText;
import org.apache.axis2.AxisFault;
import org.apache.axis2.Constants;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.client.ServiceClient;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.ConfigurationContextFactory;

//import org.apache.axis2.soapmonitor.*;

import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;

import java.io.File;
import java.io.StringWriter;


public class SecureClient {

private File inputFile = null;

private QName operationName = new QName("fileSecurity");

public static void main(String[] args) {

try {

// Get the repository location from the args
String repo = args[0];
String port = args[1];

OMElement payload =
getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo,
null);
ServiceClient serviceClient = new ServiceClient(configContext,
null);
Options options = new Options();
options.setTo(new EndpointReference("http://127.0.0.1:"; + port +
"/axis2/services/FileSecurity"));
//options.setTo(new
EndpointReference("http://localhost:8080/axis2_new/services/SecureService";));
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
options.setProperty(Constants.Configuration.ENABLE_MTOM,
Constants.VALUE_TRUE);
options.setAction("urn:fileSecurity");
serviceClient.setOptions(options);

//Blocking invocation
OMElement result = serviceClient.sendReceive(payload);

StringWriter writer = new StringWriter();
result.serialize(XMLOutputFactory.newInstance()
.createXMLStreamWriter(writer));
writer.flush();



   //System.out.println("Response: " + writer.toString());

System.out.println("SecureService Invocation successful :-)");
} catch (AxisFault axisFault) {
axisFault.printStackTrace();
} catch (XMLStreamException e) {
e.printStackTrace();
}
}


private static OMElement getEchoElement(String fileName) {


DataHandler dh;

OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs =
fac.createOMNamespace("http://ws.apache.org/axis2/xsd";, "example1");

OMElement data = fac.createOMElement("fileSecurity", omNs);
OMElement input = fac.createOMElement("file", omNs);
OMElement pack = fac.createOMElement("pack", omNs);

FileDataSource f1 = new FileDataSource(fileName);
dh = new DataHandler(f1);

OMElement filename = fac.createOMElement("fileName", omNs);
   // OMText textName = fac.createOMText(filename, "myFile.txt");

OMText textData = fac.createOMText(dh, true);

input.addChild(textData);

pack.addChild(filename);
pack.addChild(input);
data.addChild(pack);

//System.out.println(data);

 return data;
}
}

server code:

public class fileS {

public OMElement fileSecurity(OMElement element) throws Exception
{
//System.out.println(element);

element.build();
element.detach();

Iterator children = element.getChildElements();

OMElement name = (OMElement)children.next();//get 
name of the file,
first element of element
OMElement content = (OMElement)children.next(); //get text 
that
contains the file, second element

 

Re: [Axis2]Module not found

2006-07-20 Thread Eran Chinthaka
zhu jiang wrote:
> Hi All,
>  
> When I run the sample of EchoBlockingDualClient, I receive that:
>   *org.apache.axis2.AxisFault: Module not found*
> **What should I do?

Did u read "Engaging Addressing in Client Side" in
http://ws.apache.org/axis2/1_0/userguide3.html.

-- Chinthaka



signature.asc
Description: OpenPGP digital signature


[Axis2 v1.0] send file with security

2006-07-20 Thread Wan Kaveevivitchai

Dear All,

  I have been trying to combine the test about sending file and 
securing message.
  My environment is Axis2 v1.0, nightly build released 4 June 06 on the 
Jetty Servlet.


  From other individual test such as sending text file, and security 
sample had no problem on this, however with the combination one i got the 
following error.


  Client code:

/*
* Created on 19.07.2006
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package security;

/**
* @author alice3
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/

import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.OMText;
import org.apache.axis2.AxisFault;
import org.apache.axis2.Constants;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.client.ServiceClient;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.ConfigurationContextFactory;

//import org.apache.axis2.soapmonitor.*;

import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;

import java.io.File;
import java.io.StringWriter;


public class SecureClient {

   private File inputFile = null;

   private QName operationName = new QName("fileSecurity");

   public static void main(String[] args) {

   try {

   // Get the repository location from the args
   String repo = args[0];
   String port = args[1];

   OMElement payload = 
getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt");
   ConfigurationContext configContext = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo, 
null);
   ServiceClient serviceClient = new ServiceClient(configContext, 
null);

   Options options = new Options();
   options.setTo(new EndpointReference("http://127.0.0.1:"; + port + 
"/axis2/services/FileSecurity"));
   //options.setTo(new 
EndpointReference("http://localhost:8080/axis2_new/services/SecureService";));

   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
   options.setProperty(Constants.Configuration.ENABLE_MTOM, 
Constants.VALUE_TRUE);

   options.setAction("urn:fileSecurity");
   serviceClient.setOptions(options);

   //Blocking invocation
   OMElement result = serviceClient.sendReceive(payload);

   StringWriter writer = new StringWriter();
   result.serialize(XMLOutputFactory.newInstance()
   .createXMLStreamWriter(writer));
   writer.flush();



  //System.out.println("Response: " + writer.toString());

   System.out.println("SecureService Invocation successful :-)");
   } catch (AxisFault axisFault) {
   axisFault.printStackTrace();
   } catch (XMLStreamException e) {
   e.printStackTrace();
   }
   }


   private static OMElement getEchoElement(String fileName) {


   DataHandler dh;

OMFactory fac = OMAbstractFactory.getOMFactory();
	OMNamespace omNs = 
fac.createOMNamespace("http://ws.apache.org/axis2/xsd";, "example1");


   OMElement data = fac.createOMElement("fileSecurity", omNs);
   OMElement input = fac.createOMElement("file", omNs);
OMElement pack = fac.createOMElement("pack", omNs);

FileDataSource f1 = new FileDataSource(fileName);
   dh = new DataHandler(f1);

   OMElement filename = fac.createOMElement("fileName", omNs);
  // OMText textName = fac.createOMText(filename, "myFile.txt");

   OMText textData = fac.createOMText(dh, true);

   input.addChild(textData);

   pack.addChild(filename);
   pack.addChild(input);
   data.addChild(pack);

   //System.out.println(data);

 return data;
   }
}

   server code:

public class fileS {

public OMElement fileSecurity(OMElement element) throws Exception
{
//System.out.println(element);

element.build();
element.detach();

Iterator children = element.getChildElements();

		OMElement name = (OMElement)children.next(); 		//get name of the file, 
first element of element
		OMElement content = (OMElement)children.next(); //get text that 
contains the file, second element


System.out.println("before creating OMText");
OMText fnode = (OMText)content.getFirstOMChild();
System.out.println("after creating OMText");
//  fnode.setOptimize(true);
//String fname = name.getText();

/

[Axis2] Service interface question

2006-07-20 Thread Michele Mazzucco
Hi all,

the method declared into the Service interface does not throw any
exception, while the usual implementation:

this.inMsgCtx =
opctx.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE)

does. Is it possible to remove the throws clause from the
OperationContext.getMessageContext() method (which is a simply look-up
from a HashMap and thus it will never throw any exception since the
HashMap allows both null keys and values)?


Michele

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



[Axis2]Module not found

2006-07-20 Thread zhu jiang


Hi All,
 
    When I run the sample of EchoBlockingDualClient, I receive that:
  org.apache.axis2.AxisFault: Module not found
    What should I do?
 
Thanks,

Jiang


[Axis2] Yet another security/rampart question

2006-07-20 Thread Jan Bauer Nielsen

Hi.

I'm still a novice concerning ws-security but I have been studying the 
security sample from the axis2 distribution and I think I have a fair 
understanding of how it works.


But now I am considering a use case where a number of clients each has 
its ows certificate. This excludes me from using  in the 
server side services.xml.


So is it possible to set this dynamically from the service class to get 
the response encrypted with the public key of the current client and how 
would I go about doing it?


Kind regards,
--
Jan Bauer Nielsen
Center of Knowledge Technology, Technical Knowledge Center of Denmark
Anker Engelunds Vej 1, Postboks 777, 2800 Kongens Lyngby, Denmark
Direct: (+45) 4525 7221, [EMAIL PROTECTED]

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



Re: Reporting bugs

2006-07-20 Thread Christian Pöcher

Derek schrieb:

This means that the next
person who does  hits the same problem, and MAYBE eventually resolves
it by searching the mailing list archive, or maybe just wanders off and
finds another SOAP server with a less user-hostile interface. 


Actually, I did. I wandered off to Axis 1 and found the error output of 
the old WSDL2Java more helpful, which eventually led me to those online 
validators.


-Chris

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



Re: [Repost][axis2] Error while invoking the service w ith SOAP1.2 messages

2006-07-20 Thread studium-sbr
Robert, thanks so far.
My comments inline.

> -Ursprüngliche Nachricht-
> Von: axis-user@ws.apache.org
> Gesendet: 19.07.06 19:35:03
> An: axis-user@ws.apache.org
> Betreff: Re: [Repost][axis2] Error while invoking the service with SOAP1.2 
> messages


> This isn't the area I typically work in, but since you've posted three
> times I'll try and help. I don't use soap 1.2 on anything. But perhaps
> we can try a few things and see where that gets us.
> 
> When you go to http://localhost:8080/axis2/ in the browser, does
> listServices show the LDAPQueryService  ?
Yes!
I'm also able to query the service with SOAP1.1 messages.

> 
> Have you tried looking at the soap 1.2 tests in the current svn,
> modules/integration/target/test-classes/SOAP12Testing ?
No. I'll check this this evening.

> 
> Have you tried an axis2 client and setting the soap action manually
> via Options.setAction() ? 
Yes.

> With an axis2 client, have you verified that
> the 1.2 SOAPFactory is being used via
> SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(soapVersionURI) ?
Yes. ServiceClient returns http://www.w3.org/2003/05/soap-envelope

> Look at the source of ServiceClient.getSOAPFactory , it may give you a
> clue.
I'll check this this evening.

> 
> To answer your: How does Axis-Engine determine which method to invoke?
> Its done by Relection, the implementation dependent on the
> MessageReceiver you use. Which one are you using? 
I've got my own MessageReceiver. It's build by code generation from WSDL and 
works fine with SOAP 1.1

>The general idea is:
> 
> AxisService --> set ServiceClass --> AxisOperation axisOp = new
> OutInAxisOperation(QName operationName) -->
> axisOp.setMessageReceiver(messageReceiver) -->
> AxisService.addOperation(axisOp)
> 
> From there, AbstractMessageReceiver loads your service class, and then
> goes thru its sub class implementation and reflects until it finds
> your method, then invokes it. Look at the source of your particular
> MessageReceiver defined in your services.xml for more info.
> 
> HTH,
> Robert
> http://www.braziloutsource.com/
> 
> On 7/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Sorry for this being the third Post, but I didn't get any replies.
> > Could someone please give me any hint what's going on.
> > How does Axis-Engine determine which method to invoke?
> > Which parameters are evaluated and what is the order?
> >
> > Thanks for your time
> >
> > Bille
> >
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED]
> > Gesendet: 03.07.06 02:07:07
> > An: axis-user@ws.apache.org
> > Betreff: [axis2] Error while invoking the service with SOAP1.2 messages
> >
> > Hi to the list,
> >
> > I have a service-implementation, that is a code-generated skeleton.
> > My client uses no stubs, just the plain AXIOM API.
> > The service works fine with SOAP1.1 but if the Client switches to SOAP1.2 I 
> > get an AxisFault: Operation Not found EPR is 
> > http://localhost:8080/axis2/services/LDAPQueryService and WSA Action = null
> >
> > There was a similar post to this symptoms a few weeks ago which ended in 
> > the hint to use Axis2 1.0 
> > [http://marc.theaimsgroup.com/?l=axis-user&m=114716535915463&w=2=]
> > I use Axis2 1.0 - nightly build of 07.06.2006
> > Below is the working SOAP1.1 requestmessage and my client implementation 
> > (just the relevant parts).
> > I also attached the debug-output of Axis for both SOAP1.1 and SOAP 1.2 - if 
> > this might help.
> >
> > Does anyone has any ideas why this happens?
> >
> > Thanks for your time
> >
> > Bille
> >
> > ---
> >
> > SOAP1.1-Request which works:
> >
> > 
> > http://schemas.xmlsoap.org/soap/envelope/";>
> > 
> > 
> >  > xmlns:sbr="http://localhost:8080/axis2/services/LDAPQueryService/xsd";>
> > Wert1
> > 
> > 
> > 
> >
> > ---
> >
> > Client :: switching to SOAP 1.2 with this 2 changes (see the comments)
> > ...
> > EndpointReference targetEpr = new 
> > EndpointReference("http://localhost:8080/axis2/services/LDAPQueryService";);
> >
> > // OMFactory fac = OMAbstractFactory.getOMFactory(); // decomment for SOAP 
> > 1.1
> > SOAPFactory fac = OMAbstractFactory.getSOAP12Factory(); // comment for SOAP 
> > 1.1
> >
> > OMNamespace ns = 
> > fac.createOMNamespace("http://localhost:8080/axis2/services/LDAPQueryService/xsd";,
> >  "sbr");
> > OMElement payload = fac.createOMElement("getGroupsRequest", ns);
> > OMElement param1 = fac.createOMElement("dir", ns);
> > param1.setText("Wert1");
> > payload.addChild(param1);
> > try {
> > Options options = new Options();
> > options.setTo(targetEpr);
> > //options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> > options.setAction("urn:getGroups");
> >
> > options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); // 
> > comment for SOAP 1.1
> > ServiceClient client = new ServiceClient();
> > client.setOptions(options);
> > OMElement response = client.s