Re: Axis2 1.0 RC1 Weblogic 9.1 installation problem

2006-05-03 Thread Gopal Patwa

Does anybody treid Axis2 on Weblogic 9.1

--
View this message in context: 
http://www.nabble.com/Axis2-1.0-RC1-Weblogic-9.1-installation-problem-t1495632.html#a4223798
Sent from the Axis - User forum at Nabble.com.



cvs repository

2006-05-03 Thread William kane
Hi all,
I am unable to connect to cvs repository of axis as specfied in the apache site for axis.
Can anyone please let me know the cvs repository url,userid and pwd?
Regards,
William


Re: Problem with .Net 1.1 client

2006-05-03 Thread Anne Thomas Manes
Use 1.4.On 5/3/06, Rich Rodriguez <[EMAIL PROTECTED]> wrote:
With the Axis 1.3 BeanSerializer the array "items" seem to be named the same as the array property itself. This is fixed in the next version?
On 5/3/06, 
Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

Edit the WSDL and change the elements named "item" in your two arrays to unique names. You need to be using Axis 1.4 to get it to generate the appropriate SOAP messages, though.


On 5/3/06, Santunu Podder <[EMAIL PROTECTED]> wrote:


Hi All,I am having a problem invoking a java web service from a .Net 1.1 client.The apache axis generated wsdl specifies a class member of type arraywhich incidently results in exception while invocation. The error I am
getting is as below :Unhandled Exception: System.InvalidOperationException: MethodTestServices.createAccount can not be reflected.---> System.InvalidOperationException: There was an error


reflecting 'createAccountResult'.---> System.InvalidOperationException: There was an errorreflecting type 'test.services.AccountTransactionResponse'.---> System.InvalidOperationException

: There was an error
reflecting field 'amounts'.---> System.InvalidOperationException: The XML element named'item' from namespace '

http://localhost:8080/axis/services/Account
'references distinct types test.services.AccountDetails andSystem.Double.Use XML attributes to specify another XML name ornamespace for the element or types.


The member amounts is of type array and looks like the error is because ofthat.But .Net 2.0 client does not have this problem. A java client does nothave any problem either.Could anybody please let me know how to overcome this.
Thanks in advance,SantunuThis message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. Close Premium Finance shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. Close Premium Finance does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference.







Re: [Axis2][0.95] How can my service make call to another service? (More details) - RC5

2006-05-03 Thread Latha Venkat
Hello  I'mtrying to do the same in axis1.3 ie my web service invoking another web service , does anyone have any code sample         Thankyou   Latha Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:  Deepal,I've just tried it with axis2 war distribution (RC5) and got NPE.Here is my code snippet that uses ListenerManager:-System.out.println("ListenerManager.defaultConfigurationContext: " +ListenerManager.defaultConfigurationContext);System.out.println("ListenerManager.defaultConfigurationContext.getServiceGroupContexts():" +ListenerManager.defaultConfigurationContext.getServiceGroupContexts());com.mycompany.service.test.account.AccountServicesStub stub =
 newcom.mycompany.service.test.account.AccountServicesStub(ListenerManager.defaultConfigurationContext,targetEndpoint);-Here is the output:-ListenerManager.defaultConfigurationContext:[EMAIL PROTECTED]ListenerManager.defaultConfigurationContext.getServiceGroupContexts():{}java.lang.NullPointerExceptionatorg.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)atorg.apache.axis2.client.ServiceClient.(ServiceClient.java:101)atcom.mycompany.service.test.account.AccountServicesStub.(AccountServicesStub.java:329)at ...-What I've seen from the output isListenerManager.defaultConfigurationContext is successfully set as it'snot null. But
 I cannot think furthermore :-)What should I do?Thanks a lot.Ali Sadik Kumlali--- Ali Sadik Kumlali <[EMAIL PROTECTED]>wrote:> Thanks Deepal. I'll try it with 1.0 RC3 and let you know the result.> > Best regards,> > Ali Sadik Kumlali> > --- Deepal Jayasinghe <[EMAIL PROTECTED]>wrote:> > > You can have this with Axis2 RC or above :)> > > > You have to follow the following procedure for doing this> > - When you creating stub , it has a constructor which take> > configuration context as argument.> > - So pass that as "ListenerManager.defaultConfigurationContext"> > - In this case client will be created using server configuration> > context> > - And this will work in axis2 war distribution out of the box> > > > Note : In the case of AxisServlet , it will create
 a> ListenerManager> > and> > will set defaultConfigurationContext as the server configuration> > context.> > > > If you are using some other thing say simpleHTTPServer then you> have> > to> > do the following procedure.> > - Create a ConfigurationConetx using some axis2.xml and that> > axis2.xml can have all the transport listeners that you want> > - Then create a ListenerManager> > - and call startSystem> > - and finally> > ListenerManager.defaultConfigurationContext=> > configurationcotext;> > > > Ali Sadik Kumlali wrote:> > > > >Hi all,> > >> > >Since there is no response yet, I assume that my posting had a> lack> > of> > >information :)> > >> > >Here is my scenario:> > >1) I have
 serviceA.wsdl and serviceB.wsdl. > > >2) I generate skeletons and stubs with WSDL2Java> > >3) I have serviceA.aar which has serviceB.wsdl's stub> > >4) When I call serviceB's stub from a class found in serviceA.aar,> > my> > >soap message does not have addressing and security headers.> > >5) When I explicitly pass a repository location to constructor of> > >serviceB's stub, it fails saying double initialization of> addressing> > >and security modules.> > >6) It cannot find the modules and gives me error when I try to> > engage> > >the addressing and security modules by following code: > > > stubB._getServiceClient().engageModule(new QName("addressing"));> > > stubB._getServiceClient().engageModule(new QName("security"));> > >> > >Thanks again.> > >> >
 >Ali Sadik Kumlali> > >> > >> > >--- Ali Sadik Kumlali <[EMAIL PROTECTED]>wrote:> > >> > > > > >> > >>Hi all,> > >>> > >>I need my service to call another service. But, it somehow cannot> > see> > >>modules and thus doesn't add security/addressing headers.> > >>> > >>I tried engaging the modules manually as in test client. But, it> > >>couldn't find the modules.> > >>> > >>Any help would be appreciated.> > >>> > >>Thanks,> > >>> > >>Ali Sadik Kumlali> > >>> > >>__> > >>Do You Yahoo!?> > >>Tired of spam? Yahoo! Mail has the best spam protection around > >
 >>http://mail.yahoo.com > > >>> > >> > > >>> > >> > >> > >__> > >Do You Yahoo!?> > >Tired of spam? Yahoo! Mail has the best spam protection around > > >http://mail.yahoo.com > > >> > >> > > > > >> > > > -- > > Thanks,> > Deepal> > > > ~Future is Open~ > > > > > > > > > __> Do You Yahoo!?> Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __Do You Yahoo!?Tired 

Re: [Axis2][0.95] How can my service make call to another service? (More details) - RC5

2006-05-03 Thread Latha Venkat
Hello   I'm trying to do the same in axis1.3 , ie my web service trying to call another web service , will appreciate if anyone has code sample .        Thankyou      Latha Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:  Deepal,I've just tried it with axis2 war distribution (RC5) and got NPE.Here is my code snippet that uses ListenerManager:-System.out.println("ListenerManager.defaultConfigurationContext: " +ListenerManager.defaultConfigurationContext);System.out.println("ListenerManager.defaultConfigurationContext.getServiceGroupContexts():"
 +ListenerManager.defaultConfigurationContext.getServiceGroupContexts());com.mycompany.service.test.account.AccountServicesStub stub = newcom.mycompany.service.test.account.AccountServicesStub(ListenerManager.defaultConfigurationContext,targetEndpoint);-Here is the output:-ListenerManager.defaultConfigurationContext:[EMAIL PROTECTED]ListenerManager.defaultConfigurationContext.getServiceGroupContexts():{}java.lang.NullPointerExceptionatorg.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)atorg.apache.axis2.client.ServiceClient.(ServiceClient.java:101)atcom.mycompany.service.test.account.AccountServicesStub.(AccountServicesStub.java:329)at
 ...-What I've seen from the output isListenerManager.defaultConfigurationContext is successfully set as it'snot null. But I cannot think furthermore :-)What should I do?Thanks a lot.Ali Sadik Kumlali--- Ali Sadik Kumlali <[EMAIL PROTECTED]>wrote:> Thanks Deepal. I'll try it with 1.0 RC3 and let you know the result.> > Best regards,> > Ali Sadik Kumlali> > --- Deepal Jayasinghe <[EMAIL PROTECTED]>wrote:> > > You can have this with Axis2 RC or above :)> > > > You have to follow the following procedure for doing this> > - When you creating stub , it has a constructor which take> > configuration context as argument.> > - So pass that as "ListenerManager.defaultConfigurationContext"> > - In this case client will be created using
 server configuration> > context> > - And this will work in axis2 war distribution out of the box> > > > Note : In the case of AxisServlet , it will create a> ListenerManager> > and> > will set defaultConfigurationContext as the server configuration> > context.> > > > If you are using some other thing say simpleHTTPServer then you> have> > to> > do the following procedure.> > - Create a ConfigurationConetx using some axis2.xml and that> > axis2.xml can have all the transport listeners that you want> > - Then create a ListenerManager> > - and call startSystem> > - and finally> > ListenerManager.defaultConfigurationContext=> > configurationcotext;> > > > Ali Sadik Kumlali wrote:> > > > >Hi all,> > >> > >Since there is
 no response yet, I assume that my posting had a> lack> > of> > >information :)> > >> > >Here is my scenario:> > >1) I have serviceA.wsdl and serviceB.wsdl. > > >2) I generate skeletons and stubs with WSDL2Java> > >3) I have serviceA.aar which has serviceB.wsdl's stub> > >4) When I call serviceB's stub from a class found in serviceA.aar,> > my> > >soap message does not have addressing and security headers.> > >5) When I explicitly pass a repository location to constructor of> > >serviceB's stub, it fails saying double initialization of> addressing> > >and security modules.> > >6) It cannot find the modules and gives me error when I try to> > engage> > >the addressing and security modules by following code: > > >
 stubB._getServiceClient().engageModule(new QName("addressing"));> > > stubB._getServiceClient().engageModule(new QName("security"));> > >> > >Thanks again.> > >> > >Ali Sadik Kumlali> > >> > >> > >--- Ali Sadik Kumlali <[EMAIL PROTECTED]>wrote:> > >> > > > > >> > >>Hi all,> > >>> > >>I need my service to call another service. But, it somehow cannot> > see> > >>modules and thus doesn't add security/addressing headers.> > >>> > >>I tried engaging the modules manually as in test client. But, it> > >>couldn't find the modules.> > >>> > >>Any help would be appreciated.> > >>> > >>Thanks,> > >>> > >>Ali Sadik
 Kumlali> > >>> > >>__> > >>Do You Yahoo!?> > >>Tired of spam? Yahoo! Mail has the best spam protection around > > >>http://mail.yahoo.com > > >>> > >> > > >>> > >> > >> > >__> > >Do You Yahoo!?> > >Tired of spam? Yahoo! Mail has the best spam protection around > > >http://mail.yahoo.com > > >> > >> > > > > >> > > > -- > > Thanks,> > Deepal> > > > ~Future is Open~ > > > > > > > > > __> Do You
 Yahoo!?> Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __

Re: Want Sample code for Handler

2006-05-03 Thread [EMAIL PROTECTED]
On 5/3/06, Kanojia, Jogesh (GE Cons Fin, consultant) <[EMAIL PROTECTED]> wrote:










Hi,


I need to add new handler in Axis .


If any one have a sample code or tutorial for adding handler please send me the same.


Thanks & Regards

Jogesh KanojiaThe source download contains a sample Handler at samples/handler/TestMimeHeaderHandler.java and there is another at samples/userguide/example4/LogHandler.java



Re: Problem with .Net 1.1 client

2006-05-03 Thread Rich Rodriguez
With the Axis 1.3 BeanSerializer the array "items" seem to be named the same as the array property itself. This is fixed in the next version?On 5/3/06, 
Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
Edit the WSDL and change the elements named "item" in your two arrays to unique names. You need to be using Axis 1.4 to get it to generate the appropriate SOAP messages, though.

On 5/3/06, Santunu Podder <[EMAIL PROTECTED]> wrote:

Hi All,I am having a problem invoking a java web service from a .Net 1.1 client.The apache axis generated wsdl specifies a class member of type arraywhich incidently results in exception while invocation. The error I am
getting is as below :Unhandled Exception: System.InvalidOperationException: MethodTestServices.createAccount can not be reflected.---> System.InvalidOperationException: There was an error

reflecting 'createAccountResult'.---> System.InvalidOperationException: There was an errorreflecting type 'test.services.AccountTransactionResponse'.---> System.InvalidOperationException
: There was an error
reflecting field 'amounts'.---> System.InvalidOperationException: The XML element named'item' from namespace '
http://localhost:8080/axis/services/Account
'references distinct types test.services.AccountDetails andSystem.Double.Use XML attributes to specify another XML name ornamespace for the element or types.

The member amounts is of type array and looks like the error is because ofthat.But .Net 2.0 client does not have this problem. A java client does nothave any problem either.Could anybody please let me know how to overcome this.
Thanks in advance,SantunuThis message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. Close Premium Finance shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. Close Premium Finance does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference.





Re: Help with .Net and Axis

2006-05-03 Thread Jeff Greif

The colon in the line below  makes the XML ill-formed
according to the Namespaces spec.  You cannot have prefix:local-name
where local-name is empty, because the empty string is not an NCName.

Jeff

On 5/3/06, Briseno, David <[EMAIL PROTECTED]> wrote:





A SOAP request is built in a java api which contains this information prior to 
the Send method being called



Wed May 03 15:28:23 CDT 2006 Tag: xmlns

Wed May 03 15:28:23 CDT 2006 Name: xmlns

Wed May 03 15:28:23 CDT 2006 NS URI:

Wed May 03 15:28:23 CDT 2006 Prefix:

Wed May 03 15:28:23 CDT 2006 Node Value: http://bsgdal.com/vector/research/

Wed May 03 15:28:23 CDT 2006 Tag: xmlns:xsi

Wed May 03 15:28:23 CDT 2006 Name: xsi

Wed May 03 15:28:23 CDT 2006 NS URI: http://www.w3.org/2000/xmlns/

Wed May 03 15:28:23 CDT 2006 Prefix: xmlns

Wed May 03 15:28:23 CDT 2006 Node Value: 
http://www.w3.org/2001/XMLSchema-instance



During the Post the message request has extra xmlns attributes added to the 
Body:








Want Sample code for Handler

2006-05-03 Thread Kanojia, Jogesh \(GE Cons Fin, consultant\)
Title: Want Sample code for  Handler






Hi,


I need to add new handler in Axis .


If any one have a sample code or tutorial for adding handler please send me the same.


Thanks & Regards

Jogesh Kanojia





RE: Help with .Net and Axis

2006-05-03 Thread Briseno, David








A SOAP request is built in a java api which contains this
information prior to the Send method being called

 

Wed May 03 15:28:23 CDT 2006 Tag: xmlns

Wed May 03 15:28:23 CDT 2006 Name: xmlns

Wed May 03 15:28:23 CDT 2006 NS URI: 

Wed May 03 15:28:23 CDT 2006 Prefix: 

Wed May 03 15:28:23 CDT 2006 Node Value:
http://bsgdal.com/vector/research/

Wed May 03 15:28:23 CDT 2006 Tag: xmlns:xsi

Wed May 03 15:28:23 CDT 2006 Name: xsi

Wed May 03 15:28:23 CDT 2006 NS URI:
http://www.w3.org/2000/xmlns/

Wed May 03 15:28:23 CDT 2006 Prefix: xmlns

Wed May 03 15:28:23 CDT 2006 Node Value:
http://www.w3.org/2001/XMLSchema-instance

 

During the Post the message request has extra xmlns
attributes added to the Body:

 



 

 

 

The soap message request is running on Apache 2.0.45 and is
being sent to a .Net Web Service

 

However the .Net Soap server chokes on the request with the
following error and sends the following Soap Fault back to the java app

 

[SOAPException: faultCode=soap:Client;
msg=System.Web.Services.Protocols.SoapException: Server was unable to read
request. ---> System.Xml.XmlException: The ':' character, hexadecimal value
0x3A, cannot be included in a name. Line 4, position 23.

 

Does anyone have any knowledge as to:

 

1)   Why the Post
adds additional xmlns attributes

2)   Why the .Net
web service cannot handle the “:” value

 

The .Net web service works fine with .Net to .Net and
WebLogic to .Net

 

Any help would be greatly appreciated.

 

 

 

David Briseno

Metavante Image Solutions

AFS/Endpoint Exchange/TREEV/VECTORsgi

 



[This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed.  Any use, distribution, copying or disclosure by any other person is strictly prohibited.  If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy.]




RE: the basics...

2006-05-03 Thread James Armstrong








Thanks Anne – that works

 

Unfortunately when I run it – my class
file is overwritten?? Any suggestions?

james









From: Anne Thomas
Manes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 03, 2006 1:30
PM
To: axis-user@ws.apache.org
Subject: Re: the basics...



 

Generate the WSDL from
the class (rather than the interface) compiled with debugging on (-g option).

Anne



On 5/3/06, James
Armstrong < [EMAIL PROTECTED]>
wrote:





Hi,

Can someone point me to an example of how I would use the
Java2WSDL tool and MAINTAIN the parameter names, ie.

 

Public SimpleMethod {

   
Public simpleMethod(int intname) {

   
…

   
}

 

 

}

 

I want the wsdl to preserve intName as the parameter name
instead of listing the parameter as in0.

 

Thanks,

James







 








Problem deploying Webservice on Unix (Please help very urgent)

2006-05-03 Thread suveni

Hi,
I am trying to deploy a Java webservice using axis1.3 on Tomcat 5.0.28 on
Unix. I have packaged my webservice in a jar file which I have succesfuly
deployed and tested on windows.
 
When I try to deploy my webservice using the AdminClient on Unix, the
deploy.wsdd is processed successfully nad I can see the service infomration
appeneded in the service_config.wsdd file. But when I try to access the
webservice through the Axis UI in the browser by clicking the "List"
webservices link...I see a page "ANd Now some services" but no
details...even the out of the box sample webservices that come with axis are
no more seen...
 
Only when I remove my service definition from the service_config file then
other sample service interfaces are displayed when List is clicked.
 
What could have gone wrong?Why does the list page not show the interface
methods of my service??
 
ANy help is deeply appreciated.
 
Thanks,
Suveni


--
View this message in context: 
http://www.nabble.com/Problem-deploying-Webservice-on-Unix-%28Please-help-very-urgent%29-t1552116.html#a4216589
Sent from the Axis - User forum at Nabble.com.



Re: the basics...

2006-05-03 Thread Anne Thomas Manes
Generate the WSDL from the class (rather than the interface) compiled with debugging on (-g option).AnneOn 5/3/06, James Armstrong <
[EMAIL PROTECTED]> wrote:












Hi,

Can someone point me to an example of how
I would use the Java2WSDL tool and MAINTAIN the parameter names, ie.

 

Public SimpleMethod {

    Public simpleMethod(int
intname) {

    …

    }

 

 

}

 

I want the wsdl to preserve intName as the
parameter name instead of listing the parameter as in0.

 

Thanks,

James










Axis client logging from web applet causes security error

2006-05-03 Thread ANTHONY ZIOLKOWSKI






I have written my first web service. It works fine in all the ways I want except one - running from an applet in a web browser. As far as I can tell from the trace below this is caused by the Axis code accessing the file system to do logging which, of course, isn't allowed cause it's outside the applets sandbox. I did read a post about signing the applet and changing policies for the browser, but other than signing the applet, forcing the user to do anything is out of the question.
 
So how do I access my axis-developed web service from my applet? Is there any way of disabling the logging so it doesn;t play iwth the localfile system?
 
Stack trace:
Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError at org.apache.commons.discovery.jdk.JDKHooks.(JDKHooks.java:75) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.(LogFactory.java:33) at org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.(Service.java:113) at
 com.zeesol.bizservice.client.BizService_ServiceLocator.(BizService_ServiceLocator.java:12) at com.mazuma.applets.BaseRunner$1.actionPerformed(BaseRunner.java:156) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at
 java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) at
 java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source) at java.lang.ClassLoader.(Unknown Source) at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.(PsuedoSystemClassLoader.java:73) at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215) at org.apache.commons.discovery.jdk.JDK12Hooks.(JDK12Hooks.java:73) ... 35 more
 


RE: the basics...

2006-05-03 Thread James Armstrong








Hi,

Can someone point me to an example of how
I would use the Java2WSDL tool and MAINTAIN the parameter names, ie.

 

Public SimpleMethod {

    Public simpleMethod(int
intname) {

    …

    }

 

 

}

 

I want the wsdl to preserve intName as the
parameter name instead of listing the parameter as in0.

 

Thanks,

James








Re: [Axis2] specifying username and password

2006-05-03 Thread [EMAIL PROTECTED]
On 5/3/06, Kees de Kooter <[EMAIL PROTECTED]> wrote:
In Axis 1 I specified username/password like this:call.setUserName();call.setPassword();What is the equivalent in Axis 2?--Cheers,Kees de Kooter
http://www.boplicity.netI have used the following successfully:    call.setProperty(Call.USERNAME_PROPERTY, "user");    call.setProperty(Call.PASSWORD_PROPERTY
, "pass"); -- //--//  Computer Science is no more about computers than astronomy //  is about telescopes.
  - E. Dijkstra //--


Re: WSDL2Java difference between v0.94 and v1RC4

2006-05-03 Thread robert lazarski
You might try validating the wsdl - I'm showing a "no message" warning around cacheDumpRequest. The may explain the java.lang.VerifyError . 

HTH,
Robert
http://www.braziloutsource.com/On 5/3/06, [EMAIL PROTECTED]
 <[EMAIL PROTECTED]> wrote:





Hi 
all,
 
I have a WSDL file 
which when fed into the the WSDL2Java process from v94 produces the needed files 
and functions appropriately.  When this same WSDL file is fed into the 
WSDL2Java process from v1.0 RC4 errors out with the followin 
issue:
 
C:\Downloads\Axis2\axis2-v1.4unzipped\bin>WSDL2Java 
-uri service.wsdl -o c:\LoadGen -p com.thomson.west.foundations.server.soap 
-t -ss on -sd on -d adb -g -u -sn FoundationsServicesServer -pn 
FoundationServicesServerServiceUsing AXIS2_HOME:   
C:\Downloads\Axis2\axis2-v1.4unzippedUsing JAVA_HOME:    
C:\j2sdk1.4.2_07Exception in thread "main" java.lang.VerifyError: (class: 
org/apache/axis2/description/WSDL2AxisServiceBuilder, method: 
populateOperations signature: 
(Ljavax/wsdl/Operation;Ljavax/wsdl/Definition;)Lorg/apache/axis2/description/AxisOperation;) 
Incompatible argument to function    
at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:87)    
at 
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)    
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
 
The call to 
WSDL2Java remains the same as follows:
C:\Downloads\Axis2\axis2-v94Unzipped\bin>WSDL2Java 
-uri service.wsdl -o c:\LoadGen -p com.thomson.west.foundations.server.soap 
-t -ss on -sd on -d adb -g -u -sn FoundationsServicesServer -pn 
FoundationServicesServerService
 
The WSDL file is as 
follows:

http://server.foundations.west.thomson.com
" 
xmlns:impl="http://server.foundations.west.thomson.com" 
xmlns:intf="http://server.foundations.west.thomson.com" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">   
http://server.foundations.west.thomson.com" 
xmlns="http://www.w3.org/2001/XMLSchema" 
xmlns:impl="http://server.foundations.west.thomson.com" 
xmlns:intf="http://server.foundations.west.thomson.com" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">   
    
 
   
       
       
 
    
 
       
       
 
   
       
       
 
    
 
       
       
 
   
       
       
 
   
       
       
 
   
       
       
 
    
 
       
  
         
        
     
      
  
      
  
      
     
        
     
 
 
  
   
 
  
   
 
  
   
 
  
      
  
http://schemas.xmlsoap.org/soap/http"/
>  
 
 
    
 
 
    
 
  
   
 
    
 
 
    
 
  
   
 
    
 
 
    
 
  
   
 
    
 
 
    
 
  
      
  
 
 http://localhost:8080/axis2/services/FoundationServicesServer"/
>  
   

As far as the classes generated are concerned, does it matter if they are 
generated via v0.94 WSDL2Java or v1RC4 WSDL2Java?
Thanks in advance.
Dave 
Ziebol
 




RE: [Axis2] How to get MessageContext

2006-05-03 Thread Ali Sadik Kumlali
Hi Michael,

Depends. It works with 0.95 and does not work with RC1 and later
releases.

I'm sure, Axis2 Team is going to update the document with the
announcement of 1.0 release (if it's not updated for RCx releases yet).

Regards,

Ali Sadik Kumlali

--- Michael Robinson <[EMAIL PROTECTED]> wrote:

> Does this mean that the example at
> http://ws.apache.org/axis2/0_95/mtom-guide.html does not work? The
> section titled "SOAP with Attachments (SwA) with Axis2" has a code
> fragment that seems to use an init method to set the MessageContext
> instead of a setter method. Is this incorrect? 
> 
> -Original Message-
> From: Ruchith Fernando [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 03, 2006 7:47 AM
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2] How to get MessageContext
> 
> An example for such a service impl class is here : [1]
> 
> Thanks,
> Ruchith
> 
> [1]
>
https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/se
> curity/interop/org/apache/axis2/oasis/ping/PingPortSkeleton.java
> 
> On 5/3/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> > ya , just add that method in to service impl class and that method
> will
> > be called using java reflection. So you  can keep a ref to
> > operatoionConetx in side your class instance. And when you get the
> > actual method call you can access that.
> >
> > Michele Mazzucco wrote:
> >
> > >Hi Deepal,
> > >
> > >could you be more explicit please? Do you mean
> > >
> > >public void setOperationContext(OperationContext opctx) {
> > >   // empty content
> > >}
> > >
> > >(and I don't need to call it)?
> > >
> > >
> > >Michele
> > >
> > >Deepal Jayasinghe wrote:
> > >
> > >
> > >>you have to add a method called
> > >>setOperationContext(OperationContext opctx) {
> > >>}
> > >>
> > >>in to your sevrice impl class , and that method will be called
> whenever
> > >>you get a req . Using opctx you can get the messagecontext
> > >>
> > >>
> > >>Michele Mazzucco wrote:
> > >>
> > >>
> > >>
> > >>>Hi all,
> > >>>
> > >>>how can I get the MessageContext from a OMelement?
> > >>>(I'm using the primary interface APIs, that is my methods have
> the
> > >>>following signature:
> > >>>
> > >>>OMelement operation(OMElement arg1, OMElelent arg2,...,
> OMElement
> argN) {
> > >>> ...
> > >>>}
> > >>>
> > >>>)
> > >>>
> > >>>
> > >>>
> > >>>Thanks,
> > >>>Michele
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >
> > >
> > >
> > >
> >
> > --
> > Thanks,
> > Deepal
> > 
> > ~Future is Open~
> >
> >
> >
> 
> -
> This e-mail and any files transmitted with it are intended solely
> for the use of the entity or individual(s) to whom they are
> addressed and not for reliance upon by unintended recipients.  If
> you are not the intended recipient or the person responsible for
> delivering the e-mail to the intended recipient be advised that you
> have received this e-mail in error and that any use, dissemination,
> forwarding, printing, or copying of this e-mail and any files
> transmitted are strictly prohibited. If you have received this
> e-mail in error please delete the entire email and immediately
> notify us by email to the sender or by telephone to the AOC main
> office number, (404) 656-5171. Thank you.
> 
> 


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


RE: [Axis2] How to get MessageContext

2006-05-03 Thread Michael Robinson
Does this mean that the example at
http://ws.apache.org/axis2/0_95/mtom-guide.html does not work? The
section titled "SOAP with Attachments (SwA) with Axis2" has a code
fragment that seems to use an init method to set the MessageContext
instead of a setter method. Is this incorrect? 

-Original Message-
From: Ruchith Fernando [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 03, 2006 7:47 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] How to get MessageContext

An example for such a service impl class is here : [1]

Thanks,
Ruchith

[1]
https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/se
curity/interop/org/apache/axis2/oasis/ping/PingPortSkeleton.java

On 5/3/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> ya , just add that method in to service impl class and that method
will
> be called using java reflection. So you  can keep a ref to
> operatoionConetx in side your class instance. And when you get the
> actual method call you can access that.
>
> Michele Mazzucco wrote:
>
> >Hi Deepal,
> >
> >could you be more explicit please? Do you mean
> >
> >public void setOperationContext(OperationContext opctx) {
> >   // empty content
> >}
> >
> >(and I don't need to call it)?
> >
> >
> >Michele
> >
> >Deepal Jayasinghe wrote:
> >
> >
> >>you have to add a method called
> >>setOperationContext(OperationContext opctx) {
> >>}
> >>
> >>in to your sevrice impl class , and that method will be called
whenever
> >>you get a req . Using opctx you can get the messagecontext
> >>
> >>
> >>Michele Mazzucco wrote:
> >>
> >>
> >>
> >>>Hi all,
> >>>
> >>>how can I get the MessageContext from a OMelement?
> >>>(I'm using the primary interface APIs, that is my methods have the
> >>>following signature:
> >>>
> >>>OMelement operation(OMElement arg1, OMElelent arg2,..., OMElement
argN) {
> >>> ...
> >>>}
> >>>
> >>>)
> >>>
> >>>
> >>>
> >>>Thanks,
> >>>Michele
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >
>
> --
> Thanks,
> Deepal
> 
> ~Future is Open~
>
>
>

-
This e-mail and any files transmitted with it are intended solely
for the use of the entity or individual(s) to whom they are
addressed and not for reliance upon by unintended recipients.  If
you are not the intended recipient or the person responsible for
delivering the e-mail to the intended recipient be advised that you
have received this e-mail in error and that any use, dissemination,
forwarding, printing, or copying of this e-mail and any files
transmitted are strictly prohibited. If you have received this
e-mail in error please delete the entire email and immediately
notify us by email to the sender or by telephone to the AOC main
office number, (404) 656-5171. Thank you.



Re: Problem with .Net 1.1 client

2006-05-03 Thread Anne Thomas Manes
Edit the WSDL and change the elements named "item" in your two arrays to unique names. You need to be using Axis 1.4 to get it to generate the appropriate SOAP messages, though.
On 5/3/06, Santunu Podder <[EMAIL PROTECTED]> wrote:
Hi All,I am having a problem invoking a java web service from a .Net 1.1 client.The apache axis generated wsdl specifies a class member of type arraywhich incidently results in exception while invocation. The error I am
getting is as below :Unhandled Exception: System.InvalidOperationException: MethodTestServices.createAccount can not be reflected.---> System.InvalidOperationException: There was an error
reflecting 'createAccountResult'.---> System.InvalidOperationException: There was an errorreflecting type 'test.services.AccountTransactionResponse'.---> System.InvalidOperationException: There was an error
reflecting field 'amounts'.---> System.InvalidOperationException: The XML element named'item' from namespace 'http://localhost:8080/axis/services/Account
'references distinct types test.services.AccountDetails andSystem.Double.Use XML attributes to specify another XML name ornamespace for the element or types.
The member amounts is of type array and looks like the error is because ofthat.But .Net 2.0 client does not have this problem. A java client does nothave any problem either.Could anybody please let me know how to overcome this.
Thanks in advance,SantunuThis message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. Close Premium Finance shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. Close Premium Finance does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference.



Problem with .Net 1.1 client

2006-05-03 Thread Santunu Podder
Hi All,

I am having a problem invoking a java web service from a .Net 1.1 client. 
The apache axis generated wsdl specifies a class member of type array 
which incidently results in exception while invocation. The error I am 
getting is as below :

Unhandled Exception: System.InvalidOperationException: Method 
TestServices.createAccount can not be reflected. 
---> System.InvalidOperationException: There was an error 
reflecting 'createAccountResult'. 
---> System.InvalidOperationException: There was an error 
reflecting type 'test.services.AccountTransactionResponse'. 
---> System.InvalidOperationException: There was an error 
reflecting field 'amounts'. 
---> System.InvalidOperationException: The XML element named 
'item' from namespace 'http://localhost:8080/axis/services/Account' 
references distinct types test.services.AccountDetails and 
System.Double. 
Use XML attributes to specify another XML name or 
namespace for the element or types.
 

The member amounts is of type array and looks like the error is because of 
that.

But .Net 2.0 client does not have this problem. A java client does not 
have any problem either.

Could anybody please let me know how to overcome this.

Thanks in advance,
Santunu

This message (including any attachments) is confidential and may be privileged. 
If you have received it by mistake please notify the sender by return e-mail 
and delete this message from your system. Any unauthorised use or dissemination 
of this message in whole or in part is strictly prohibited. Please note that 
e-mails are susceptible to change. Close Premium Finance shall not be liable 
for the improper or incomplete transmission of the information contained in 
this communication nor for any delay in its receipt or damage to your system. 
Close Premium Finance does not guarantee that the integrity of this 
communication has been maintained nor that this communication is free of 
viruses, interceptions or interference.


RE: SOAP namespacing conventions

2006-05-03 Thread Simon Fell



they are all sematically equivilent, the actual prefix used 
carries no weight.
 
Cheers
Simon


From: Steve Pruitt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 03, 2006 6:27 AMTo: 
axis-user@ws.apache.orgSubject: SOAP namespacing 
conventions


Is there is a "standard" or "widely accepted" 
convention for naming the soap namespace.
I 
have seen:
 
http://schemas.xmlsoap.org/soap/envelope/">

http://schemas.xmlsoap.org/soap/envelope/">

http://schemas.xmlsoap.org/soap/envelope/">
 
 
Thanks,
 
-Steve 
Pruitt


Re: OracleAS

2006-05-03 Thread Ilias Bartolini
On Wednesday 03 May 2006 16:21, Marco Aurélio Seraphim da Silva wrote:
> Hi folks,
>
> Have someone here use Axis with Oracle Application Server?
>
> It's possible to do? And how can I do it?

This link
http://zatoichi.homeip.net/~brain/wiki/index.php/Howto_Axis_on_Oracle_Application_Server_OC4J
is about the problems i experienced with Axis 1.2 and Oracle OC4J 9.0.4

sorry, the document it's in Italian... you can try with some translators
http://66.249.93.104/translate_c?hl=en&ie=UTF-8&oe=UTF-8&langpair=it%7Cen&u=http://zatoichi.homeip.net/~brain/wiki/index.php/Howto_Axis_on_Oracle_Application_Server_OC4J

Try to get a look on oracle metalink too.

Ilias
-- 
/**
 * Reply to: ilias.bartolini(at)studio.unibo.it  
 * ICQ# 42797710 - PGP Key-ID:0x6A951A45
 * http://zatoichi.homeip.net - https://www.universibo.unibo.it
 */


pgpFVVhFdsGyp.pgp
Description: PGP signature


[Axis2] SoapEnvelope as method argument (primary APIs)

2006-05-03 Thread Michele Mazzucco
Hi all,

is it possible to use SOAPEnvelope arguments instead of OMElements
(OMelement is a super-interface of SOAPEnvelope)? If yes, how can I fill
the Header and Body?

Thanks in advance,
Michele


Complex types as arguments

2006-05-03 Thread Bart Vanbrabant
Hello,

We are developing an application which uses SOAP to communicate between
server and client. We are using the RPC providor and Axis 1.3.
All seems to work fine as long as we don't use any complex types in our
arguments. I reduced the webservice to this example:

// deployment






// the wsdl part for the Accesspoint type:

  
http://schemas.xmlsoap.org/soap/encoding/"/>

  



  

  


This is autogenerated but the wsdl file is used to generate client bindings.

// the Accesspoint class:
public class Accesspoint {
private Calendar $timestamp;
private String $mac;
private int $signal;

public final Calendar getTimestamp() {
return $timestamp;
}

public final String getMacAddress() {
return $mac;
}

public int getSignalStrength() {
return $signal;
}
}

// the webservice
public class Test {
public Accesspoint echo (Accesspoint ap) {
return ap;
}
}

The members of the 'ap' argument are always (null, null, 0) when the
method is called. It seems like the call doesn't get deserialized properly.

Is there anything I'm doing wrong? I'm using the SimpleAxisServer but it
 doesn't work with Tomcat either.

thanks,

Bart


-- 
Bart Vanbrabant <[EMAIL PROTECTED]>
PGP fingerprint: 093C BB84 17F6 3AA6 6D5E  FC4F 84E1 FED1 E426 64D1



signature.asc
Description: OpenPGP digital signature


Axis Maven Plugins

2006-05-03 Thread cleve oss
 
are there plugins for the maven and m2 for axis2?  
 
i want axis2 as part of my maven build process, so this is essential.
 
regards,
cleve


Re: [Axis2][0.95] How can my service make call to another service? (More details) - RC5

2006-05-03 Thread Ali Sadik Kumlali
Hi again,

Sorry for this much postings :(

My messages was directed to the TCP/IP Monitor's port. I changed it to
the port of the actual service and there is no such error anymore. 

But, I turned back to my first situation :) I still does not have
addressing and security headers.

Thanks,

Ali Sadik Kumlali

--- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:

> Hi Deepal,
> 
> I found that the cause of NPE is "unassinged parent". If the service
> is
> already registered in axisConfig it doesn't enter in the code that
> assings a parent to the service. Also, it doesn't uses the parent of
> the registered service.
> 
> The code causes NPE is here:
> 
> // org.apache.axis2.client.ServiceClient
> public ServiceClient(ConfigurationContext configContext,
>  AxisService axisService) throws AxisFault {
> 
>   ...
>   // If the service is already registered, it doesn't enter
>   // here so there will be no parent.
>   if (this.axisConfig.getService(this.axisService.getName()) == null)
> {
> this.axisConfig.addService(this.axisService);
>   }
>   ServiceGroupContext sgc = new
> ServiceGroupContext(this.configContext,
> (AxisServiceGroup) this.axisService.getParent());
>   this.serviceContext = sgc.getServiceContext(this.axisService);
> }
> 
> 
> 
> 
> Here is the my way of passing this problem:
> 
> 
> // org.apache.axis2.client.ServiceClient
> public ServiceClient(ConfigurationContext configContext,
>  AxisService axisService) throws AxisFault {
> 
>   ...
>   AxisService service = null;
>   AxisService registeredService = 
> this.axisConfig.getService(this.axisService.getName());
>   if (registeredService != null) {
> service = registeredService;
>   } else {
> this.axisConfig.addService(this.axisService);
> service = this.axisService;
>   }
> 
>   ServiceGroupContext sgc = new
> ServiceGroupContext(this.configContext,
> (AxisServiceGroup) service.getParent());  
>   this.serviceContext = sgc.getServiceContext(service);
> }
> 
> 
> 
> But I'm still having an exception that says:
> 
> 
> ...
>   at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>   at java.lang.Thread.run(Thread.java:595)
> [ERROR]
>
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[jsp]
> - Servlet.service() for servlet jsp threw exception
> java.lang.IllegalStateException: getOutputStream() has already been
> called for this response
>   at
> org.apache.catalina.connector.Response.getWriter(Response.java:606)
>   at
>
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
>   at
>
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
> 
> 
> Thanks,
> 
> Ali Sadik Kumlali
> 
> --- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> 
> > Deepal,
> > 
> > I've just tried it with axis2 war distribution (RC5) and got NPE.
> > 
> > Here is my code snippet that uses ListenerManager:
> > 
> > -
> > System.out.println("ListenerManager.defaultConfigurationContext: "
> +
> > ListenerManager.defaultConfigurationContext);
> >
>
System.out.println("ListenerManager.defaultConfigurationContext.getServiceGroupContexts():
> > " +
> >
>
ListenerManager.defaultConfigurationContext.getServiceGroupContexts());
> > com.mycompany.service.test.account.AccountServicesStub stub = new
> >
>
com.mycompany.service.test.account.AccountServicesStub(ListenerManager.defaultConfigurationContext,
> > targetEndpoint);
> > -
> > 
> > Here is the output:
> > 
> > -
> > ListenerManager.defaultConfigurationContext:
> > [EMAIL PROTECTED]
> >
>
ListenerManager.defaultConfigurationContext.getServiceGroupContexts():
> > {}
> > java.lang.NullPointerException
> > at
> >
>
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)
> > at
> >
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:101)
> > at
> >
>
com.mycompany.service.test.account.AccountServicesStub.(AccountServicesStub.java:329)
> > at 
> > ...
> > -
> > 
> > What I've seen from the output is
> > ListenerManager.defaultConfigurationContext is successfully set as
> > it's
> > not null. But I cannot think furthermore :-)
> > 
> > What should I do?
> > 
> > Thanks a lot.
> > 
> > Ali Sadik Kumlali
> > 
> > 
> > --- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> > 
> > > T

Re: how to specify encodingStyle ?

2006-05-03 Thread Anne Thomas Manes
See the WS-I Basic Profile section 3.1.6:http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html#SOAP_encodingStyle_Attribute

 3.1.6 SOAP encodingStyle Attribute
 
The soap:encodingStyle attribute is used to indicate the use of a particular
	scheme in the encoding of data into XML. However, this introduces complexity, 
	as this function can also be served by the use of XML Namespaces. As a result,
	the Profile prefers the use of literal, non-encoded XML.
 
 

   R1005
 An ENVELOPE MUST NOT contain soap:encodingStyle 
	attributes on any of the elements whose namespace name is "http://schemas.xmlsoap.org/soap/envelope/".
 

   R1006
 An ENVELOPE MUST NOT contain soap:encodingStyle
	attributes on any element that is a child of soap:Body.
 

   R1007
 An ENVELOPE described in an rpc-literal binding MUST NOT
	contain soap:encodingStyle attribute on any element that is a grandchild of soap:Body.
  On 5/2/06, Raymond Domingo <[EMAIL PROTECTED]> wrote:
Thank you for responding.I did read something about this:http://www-128.ibm.com/developerworks/webservices/library/ws-tip-j2eenet1/
But I couldn't confirm it by reading the specs on ws.apache.org/axis anyreferences to specs related to this would be appreciated.best regards,raymond
On Mon, 1 May 2006 20:25:20 -0500, Anne Thomas Manes wrote> "literal" means there is no encoding style. It is inappropriate to specify> one.>> Anne>> On 5/1/06, Raymond Domingo <
[EMAIL PROTECTED]> wrote:> >> > Hello,> >> > Is there really no way to enable encodingStyle when using rpc literal ?> >> > In the request I recieve from some (soap) client there is an
> > encodingStyle,> > but the response from my axis server has no encodintStyle. I suspect this> > is> > the cause why my clients to throw an exception.> >> > client request:
> > > > http://schemas.xmlsoap.org/soap/envelope/
"> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > xmlns:xsd="http://www.w3.org/2001/XMLSchema
">> > > > > > SOAP-ENV:encodingStyle="
http://xml.apache.org/xml-soap/literalxml">> > > > > >> >> > server response:> > http://schemas.xmlsoap.org/soap/envelope/> > "> > xmlns:xsd="http://www.w3.org/2001/XMLSchema
"> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">> > > > > > > >> > Any hints please ?> >> > thnx> > raymond domingo> >



Axis 0.95 WSDL2Java generates stubs which don't compile

2006-05-03 Thread Iwan Memruk
Hi,

I use WSDL2Java to generate stubs for the attached WSDL.

The options are: -s -ss -p axis2_stubs

Here's the log I get when I run 'ant':

Buildfile: build.xml

init:

pre.compile.test:
 [echo] Stax Availability= true
 [echo] Axis2 Availability= true

compile.src:
[javac] Compiling 9 source files to D:\tmp\104\build\classes
[javac] 
D:\tmp\104\src\com\intalio\www\bpms\workflow\taskmanagementservices_20051109\TaskMetadata.java:859:
 textArray is already defined in parse(javax.xml.stream.XMLStreamReader)
[javac] java.lang.String[] textArray = 
stateMachine8.getTextArray();
[javac]^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

BUILD FAILED
D:\tmp\104\build.xml:43: Compile failed; see the compiler error output for 
details.

I'm attaching the generated build.xml too, in case you need it.

Thanks a lot,
Iwan


http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; targetNamespace="http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/"; name="TaskManagementServices">
	
		http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/"; 			
			xmlns:tns="http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/";>
			

	
		
		
	

			
			

	
		
		
	

			
			

	
		
	

			
			

	
		
		
		
	

			
			

	
		
		
			

	

			

		
		
	

			
			

	
		
		
		
	

			
			

	
		
		
		
	

			
			

	
		
	

			
			

	
		
	

			
			

	
		
		
		
	

			
			

	
		
		
			

	

			
		
		
		
	

			
			

	
		
		
		
		
		
	

			
			

	
		
		
		
		
	

			
			

	
		
		
		
	

			
			

	
		
		
			

	

			
		
		
		
	

			
			

	

			
			

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
  
			
			

	
	
	
		
			

			
		
	
	
		
			

			
		
	

			
		
	
	
		
	
	
		
	
	
		
		
	
	
		
	
	
		
		
	
	
		
		
	
	
		
		
	
	
		
		
	
	
		
		
	
	
		
		
	
	
		
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
			
			
			
			
			
			
		
		
			
			
			
			
			
			
			
			
		
		
			
			
			
			
			
			
			
			
		
		
			
			
			
			
			
			
			
			
		
		
			
			
			
			
			
			
			
			
		
		
			
			
			
			
			
			
			
			
			
			
		
		
			
			
			
			
			
			
			
			
			
			
		
		
			
			
			
			
			
			
			
			
		
		
			
			
			
			
			
			
		
	
	
		http://schemas.xmlsoap.org/soap/http"/>
		
			http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/getTaskList"/>
			

			
			

			
			

			
			

			
		
		
			http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/getTask"/>
			

			
			

			
			

			
			

			
			

			
		
		
			http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/setOutput"/>
			

			
			

			
			

			
			

			
			

			
		
		
			http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/complete"/>
			

			
			

			
			

			
			

			
			

			
		
		
			http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/setOutputAndComplete"/>
			

			
			

			
			

			
			

			
			

			
		
		
			http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/fail"/>
			

			
			

			
			

			
			

			
			

			
			

			
		
		
			http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/delete"/>
			

			
			

			
			

			
			

			
			

			
			

			
		
		
			http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/create"/>
			

			
			

			
			

			
			

			
			

			
		
		
			http://www.intalio.com/BPMS/Workflow/TaskManagementServices-20051109/init"/>
			

			
			

			
			

			
			

			
			

			
		
	
	
		
			http://www.example.org/"/>
		
	



build.xml
Description: application/xml


Re: OracleAS

2006-05-03 Thread Daniel Destro
What´s up, Brazuca?We are also using Axis running on OracleAS. No big deal!On 5/3/06, Marco Aurélio Seraphim da Silva <
[EMAIL PROTECTED]> wrote:






Hi folks,
 
Have someone here use Axis with Oracle Application 
Server? 
 
It's possible to do? And how can I do 
it?
 
Regards,
 





RE: OracleAS

2006-05-03 Thread James Clinton
Title: Message



Yes - 
it's no different to using Axis with Tomcat.

  
  -Original Message-From: Marco Aurélio 
  Seraphim da Silva [mailto:[EMAIL PROTECTED] Sent: 03 May 
  2006 15:22To: axis-user@ws.apache.orgSubject: 
  OracleAS
  Hi folks,
   
  Have someone here use Axis with Oracle
  Application Server? 
   
  It's possible to do? And how can I do 
  it?
   
  Regards,
   
  

-
THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL

AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. 
IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON NOTICE OF ITS STATUS. 
PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL AND ANY ATTACHMENT FROM YOUR SYSTEM. 
YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: 

TO DO SO COULD BE A BREACH OF CONFIDENCE

EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED AMENDMENT, 
AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR AMENDMENT OR THE CONSEQUENCES THEREOF. 

WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. 
WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN ANY EMAIL OR ATTACHMENT.

---
[EMAIL PROTECTED]




RE: WSDL2Java through Proxy

2006-05-03 Thread Caron, Michael R
Title: WSDL2Java through Proxy



It might just be an issue now with the Amazon AWSAlexa Web 
Service. I tried it on an internal web service hosted here at LM and it worked 
like a charm.
 
Thanks Axis Team!
 
Mike


From: Caron, Michael R Sent: 
Wednesday, May 03, 2006 9:09 AMTo: 
axis-user@ws.apache.orgSubject: RE: WSDL2Java through 
Proxy

Werner,
 
That worked like a charm. Only, now I get a null pointer 
exception in the CodeGenerationEngine at line 185. :p I'm going to try with the 
out of the box 0.95 binaries instead of the 1.0RC5 build that I 
made.
 
For any who are interested, I'm trying to use Axis2 to 
write a client for http://awis.amazonaws.com/AWSAlexa/AWSAlexa.wsdl.
 
My environment:
JAVA_HOME=D:\Tools\Languages\Java\j2sdk1.4.2_06
JAVA_OPTS=-Dhttp.proxyHost=proxy-eagan.tds-eagan.lmco.com 
-Dhttp.proxyPort=8080
AXIS2_HOME=D:\Tools\Languages\Java\Axis2
(axis 2 version: 1.0RC5 built with "maven 
release")
 
The command:
WSDL2Java.bat -p 
com.lmco.eagan.wsclients -t -uri http://awis.amazonaws.com/AWSAlexa/AWSAlexa.wsdl
 
The output:
Using AXIS2_HOME:   
D:\Tools\Languages\Java\Axis2Using JAVA_HOME:    
D:\Tools\Languages\Java\j2sdk1.4.2_06Retrieving schema at 'AWSAlexa.xsd', 
relative to 'http://awis.amazonaws.com/AWSAlexa/AWSAlexa.wsdl'.Exception 
in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: org.apache.axis2.schema.SchemaCompilationException: 
java.lang.NullPointerException    at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)    
at 
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)    
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)Caused by: 
java.lang.RuntimeException: 
org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException    
at 
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:117)    
at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)    
... 2 moreCaused by: org.apache.axis2.schema.SchemaCompilationException: 
java.lang.NullPointerException    at 
org.apache.axis2.schema.writer.JavaBeanWriter.write(JavaBeanWriter.java:180)    
at 
org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:634)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:432)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:334)    
at 
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:915)    
at 
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:878)
 
    at 
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:643)    
at 
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:594)
    at 
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:579)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:366)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:344)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:410)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:334)    
at 
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:915)    
at 
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:878)
 
    at 
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:643)    
at 
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:594)    
at 
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:579)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:366)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:344)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:410)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:334)    
at 
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:915)    
at 
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:878)
 
    at 
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:643)    
at 
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:594)    
at 
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:579)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:366)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:344)    
at 
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:226)    
at 
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.j

RE: WSDL2Java through Proxy

2006-05-03 Thread Caron, Michael R
Title: WSDL2Java through Proxy



Werner,
 
That worked like a charm. Only, now I get a null pointer 
exception in the CodeGenerationEngine at line 185. :p I'm going to try with the 
out of the box 0.95 binaries instead of the 1.0RC5 build that I 
made.
 
For any who are interested, I'm trying to use Axis2 to 
write a client for http://awis.amazonaws.com/AWSAlexa/AWSAlexa.wsdl.
 
My environment:
JAVA_HOME=D:\Tools\Languages\Java\j2sdk1.4.2_06
JAVA_OPTS=-Dhttp.proxyHost=proxy-eagan.tds-eagan.lmco.com 
-Dhttp.proxyPort=8080
AXIS2_HOME=D:\Tools\Languages\Java\Axis2
(axis 2 version: 1.0RC5 built with "maven 
release")
 
The command:
WSDL2Java.bat -p com.lmco.eagan.wsclients -t -uri http://awis.amazonaws.com/AWSAlexa/AWSAlexa.wsdl
 
The output:
Using AXIS2_HOME:   
D:\Tools\Languages\Java\Axis2Using JAVA_HOME:    
D:\Tools\Languages\Java\j2sdk1.4.2_06Retrieving schema at 'AWSAlexa.xsd', 
relative to 'http://awis.amazonaws.com/AWSAlexa/AWSAlexa.wsdl'.Exception 
in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: org.apache.axis2.schema.SchemaCompilationException: 
java.lang.NullPointerException    at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)    
at 
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)    
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)Caused by: 
java.lang.RuntimeException: 
org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException    
at 
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:117)    
at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)    
... 2 moreCaused by: org.apache.axis2.schema.SchemaCompilationException: 
java.lang.NullPointerException    at 
org.apache.axis2.schema.writer.JavaBeanWriter.write(JavaBeanWriter.java:180)    
at 
org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:634)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:432)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:334)    
at 
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:915)    
at 
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:878)
 
    at 
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:643)    
at 
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:594)
    at 
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:579)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:366)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:344)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:410)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:334)    
at 
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:915)    
at 
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:878)
 
    at 
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:643)    
at 
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:594)    
at 
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:579)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:366)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:344)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:410)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:334)    
at 
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:915)    
at 
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:878)
 
    at 
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:643)    
at 
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:594)    
at 
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:579)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:366)    
at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:344)    
at 
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:226)    
at 
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:207)    
at 
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:181)    
at 
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:70)    
... 3 moreCaused by: 
java.lang.NullPointerException    at 
org.apache.axis2.schema.writer.JavaBeanWrit

Re: [Axis2][0.95] How can my service make call to another service? (More details) - RC5

2006-05-03 Thread Ali Sadik Kumlali
Hi Deepal,

I found that the cause of NPE is "unassinged parent". If the service is
already registered in axisConfig it doesn't enter in the code that
assings a parent to the service. Also, it doesn't uses the parent of
the registered service.

The code causes NPE is here:

// org.apache.axis2.client.ServiceClient
public ServiceClient(ConfigurationContext configContext,
 AxisService axisService) throws AxisFault {

  ...
  // If the service is already registered, it doesn't enter
  // here so there will be no parent.
  if (this.axisConfig.getService(this.axisService.getName()) == null) {
this.axisConfig.addService(this.axisService);
  }
  ServiceGroupContext sgc = new ServiceGroupContext(this.configContext,
(AxisServiceGroup) this.axisService.getParent());
  this.serviceContext = sgc.getServiceContext(this.axisService);
}




Here is the my way of passing this problem:


// org.apache.axis2.client.ServiceClient
public ServiceClient(ConfigurationContext configContext,
 AxisService axisService) throws AxisFault {

  ...
  AxisService service = null;
  AxisService registeredService = 
this.axisConfig.getService(this.axisService.getName());
  if (registeredService != null) {
service = registeredService;
  } else {
this.axisConfig.addService(this.axisService);
service = this.axisService;
  }

  ServiceGroupContext sgc = new ServiceGroupContext(this.configContext,
(AxisServiceGroup) service.getParent());  
  this.serviceContext = sgc.getServiceContext(service);
}



But I'm still having an exception that says:


...
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
[ERROR]
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[jsp]
- Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been
called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:606)
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)


Thanks,

Ali Sadik Kumlali

--- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:

> Deepal,
> 
> I've just tried it with axis2 war distribution (RC5) and got NPE.
> 
> Here is my code snippet that uses ListenerManager:
> 
> -
> System.out.println("ListenerManager.defaultConfigurationContext: " +
> ListenerManager.defaultConfigurationContext);
>
System.out.println("ListenerManager.defaultConfigurationContext.getServiceGroupContexts():
> " +
>
ListenerManager.defaultConfigurationContext.getServiceGroupContexts());
> com.mycompany.service.test.account.AccountServicesStub stub = new
>
com.mycompany.service.test.account.AccountServicesStub(ListenerManager.defaultConfigurationContext,
> targetEndpoint);
> -
> 
> Here is the output:
> 
> -
> ListenerManager.defaultConfigurationContext:
> [EMAIL PROTECTED]
>
ListenerManager.defaultConfigurationContext.getServiceGroupContexts():
> {}
> java.lang.NullPointerException
>   at
>
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)
>   at
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:101)
>   at
>
com.mycompany.service.test.account.AccountServicesStub.(AccountServicesStub.java:329)
>   at 
> ...
> -
> 
> What I've seen from the output is
> ListenerManager.defaultConfigurationContext is successfully set as
> it's
> not null. But I cannot think furthermore :-)
> 
> What should I do?
> 
> Thanks a lot.
> 
> Ali Sadik Kumlali
> 
> 
> --- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> 
> > Thanks Deepal. I'll try it with 1.0 RC3 and let you know the
> result.
> > 
> > Best regards,
> > 
> > Ali Sadik Kumlali
> > 
> > --- Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> > 
> > > You can have this with Axis2 RC or above :)
> > > 
> > > You have to follow the following procedure for doing this
> > >   - When you creating stub , it has a constructor which take
> > > configuration context as argument.
> > >   - So pass that as "ListenerManager.defaultConfigurationContext"
> > >   - In this case client will be created using server
> configuration
> > > context
> > >   - And this will work in axis2 war distribut

WSDL2Java difference between v0.94 and v1RC4

2006-05-03 Thread david.ziebol



Hi 
all,
 
I have a WSDL file 
which when fed into the the WSDL2Java process from v94 produces the needed files 
and functions appropriately.  When this same WSDL file is fed into the 
WSDL2Java process from v1.0 RC4 errors out with the followin 
issue:
 
C:\Downloads\Axis2\axis2-v1.4unzipped\bin>WSDL2Java 
-uri service.wsdl -o c:\LoadGen -p com.thomson.west.foundations.server.soap 
-t -ss on -sd on -d adb -g -u -sn FoundationsServicesServer -pn 
FoundationServicesServerServiceUsing AXIS2_HOME:   
C:\Downloads\Axis2\axis2-v1.4unzippedUsing JAVA_HOME:    
C:\j2sdk1.4.2_07Exception in thread "main" java.lang.VerifyError: (class: 
org/apache/axis2/description/WSDL2AxisServiceBuilder, method: 
populateOperations signature: 
(Ljavax/wsdl/Operation;Ljavax/wsdl/Definition;)Lorg/apache/axis2/description/AxisOperation;) 
Incompatible argument to function    
at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:87)    
at 
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)    
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
 
The call to 
WSDL2Java remains the same as follows:
C:\Downloads\Axis2\axis2-v94Unzipped\bin>WSDL2Java 
-uri service.wsdl -o c:\LoadGen -p com.thomson.west.foundations.server.soap 
-t -ss on -sd on -d adb -g -u -sn FoundationsServicesServer -pn 
FoundationServicesServerService
 
The WSDL file is as 
follows:

http://server.foundations.west.thomson.com" 
xmlns:impl="http://server.foundations.west.thomson.com" 
xmlns:intf="http://server.foundations.west.thomson.com" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">   
http://server.foundations.west.thomson.com" 
xmlns="http://www.w3.org/2001/XMLSchema" 
xmlns:impl="http://server.foundations.west.thomson.com" 
xmlns:intf="http://server.foundations.west.thomson.com" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">   
    
 
   
       
       
 
    
 
       
       
 
   
       
       
 
    
 
       
       
 
   
       
       
 
   
       
       
 
   
       
       
 
    
 
       
  
         
        
     
      
  
      
  
      
     
        
     
 
 
  
   
 
  
   
 
  
   
 
  
      
  
http://schemas.xmlsoap.org/soap/http"/>  
 
 
    
 
 
    
 
  
   
 
    
 
 
    
 
  
   
 
    
 
 
    
 
  
   
 
    
 
 
    
 
  
      
  
 
 http://localhost:8080/axis2/services/FoundationServicesServer"/>  
   

As far as the classes generated are concerned, does it matter if they are 
generated via v0.94 WSDL2Java or v1RC4 WSDL2Java?
Thanks in advance.
Dave 
Ziebol
 


[ANN] Apache WSS4J 1.5.0 Released

2006-05-03 Thread Ruchith Fernando
The WSS4J team is happy to announce the 1.5.0 release of
Apache WSS4J, the Web service security implementation.

You can download the releases from:

http://www.apache.org/dyn/closer.cgi/ws/wss4j/1_5_0

The distributions to the mirror(s) sites will be available in the next
few days.

Apart from the binary and source distributions, We have an additional
ZIP file that contains other required JAR files to install and run WSS4J.

Please refer to the *readme.* files in the distribution for
further information regarding implemented features, additional
information, links to the Wiki pages, etc.

Note that major refactoring from the 1.1.0 to 1.5.0 is mentioned in
the wiki :
http://wiki.apache.org/ws/FrontPage/WsFx/refactor

More information about WSS4J and related projects is available
on the WSS4J homepage:

http://ws.apache.org/wss4j

We hope you have fun with this new WSS4J   :-)

The WSS4J team


signature.asc
Description: OpenPGP digital signature


Re: SOAP namespacing conventions

2006-05-03 Thread Anne Thomas Manes
The prefix string is not significant. There is no "standard" convention.On 5/3/06, Steve Pruitt <[EMAIL PROTECTED]
> wrote:





Is there is a "standard" or "widely accepted" 
convention for naming the soap namespace.
I 
have seen:
 

http://schemas.xmlsoap.org/soap/envelope/">

http://schemas.xmlsoap.org/soap/envelope/
">

http://schemas.xmlsoap.org/soap/envelope/
">
 
 
Thanks,
 
-Steve 
Pruitt




SOAP namespacing conventions

2006-05-03 Thread Steve Pruitt




Is there is a "standard" or "widely accepted" 
convention for naming the soap namespace.
I 
have seen:
 
http://schemas.xmlsoap.org/soap/envelope/">

http://schemas.xmlsoap.org/soap/envelope/">

http://schemas.xmlsoap.org/soap/envelope/">
 
 
Thanks,
 
-Steve 
Pruitt


need help with validating an xml doc against the schema

2006-05-03 Thread Mohit_Goyal




Hi,
 
I read your article 
on OTN and it was good. But I am facing some problem when i try to validate the 
xml document against the schema in my project. 
 
I am working on a 
Web services project involving transfer of XML docs as string and validating 
them against the schema and then updating the database with the data contained 
in the document.
 
I am currently 
facing problem during the validation part. 
 
the schema 
is as follows: 
 
http://sync.dubai.ae/oagis/9" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:oa="http://www.openapplications.org/oagis/9" 
xmlns:ns1="http://www.openapplications.org/oagis/9/codelists" 
xmlns:ns2="http://www.openapplications.org/oagis/9/unqualifieddatatypes/1.1" 
xmlns:ns3="http://www.openapplications.org/oagis/9/qualifieddatatypes/1.1" 
targetNamespace="http://sync.dubai.ae/oagis/9" 
elementFormDefault="qualified" 
attributeFormDefault="unqualified">  http://www.openapplications.org/oagis/9/codelists" 
schemaLocation="../../../Resources/Components/Common/CodeLists.xsd"/> http://www.openapplications.org/oagis/9" 
schemaLocation="../../../Resources/Components/Common/Components.xsd"/> http://www.openapplications.org/oagis/9" 
schemaLocation="../../../Resources/Components/Common/Meta.xsd"/> http://www.openapplications.org/oagis/9/unqualifieddatatypes/1.1" 
schemaLocation="../../../Resources/Components/CoreComponents/unqualifiedDataTypes.xsd"/> http://www.openapplications.org/oagis/9/qualifieddatatypes/1.1" 
schemaLocation="../../../Resources/Components/CoreComponents/QualifiedDataTypes.xsd"/>   
DEG Trade License 
Object
 
the 
sample.xml file is as follows:
 
http://www.openapplications.org/oagis/9" 
languageCode="en-US" versionID="normalizedString" releaseID="normalizedString" 
systemEnvironmentCode="Production" xmlns="http://sync.dubai.ae/oagis/9">  
    
  http://www.altova.com" 
schemeID="normalizedString" schemeDataURI="http://www.altova.com">normalizedString>  
http://www.altova.com" 
schemeID="normalizedString" schemeDataURI="http://www.altova.com">normalizedString>  
http://www.altova.com" 
schemeID="normalizedString" schemeDataURI="http://www.altova.com">normalizedString>  
http://www.altova.com" 
schemeID="normalizedString" schemeDataURI="http://www.altova.com">normalizedString>  
http://www.altova.com" 
listSchemeURI="http://www.altova.com" 
listID="normalizedString" listVersionID="normalizedString" name="String" 
listAgencyID="normalizedString">Always  
http://www.altova.com" 
schemeID="normalizedString" schemeDataURI="http://www.altova.com">normalizedString>    
    
2006-05-02T14:14:12+04:00    
    http://www.altova.com" 
schemeID="normalizedString" schemeDataURI="http://www.altova.com">6c1b6d98-52db-44bd-a019-f76a25f73c0b>    
    
        
  
DED  
    
237526    
534455001    
  
0  
  
    
    
33474    
33731    
AL BALAD REAL 
ESTATE    
ÇáÈáÏ 
ááÚÞÇÑÇÊ    
  
  
Phonno  
2723408    
    
  
  
MobileNo  
    
    
  
  
Faxno  
2725213    
    
1995-04-11    
2007-04-10    
Active    
  
2  
Commercial 
License  
ÊÌÇÑíÉ    
    
  
0  
Sole 
Propreitorship  
ãÄÓÓÉ 
ÝÑÏíÉ    
    
  
2  
  
ãÄÓÓÇÊ    
    
237526    
0    
0    
  
    
ãßÊÈ ãáß äÇÕÑ Èä ÚÈÏÇááØíÝ ÇáÓÑßÇá - ÏíÑÉ - 
ÇáãØíäÉ    
3930    
    
    
    
    
  
    
  
  
    
  
701001  
Real Estate 
Agent  
ÔÑÇÁÇáÇÑÇÖí æÇáÚÞÇÑÇÊ  
æÈíÚåÇ  
    
09    
Canceled    
ãáÛí  
  
1995-04-11  
2003-06-09    
    
  
701002  
Real Estate 
Brokers  
ÇáæÓÇØÉ Ýí ÈíÚ ÇáÚÞÇÑÇÊ 
æÔÑÇÆåÇ  
    
00    
Active    
ÝÚÇá  
  
1995-04-11    
    
  
701003  
Real Estate Management 
Services  
ÎÏãÇÊ  ÊÃÌíÑ ÇáÚÞÇÑÇÊ  
æÇÏÇÑÊåÇ  
    
09    
Canceled    
ãáÛí  
  
1995-04-11  
2003-06-09    
  
  
    
  
8192  
  
ÚÈÏÇááå Úáí ÇÕÛÑ ÚÈÏÇááå ÇáÚÈÏÇááå  
    
1    
UAE 
National    
ãæÇØä  
  
0  
906904/Ú  
2232/Ï  
    
101    
Emirates    
ÇáÇãÇÑÇÊ  
  
    
1    
Establishment 
Owner    
ãÇáß 
ãÄÓÓÉ  
  
    
00    
Active    
ÝÚÇá  
  
1995-04-12    
  
  
    
1073804    
2006-04-08    
  
400  
Trade License Renewal without 
amendment  
ÊÌÏ

Re: Fw: [Axis2] WSS4J - Trying to engage a module which is not available : addressing

2006-05-03 Thread Rob Henley
Unfortuantely the NullPointerexception is thrown before I can get a 
ServiceClientInstance. In my case the exception is thrown at this line in 
the generated stub constructor ...


_serviceClient = new 
org.apache.axis2.client.ServiceClient(configurationContext,_service);


Cheers
Rob
- Original Message - 
From: "Ruchith Fernando" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, May 03, 2006 12:30 PM
Subject: Re: Fw: [Axis2] WSS4J - Trying to engage a module which is not 
available : addressing



Hi Rob,

If your client's axis2.xml (with the  entry)
is picked up properly _and_ if axis2 cannot pickup the proper
repository where the security module is available it will throw an
exception saying that the security module is missing.

If you don't get this error either :
- your client side security module is properly engaged
OR
 - the axis2.xml you specified is not pickedup by axis2

When you specify both _configured_ axis2.xml and the repository in
ConfigurationContextFactory.createConfigurationContextFromFileSystem()
then you can check whether the security module is really engaged, by
trying to engage it again in the client code:

.engageModule(new QName("security"));

This _will_ throw an exception and complain that the security module
is already engaged if it is engaged in the axis2.xml and if it is
available in the repo.

If all these tests passes ... then your security module is properly
engaged AND to get the security module to work on the request/response
message to apply/verify security actions, you _must_ provide the
security module configuration in the client side axis2.xml [1].

Thanks,
Ruchith

[1] http://ws.apache.org/axis2/0_95/security-module.html

On 5/3/06, Rob Henley <[EMAIL PROTECTED]> wrote:

Hi guys
I've been trying for a while now to get the security module to work 
(either
using my own code or the security sample). I was encouraged when I was 
told
that 0.95 had a known problem which was addressed in RC2, but I get the 
same

problem(s) in RC2 (described below). I'm currently using:

axis2.war, std-bin from and 
http://people.apache.org/~deepal/axis2/1.0-RC2/

security, addressing modules from
http://people.apache.org/~deepal/maven/ws/axis2/mars/

I have a (working) client and server, generated from WSDL. These work fine
without security.

I'm pretty sure the client sees the correct axis2.xml (where the security
module is engaged and the required security settings are specified). I can
do this either by specifying -Daxis2.xml=... on the java command line or 
by

supplying the axis2.xml path as the 2nd parameter to
createConfigurationContextFromFileSystem in the client source.

I think my problem is that the client is not finding a 'repository'.

If I don't specify a repository I get the "Trying to engage a module ..."
errors, which seems reasonable since I haven't told the client where to
look.

If I specify the repository as the 1st parameter to
createConfigurationContextFromFileSystem then I get a NullPointerException
from ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)

On the face of it this looks like a bug in Axis2. Can anyone tell me:
- have I missed something (e.g. did I get the security module from the 
wrong

place? Am I missing some environment settings?)
- how I might get any more information about the cause of the problem
- whether I should try RC4
- if anyone could send me any simple client code which works for them?

Many thanks
Rob
- Original Message -
From: "Rob Henley" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, April 30, 2006 9:33 PM
Subject: Re: [Axis2] WSS4J - Trying to engage a module which is not
available : addressing


> Hi Ruchith
> thanks - but with -Daxis2.xml=...\conf\axis2.xml I get the same error as
> before ...
>
> org.apache.axis2.deployment.DeploymentException: Trying to engage a 
> module

> which is not available : addressing; nested exception is: ...
>
> So the question is why can't the client find the modules when the server
> can? I guess the problem is that the client doesn't know where the
> 'repository' is, where it would expect to find modules\*.mar.
>
> But if I try to specify the repository as the first parameter to
> createConfigurationContextFromFileSystem ..
>
> ConfigurationContext ctx =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(
>"C:\\Progra~1\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF",
>
> "C:\\Progra~1\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF\\conf\\axis2.xml");
>
> then I get
> java.lang.NullPointerException
>at
> 
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)
>at
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:98)
>at org.apache.axis2.PurchasingStub.(Unknown Source)
>at samples.purchasing1.ClientTest.main(Unknown Source)
>
> I also tried adding the 'mar' files directly to the classpath (clutching
> at straws :-), but that doesn't help.
>
> Cheers
> Rob
> - Original Message -
>

Re: [Axis2] problem resolving external xsd in wsdl

2006-05-03 Thread Ajith Ranabahu

Hi Florian,
We have fixed this issue by providing a custom WSDLLocator in the
current SVN head. So please have a go with the current SVN head and
let us know.
However note that the custom aar based WSDLLocator we has been tested
only to read files that are in the root location (META-INF folder).
Yours might not work due to the inclusion of the schema folder. Anyway
give it a try and see :)

On 5/3/06, Florian Rosenberg <[EMAIL PROTECTED]> wrote:

hi,

I have a WSDL file in my aar file which references several schemas. the
schemas are located in a subdir schemas/ in the directory of the WSDL file.

TestService.wsdl:
-

 http://www.vitalab.tuwien.ac.at/VieQoS";>

   http://www.w3.org/2005/08/addressing";
 schemaLocation="schemas/ws-addr.xsd" />
   http://schemas.xmlsoap.org/ws/2004/09/policy";
 schemaLocation="schemas/policy-2006-03-01-RC1.xsd" />
 


I package everything to an AAR. The aar layout is as follows:

TestService.aar
|-- META-INF/
|- services.xml
|- TestService.wsdl
|- schemas/
|- schema1.xsd
|- schema2.xsd

and so on

When i deploy that service i see the following exception in catalina.out:

Caused by: WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
faultCode=OTHER_ERROR: Unable to locate with a locator the schema
referenced at 'schemas/policy-2006-03-01-RC1.xsd' relative to document
base '':
 at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
 at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
 at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
 at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
 at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
 at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
 at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
 at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
 at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
 at
org.apache.axis2.description.WSDL2AxisServiceBuilder.readInTheWSDLFile(WSDL2AxisServiceBuilder.java:955)
 at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:198)
---

What is the relative document root in this case and where do I have do
configure it (it possible anyway)? However, where do I have to place the
schemas to make it work.

thanks in advance

best regards,
florian





--
Ajith Ranabahu


Re: [Axis2] problem resolving external xsd in wsdl

2006-05-03 Thread Ali Sadik Kumlali
Hi Florian,

I had similar problems with RC3 and they are fixed with RC4. I also
tested it with RC5. You can try with RC4 or the later releases.

Regards,

Ali Sadik Kumlali

--- Florian Rosenberg <[EMAIL PROTECTED]> wrote:

> hi,
> 
> I have a WSDL file in my aar file which references several schemas.
> the 
> schemas are located in a subdir schemas/ in the directory of the WSDL
> file.
> 
> TestService.wsdl:
> -
> 
>  targetNamespace="http://www.vitalab.tuwien.ac.at/VieQoS";>
> 
>http://www.w3.org/2005/08/addressing";
>  schemaLocation="schemas/ws-addr.xsd" />
>  namespace="http://schemas.xmlsoap.org/ws/2004/09/policy";
>  schemaLocation="schemas/policy-2006-03-01-RC1.xsd" />
>  
> 
> 
> I package everything to an AAR. The aar layout is as follows:
> 
> TestService.aar
> |-- META-INF/
> |- services.xml
> |- TestService.wsdl
> |- schemas/
> |- schema1.xsd
> |- schema2.xsd
> 
> and so on
> 
> When i deploy that service i see the following exception in
> catalina.out:
> 
> Caused by: WSDLException (at
> /wsdl:definitions/wsdl:types/xsd:schema): 
> faultCode=OTHER_ERROR: Unable to locate with a locator the schema 
> referenced at 'schemas/policy-2006-03-01-RC1.xsd' relative to
> document 
> base '':
>  at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown
> Source)
>  at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown
> Source)
>  at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown
> Source)
>  at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> Source)
>  at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>  at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>  at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>  at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>  at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>  at 
>
org.apache.axis2.description.WSDL2AxisServiceBuilder.readInTheWSDLFile(WSDL2AxisServiceBuilder.java:955)
>  at 
>
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:198)
> ---
> 
> What is the relative document root in this case and where do I have
> do 
> configure it (it possible anyway)? However, where do I have to place
> the 
> schemas to make it work.
> 
> thanks in advance
> 
> best regards,
> florian
> 
> 


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


[Axis2] problem resolving external xsd in wsdl

2006-05-03 Thread Florian Rosenberg

hi,

I have a WSDL file in my aar file which references several schemas. the 
schemas are located in a subdir schemas/ in the directory of the WSDL file.


TestService.wsdl:
-

http://www.vitalab.tuwien.ac.at/VieQoS";>

  http://www.w3.org/2005/08/addressing";
schemaLocation="schemas/ws-addr.xsd" />
  http://schemas.xmlsoap.org/ws/2004/09/policy";
schemaLocation="schemas/policy-2006-03-01-RC1.xsd" />



I package everything to an AAR. The aar layout is as follows:

TestService.aar
|-- META-INF/
|- services.xml
|- TestService.wsdl
|- schemas/
|- schema1.xsd
|- schema2.xsd

and so on

When i deploy that service i see the following exception in catalina.out:

Caused by: WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): 
faultCode=OTHER_ERROR: Unable to locate with a locator the schema 
referenced at 'schemas/policy-2006-03-01-RC1.xsd' relative to document 
base '':

at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at 
org.apache.axis2.description.WSDL2AxisServiceBuilder.readInTheWSDLFile(WSDL2AxisServiceBuilder.java:955)
at 
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:198)

---

What is the relative document root in this case and where do I have do 
configure it (it possible anyway)? However, where do I have to place the 
schemas to make it work.


thanks in advance

best regards,
florian



Re: [Axis2] How to get MessageContext

2006-05-03 Thread Ruchith Fernando

An example for such a service impl class is here : [1]

Thanks,
Ruchith

[1] 
https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/security/interop/org/apache/axis2/oasis/ping/PingPortSkeleton.java

On 5/3/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

ya , just add that method in to service impl class and that method will
be called using java reflection. So you  can keep a ref to
operatoionConetx in side your class instance. And when you get the
actual method call you can access that.

Michele Mazzucco wrote:

>Hi Deepal,
>
>could you be more explicit please? Do you mean
>
>public void setOperationContext(OperationContext opctx) {
>   // empty content
>}
>
>(and I don't need to call it)?
>
>
>Michele
>
>Deepal Jayasinghe wrote:
>
>
>>you have to add a method called
>>setOperationContext(OperationContext opctx) {
>>}
>>
>>in to your sevrice impl class , and that method will be called whenever
>>you get a req . Using opctx you can get the messagecontext
>>
>>
>>Michele Mazzucco wrote:
>>
>>
>>
>>>Hi all,
>>>
>>>how can I get the MessageContext from a OMelement?
>>>(I'm using the primary interface APIs, that is my methods have the
>>>following signature:
>>>
>>>OMelement operation(OMElement arg1, OMElelent arg2,..., OMElement argN) {
>>> ...
>>>}
>>>
>>>)
>>>
>>>
>>>
>>>Thanks,
>>>Michele
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>

--
Thanks,
Deepal

~Future is Open~





Re: [Axis2] How to get MessageContext

2006-05-03 Thread Ajith Ranabahu

Hi,
this is called dependency injection. The Axis2 runtime will call the
method and pump in the correct opContext. You'll have to grab the
needed message context when that happens so you better have some code
that assigns the needed message context to a private variable
inside that method!
Note that this method is called before your business methods so it is
safe to assume that opcontext will be presented to you before anything
else

On 5/3/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:

Hi Deepal,

could you be more explicit please? Do you mean

public void setOperationContext(OperationContext opctx) {
// empty content
}

(and I don't need to call it)?


Michele

Deepal Jayasinghe wrote:
> you have to add a method called
> setOperationContext(OperationContext opctx) {
> }
>
> in to your sevrice impl class , and that method will be called whenever
> you get a req . Using opctx you can get the messagecontext
>
>
> Michele Mazzucco wrote:
>
>> Hi all,
>>
>> how can I get the MessageContext from a OMelement?
>> (I'm using the primary interface APIs, that is my methods have the
>> following signature:
>>
>> OMelement operation(OMElement arg1, OMElelent arg2,..., OMElement argN) {
>>  ...
>> }
>>
>> )
>>
>>
>>
>> Thanks,
>> Michele
>>
>>
>>
>>
>




--
Ajith Ranabahu


[Axis2] specifying username and password

2006-05-03 Thread Kees de Kooter

In Axis 1 I specified username/password like this:

call.setUserName();
call.setPassword();

What is the equivalent in Axis 2?


--
Cheers,
Kees de Kooter
http://www.boplicity.net


Re: Fw: [Axis2] WSS4J - Trying to engage a module which is not available : addressing

2006-05-03 Thread Ruchith Fernando

Hi Rob,

If your client's axis2.xml (with the  entry)
is picked up properly _and_ if axis2 cannot pickup the proper
repository where the security module is available it will throw an
exception saying that the security module is missing.

If you don't get this error either :
- your client side security module is properly engaged
OR
 - the axis2.xml you specified is not pickedup by axis2

When you specify both _configured_ axis2.xml and the repository in
ConfigurationContextFactory.createConfigurationContextFromFileSystem()
then you can check whether the security module is really engaged, by
trying to engage it again in the client code:

.engageModule(new QName("security"));

This _will_ throw an exception and complain that the security module
is already engaged if it is engaged in the axis2.xml and if it is
available in the repo.

If all these tests passes ... then your security module is properly
engaged AND to get the security module to work on the request/response
message to apply/verify security actions, you _must_ provide the
security module configuration in the client side axis2.xml [1].

Thanks,
Ruchith

[1] http://ws.apache.org/axis2/0_95/security-module.html

On 5/3/06, Rob Henley <[EMAIL PROTECTED]> wrote:

Hi guys
I've been trying for a while now to get the security module to work (either
using my own code or the security sample). I was encouraged when I was told
that 0.95 had a known problem which was addressed in RC2, but I get the same
problem(s) in RC2 (described below). I'm currently using:

axis2.war, std-bin from and http://people.apache.org/~deepal/axis2/1.0-RC2/
security, addressing modules from
http://people.apache.org/~deepal/maven/ws/axis2/mars/

I have a (working) client and server, generated from WSDL. These work fine
without security.

I'm pretty sure the client sees the correct axis2.xml (where the security
module is engaged and the required security settings are specified). I can
do this either by specifying -Daxis2.xml=... on the java command line or by
supplying the axis2.xml path as the 2nd parameter to
createConfigurationContextFromFileSystem in the client source.

I think my problem is that the client is not finding a 'repository'.

If I don't specify a repository I get the "Trying to engage a module ..."
errors, which seems reasonable since I haven't told the client where to
look.

If I specify the repository as the 1st parameter to
createConfigurationContextFromFileSystem then I get a NullPointerException
from ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)

On the face of it this looks like a bug in Axis2. Can anyone tell me:
- have I missed something (e.g. did I get the security module from the wrong
place? Am I missing some environment settings?)
- how I might get any more information about the cause of the problem
- whether I should try RC4
- if anyone could send me any simple client code which works for them?

Many thanks
Rob
- Original Message -
From: "Rob Henley" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, April 30, 2006 9:33 PM
Subject: Re: [Axis2] WSS4J - Trying to engage a module which is not
available : addressing


> Hi Ruchith
> thanks - but with -Daxis2.xml=...\conf\axis2.xml I get the same error as
> before ...
>
> org.apache.axis2.deployment.DeploymentException: Trying to engage a module
> which is not available : addressing; nested exception is: ...
>
> So the question is why can't the client find the modules when the server
> can? I guess the problem is that the client doesn't know where the
> 'repository' is, where it would expect to find modules\*.mar.
>
> But if I try to specify the repository as the first parameter to
> createConfigurationContextFromFileSystem ..
>
> ConfigurationContext ctx =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(
>"C:\\Progra~1\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF",
>
> "C:\\Progra~1\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF\\conf\\axis2.xml");
>
> then I get
> java.lang.NullPointerException
>at
> 
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)
>at
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:98)
>at org.apache.axis2.PurchasingStub.(Unknown Source)
>at samples.purchasing1.ClientTest.main(Unknown Source)
>
> I also tried adding the 'mar' files directly to the classpath (clutching
> at straws :-), but that doesn't help.
>
> Cheers
> Rob
> - Original Message -
> From: "Ruchith Fernando" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, April 30, 2006 7:54 AM
> Subject: Re: [Axis2] WSS4J - Trying to engage a module which is not
> available : addressing
>
>
> Hi Rob,
>
> Can you please try specifying the path to the axis2.xml as shown below:
>
> java . -Daxis2.xml=path/to/axis2.xml
>
> Thanks,
> Ruchith
>
> On 4/30/06, Rob Henley <[EMAIL PROTECTED]> wrote:
>> Hi Ruchith
>> yes, I specify the module in axis2.xml. See below for relevant section of
>> the axis2.xml.
>> Cheers
>

Re: [Axis2] Re: User manual for Axis2 v 0.95 - Problems with "Invoking a service using a mail"

2006-05-03 Thread Jack

Hi Chamil,

Thanks for that... I have not yet had a chance to play with it... I
expect that we will probably wait for this part of Axis2 to become a
little more mature before we try to implement with it anyway.
We will certainly be keeping an eye on how things progress.

Cheers
Jack...

On 29/04/06, Chamil Thanthrimudalige <[EMAIL PROTECTED]> wrote:

Hi Jack,

I did a bit of digging and found a few problems with the mail
transport and I have fixed them now. This is due to the fact that we
have excluded the mail tests from the build since we can't have a
dependency on the sun javamail and activation jars. There were some
changes to axis2 code which have not been tested with the mail
transport. I have fixed these and you will be able to use the mail
transport now.

Have  a look at MailRequestResponseRawXMLTest[1] for an example about
how to do a request response case, and have a look at mail-enabled-
server-axis2.xml[2] and mail-enabled-client-axis2.xml[2] for examples
on configurations.

I still have not updated the docs. So you will have to stick to the
code for now.

Have a go[4] at the code with the sun javamail and activation jars.
You can do this from inside by changing the etc/project.properties
file to use the sun jars after copying them into the maven repository.

Best Regards,
Chamil Thanthrimudalige

[1] modules/integration/test/org/apache/axis2/mail/
MailRequestResponseRawXMLTest.java
[2] modules/integration/test/org/apache/axis2/mail/mail-enabled-
server-axis2.xml
[3] modules/integration/test/org/apache/axis2/mail/mail-enabled-
client-axis2.xml
[4] maven -o test:single -
Dtestcase=org.apache.axis2.mail.MailRequestResponseRawXMLTest


Re: [Axis2] How to get MessageContext

2006-05-03 Thread Deepal Jayasinghe
ya , just add that method in to service impl class and that method will
be called using java reflection. So you  can keep a ref to
operatoionConetx in side your class instance. And when you get the
actual method call you can access that.

Michele Mazzucco wrote:

>Hi Deepal,
>
>could you be more explicit please? Do you mean
>
>public void setOperationContext(OperationContext opctx) {
>   // empty content
>}
>
>(and I don't need to call it)?
>
>
>Michele
>
>Deepal Jayasinghe wrote:
>  
>
>>you have to add a method called
>>setOperationContext(OperationContext opctx) {
>>}
>>
>>in to your sevrice impl class , and that method will be called whenever
>>you get a req . Using opctx you can get the messagecontext
>>
>>
>>Michele Mazzucco wrote:
>>
>>
>>
>>>Hi all,
>>>
>>>how can I get the MessageContext from a OMelement?
>>>(I'm using the primary interface APIs, that is my methods have the
>>>following signature:
>>>
>>>OMelement operation(OMElement arg1, OMElelent arg2,..., OMElement argN) {
>>> ...
>>>}
>>>
>>>)
>>>
>>>
>>>
>>>Thanks,
>>>Michele
>>>
>>>
>>> 
>>>
>>>  
>>>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 




JAVA2WSDL and generation of user defined RuntimeException

2006-05-03 Thread Mati David








I have my own defined RuntimeException (MyRuntimeException
that extends java.lang.RuntimeException). When I’m trying to run
JAVA2WSDL on it I get the following message:

 

- The class MyRuntimeException
extends non-bean class java.lang.RuntimeException.  An xml schema anyType
will be used to define MyRuntimeException in the wsdl file.

 

This seems to prevent my soap client to catch this type of
exception explicitly.

 

Is there a way to solve it? Is there a way to declare
RuntimeException in Axis?

 

Thanks for any help,

 

Mati.

 








Re: [Axis2] How to get MessageContext

2006-05-03 Thread Michele Mazzucco
Hi Deepal,

could you be more explicit please? Do you mean

public void setOperationContext(OperationContext opctx) {
// empty content
}

(and I don't need to call it)?


Michele

Deepal Jayasinghe wrote:
> you have to add a method called
> setOperationContext(OperationContext opctx) {
> }
> 
> in to your sevrice impl class , and that method will be called whenever
> you get a req . Using opctx you can get the messagecontext
> 
> 
> Michele Mazzucco wrote:
> 
>> Hi all,
>>
>> how can I get the MessageContext from a OMelement?
>> (I'm using the primary interface APIs, that is my methods have the
>> following signature:
>>
>> OMelement operation(OMElement arg1, OMElelent arg2,..., OMElement argN) {
>>  ...
>> }
>>
>> )
>>
>>
>>
>> Thanks,
>> Michele
>>
>>
>>  
>>
> 


Fw: [Axis2] WSS4J - Trying to engage a module which is not available : addressing

2006-05-03 Thread Rob Henley

Hi guys
I've been trying for a while now to get the security module to work (either 
using my own code or the security sample). I was encouraged when I was told 
that 0.95 had a known problem which was addressed in RC2, but I get the same 
problem(s) in RC2 (described below). I'm currently using:


axis2.war, std-bin from and http://people.apache.org/~deepal/axis2/1.0-RC2/
security, addressing modules from 
http://people.apache.org/~deepal/maven/ws/axis2/mars/


I have a (working) client and server, generated from WSDL. These work fine 
without security.


I'm pretty sure the client sees the correct axis2.xml (where the security 
module is engaged and the required security settings are specified). I can 
do this either by specifying -Daxis2.xml=... on the java command line or by 
supplying the axis2.xml path as the 2nd parameter to 
createConfigurationContextFromFileSystem in the client source.


I think my problem is that the client is not finding a 'repository'.

If I don't specify a repository I get the "Trying to engage a module ..." 
errors, which seems reasonable since I haven't told the client where to 
look.


If I specify the repository as the 1st parameter to 
createConfigurationContextFromFileSystem then I get a NullPointerException

from ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)

On the face of it this looks like a bug in Axis2. Can anyone tell me:
- have I missed something (e.g. did I get the security module from the wrong 
place? Am I missing some environment settings?)

- how I might get any more information about the cause of the problem
- whether I should try RC4
- if anyone could send me any simple client code which works for them?

Many thanks
Rob
- Original Message - 
From: "Rob Henley" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, April 30, 2006 9:33 PM
Subject: Re: [Axis2] WSS4J - Trying to engage a module which is not 
available : addressing




Hi Ruchith
thanks - but with -Daxis2.xml=...\conf\axis2.xml I get the same error as 
before ...


org.apache.axis2.deployment.DeploymentException: Trying to engage a module 
which is not available : addressing; nested exception is: ...


So the question is why can't the client find the modules when the server 
can? I guess the problem is that the client doesn't know where the 
'repository' is, where it would expect to find modules\*.mar.


But if I try to specify the repository as the first parameter to 
createConfigurationContextFromFileSystem ..


ConfigurationContext ctx = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(

   "C:\\Progra~1\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF",

"C:\\Progra~1\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF\\conf\\axis2.xml");

then I get
java.lang.NullPointerException
   at 
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)
   at 
org.apache.axis2.client.ServiceClient.(ServiceClient.java:98)

   at org.apache.axis2.PurchasingStub.(Unknown Source)
   at samples.purchasing1.ClientTest.main(Unknown Source)

I also tried adding the 'mar' files directly to the classpath (clutching 
at straws :-), but that doesn't help.


Cheers
Rob
- Original Message - 
From: "Ruchith Fernando" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, April 30, 2006 7:54 AM
Subject: Re: [Axis2] WSS4J - Trying to engage a module which is not 
available : addressing



Hi Rob,

Can you please try specifying the path to the axis2.xml as shown below:

java . -Daxis2.xml=path/to/axis2.xml

Thanks,
Ruchith

On 4/30/06, Rob Henley <[EMAIL PROTECTED]> wrote:

Hi Ruchith
yes, I specify the module in axis2.xml. See below for relevant section of
the axis2.xml.
Cheers
Rob
- Original Message -
From: "Ruchith Fernando" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, April 29, 2006 7:15 AM
Subject: Re: [Axis2] WSS4J - Trying to engage a module which is not
available : addressing


Hi Rob,

Does your axis2.xml has the entry :
 . (If you are using RC4 this is )

OR

Do you call engageModule() on the ServiceClient instance?

You MUST do either ONE of these to engage the module.

Thanks,
Ruchith

On 4/29/06, Rob Henley <[EMAIL PROTECTED]> wrote:
> Hi Deepal
> I tried your version, but I get an error from the server "Request does 
> not

> contain required Security header". This suggests to me that the client
> isn't
> using my axis2.xml, which includes:
>
> 
> 
>   
> Timestamp
>   
> 
> 
>   
> Timestamp
>   
> 
>
> By replacing the repo directory with null in the call, the client at 
> least

> appeared to be attempting to use the security module.
>
> Can you think of anything else I could try?
> Many thanks
> Rob
>
> Here is the full exception I get with the parameters you suggest ...
>
> org.apache.axis2.AxisFault: WSDoAllReceiver: Request does not contain
> required Security header
> at
> 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:286)

Re: [Axis2] How to get MessageContext

2006-05-03 Thread Deepal Jayasinghe
you have to add a method called
setOperationContext(OperationContext opctx) {
}

in to your sevrice impl class , and that method will be called whenever
you get a req . Using opctx you can get the messagecontext


Michele Mazzucco wrote:

>Hi all,
>
>how can I get the MessageContext from a OMelement?
>(I'm using the primary interface APIs, that is my methods have the
>following signature:
>
>OMelement operation(OMElement arg1, OMElelent arg2,..., OMElement argN) {
>   ...
>}
>
>)
>
>
>
>Thanks,
>Michele
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 




Re: [Axis2][0.95] How can my service make call to another service? (More details) - RC5

2006-05-03 Thread Ali Sadik Kumlali
Deepal,

I've just tried it with axis2 war distribution (RC5) and got NPE.

Here is my code snippet that uses ListenerManager:

-
System.out.println("ListenerManager.defaultConfigurationContext: " +
ListenerManager.defaultConfigurationContext);
System.out.println("ListenerManager.defaultConfigurationContext.getServiceGroupContexts():
" +
ListenerManager.defaultConfigurationContext.getServiceGroupContexts());
com.mycompany.service.test.account.AccountServicesStub stub = new
com.mycompany.service.test.account.AccountServicesStub(ListenerManager.defaultConfigurationContext,
targetEndpoint);
-

Here is the output:

-
ListenerManager.defaultConfigurationContext:
[EMAIL PROTECTED]
ListenerManager.defaultConfigurationContext.getServiceGroupContexts():
{}
java.lang.NullPointerException
at
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59)
at
org.apache.axis2.client.ServiceClient.(ServiceClient.java:101)
at
com.mycompany.service.test.account.AccountServicesStub.(AccountServicesStub.java:329)
at 
...
-

What I've seen from the output is
ListenerManager.defaultConfigurationContext is successfully set as it's
not null. But I cannot think furthermore :-)

What should I do?

Thanks a lot.

Ali Sadik Kumlali


--- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:

> Thanks Deepal. I'll try it with 1.0 RC3 and let you know the result.
> 
> Best regards,
> 
> Ali Sadik Kumlali
> 
> --- Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> 
> > You can have this with Axis2 RC or above :)
> > 
> > You have to follow the following procedure for doing this
> >   - When you creating stub , it has a constructor which take
> > configuration context as argument.
> >   - So pass that as "ListenerManager.defaultConfigurationContext"
> >   - In this case client will be created using server configuration
> > context
> >   - And this will work in axis2 war distribution out of the box
> > 
> > Note : In the case of AxisServlet , it will create a
> ListenerManager
> > and
> > will set defaultConfigurationContext as the server configuration
> > context.
> > 
> > If you are using some other thing say simpleHTTPServer then you
> have
> > to
> > do the following procedure.
> >- Create a ConfigurationConetx using some axis2.xml and that
> > axis2.xml can have all the transport listeners that you want
> >- Then create a ListenerManager
> >- and  call startSystem
> >- and finally
> >   ListenerManager.defaultConfigurationContext=
> > configurationcotext;
> > 
> > Ali Sadik Kumlali wrote:
> > 
> > >Hi all,
> > >
> > >Since there is no response yet, I assume that my posting had a
> lack
> > of
> > >information :)
> > >
> > >Here is my scenario:
> > >1) I have serviceA.wsdl and serviceB.wsdl. 
> > >2) I generate skeletons and stubs with WSDL2Java
> > >3) I have serviceA.aar which has serviceB.wsdl's stub
> > >4) When I call serviceB's stub from a class found in serviceA.aar,
> > my
> > >soap message does not have addressing and security headers.
> > >5) When I explicitly pass a repository location to constructor of
> > >serviceB's stub, it fails saying double initialization of
> addressing
> > >and security modules.
> > >6) It cannot find the modules and gives me error when I try to
> > engage
> > >the addressing and security modules by following code: 
> > >  stubB._getServiceClient().engageModule(new QName("addressing"));
> > >  stubB._getServiceClient().engageModule(new QName("security"));
> > >
> > >Thanks again.
> > >
> > >Ali Sadik Kumlali
> > >
> > >
> > >--- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> > >
> > >  
> > >
> > >>Hi all,
> > >>
> > >>I need my service to call another service. But, it somehow cannot
> > see
> > >>modules and thus doesn't add security/addressing headers.
> > >>
> > >>I tried engaging the modules manually as in test client. But, it
> > >>couldn't find the modules.
> > >>
> > >>Any help would be appreciated.
> > >>
> > >>Thanks,
> > >>
> > >>Ali Sadik Kumlali
> > >>
> > >>__
> > >>Do You Yahoo!?
> > >>Tired of spam?  Yahoo! Mail has the best spam protection around 
> > >>http://mail.yahoo.com 
> > >>
> > >>
> > >>
> > >
> > >
> > >__
> > >Do You Yahoo!?
> > >Tired of spam?  Yahoo! Mail has the best spam protection around 
> > >http://mail.yahoo.com 
> > >
> > >
> > >  
> > >
> > 
> > -- 
> > Thanks,
> > Deepal
> > 
> > ~Future is Open~ 
> > 
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 


___

Re: [Axis2] How to get MessageContext

2006-05-03 Thread Michele Mazzucco
Hi Eran,

please read the thread about "asynchronous messaging" between me and
Deepal. Maybe I miss the point.


Thanks in advance,
Michele

Eran Chinthaka wrote:
> OMElement is just a representation of an XML fragment. There is no
> connection in that to the message context.
> 
> BTW, from where you wanna do this ?
> 
> Michele Mazzucco wrote:
>> Hi all,
>>
>> how can I get the MessageContext from a OMelement?
>> (I'm using the primary interface APIs, that is my methods have the
>> following signature:
>>
>> OMelement operation(OMElement arg1, OMElelent arg2,..., OMElement argN) {
>>  ...
>> }
>>
>> )
>>
>>
>>
>> Thanks,
>> Michele
>>
> 
> 


RE: WSDL2Java through Proxy

2006-05-03 Thread Jansen Werner
Title: WSDL2Java through Proxy



Hey there :)
 
2 ideas:
 
1. your maven configuration does include your proxy? (I suppose so, 
otherwise you won't be able to download maven plugins)
 
2. Did you try to use the java system properties that specify Proxy and 
stuff? they can be appended to your command line using 
-Dhttp.proxyHost=proxyhost.com -Dhttp.proxyPort=8080 (change to reflect your 
environment). For further information, see http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html
 
I hope I could help you. 
 
CU
Werner

  
  
  From: Caron, Michael R 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 6:07 
  PMTo: axis-user@ws.apache.orgSubject: WSDL2Java through 
  Proxy
  
  Hi, 
  I just started using Axis2 and tried to generate 
  Java classes for the Amazon Alexa Web Service at http://awis.amazonaws.com/AWSAlexa/AWSAlexa.wsdl. WSDL2Java fails with a connection timeout because of the 
  proxy server that our web traffic goes through. I checked the documentation on 
  the Axis2 project site and found no help. I checked the mail archives and also 
  found no help. I checked the commandline help and there was nothing about a 
  proxy. Can anyone provide details about how one might use WSDL2Java through a 
  proxy?
  Thanks! 
  Michael Caron Software Development, Lockheed Martin Corp. 
  IR&D - MS2 Tactical Systems 
  


Re: [Axis2] How to get MessageContext

2006-05-03 Thread Eran Chinthaka
OMElement is just a representation of an XML fragment. There is no
connection in that to the message context.

BTW, from where you wanna do this ?

Michele Mazzucco wrote:
> Hi all,
> 
> how can I get the MessageContext from a OMelement?
> (I'm using the primary interface APIs, that is my methods have the
> following signature:
> 
> OMelement operation(OMElement arg1, OMElelent arg2,..., OMElement argN) {
>   ...
> }
> 
> )
> 
> 
> 
> Thanks,
> Michele
> 




signature.asc
Description: OpenPGP digital signature


Re: [Axis2] marshalling & hashCode/equals methods question

2006-05-03 Thread Michele Mazzucco
I made some modifications to Castor (http://www.castor.org): now it
generates the hashCode() together with equals(). If interested see here
http://jira.codehaus.org/browse/CASTOR-1417

Best regards,
Michele

Rich Rodriguez wrote:
> I believe WSDL2Java does this.
> 
> On 4/29/06, *Michele Mazzucco* <[EMAIL PROTECTED]
> > wrote:
> 
> Hi Ajith ,
> 
> actually I haven't tryed ADB yet since the ADB tutorial says it is a
> "simple" databinding framework (and thus it's not able to compile all
> types of schemas).
> At now I've tried Castor and Sun JAXB code generators and both of them
> don't generate neither the hashCode() nor the equals() methods.
> 
> Michele
> 
> Ajith Ranabahu wrote:
> > Hi Michele,
> > If you are talking about the ADB schema compiler then this is very
> > easy. Just modify the ADBBeanTemplate.xsl and put the new methods you
> > want. You may need to think of a way of generating a number for
> > hashcode but you can do it with just modifying the template
> >
> > Ajith
> >
> >
> > On 4/29/06, Michele Mazzucco <[EMAIL PROTECTED]
>  > wrote:
> >> Hi all,
> >>
> >> I'm aware this issue is not an Axis2 question.
> >> Does anybody know a tool that generates the hashCode() and equals()
> >> methods in classes created from the xml schema (this is useful, for
> >> instance, to check if the ws method argument is stored in
> collections on
> >> the server side)?
> >>
> >>
> >> Thanks in advance,
> >> Michele
> >>
> >
> >
> > --
> > Ajith Ranabahu
> 
> 


[Axis2] How to get MessageContext

2006-05-03 Thread Michele Mazzucco
Hi all,

how can I get the MessageContext from a OMelement?
(I'm using the primary interface APIs, that is my methods have the
following signature:

OMelement operation(OMElement arg1, OMElelent arg2,..., OMElement argN) {
...
}

)



Thanks,
Michele


SimpleDeserializer encountered a child element, which is NOT expected fault

2006-05-03 Thread Recep Ayaz
Hello,i have a problem with array type.i have a java array definiton in my java class  like that. private otapax.otabase.AirTravelerType[] travelerInfo;..and my SOAP request xml like that
..                                                                        String
                        String                        String                        String                    
                            and axis return that error mesaageorg.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
where is my mistake ?how can i send request  xml message ?Please help me ?thanks.


Re: Axis Client - Connection Timeout - help please

2006-05-03 Thread Artur Kraft




Hello,
thanks for your help. I tried to increase the timeout duration, but the
response should be far earlier than the default timeout. Luckily I
found the solution to my problem and I have to admit, it was a quite
basic one: my firewall didn't let the reply through, although the
configuration is very good on all other means. I am happy it works now.
I started to have doubts about myself. Thanks.
Artur Kraft


arul thayalan wrote:

  Hi,

Did you try this one?

Integer conTimeOut = new Integer(1);
_call.setProperty("axis.connection.timeout",(Object)conTimeOut);

before calling _call.invoke(?,?,?)

Regards
Arul Thayalan

--- Davanum Srinivas <[EMAIL PROTECTED]> wrote:

  
  http://www.pankaj-k.net/WSOverSSL/WSOverSSL-HOWTO.html
  
  
On 5/2/06, Artur Kraft <[EMAIL PROTECTED]> wrote:


   Hello,

 I am sorry for bringing this one up again, but I
  

do really need a solution


  for the connection timeout. Can someone please
  

help or push me in the right


  direction? It's really urgent, otherwise I wouln't
  

behave like that.


   kind regards
 Artur Kraft

  Original Message 
 Hello,

 I'm trying to get a axis client to work with my
  

web service (located on a


  remote machine) over HTTPS. The call of the web
  

service succeeds with the


  browser. I accept the server certificate
  

(self-signed), then I am able to


  access and call the methods.

 But with the java client I got the following
  

Exception:


   java.net.ConnectException: Connection timed
  

out: connect


   (the whole stacktrace is included lower)

 >From the view of the amount of time passed, no
  

connection timeout should


  occur. I though it maybe be an SSL cert thing, so
  

I used the


  "SunFakeTrustSocketFactory" from the Axis Wiki,
  

but the result was the same


  as before.
 Maybe I am doing something in the basics?

 The stub code looks like this:
 MeasuringDeviceMonitorService loc = new
MeasuringDeviceMonitorServiceLocator();
 MeasuringDeviceMonitorIF service =
  

loc.getmdmonitor();


   Header header = service.getDevice("11/100");

 Currently I have no way of disabling SSL from the
  

web service, so any help


  is much appreciated.

 kind regards,
 Artur Kraft




 Exception Stacktrace:
 trigger seeding of SecureRandom
 done seeding SecureRandom
 AxisFault
  faultCode:

  

  
  {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
  
  

faultSubcode:
  faultString: java.net.ConnectException:
  

Connection timed out: connect


faultActor:
  faultNode:
  faultDetail:

  

  
  {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException:
  
  

  Connection timed out: connect
 at
  

java.net.PlainSocketImpl.socketConnect(Native


  Method)
 at

  

  
  java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
  
  

   at

  

  
  java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
  
  

   at

  

  
  java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
  
  

   at

  

  
  java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
  
  

   at java.net.Socket.connect(Socket.java:507)
 at

  

  
  com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:546)
  
  

   at

  

  
  com.sun.net.ssl.internal.ssl.SSLSocketImpl.(SSLSocketImpl.java:349)
  
  

   at

  

  
  com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:69)
  
  

   at

  

  
  org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
  
  

   at

  

  
  org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
  
  

   at

  

  
  org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
  
  

   at

  

  
  org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
  
  

   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.client.AxisClient.invoke(AxisClient.java:165)
  
  

   at

  

  
  org.apache.axis.client.Call.invokeEngine(Call.java:2784)
  
  

Re: axis2 - asynchronous messaging

2006-05-03 Thread Michele Mazzucco
Hi Deepal,

probably I don't need to modify the message itself, if it's possible to
add some stuff into the header. Can I?

Thanks,
Michele

Deepal Jayasinghe wrote:
> When B gets a message he has a corresponding  messageContext for that
> message , and that message context will have all the required addressing
> information. So what you have to do is , create a new message context by
> coping the stuff that you need. Btw are you going to just forward the
> SOAP message or going to modify that ?
> 
> In either case , Create a new message context , and copy the SOAP
> envelope  to it , and set the wsa:To (to erp) in the new message context
> , then create an operation client , finlay send the message using
> OperationClient. In simple term your scenario boils down as follows;
>   A send a request to B , so A is the client B is the server ,
> next B send a rer to N , so B become the client and N become the server ,
> so simply think B as a client :)
> 
> Michele Mazzucco wrote:
> 
>> Hi Deepal,
>>
>> I've got just a question after your explanation: how can B forward the
>> message to node N? I mean, which header should B modify/set to obtain
>> that result (please note also that several N nodes can exist, but only B
>> is aware of that)?
>>
>>
>> Thanks in advance,
>> Michele
>>
>> Deepal Jayasinghe wrote:
>>  
>>
>>> Hi Michele ;
>>>
>>> I am sorry for late reply.
>>> pls see my in line comments
>>>
>>> Michele Mazzucco wrote:
>>>
>>>
>>>
 Hi all,

 I would like to use the callback features, but my architecture uses a
 piece of software acting like a "broker" to handle incoming requests:


  A  B
 Client --> Broker -> Node satisfying the request (N)
 | |
 | |
 |  C (reply) |
 <---


 Can the node N use the callback to return the result to the client?
  

>>> yes it can , but as I understood without using callback you can achieve
>>> the same goal,  correct me if im wrong
>>>  step1:
>>>A send a request to B by putting address of B as TO and Address of A
>>> as ReplyTo , and invocation of the A should be sendReceiveNonBlocking
>>>
>>>  strp 2 :
>>>   When B gets the req and it does whatever processing and forward that
>>> to Node N and that invocation can be  fireAndForget invocation (B will
>>> not change replyTo address)
>>>  step 3:
>>>   Once N get the request it will process the message and send the
>>> response to A since message has replyTo address.
>>>   (if the invocation at the N takes long time , then you can use
>>> AsyncMessageReciver , which uses call back inside that)
>>>
>>>
>>>
 If no, what should I do? Could fireAndForget() messages (A, B and C)
 be fine (in case together with options like relatesTo, messageId, etc.)?
  

>>> If A is client running inside a Server then you can just call
>>> fireAndForget at A , by putting replyTo addresses as server address.
>>>
>>>
>>>
 Any suggestions are welcome.



 Thanks in advance,
 Michele


  

>>
>>  
>>
> 


Re: mtom, wsdl2java and xmlbeans

2006-05-03 Thread Michael Meire
I've tried all kinds of possibilities for defining the complex type, 
among which the one mentioned on that URL 
(http://marc.theaimsgroup.com/?l=axis-user&m=114123711724485&w=2 
) 



It however still does not seem to work.
Just to make sure: do I need to do/set/configure other things to enable 
the MTOM? I've looked at the instructions on 
http://ws.apache.org/axis2/0_95/mtom-guide.html, and based on those I 
did the following:


   * I enabled MTOM in the axis2.xml file (server-side)
   * and I added the following line in the created stub:
 
_serviceClient.getOptions().setProperty(Constants.Configuration.ENABLE_MTOM,
 Constants.VALUE_TRUE);


(BTW: I've also considered ADB, but since my WSDL is pretty complex 
(including recursive type definitions etc), some other parts of my WSDL 
did not seem to work out for ADB. So using the xmlbeans extension is the 
option I would want to take...)



thanks again...
Michael...




On 05/02/06 20:24, Thilina Gunarathne wrote:


Give it a try with ADB.. ADB has improved efficient support for MTOM..
 
~Thilina


 
On 5/2/06, *robert lazarski* <[EMAIL PROTECTED] 
> wrote:


Have you tried defining your complex type like in this example?


http://marc.theaimsgroup.com/?l=axis-user&m=114123711724485&w=2 


HTH,
Robert

http://www.braziloutsource.com 

   


On 5/2/06, *Michael Meire* < [EMAIL PROTECTED]
> wrote:

Dear all,

I've been trying the MTOM support of Axis2 for a few times,
but don't
seem to get it working...

More exactly, what I try achieve is:

* starting from my WSDL-file
* using the wsdl2java functionality, with the xmlbeans
data binding
  option
* generate code that use MTOM for sending binary data.

I've tried to use both xsd:base64Binary and xmime:base64Binary
as types
for the elements that I want to use MTOM for, but it does not
work: the
content is just sent as inline XML...

I have read the documentation on the axis2 website about mtom,
but as
far as I understand, that explanation does not hold when
starting from
your own WSDL file and using wsdl2java with xmlbeans databinding.

Could someone help with this?

thanks!
Michael...



--
Michael Meire
Katholieke Universiteit Leuven
Dept. Computer Science
Celestijnenlaan 200A, A03.33
B-3001 Leuven, Belgium
Tel: +32 16 327660
Fax: +32 16 327996


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm





--
"May the SourcE be with u"
http://webservices.apache.org/~thilina/ 

http://thilinag.blogspot.com/ 
http://www.bloglines.com/blog/Thilina 
   



--
Michael Meire
Katholieke Universiteit Leuven
Dept. Computer Science
Celestijnenlaan 200A, A03.33
B-3001 Leuven, Belgium
Tel: +32 16 327660
Fax: +32 16 327996


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm