XSD Import/Include Issue

2009-12-18 Thread Appasamy Thirugnana

Hi  Axis Members ,

  I have one issue with XSDs along with Axis2

 We have two XSDs (SchemaOne.xsd and SchemaTwo.xsd) with no namespaces 
defined.

  Both XSDs contains single element of same name and type

 We have one WSDL which imports it with two different namespaces as 
given below to avoid name collision


http://xml.com/SchemaOne";
   xmlns:xs="http://www.w3.org/2001/XMLSchema";
   targetNamespace="http://xml.com/SchemaOne";
   elementFormDefault="qualified"
   attributeFormDefault="unqualified">
   
  

http://xml.com/SchemaTwo";
   xmlns:xs="http://www.w3.org/2001/XMLSchema";
   targetNamespace="http://xml.com/SchemaTwo";
   elementFormDefault="qualified"
   attributeFormDefault="unqualified">
   
  

When I validate WSDL with Altova XML Spy it is showing

"Invalid XML schema: ''UnsuspendRequest' is already declared in schema document 
'C:\SchemaOne.xsd'."

How can I get rid of this error?

Attached WSDL and XSDs.

Thanks in advance,
Appasamy AT




error4.wsdl
Description: error4.wsdl

http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified" attributeFormDefault="unqualified">
	


http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified" attributeFormDefault="unqualified">
	



What this WS-I error Means

2009-12-05 Thread Appasamy Thirugnana
I am getting a warning with my WSDL like this if I validate it.

"WS-I: (BP2032) Defective soapbind:fault element: the "name" attribute value 
does not match the value of the "name" attribute on the parent element 
wsdl:fault. "

What it means exactly as I am not able to see any fault with my WSDL.


Thanks,
Appu




RE: Deploying a war file as a web service in Axis (on tomcat)

2009-11-27 Thread Appasamy Thirugnana
Exploded WAR format of deploying axis webservice is there.

So when u start ur Spring web app server , the webservice also automatically 
deployed and available along with application

http://wso2.org/library/90
 

-Original Message-
From: Kamlesh123 [mailto:kamlesh_ku...@persistent.co.in] 
Sent: Friday, November 27, 2009 11:01
To: axis-user@ws.apache.org
Subject: Deploying a war file as a web service in Axis (on tomcat)


Hi,

I am new to Axis. I have a requirement to configure an existing web
application with axis 2. I need to expose few of the methods from this
application as a web service using Axis. The application has been developed
using Spring MVC. Can I deploy the war directly into axis with some
configuration changes?
OR I need to explicitely create the folder structure as required by axis-2.

Regards
Kamlesh
-- 
View this message in context: 
http://old.nabble.com/Deploying-a-war-file-as-a-web-service-in-Axis-%28on-tomcat%29-tp26535881p26535881.html
Sent from the Axis - User mailing list archive at Nabble.com.



WS-Security

2009-11-22 Thread Appasamy Thirugnana
I am new to WS-Security. Can somebody provide me link on Axis2 with WS-Security 
and some basic intro in Ws-Security?

Thanks,
Appu


How to Print response XML in Axis1

2009-11-17 Thread Appasamy Thirugnana
In Axis2 we can print response SOAP xml using following line



org.apache.axiom.soap.SOAPEnvelope _returnEnv = 
_returnMessageContext.getEnvelope();

Sytem.out.Println(_returnEnv );

is there anyway we can do in Axis1?



WSDL and XSD Design | Which design is perfect

2009-11-10 Thread Appasamy Thirugnana
Hi,

  I have a WSDL defining fault as given below

1.

   

   
 .

 
   
 
 
 






2. I got suggestion from one of the forums to change "InvalidPINInfo" as 
follows to minimize changes in WSDL in future if fault definition needs to 
changed

   

   

  and then define in one of the XSDs as follows(Indirect mapping), so 
future change only needs XSD changes



Questions:
1. So always WSDL design needs to be taken care that it should not change often?
2. Even if it is XSD change it is a Service contract change.Not only WSDL. Is 
it right?

Thanks,
Appasamy


Need Startup links on SOAP with attachments in AXIS2

2009-10-14 Thread Appasamy Thirugnana
Hi,

Can somebody provide startup links/tutorial to start with SOAP with attachments 
in AXIS2.

Thanks,
Appasamy



Axis2 Error | Unable to determine object id

2009-10-13 Thread Appasamy Thirugnana

Can anyone please help in resolving the error which I get when I send a WS 
request.

Caused by: org.apache.axis2.AxisFault: Unable to determine object id from call: 
is the method element namespaced?
at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:517)
at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at 
org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(SOAPConnectionImpl.java:188)
Thanks,
Appu



Webservice UnitTesting | Help

2009-10-13 Thread Appasamy Thirugnana

Hi,

   Can someone point me some links/framework that I can use for webservice unit 
testing during development.(Apart from wsunit)
Also I am looking for some webservice testing strategies. It will be 
helpful if someone helps.

Thanks,
Appasamy



RE: 'Convert' AAR to standalone WAR

2009-09-18 Thread Appasamy Thirugnana
http://wso2.org/library/90 - Refer this

http://www.ibm.com/developerworks/library/ws-axis2soap/index.html - also this 
if needed


From: Rodolfo Andrade [mailto:ro.ja...@gmail.com]
Sent: Friday, September 18, 2009 19:43
To: axis-user@ws.apache.org
Subject: 'Convert' AAR to standalone WAR

Hello,

I'm still learning about Axis2 and I'm wondering how to convert/build a AAR 
generated file to a Standalone WAR, instead of deploying it to axis2.war.

Currently, I'm using JBOSS 4.2.0 GA as AS and Netbeans 6.5 with Axis2 plugin.

If anyone has a tutorial or tip, please let me know.

Thanks in advance,
Rodolfo Andrade



.jar or .aar | Preference by axis2?

2009-07-13 Thread Appasamy Thirugnana
I have my Skeleton class in both .aar and .jar under my lib of axis2.war.
Which one will get picked if my service gets called?

Thanks,
Appu
Appasamy T




ArrayList or Hashmap returning Webservice

2009-05-08 Thread Appasamy Thirugnana

Hi,

 Can anyone provide me some tutorial on how we can return ArrayList or HashMap 
in a webservice? Is it possible?


Thanks
Appasamy T


RE: org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space

2009-03-11 Thread Appasamy Thirugnana
This is occuring at client side.I here attached the trace

org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space
 at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
 at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
 at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
 at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
 at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)


Sent: Wednesday, March 11, 2009 16:35
To: axis-user@ws.apache.org
Subject: org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space

Hi,

Can any one tell how to get rid of this

org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space

Thanks,
Appasamy


org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space

2009-03-11 Thread Appasamy Thirugnana
Hi,

Can any one tell how to get rid of this

org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space

Thanks,
Appasamy


wsa header issue

2009-03-09 Thread Appasamy Thirugnana



Hi,

When we send out SOAP messages if WS-Addressing is engaged, then it should 
always send WS-Addressing headers inside the SOAP messages.
To disable this I got the following property to be set to true.



options.setProperty(DISABLE_ADDRESSING_FOR_OUT_MESSAGES, Boolean.TRUE);

But the problem is when this is set to false and when I try to 
send SOAP messages, in few of the SOAP messages WS-Addressing is appeared and 
in few it is not appeared.
I am trying to make it appear in all SOAP messages. So my question is
1. What might be the reasons for those WS-Addressing not to appear in few SOAP 
messages and to appear in few?
2. To make it appear in all of the SOAP messages is there any property to be 
set other than the above mentioned property 
(DISABLE_ADDRESSING_FOR_OUT_MESSAGES = FALSE) ?

Thanks,
Appu


axis2 | wsa issue

2009-03-09 Thread Appasamy Thirugnana
Hi,

 In some of my axis2 request I am getting the following elements 
appended in SOAP header and sometimes its getting appearing in the request SOAP 
xml. Can any one please throw some light on this?

  endpoint 
urn:uuid:A4C0CCA2DEDEF783EB1236596328532
 url 

Thanks,
Appasamy


SUn App Server | Axis2 War

2009-03-05 Thread Appasamy Thirugnana
I am getting the following error when i deploy axis2.war in Sun Java System 
Application Server Platform Edition 8.2 and access the URL. Can someone help me 
in getting out of this?



[#|2009-03-05T20:38:40.791+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=12;|[ERROR]
 java.security.AccessControlException: access denied 
(java.lang.RuntimePermission createClassLoader): loading repository from 
classpath

java.security.AccessControlException: access denied 
(java.lang.RuntimePermission createClassLoader)

at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)

at java.security.AccessController.checkPermission(AccessController.java:401)

at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)

at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:586)

at java.lang.ClassLoader.(ClassLoader.java:186)


Regards
Appasamy



AXIS2 |SOAP XML at Server Side

2009-02-19 Thread Appasamy Thirugnana
I need to print the SOAP request XML that is coming inside to access my 
webservice in Axis2. In skeleton we cant do that it seems. Can anyone tell me 
which file i need to do that

Thanks
Appasamy



IP of WS client in Server side code

2009-02-19 Thread Appasamy Thirugnana
How to find the IP of WS client in Server side code?. Can any one please help?

Thanks
Appasamy T


Axis2 Deploy in Exploded WAR

2009-02-18 Thread Appasamy Thirugnana
Can any one provide me a link on how to deploy axis2 service in exploded war

Thanks
Appasamy



RE: SOA Help

2009-02-12 Thread Appasamy Thirugnana
Thanks a  lot Keith.

Thanks,
Appasamy


From: keith chapman [mailto:keithgchap...@gmail.com]
Sent: Wednesday, February 11, 2009 14:37
To: axis-user@ws.apache.org
Subject: Re: SOA Help

This article [1] gives an overview of SOA.

Thanks,
Keith.

[1] http://wso2.org/library/3174

On Wed, Feb 11, 2009 at 2:30 PM, Appasamy Thirugnana 
mailto:athirugn...@sapient.com>> wrote:
Hi Everyone,


   I know Axis2 webservices in an intermediate level . I would like 
to know about SOA architectures which utilises webservices . Can anyone provide 
some good introduction tutorial for SOA for an axis user.

Thanks
Appasamy



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

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


SOA Help

2009-02-11 Thread Appasamy Thirugnana
Hi Everyone,


   I know Axis2 webservices in an intermediate level . I would like 
to know about SOA architectures which utilises webservices . Can anyone provide 
some good introduction tutorial for SOA for an axis user.

Thanks
Appasamy


RE: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory

2009-01-15 Thread Appasamy Thirugnana
 
Jboss 4.0.5


-Original Message-
From: sumedha rubasinghe [mailto:   
Sent: Thursday, January 15, 2009 14:44
To: axis-user@ws.apache.org
Subject: Re: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory

What is the version of Jboss?
My gut feeling is this particular version of Jboss is having a
different Stax implementation.

/sumedha



On Thu, Jan 15, 2009 at 2:13 PM, Appasamy Thirugnana
 wrote:
> Application server .. JBoss
>
> -Original Message-
> From: Paul Fremantle [mailto:pzf...@gmail.com]
> Sent: Thursday, January 15, 2009 12:46
> To: axis-user@ws.apache.org
> Subject: Re: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
>
> Are you running this under an application server or standalone?
>
> Paul
>
> On Thu, Jan 15, 2009 at 6:51 AM, Appasamy Thirugnana
>  wrote:
>>
>> Hi,
>>
>>   I am getting folllowing stack trace from my Stub class when I try to 
>> invoke a service. Any inputs to get rid of this will be appreciated
>>
>>
>> 17:46:25,124 ERROR [STDERR] java.lang.ClassCastException: 
>> com.ctc.wstx.stax.WstxInputFactory
>> 17:46:25,124 ERROR [STDERR] at 
>> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:41)
>> 17:46:25,124 ERROR [STDERR] at 
>> org.apache.axiom.om.util.StAXUtils$7.run(StAXUtils.java:311)
>> 17:46:25,124 ERROR [STDERR] at 
>> java.security.AccessController.doPrivileged(Native Method)
>> 17:46:25,124 ERROR [STDERR] at 
>> org.apache.axiom.om.util.StAXUtils.getXMLInputFactory_perClassLoader(StAXUtils.java:306)
>> 17:46:25,124 ERROR [STDERR] at 
>> org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:76)
>> 17:46:25,124 ERROR [STDERR] at 
>> org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:131)
>> 17:46:25,124 ERROR [STDERR] at 
>> org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:596)
>> 17:46:25,124 ERROR [STDERR] at 
>> org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581)
>> 17:46:25,124 ERROR [STDERR] at 
>> org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
>> 17:46:25,124 ERROR [STDERR] at 
>> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:86)
>> 17:46:25,140 ERROR [STDERR] at 
>> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:641)
>> 17:46:25,140 ERROR [STDERR] at 
>> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
>> 17:46:25,140 ERROR [STDERR] at 
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactor
>> y.java:68)
>> 17:46:25,140 ERROR [STDERR] at 
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(Configuratio
>> nContextFactory.java:184)
>> 17:46:25,140 ERROR [STDERR] at 
>> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)
>> 17:46:25,140 ERROR [STDERR] at 
>> org.apache.axis2.client.ServiceClient.(ServiceClient.java:143)
>>
>>
>>
>> Regards
>>
>> Appasamy T
>>
>>
>
>
>
> --
> Paul Fremantle
> Co-Founder and CTO, WSO2
> Apache Synapse PMC Chair
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> p...@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>


RE: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory

2009-01-15 Thread Appasamy Thirugnana
Application server .. JBoss 

-Original Message-
From: Paul Fremantle [mailto:pzf...@gmail.com] 
Sent: Thursday, January 15, 2009 12:46
To: axis-user@ws.apache.org
Subject: Re: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory

Are you running this under an application server or standalone?

Paul

On Thu, Jan 15, 2009 at 6:51 AM, Appasamy Thirugnana
 wrote:
>
> Hi,
>
>   I am getting folllowing stack trace from my Stub class when I try to 
> invoke a service. Any inputs to get rid of this will be appreciated
>
>
> 17:46:25,124 ERROR [STDERR] java.lang.ClassCastException: 
> com.ctc.wstx.stax.WstxInputFactory
> 17:46:25,124 ERROR [STDERR] at 
> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:41)
> 17:46:25,124 ERROR [STDERR] at 
> org.apache.axiom.om.util.StAXUtils$7.run(StAXUtils.java:311)
> 17:46:25,124 ERROR [STDERR] at 
> java.security.AccessController.doPrivileged(Native Method)
> 17:46:25,124 ERROR [STDERR] at 
> org.apache.axiom.om.util.StAXUtils.getXMLInputFactory_perClassLoader(StAXUtils.java:306)
> 17:46:25,124 ERROR [STDERR] at 
> org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:76)
> 17:46:25,124 ERROR [STDERR] at 
> org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:131)
> 17:46:25,124 ERROR [STDERR] at 
> org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:596)
> 17:46:25,124 ERROR [STDERR] at 
> org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581)
> 17:46:25,124 ERROR [STDERR] at 
> org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
> 17:46:25,124 ERROR [STDERR] at 
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:86)
> 17:46:25,140 ERROR [STDERR] at 
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:641)
> 17:46:25,140 ERROR [STDERR] at 
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
> 17:46:25,140 ERROR [STDERR] at 
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactor
> y.java:68)
> 17:46:25,140 ERROR [STDERR] at 
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(Configuratio
> nContextFactory.java:184)
> 17:46:25,140 ERROR [STDERR] at 
> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)
> 17:46:25,140 ERROR [STDERR] at 
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:143)
>
>
>
> Regards
>
> Appasamy T
>
>



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
p...@wso2.com

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


java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory

2009-01-14 Thread Appasamy Thirugnana

Hi,

   I am getting folllowing stack trace from my Stub class when I try to 
invoke a service. Any inputs to get rid of this will be appreciated


17:46:25,124 ERROR [STDERR] java.lang.ClassCastException: 
com.ctc.wstx.stax.WstxInputFactory
17:46:25,124 ERROR [STDERR] at 
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:41)
17:46:25,124 ERROR [STDERR] at 
org.apache.axiom.om.util.StAXUtils$7.run(StAXUtils.java:311)
17:46:25,124 ERROR [STDERR] at 
java.security.AccessController.doPrivileged(Native Method)
17:46:25,124 ERROR [STDERR] at 
org.apache.axiom.om.util.StAXUtils.getXMLInputFactory_perClassLoader(StAXUtils.java:306)
17:46:25,124 ERROR [STDERR] at 
org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:76)
17:46:25,124 ERROR [STDERR] at 
org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:131)
17:46:25,124 ERROR [STDERR] at 
org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:596)
17:46:25,124 ERROR [STDERR] at 
org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581)
17:46:25,124 ERROR [STDERR] at 
org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
17:46:25,124 ERROR [STDERR] at 
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:86)
17:46:25,140 ERROR [STDERR] at 
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:641)
17:46:25,140 ERROR [STDERR] at 
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
17:46:25,140 ERROR [STDERR] at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactor
y.java:68)
17:46:25,140 ERROR [STDERR] at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(Configuratio
nContextFactory.java:184)
17:46:25,140 ERROR [STDERR] at 
org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)
17:46:25,140 ERROR [STDERR] at 
org.apache.axis2.client.ServiceClient.(ServiceClient.java:143)
 


Regards
 
Appasamy T 



Axis2 Timeout Configuration | Urgent

2008-10-21 Thread Appasamy Thirugnana
Hi all,

I have written a WSclient using Axis2 and I forgot to set timeout using

stub._getServiceClient().getOptions().setTimeOutInMilliSeconds

Now I want timeout to be configured.
If I change the following property in axis2.xml will the client class pick that 
one or Axis2.xml is only for server side?

 some_int_value

or

3

Also tell which one to use.

Appasamy T



Axis1 XML to Object

2008-08-14 Thread Appasamy Thirugnana
Hi Everyone,

I have a SOAP XML which has been sent by my service and the 
WSDL with me.  I planned to setup a simulated server wihch returns the same XML 
always for testing.

Now my doubt is how can i convert XML in to the needed object in Axis1 in my 
skeleton. In axis2 i achievd this by using fromOM( ) but in axis 1 how to 
convert.

Thanks
Appu





[AXIS1]- Want to print SOAP XML before invoke

2008-08-04 Thread Appasamy Thirugnana
Hi,

I just want to print SOAP xml before calling invoke


(Response) call.invoke(new Object[] { message });



Pl help


Appasamy T



Webservices security in axis2

2008-05-21 Thread Appasamy Thirugnana
Can any one provide me some basic links for webservcies security in
axis2
 
Thanks
Appu
 
 
 


Free Webservices Providers

2008-04-19 Thread Appasamy Thirugnana
Hi everyone,
 
   I need list of sites providing free webservices for sample use .
 
 
Thanks
Appasamy

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



RE: AxisFault: SOAP message MUST NOT contain a Document Type Declaration(DTD)

2008-03-26 Thread Appasamy Thirugnana
 
Hi Manes,

can you please tell me How can i block this DTD


THanks
Appu


-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2008 16:47
To: axis-user@ws.apache.org
Subject: Re: AxisFault: SOAP message MUST NOT contain a Document Type
Declaration(DTD)

It's pretty simple -- don't include a DTD in your SOAP message.

Anne

On Mon, Mar 24, 2008 at 11:11 PM, Appasamy Thirugnana
<[EMAIL PROTECTED]> wrote:
>
>
>  Pl help me out to find when this error will occur adn whats the
>  solution, In axis2/Java i am getting this error
>
>
>  2008-03-25 12:20:26,887:ERROR[SysLog  ]:2008.03.25.12.20.26:887 E
[2060
>  ] org.apache.axis2.AxisFault: SOAP message MUST NOT contain a
Document
>  Type Declaration(DTD)
>  org.apache.axis2.AxisFault: SOAP message MUST NOT contain a Document
>  Type Declaration(DTD)
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at
>
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
>  ls.java:89)
> at
>
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
>  InAxisOperation.java:326)
> at
>
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
>  ation.java:389)
> at
>
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
>  xisOperation.java:211)
> at
>
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
>  )
>
>
>
>  Thanks
>  Appu
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



AxisFault: SOAP message MUST NOT contain a Document Type Declaration(DTD)

2008-03-24 Thread Appasamy Thirugnana


Pl help me out to find when this error will occur adn whats the
solution, In axis2/Java i am getting this error


2008-03-25 12:20:26,887:ERROR[SysLog  ]:2008.03.25.12.20.26:887 E [2060
] org.apache.axis2.AxisFault: SOAP message MUST NOT contain a Document
Type Declaration(DTD)
org.apache.axis2.AxisFault: SOAP message MUST NOT contain a Document
Type Declaration(DTD)
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:89)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
InAxisOperation.java:326)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:389)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
 


Thanks
Appu

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



RE: How do I learn which Axis2 JARs have which classes?

2008-03-20 Thread Appasamy Thirugnana
One more simple way is go to docjar.com .. type your  class name like 
org.apache.axis2.engine.AxisEngine..
it will list the jars in which your  class is in




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew 
Beldyk
Sent: Thursday, March 20, 2008 21:54
To: axis-user@ws.apache.org
Subject: Re: How do I learn which Axis2 JARs have which classes?


The way I find which jars hold the class I need is to do a grep of the 
all the jar files (mind you, I'm coming from a unix background, and I assume 
this would also work with cygwin in windows).  Zip files seem to store the data 
structure to access the stored files in an uncompressed way (letting me look 
strings of the paths of files without any extra steps to extract them).

[10:17:12][EMAIL PROTECTED]: ~/java_dev/client_libs
$ grep  org.apache.axis2.deployment.DeploymentClassLoader *
Binary file axis2-kernel-1.3.jar matches




On Thu, Mar 20, 2008 at 1:44 AM, <[EMAIL PROTECTED]> wrote:


If it is still valuable to anyone. If you use eclipse as your 
developing IDE. It has a nice feature how you can lookup classes.
Just press the keys Strg+Shift+T (alternatively open the Menu 
"Navigate" --> "Open Type") and eclipse opens a "Open Type" dialog. There you 
can start typing your classname and see all matching classes, including their 
full qualified name and the jar they belong to.

Matthias.

> -Ursprüngliche Nachricht-
> Von: Nate Roe [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 14. März 2008 19:36
> An: 'axis-user@ws.apache.org'
> Betreff: RE: How do I learn which Axis2 JARs have which 
classes?

>
>
> The difficulty is in finding a file from amongst several JARs.
> (basically foreach a directory's JARs, and then -tvf them.)
>
> I've written a small utility that serves me for this.  See 
the attached
> file.
>
> - Nate
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Jeff Greif
> Sent: Friday, March 14, 2008 10:52 AM
> To: axis-user@ws.apache.org
> Subject: Re: How do I learn which Axis2 JARs have which 
classes?
>
> Use the jar tool that comes with (Sun) java:
>
> jar tvf xxx.jar
>
> and is documented via a on the main page of the JDK 
documentation
> (under Tools).
>
> You can combine this with other Unix-style shell tools if you 
have the
> cygwin tools on your windows box:
>
> jar tvf xxx.jar | grep '*MetaData*
>
> to look for certain classes or packages by some part of their 
name.
>
> You can also edit the jar with the Emacs editor, which shows 
you a
> listing of files.
>
> Jeff
>
> On Fri, Mar 14, 2008 at 10:17 AM, Kraus, David
> <[EMAIL PROTECTED]> wrote:
> > I haven't hacked the registry. I have used WinZip to open 
jar files
> as
> > zip files. Not sure whether this creates a file association 
which
> helps.
> >
> >  -Original Message-
> >  From: Nate Roe [mailto:[EMAIL PROTECTED]
> >  Sent: Friday, March 14, 2008 10:04 AM
> >  To: 'axis-user@ws.apache.org'
> >  Subject: RE: How do I learn which Axis2 JARs have which 
classes?
> >
> >
> >  I don't think this method will work unless you hack the 
Windows
> > registry  to tell it that a JAR is a ZIP.  Maybe.
> >
> >  I guess another way is to build a script (or a Java 
program) to do
> > the  looking.
> >
> >  - Nate
> >
> >  -Original Message-
> >  From: Kraus, David [mailto:[EMAIL PROTECTED]
> >  Sent: Friday, March 14, 2008 8:57 AM
> >  To: axis-user@ws.apache.org
> >  Subject: RE: How do I learn which Axis2 JARs have which 
classes?
> >
> >  Hmmm...I didn't start using this method until about a year 
ago. My
> O

Excepetion in AddressingInFaultHandler

2008-03-18 Thread Appasamy Thirugnana

Hi,
 
  Can anyone please tell me what might be the reason for the
following exception in AddressingInFaultHandler.java
Thanks
Appu

java.lang.NullPointerException
at
org.apache.axis2.handlers.addressing.AddressingInFaultHandler.invoke(Add
ressingInFaultHandler.java:92)
at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
InAxisOperation.java:336)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:389)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
at Stub.java:207

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



RE: Must Understand check failed for header Exception

2008-03-17 Thread Appasamy Thirugnana
FYI
 
 If we insert the following code in the axis generated stub
the error org.apache.axis2.AxisFault: Must Understand check failed for
header will not occur
 
Iterator it = env.getHeader().examineAllHeaderBlocks();
while(it.hasNext())
{
 SOAPHeaderBlock headerBlock=
(SOAPHeaderBlock)it.next();
 
headerBlock.setRole("http://www.w3.org/2003/05/soapenvelope/role/next";);
}

References:
www.javapassion.com/webservices/SOAPProcessingModel.pdf
www.grid2004.org/spring2004/SOAP3.ppt
 
Thanks
Appu 


 

-Original Message-----
From: Appasamy Thirugnana [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2008 09:39
To: axis-user@ws.apache.org
Subject: Must Understand check failed for header Exception

 
Please help me  as I am struggling with this exception for long time

Thanks in advance
Appu

Hi,
 
  In order to set soapenv:mustUnderstand="1"   
 
  I tried modifying the stub in my client the following manner while
adding header
 
 if (messageHeader5 != null) 
{
org.apache.axiom.om.OMElement omElementmessageHeader5 =
toOM(messageHeader5,
optimizeContent(
new javax.xml.namespace.QName(
"http://www.some.com/NewService.wsdl
<http://www.some.com/NewService.wsdl> ",
"Superset")));
 addHeader(omElementmessageHeader5, env,true);   ->
Included the third parameter "true" to make mustUnderstand="1"  
  
 }
 
 
 
Now i am getting the evnevlope as expected with mustUnderstand="1"   
 
but the request is not going out giving me the following exception
 
org.apache.axis2.AxisFault: Must Understand check failed for header
http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd
: MessageHeader
 at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
:486)
 at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
InAxisOperation.java:343)
 at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:389)
 at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
 at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
 at com.new.service.NewServiceStub.NewService(NewServiceStub.java:220)
 at TestService1.main(TestService1.java:107)
 
 
 
 
I found  that the soap header needs to be processed and its
"isProcessed" to be set to true to avoid excpetion
 
 
and I tried in stub with following code for processing the header which
is going out
 
Iterator it = env.getHeader().examineAllHeaderBlocks();
while(it.hasNext())
{
 SOAPHeaderBlock headerBlock=
(SOAPHeaderBlock)it.next();
 headerBlock.setProcessed();
 
System.out.println("Processed:->"+headerBlock.isProcessed()+""); --->Its
giving "true"
}
 
 
Still I am getting the error. Please tell me is there any other way to
get rid of this issue.
 
Thanks
Appu


 

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


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



RE: Test Data creator Based on WSDL

2008-03-13 Thread Appasamy Thirugnana
Thanks a lot Charitha. Its nice 

-Original Message-
From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2008 17:20
To: axis-user@ws.apache.org
Subject: Re: Test Data creator Based on WSDL

Hi Appasamy,

SoapUI is the ideal tool for your requirement. Have a look at 
http://www.soapui.org/

regards
Charitha

Appasamy Thirugnana wrote:

> Hi, I am  looking for a test data creator  based on the WSDL and 
> allows us to create mock XML for a webservice request
>
>  
> Appasamy T
>  




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


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



Test Data creator Based on WSDL

2008-03-13 Thread Appasamy Thirugnana
Hi, I am  looking for a test data creator  based on the WSDL and allows
us to create mock XML for a webservice request 

 
Appasamy T 

 


"Mustunderstand" How to handle it

2008-03-12 Thread Appasamy Thirugnana
Hi ,
 
 Anyone please help me out in how to handle SOAP Header and
where to handle the header if i set "Mustunderstand=1" in my SOAP header
before sending a request.

  whether i need to set its "isProcessed" to true in server side
or both server and client side . Any tutorial regarding this also will
help
 
 
Thanks
Appu
 

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



Must Understand check failed for header Exception

2008-03-11 Thread Appasamy Thirugnana
 
Please help me  as I am struggling with this exception for long time

Thanks in advance
Appu

Hi,
 
  In order to set soapenv:mustUnderstand="1"   
 
  I tried modifying the stub in my client the following manner while
adding header
 
 if (messageHeader5 != null) 
{
org.apache.axiom.om.OMElement omElementmessageHeader5 =
toOM(messageHeader5,
optimizeContent(
new javax.xml.namespace.QName(
"http://www.some.com/NewService.wsdl
 ",
"Superset")));
 addHeader(omElementmessageHeader5, env,true);   ->
Included the third parameter "true" to make mustUnderstand="1"  
  
 }
 
 
 
Now i am getting the evnevlope as expected with mustUnderstand="1"   
 
but the request is not going out giving me the following exception
 
org.apache.axis2.AxisFault: Must Understand check failed for header
http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd
: MessageHeader
 at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
:486)
 at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
InAxisOperation.java:343)
 at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:389)
 at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
 at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
 at com.new.service.NewServiceStub.NewService(NewServiceStub.java:220)
 at TestService1.main(TestService1.java:107)
 
 
 
 
I found  that the soap header needs to be processed and its
"isProcessed" to be set to true to avoid excpetion
 
 
and I tried in stub with following code for processing the header which
is going out
 
Iterator it = env.getHeader().examineAllHeaderBlocks();
while(it.hasNext())
{
 SOAPHeaderBlock headerBlock=
(SOAPHeaderBlock)it.next();
 headerBlock.setProcessed();
 
System.out.println("Processed:->"+headerBlock.isProcessed()+""); --->Its
giving "true"
}
 
 
Still I am getting the error. Please tell me is there any other way to
get rid of this issue.
 
Thanks
Appu


 

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



Must Understand check failed for header

2008-03-11 Thread Appasamy Thirugnana
 
Hi,
 
  In order to set soapenv:mustUnderstand="1"   
 
  I tried modifying the stub in my client the following manner
 
 if (messageHeader5 != null) 
{
org.apache.axiom.om.OMElement omElementmessageHeader5 =
toOM(messageHeader5,
optimizeContent(
new javax.xml.namespace.QName(
"http://www.some.com/NewService.wsdl
 ",
"Superset")));
 addHeader(omElementmessageHeader5, env,true);   ->
Included the third parameter "true" to make mustUnderstand="1"  
  
 }
 
 
 
Now i am getting the evnevlope as expected with mustUnderstand="1"   
 
but the request is not going out giving me the following exception
 
org.apache.axis2.AxisFault: Must Understand check failed for header
http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd
http://www.oasis-open.org/committees/ebxml-msg/schema/msg-head
er-2_0.xsd>  : MessageHeader
 at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
:486)
 at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out
InAxisOperation.java:343)
 at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:389)
 at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
 at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
 at com.new.service.NewServiceStub.NewService(NewServiceStub.java:220)
 at TestService1.main(TestService1.java:107)
 
 
 
 
I found in internet that the soap header needs to be processed and its
"isProcessed" to be set to true to avoid excpetion
 
http://java2.5341.com/msg/229343.html>  
 
and I tried in stub with following code for processing the header
 
Iterator it = env.getHeader().examineAllHeaderBlocks();
while(it.hasNext())
{
 SOAPHeaderBlock headerBlock=
(SOAPHeaderBlock)it.next();
 headerBlock.setProcessed();
 
System.out.println("Processed:->"+headerBlock.isProcessed()+""); --->Its
giving "true"
}
 
 
Still I am getting the error. Please tell me is there any other way to
get rid of this issue.
 
Thanks
Appu
 
Appasamy T