RE: Axis2 with XMLBeans multiple schemas

2007-06-10 Thread raine king
I found the problem--I had circular dependencies between xsd's and while ADB 
likes them, XMLBeans doesn't.I just do a simple http://consumermgr.nnn.com/consumermgr"; 
schemaLocation="ConsumerManager.xsd"/>Date: Sun, 10 Jun 2007 12:59:22 
-0400From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: Axis2 with XMLBeans 
multiple schemasOn 6/7/07, dharmendra3 <[EMAIL PROTECTED]> wrote:
Nadav,  Were you able to deploy them successfully using adb using 
multipleschemas.I have been struggling with that.At deployment time its not 
able to find theschema file.Can you let me know how u are importing the schema.
Can you please crate a jira and attache your wsdl and the xsd files?
Nadav Steindler-2 wrote:>> When I run wsdl2java with the -d xmlbeans option on 
my wsdl, it works fine> when the whole schema is in one file.  However when the 
schema is broken> up into multiple files with import and include statements, it 
dies with a
> runtime exception.I looked at the xmlbeans site and its supposed to> support 
> this.Am I supposed to do something to get it to work with multiple> 
> files?(Incidentally the multiple files work fine when I run it with adb so
> its not that I made a mistake in my schema!)> 
> _> Play free 
> games, earn tickets, get cool prizes! Join Live Search Club.> 
http://club.live.com/home.aspx?icid=CLUB_wlmailtextlink>--View this message in 
context: 
http://www.nabble.com/Axis2-with-XMLBeans-multiple-schemas-tf3884032.html#a11008612
Sent from the Axis - User mailing list archive at 
Nabble.com.-To
 unsubscribe, e-mail: 
[EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] Amila 
Suriarachchi,
WSO2 Inc.

_
Live Earth is coming.  Learn more about the hottest summer event - only on MSN.
http://liveearth.msn.com?source=msntaglineliveearthwlm

Re: [Axis2] How to log traces on the server side ?

2007-06-10 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

If you are fine with using System.out statements, then make sure you
start Tomcat with catalina run.

Rather than invoking startup.bat/sh goto bin folder and type
catalina.bat/sh run. You will be able to see your system.out messages.

Stephane Roy wrote:
> Hi,
> 
> This must be a newbie question, anyway...
> 
> I have an Axis2.1.2 web service deployed in Tomcat5.5. I would like to
> log some traces from my server for debug purposes. So in the code, I wrote:
> 
> ...
> System.out.println("my debug trace");
> ...
> 
> The problem is that I don't see these traces anywhere.
> 
> I activated the logging mechanism for Axis2.1.2 and an axis2.log file is
> indeed created when Axis2 is started in Tomcat, but my traces are not
> logged into it.
> 
> 
> How can I put some traces in my source code to be able to debug my web
> service ?
> Is there a tutorial somewhere for this ?
> 
> I searched the Web and found this tutorial 'How to Debug a Web Service?'
> (http://wso2.org/library/225). However I don't use Eclipse, so this is
> not helping much.
> 
> Thanks in advance.
> 
> Stephane Roy
> Alcatel-Lucent
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGbOJxjON2uBzUhh8RAuW+AKCX+/aNn+07fHOVAzsqAxwIeetcNACeLlBe
P6prck6uSSvjxoqdMRXHnY8=
=pb9S
-END PGP SIGNATURE-

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



[Axis2] - Hackathon and JIRAs

2007-06-10 Thread Deepal Jayasinghe
Hi All,

One of the key goal of the hackathon is to go through the JIRAs and fix
them then and there. So if you have created a JIRA without  required
recourse to recreate the issue please attach whatever needed, that will
be very helpful for us to fix the issue quickly . In addition to that if
you think a particular JIRA is need to be fixed for the next release
please comment on that JIRA with necessary information.

Thanks
Deepal


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



Re: Axis2: CassCastException when adding a custom SOAP Header element

2007-06-10 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 If you can help me to recreate the problem, then i might be able to
help you better than this.


Simon Steinacker wrote:
> Hello,
> 
> No, Actually I am doing the thing with the OMFactory. I also tried to
> get the OMFactory that is used by the soap header OMElement
> (getOMFactory() or something) and create the subelement using this. But
> that did yield the same error.
> 
> Simon
> 
> 
> Eran Chinthaka schrieb:
> I think the problem is the following.
> 
> You must be creating an OMElement like this.
> 
> OMElement omElement = new OMElementImpl();
> 
> This is not recommended as you are trying to use a particular impl of
> OMElement implementation.
> 
> So this is how it should be done.
> 
> OMFactory omFac = OMAbstractFactory.getOMFactory();
> OMElement omElement = omFac.createOMElement(...);
> 
> Please read one of the Axiom tutorials found on the web.
> 
> Chinthaka
> 
> Simon Steinacker wrote:
>  
 Hello,

 I am creating a custom OMElement that I need to send inside the soap
 header. I do this by adding a handler to the handler chain and through
 that I modify the MessageContext (the header inside it).

 But when this modified MessageContext is processed by the axis engine I
 get the following weird exception:

 org.apache.axis2.AxisFault: java.lang.ClassCastException:
 org.apache.axiom.om.impl.llom.OMElementImpl
at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)


at
 org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)


at
 org.txservice1.testservice.TestServiceStub.helloMe(TestServiceStub.java:348)


at
 org.txservice1.testservice.TxService1Test.testCall(TxService1Test.java:40)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
 org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)


at
 org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)


at
 org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)


at
 org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)


at
 org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)

at
 org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)


at
 org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)


at
 org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)


at
 org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)


at
 org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at
 org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)


at
 org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)


at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)


at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)


at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)


at
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)





 Does anyone know what the problem could be?
 Thanks a lot,
 Simon


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



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGbH38jON2uBzUhh8RAl7KAJ98kGFc2YiqTYZ13Yxqnk7KX5bsxACfdbGz
AXTcYiUFnUc8MeA4h39DvCQ=
=jCGP
-END PGP SIGNATURE-

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



Re: [AXIS2] Importing a external schema in WSDL

2007-06-10 Thread Amila Suriarachchi

can you send your wsdl and your xsd files?

On 6/7/07, dharmendra3 <[EMAIL PROTECTED]> wrote:



When I try to import a schema with relative url,wsdl2ava is working fine
but
deployment is causing the problem saying that its not able to find the xsd
file (It looks for xsd file from the domain root).

If I use absolute url (schemalocation) wsdl2java is failing.


Is this a bug with the wsdl4j,how can I resolve this.
--
View this message in context:
http://www.nabble.com/-AXIS2---Importing-a-external-schema-in-WSDL-tf3884021.html#a11008452
Sent from the Axis - User mailing list archive at Nabble.com.


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





--
Amila Suriarachchi,
WSO2 Inc.


Re: WSDL2JAVA

2007-06-10 Thread Amila Suriarachchi

you may read this as well
http://today.java.net/lpt/a/300

On 6/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


 This link would be useful to u

http://ws.apache.org/axis2/1_2/reference.html#wsdl2code

http://ws.apache.org/axis2/1_2/adv-userguide.html

_
Thanks & Regards,
Vinodh


 --
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, June 06, 2007 11:48 AM
*To:* axis-user@ws.apache.org; [EMAIL PROTECTED]
*Subject:* WSDL2JAVA

 Hi

Can anybody help me by providing the steps to use wsdl2java?

Is there any good site/tutorial which explains how to use wsdl2java?





Thanks And Regards

Smitha Aldrin

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com





--
Amila Suriarachchi,
WSO2 Inc.


Re: Axis2 wsdl2java features

2007-06-10 Thread Amila Suriarachchi

On 6/7/07, raine king <[EMAIL PROTECTED]> wrote:


Has anyone used


a) extension of a complex type and b) abstract="true" in their WSDL from

which they did code generation?  Does it work?



I have done  extension of a complex type with adb and it works. but ADB does
not support abstract="true" yet.
Although I have not tried xmlbeans should support both.

--Raine


--
Make every IM count. Download Windows Live Messenger and join the i'm
Initiative now. It's free.  Make it 
count!





--
Amila Suriarachchi,
WSO2 Inc.


Re: Axis2 with XMLBeans multiple schemas

2007-06-10 Thread Amila Suriarachchi

On 6/7/07, dharmendra3 <[EMAIL PROTECTED]> wrote:



Nadav,
  Were you able to deploy them successfully using adb using multiple
schemas.
I have been struggling with that.At deployment time its not able to find
the
schema file.
Can you let me know how u are importing the schema.



Can you please crate a jira and attache your wsdl and the xsd files?



Nadav Steindler-2 wrote:

>
> When I run wsdl2java with the -d xmlbeans option on my wsdl, it works
fine
> when the whole schema is in one file.  However when the schema is broken
> up into multiple files with import and include statements, it dies with
a
> runtime exception.I looked at the xmlbeans site and its supposed to
> support this.Am I supposed to do something to get it to work with
multiple
> files?(Incidentally the multiple files work fine when I run it with adb
so
> its not that I made a mistake in my schema!)
> _
> Play free games, earn tickets, get cool prizes! Join Live Search Club.
> http://club.live.com/home.aspx?icid=CLUB_wlmailtextlink
>

--
View this message in context:
http://www.nabble.com/Axis2-with-XMLBeans-multiple-schemas-tf3884032.html#a11008612
Sent from the Axis - User mailing list archive at Nabble.com.


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





--
Amila Suriarachchi,
WSO2 Inc.


Re: wsdl2java renames imported schemas

2007-06-10 Thread Amila Suriarachchi

On 6/10/07, Spike Mulligan <[EMAIL PROTECTED]> wrote:


I noticed that when I run wsdl2java on my wsds it renames all the imported
schemas xsd0.xsd xsd1.xsd rather than my nice meaningful names.  How do I
get it to preserve the original names?



no. Since we only keep the schema objects in the Axis2Service, it is not
possible to preserve the original schema name. Anyway please log a jira.




--
Amila Suriarachchi,
WSO2 Inc.


Re: problem when invoking axis2 service with axis1 client

2007-06-10 Thread Ajith Ranabahu

Hi,
Since you are making the call by hand (i.e not using generated code)
the issue could well be the missing SOAP action.
You can have a look at the messages passed by using tcpmon[1]. I also
suggest you to use something like SOAPUI[2] to generate a request and
compare them - which should tell you if there is anything wrong.

Ajith

[1] http://ws.apache.org/commons/tcpmon/
[2] http://www.soapui.org/


On 6/10/07, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

Hi Michele ,
In the case of Axis2 you need to give the full epr to the service like ,
http://myhost:8080/axis2/services/Foo 

sometime you may have to give the soap action as well.

Thanks
Deepal
> Hello.
>
> I have Tomcat with both axis1 and axis2 installed.
>
> I woul dlike to invoke both axis1 and axis2 services using axis1
> client, e.g.:
>
> try {
> Call call = (Call) new org.apache.axis.client.Service
> ().createCall();
> call.setTargetEndpointAddress(new URL(servicesURL));
> call.setOperationName(new QName("Version", "getVersion"));
> Object response = call.invoke (new Object[]{});
> logMessage = " Version service said: " + (String)
> response;
> }
>   ...
>
> This code works fine when servicesURL == "
> http://myhost:8080/axis1/services/";,
> but does not work when servicesURL ==
> "http://myhost:8080/axis2/services/ ".
>
> In the latter case, the following RemoteException:
>
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
> 
>  faultSubcode:
>  faultString: Service not found operation terminated !!
>  faultActor:
>  faultNode:
>  faultDetail:
> {http://xml.apache.org/axis/}stackTrace:Service
>  not found operation
> terminated !!
> at org.apache.axis.message
> .SOAPFaultBuilder.createFault (SOAPFaultBuilder.java:221)
> at
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
> at
> 
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
> Source)
> at
> 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> (Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at
> 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java :424)
> at
> org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)
> at
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
> 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:2765)
> at org.apache.axis.client.Call.invoke(Call.java:2748)
> at org.apache.axis.client.Call.invoke(Call.java:2424)
> at org.apache.axis.client.Call.invoke (Call.java:2347)
> at org.apache.axis.client.Call.invoke(Call.java:1804)
> at nc3a.ListServices.main(ListServices.java:72)
>
> { http://xml.apache.org/axis/}hostname:Ardarico
> 
>
> Service not found operation terminated !!
> at
> 
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
> at
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java
> :128)
> at
> 
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
> at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
> (Unknown Source)
> at
> 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Sour

Re: Axis2 1.2 sanity check: Can generated POJO service/client handle 0-length array?

2007-06-10 Thread Anne Thomas Manes

You might try Jini with the JERI stack over HTTP.

On 6/9/07, Airline Pedestal <[EMAIL PROTECTED]> wrote:


Hi Anne,

Thanks for your reply.   Very good question.   I would
say the biggest reason is for use through firewalls.   My web
services are distributed around the world, and they are behind
firewalls.   RMI doesn't work well with this environment.   What
are your thoughts about that?   Do you have any other suggestions
about transmitting large amounts of data via web services?  Or
other better means?



Thanks,

A


- Original Message 
From: Anne Thomas Manes <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Saturday, June 9, 2007 2:27:08 PM
Subject: Re: Axis2 1.2 sanity check: Can generated POJO service/client handle 
0-length array?

Why aren't you just using RMI?

On 6/9/07, Airline Pedestal <[EMAIL PROTECTED]> wrote:
>
> Hi Anne,
>
> I completely agree with you points about interoperability and
> clean separation.
>
> Although, I have a situation where extremely large return pay loads
> make using XML very slow and sometimes impossible.   So I've started
> shipping Java Serialized objects via attachments with Axis2.
> My main goal is to handle very large pay load quickly.   Interoperability
> is second priority.   What are your thoughts about that?
>
>
> Thanks,
>
> A
>
>
>
> - Original Message 
> From: Anne Thomas Manes <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Sent: Saturday, June 9, 2007 1:12:32 PM
> Subject: Re: Axis2 1.2 sanity check: Can generated POJO service/client handle 
0-length array?
>
> I have to disagree with you -- at least if your goal is
> interoperability. XML is the external interface to your service, and
> it's a useful practice to maintain a clean separation of concern
> between your interface and your implementation. I trust you recognize
> the value of clean separation between your application object model
> and a database data model and the DAO design pattern. The same
> benefits exist when maintaining the separation between your externally
> facing XML model and your internal object model.
>
> There is an impedance mismatch between XML data structures and Java
> object models, just as there is an impedance mismatch between SQL data
> models and Java object models. In many cases the mismatch is
> insignificant, but it's a bad idea to assume that it doesn't exist.
>
> I agree that Axis2 could handle POJO deployment better, but even if it
> were the best that it could be, I seriously doubt that it could handle
> everything automatically.
>
> Anne
>
>
>
>
>
>
>
>
> 

> Sick sense of humor? Visit Yahoo! TV's
> Comedy with an Edge to see what's on, when.
> http://tv.yahoo.com/collections/222
>
> -
> 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]








Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/

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




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



Re: problem when invoking axis2 service with axis1 client

2007-06-10 Thread Deepal Jayasinghe
Hi Michele ,
In the case of Axis2 you need to give the full epr to the service like ,
http://myhost:8080/axis2/services/Foo 

sometime you may have to give the soap action as well.

Thanks
Deepal
> Hello.
>
> I have Tomcat with both axis1 and axis2 installed.
>
> I woul dlike to invoke both axis1 and axis2 services using axis1
> client, e.g.:
>
> try {
> Call call = (Call) new org.apache.axis.client.Service
> ().createCall();
> call.setTargetEndpointAddress(new URL(servicesURL));
> call.setOperationName(new QName("Version", "getVersion"));
> Object response = call.invoke (new Object[]{});
> logMessage = " Version service said: " + (String)
> response;
> }
>   ...
>
> This code works fine when servicesURL == "
> http://myhost:8080/axis1/services/";,
> but does not work when servicesURL ==
> "http://myhost:8080/axis2/services/ ".
>
> In the latter case, the following RemoteException:
>
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
> 
>  faultSubcode:
>  faultString: Service not found operation terminated !!
>  faultActor:
>  faultNode:
>  faultDetail:
> {http://xml.apache.org/axis/}stackTrace:Service
>  not found operation
> terminated !!
> at org.apache.axis.message
> .SOAPFaultBuilder.createFault (SOAPFaultBuilder.java:221)
> at
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
> at
> org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> (Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at
> org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java :424)
> at
> org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)
> at
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
> 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:2765)
> at org.apache.axis.client.Call.invoke(Call.java:2748)
> at org.apache.axis.client.Call.invoke(Call.java:2424)
> at org.apache.axis.client.Call.invoke (Call.java:2347)
> at org.apache.axis.client.Call.invoke(Call.java:1804)
> at nc3a.ListServices.main(ListServices.java:72)
>
> { http://xml.apache.org/axis/}hostname:Ardarico
> 
>
> Service not found operation terminated !!
> at
> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
> at
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java
> :128)
> at
> org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
> at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
> (Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at
> org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java
> :227)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
> at
> org.apache.axis

wsdl2java renames imported schemas

2007-06-10 Thread Spike Mulligan

I noticed that when I run wsdl2java on my wsds it renames all the imported
schemas xsd0.xsd xsd1.xsd rather than my nice meaningful names.  How do I
get it to preserve the original names?


RE: Axis2 with XMLBeans multiple schemas

2007-06-10 Thread raine king
OK, found the problem--xml spy likes circular dependencies, XMLBeans doesn't.I 
had two xsd's including eachotherDate: Thu, 7 Jun 2007 11:53:14 -0400From: 
[EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: Axis2 with XMLBeans multiple 
schemasWhat exception do you get? xmlbeans with multiple schemas works fine
for me. In my case the wsdl's do imports with xsd's in the same dir. Typically 
I run wsdl2java via an ant task, is that the way you are running it? 

Robert On 6/7/07, raine king <[EMAIL PROTECTED]> wrote:




When I run wsdl2java with the -d xmlbeans option on my wsdl, it works fine when 
the whole schema is in one file.  However when the schema is broken up into 
multiple files with import and include statements, it dies with a runtime 
exception.
I looked at the xmlbeans site and its supposed to support this.Am I supposed to 
do something to get it to work with multiple files?(Incidentally the multiple 
files work fine when I run it with adb so its not that I made a mistake in my 
schema!)
Play free games, earn tickets, get cool prizes! Join Live Search Club.   
Join Live Search Club!


_
Play free games, earn tickets, get cool prizes! Join Live Search Club. 
http://club.live.com/home.aspx?icid=CLUB_wlmailtextlink

Re: ****************Performance issues (Important)*****************

2007-06-10 Thread Paul Fremantle

Deepal

If you read the note the problem isn't with REST performance. The
problem that Vibhor is having is that a standard SOAP call is taking
1s per request.

Paul

On 6/10/07, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

Hi Paul,
From 1.1.1 to there was a major change by introducing WSDL 2.0 REST
handling , as I can see that might me the issue here. Keith any idea
about this ?

Thanks
Deepal

Paul Fremantle wrote:
> Vibhor
>
> There is something SERIOUSLY wrong going on here. Normally Axis2 1.1.1
> could handle that request in less than 35ms (unless this is running on
> a 386sx20Mhz PC :-)).
>
> See this performance data:
>
> http://wso2.org/library/588
>
> I can't imagine why its taking 1sec. Can you do some simple
> benchmarking and see how long its taking to do the standard Version
> request/response or one of the other samples? That would let us know
> if its something with your network/OS/JDK or something with your app.
>
> Thanks
> Paul
>
> On 6/8/07, Vibhor_Sharma <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> The previous request was
>>
>>
>>
>> POST /Gryphon/RegulatoryService.asmx/CertifyPhoneNumber
>> HTTP/1.1
>>
>> Host: ws.gryphonnetworks.com
>>
>> Content-Type: application/x-www-form-urlencoded
>>
>> Content-Length: length
>>
>> License=------DD33-
>>
>> E44E&Number=555111&Verbose=1
>>
>> The new request is
>>
>>
>> > xmlns:cer="http://webservices.gryphonnetworks.com/certify";
>>
>> xmlns:xsd="http://valueobjects.webservices.gryphonnetworks.com/xsd";
>> >
>>
>> 
>>
>> 1123
>>
>> C1CC-680E-ABF9-45F8-A0A1-EB4F-2950-90A8
>>
>> 1
>>
>> 
>>
>> Phone
>>
>> 7569872345
>>
>> 
>>
>> 
>>
>> Phone
>>
>> 4563456783
>>
>> 
>>
>> 
>>
>> 
>>
>> the previous request took 35 msec and the new request takes around 1
>> second.
>> Has it to do with the big XML packet?
>>
>> Vibhor
>>
>>  
>>  From: Paul Fremantle [mailto:[EMAIL PROTECTED]
>> Sent: Fri 6/8/2007 2:41 PM
>> To: axis-user@ws.apache.org
>> Subject: Re: Performance issues
>> (Important)*
>>
>>
>>
>>
>> Vibhor
>>
>> Can you give us some idea of the performance you are seeing and the
>> requirements.
>> Also what size of messages are you using? Also what databinding?
>>
>> By the way Axis2 also supports GET requests.
>>
>> Paul
>>
>> On 6/8/07, Vibhor_Sharma <[EMAIL PROTECTED]> wrote:
>> >
>> >
>> > Hi
>> >   There has been latest releases of Axis2 recently has there
>> been any
>> > performance improvement since 1.1.1?
>> >
>> > I'm currently using Axis2 1.1.1 are there any significant
>> improvements in
>> > the response times?
>> >
>> > As of now we have deployed the web services in production and one
>> of our
>> > cutsomer is reluctant to move to the new release (based on AXIS2)
>> as there
>> > is performance degradation that he is seeing. He was earlier using
>> REST
>> > based services (GET mechanism ) and the request paremeters were
>> being sent
>> > along with the URL itself. This architecture was based on DOT NET
>> > technology.
>> >
>> > We upgraded to the new architecure based upon Axis2.
>> > One of the few things we have done is introduced a better structured
>> schema
>> > (usage of complex data types).
>> > We have requested the client to to send the request through XML
>> over HTTP
>> > (using name spaces) using POST mechanism. The web services is invoked
>> > properly but with the deterioration in performance. Any reason why
>> this is
>> > happening ? or any assistance you can give.
>> >
>> > This is really urgent.
>> >
>> > Vibhor
>>
>>
>> --
>> Paul Fremantle
>> Co-Founder and VP of Technical Sales, WSO2
>> OASIS WS-RX TC Co-chair
>>
>> blog: http://pzf.fremantle.org
>> [EMAIL PROTECTED]
>>
>> "Oxygenating the Web Service Platform", www.wso2.com
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
>

--
Thanks,
Deepal

"The highest tower is built one brick at a time"



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





--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

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

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



Re: Collapsing Whitespace with Axis2

2007-06-10 Thread Paul Fremantle

I was just checking that it wasn't Axis2 adding unnecessary
whitespace!! If it is we need to fix it.

Paul

On 6/10/07, John Pfeifer <[EMAIL PROTECTED]> wrote:

The client can be pretty much anything...  This web service is used to
process financial transactions from over 500 trading partners, each with
a different environment.

-Original Message-
From: Paul Fremantle [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 09, 2007 3:08 AM
To: axis-user@ws.apache.org
Subject: Re: Collapsing Whitespace with Axis2

What is the client in this case?

Paul

On 6/8/07, John Pfeifer <[EMAIL PROTECTED]> wrote:
>
>
>
> I was wondering if there is a way to configure Axis2 to trim leading
and
> trailing whitespace before the web service is called.  I am valdating
all
> incoming requests against an XSD but I have found that xsd:decimal
> validation uses whitespace collapse by default.  This allows values
like "
> 9.99  " to be passed to my JiBX binding, which results in a
> NumberFormatException.  I can fix this issue by customzing my bindings
file,
> but I was wondering if there is a way to trim all incoming requests?
>
>  Thanks,
>
>  jp4


--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

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

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


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





--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

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

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



problem when invoking axis2 service with axis1 client

2007-06-10 Thread Michele Amoretti

Hello.

I have Tomcat with both axis1 and axis2 installed.

I woul dlike to invoke both axis1 and axis2 services using axis1 client, e.g
.:

   try {
   Call call = (Call) new
org.apache.axis.client.Service().createCall();
   call.setTargetEndpointAddress(new URL(servicesURL));
   call.setOperationName(new QName("Version", "getVersion"));
   Object response = call.invoke (new Object[]{});
   logMessage = " Version service said: " + (String) response;
   }
 ...

This code works fine when servicesURL == "http://myhost:8080/axis1/services/
",
but does not work when servicesURL == "http://myhost:8080/axis2/services/";.

In the latter case, the following RemoteException:

AxisFault
faultCode: 
{http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Service not found operation terminated !!
faultActor:
faultNode:
faultDetail:
   
{http://xml.apache.org/axis/}stackTrace:Servicenot
found operation terminated !!
   at org.apache.axis.message.SOAPFaultBuilder.createFault (
SOAPFaultBuilder.java:221)
   at org.apache.axis.message.SOAPFaultBuilder.endElement(
SOAPFaultBuilder.java:128)
   at org.apache.axis.encoding.DeserializationContext.endElement(
DeserializationContext.java:1087)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at javax.xml.parsers.SAXParser.parse(Unknown Source)
   at org.apache.axis.encoding.DeserializationContext.parse(
DeserializationContext.java:227)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java :424)
   at org.apache.axis.transport.http.HTTPSender.readFromSocket(
HTTPSender.java:796)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
   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:2765)
   at org.apache.axis.client.Call.invoke(Call.java:2748)
   at org.apache.axis.client.Call.invoke(Call.java:2424)
   at org.apache.axis.client.Call.invoke (Call.java:2347)
   at org.apache.axis.client.Call.invoke(Call.java:1804)
   at nc3a.ListServices.main(ListServices.java:72)

   {http://xml.apache.org/axis/}hostname:Ardarico


Service not found operation terminated !!
   at org.apache.axis.message.SOAPFaultBuilder.createFault(
SOAPFaultBuilder.java:221)
   at org.apache.axis.message.SOAPFaultBuilder.endElement(
SOAPFaultBuilder.java :128)
   at org.apache.axis.encoding.DeserializationContext.endElement(
DeserializationContext.java:1087)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at javax.xml.parsers.SAXParser.parse(Unknown Source)
   at org.apache.axis.encoding.DeserializationContext.parse(
DeserializationContext.java :227)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
   at org.apache.axis.transport.http.HTTPSender.readFromSocket(
HTTPSender.java :796)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
   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)error:
service invocation failed

   at org.apache.axis.client.Call.invokeEngine (Call.java:2765)
   at org.apa

problem when invoking axis2 service with axis1 client

2007-06-10 Thread Michele Amoretti

Hello.

I have Tomcat with both axis1 and axis2 installed.

I woul dlike to invoke both axis1 and axis2 services using axis1 client, e.g
.:

   try {
   Call call = (Call) new org.apache.axis.client.Service
().createCall();
   call.setTargetEndpointAddress(new URL(servicesURL));
   call.setOperationName(new QName("Version", "getVersion"));
   Object response = call.invoke(new Object[]{});
   logMessage = " Version service said: " + (String) response;
   }
 ...

This code works fine when servicesURL == "http://myhost:8080/axis1/services/
",
but does not work when servicesURL == "http://myhost:8080/axis2/services/";.

In the latter case, the following RemoteException:

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Service not found operation terminated !!
faultActor:
faultNode:
faultDetail:
   {http://xml.apache.org/axis/}stackTrace:Service not found operation
terminated !!
   at org.apache.axis.message.SOAPFaultBuilder.createFault(
SOAPFaultBuilder.java:221)
   at org.apache.axis.message.SOAPFaultBuilder.endElement(
SOAPFaultBuilder.java:128)
   at org.apache.axis.encoding.DeserializationContext.endElement(
DeserializationContext.java:1087)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at javax.xml.parsers.SAXParser.parse(Unknown Source)
   at org.apache.axis.encoding.DeserializationContext.parse(
DeserializationContext.java:227)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
   at org.apache.axis.transport.http.HTTPSender.readFromSocket(
HTTPSender.java:796)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
   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:2765)
   at org.apache.axis.client.Call.invoke(Call.java:2748)
   at org.apache.axis.client.Call.invoke(Call.java:2424)
   at org.apache.axis.client.Call.invoke(Call.java:2347)
   at org.apache.axis.client.Call.invoke(Call.java:1804)
   at nc3a.ListServices.main(ListServices.java:72)

   {http://xml.apache.org/axis/}hostname:Ardarico

Service not found operation terminated !!
   at org.apache.axis.message.SOAPFaultBuilder.createFault(
SOAPFaultBuilder.java:221)
   at org.apache.axis.message.SOAPFaultBuilder.endElement(
SOAPFaultBuilder.java:128)
   at org.apache.axis.encoding.DeserializationContext.endElement(
DeserializationContext.java:1087)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at javax.xml.parsers.SAXParser.parse(Unknown Source)
   at org.apache.axis.encoding.DeserializationContext.parse(
DeserializationContext.java:227)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
   at org.apache.axis.transport.http.HTTPSender.readFromSocket(
HTTPSender.java:796)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
   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)error:
service invocation failed

   at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
   at org.apache.axis.client.Call.invoke(Call.java:2748)
   at org.apache.axis.client.Call.invoke(Call.java:2424)
   at org.apache.axis.client.Call.invoke(Call.java:2347)
   at