Fwd: Array Of Long getting serialized to Array of long

2008-02-14 Thread kiran kumar
FYI.. sending it to axis-user as well.

-- Forwarded message --
From: kiran kumar <[EMAIL PROTECTED]>
Date: Thu, Feb 14, 2008 at 6:39 PM
Subject: Array Of Long getting serialized to Array of long
To: [EMAIL PROTECTED]


All,

 In one of our Classes, we have a variable which is Array of Long. When this
class is used in our api, it is getting serialized into array of long and
hence throwing classCastException when we trying to retrieve it. We checked
the wsdl generated, and it says soapenc:ArrayOflong.

public class TransactionSearchFilter implements Serializable {
 private Long[] transactionId;
 //getters and setters
}
corresponding entry in wsdl generated is

 
 
   
 
  


However, when serializing, we captured the request through tcpmon and found
out that this is getting converted as array of long

We are using *Axis 1.1RC1*. Can you help me figure out the issue.

PS : Will writing our custom (de)serializer for Array(De)Serializer and
handle Long (if it an issue) help >>

Thanks
Kiran


Re: Xml schema

2008-02-14 Thread kiran kumar
Lakshmi,

 If the issue is to retrieve the information from the xml based on the
description in the xsd, why dont you use any good xml-data binding tools,
like Castor or Jaxb or other well know third party tools. they create Bean
classes, based on the xsd and with unmarshalling, you can read the classes.

Thanks
Kiran

On Fri, Feb 15, 2008 at 12:02 PM, LAKSHMI SARATHY <
[EMAIL PROTECTED]> wrote:

>  i have to design client side , in this i have to read the parameters
> from xml data and display it in a java GUI. now to find the data type of
> the elements of xml..we need to read the xml schema ?
> For reading say for eg my xml data describe user
> with first name, last name, address, phone number. I need to display this
> data in my gui. for this should i read the schema to find out
> what are the parameter of user from the schema ? as well as the datatype
> of the various elements (address,phone number,etc) ?
> To find out if the elements is mandatory or not ? how to get such info
> from xml data? or from the schema?
>
>
>
>
>  --
> *From:* Shailendra Singh [mailto:[EMAIL PROTECTED]
> *Sent:* Friday, February 15, 2008 11:21 AM
> *To:* axis-user@ws.apache.org
> *Cc:* LAKSHMI SARATHY
> *Subject:* RE: Xml schema
>
>
>
> Lakshami,
>
>
>
> If you could provide more information will be better!
>
>
>
> Regards,
>
> Shailendra Singh
>  --
>
> *From:* LAKSHMI SARATHY [mailto:[EMAIL PROTECTED]
> *Sent:* Friday, February 15, 2008 11:04 AM
> *To:* axis-user@ws.apache.org
> *Subject:* Xml schema
>
>
>
>
>
> hello Group,
>
>
>
> GM.
>
>
>
> i have been given both xml and xsd files. should i parse the xml based on
> the xsd? i need the information from the schema to be used
>
> in the JAVA gui. Any suggestions?
>
>
>
> Regards
>
> lakshmi
>
>
>
>
>
>
>  --
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED]
> *Sent:* Friday, February 15, 2008 11:00 AM
> *To:* axis-user@ws.apache.org
> *Subject:* AXIOM - OMElement- Hashmap
>
> Hi Group,
>
>
>
> I have a hashmap in my my value object & axis 2 has generated a method
> inside my stub with the below signature.
>
>
>
> public org.apache.axiom.om.OMElement getTestMap() {
>
> return localCurrencyMap;
>
> }
>
>
>
> How do I retrieve the values from the OMElement?
>
>
>
> Thanks,
>
> Ajit
>
> DISCLAIMER:
> This message contains privileged and confidential information and is
> intended only for an individual named. If you are not the intended
> recipient, you should not disseminate, distribute, store, print, copy or
> deliver this message. Please notify the sender immediately by e-mail if you
> have received this e-mail by mistake and delete this e-mail from your
> system. E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed, arrive late
> or incomplete or contain viruses. The sender, therefore, does not accept
> liability for any errors or omissions in the contents of this message which
> arise as a result of e-mail transmission. If verification is required,
> please request a hard-copy version.
>
> DISCLAIMER:
> This email may contain confidential or privileged information for the
> intended recipient(s) and the views expressed in the same are not
> necessarily the views of Zensar Technologies Ltd. If you are not the
> intended recipient or have received this e-mail by error, its use is
> strictly prohibited, please delete the e-mail and notify the sender. Zensar
> Technologies Ltd. does not accept any liability for virus infected mails.
>


FW: Axis2 WSDL2Java error during service skeliton/stub generation

2007-10-26 Thread Kiran Kumar Sriram
Here is the WSDL file attached with this mail.


From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Axis2 WSDL2Java error during 
service skeliton/stub generationDate: Fri, 26 Oct 2007 10:34:30 -0400


Hello All  I am getting this error when i try to generate Service Skeleton code 
from a WSDL file. This is a new service and we are trying to go in WSDL first 
approach. We need wsdl to be in Document/literal Wrapped style in order to be 
interoperable with .Net framework. .Net generated client stubs with out any 
problem but Axis2 WSDL2Java is giving this exception during service skeleton 
and client generation times. This is pretty simple WSDL file with just two 
methods in it. We are trying to generate skeleton and clients in UNWrapped 
mode. C:\Code\Axis14ClientTest\Axis14ClientTest1>java.exe 
-Djava.ext.dirs=C:\Softwares\axis2-1.3-bin\axis2-1.3\lib; 
org.apache.axis2.wsdl.WSDL2Java -s -ss -uw -sd -dadb -uri 
PCMConnection.wsdllog4j:WARN No appenders could be found for logger 
(org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).log4j:WARN Please 
initialize the log4j system properly.Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Can not determine the 
schema type for the set_PortalVariableResponseat 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)at 
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)Caused by: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Can not determine the 
schema type for the set_PortalVariableResponseat 
org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walk  I have 
attached WSDL file with this mail. Just to let you know .Net is fine with this 
WSDL but not Axis2 WSDL2Java tool. Any help is greatly appreciated. Thank you, 
Kiran 

Peek-a-boo FREE Tricks & Treats for You! Get 'em! 
_
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct

PCMConnection.wsdl
Description: application/xml
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Axis2 WSDL2Java error during service skeliton/stub generation

2007-10-26 Thread Kiran Kumar Sriram
Hello All  I am getting this error when i try to generate Service Skeleton code 
from a WSDL file. This is a new service and we are trying to go in WSDL first 
approach. We need wsdl to be in Document/literal Wrapped style in order to be 
interoperable with .Net framework. .Net generated client stubs with out any 
problem but Axis2 WSDL2Java is giving this exception during service skeleton 
and client generation times. This is pretty simple WSDL file with just two 
methods in it. We are trying to generate skeleton and clients in UNWrapped 
mode. C:\Code\Axis14ClientTest\Axis14ClientTest1>java.exe 
-Djava.ext.dirs=C:\Softwares\axis2-1.3-bin\axis2-1.3\lib; 
org.apache.axis2.wsdl.WSDL2Java -s -ss -uw -sd -dadb -uri 
PCMConnection.wsdllog4j:WARN No appenders could be found for logger 
(org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).log4j:WARN Please 
initialize the log4j system properly.Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Can not determine the 
schema type for the set_PortalVariableResponseat 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)at 
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)Caused by: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Can not determine the 
schema type for the set_PortalVariableResponseat 
org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walk  I have 
attached WSDL file with this mail. Just to let you know .Net is fine with this 
WSDL but not Axis2 WSDL2Java tool. Any help is greatly appreciated. Thank you, 
Kiran 
_
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

RE: Axis2 1.3 and Servlet Spec

2007-10-15 Thread Kiran Kumar Sriram
Hi Martin,
 
It is just not only with Tomcat, If i have to select any other webserver then i 
need to know what is the servlet spec Axis2 1.3 needs at minimum.
 
I didn't find that info on the requirements page of Axis2 website.
 
Thanks,
Kiran


From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: Axis2 1.3 and Servlet SpecDate: 
Fri, 13 Oct 2000 17:53:47 -0400



depends on the container that axis wil be implement on e.g.
Apache Tomcat version 5.5 implements the Servlet 2.4
Apache Tomcat version 6.0 implements the Servlet 2.5
 
Are you using a different container?
Martin--

- Original Message - 
From: Kiran Kumar Sriram 
To: axis-user@ws.apache.org 
Sent: Friday, October 12, 2007 2:15 PM
Subject: Axis2 1.3 and Servlet Spec
Hello All,Axis2 1.3 can be installed in any Servlet Container, but is there any 
minimum Servlet specification(2.1 or 2.3) that is needed for Axis2 1.3 ?Any 
help is greatly appreciated.Thanks,Kiran

Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! Try 
now! 
_
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

Axis2 1.3 and Servlet Spec

2007-10-12 Thread Kiran Kumar Sriram
Hello All,Axis2 1.3 can be installed in any Servlet Container, but is there any 
minimum Servlet specification(2.1 or 2.3) that is needed for Axis2 1.3 ?Any 
help is greatly appreciated.Thanks,Kiran
_
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews

Re: in Arrays - -

2006-03-09 Thread Kiran Kumar
Hi,

In the generated output,  element is pointing to "ArrayHB24ILISTA1", it 
is supposed to point "ArrayHB24ILISTA1Stub". 

 => supposed to be 
"ArrayHB24ILISTA1Stub"..
  
  


Kiran
 
On Wed, Mar 08, 2006 at 09:39:07AM -0600, Kiran Kumar wrote:
> Hi,
> 
> As per the definition of type'ArrayHB24ILISTA1' is not 'Array'.. You have to 
> define array of your complex type (ArrayHB24ILISTA1).. It would be something 
> like this :
> 
>   
>   
>type="transactionHB24:ArrayHB24ILISTA1" maxOccurs="unbounded"/>
>   
>   
> 
>
> 
> 
> Name of the your complex type (ArrayHB24ILISTA1) is confusing..Its not an 
> array.. its just a complex type.
> 

Reopening this subject:

I followed your suggestion. My wsdl now reads:

  

  

  
  

  
  

  

But the output is still:

  


  
  


  
  



  


The other side (a desperately outdated weblogic...) requires a form like:

  



  
  


  
  




  


How can I force axis to send the request in this form? (even if I have to
change the wsdl).

Thanks

-- 
Pedro Alves
[EMAIL PROTECTED]




This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.




<>

RE: in Arrays

2006-03-08 Thread Kiran Kumar
Hi,

As per the definition of your WSDL, the generated output is correct.

In your WSDL, "LISTA1" is defined as an Array of type 'ArrayOP58OLISTA1', so 
your result will be

 .. 
 .. 
 .. 

But if you want 


.. 
.. 


then your WSDL should have 

  

  
  
  

  
  

   

   
  

  
  
  


So you may have to see what is the actual error you are getting on the server 
side, and make sure you are using the right WSDL.

Kiran

-Original Message-
From: Pedro Alves [mailto:[EMAIL PROTECTED]
Sent: Wed 3/8/2006 10:30 AM
To: axis-user@ws.apache.org
Subject: Re:  in Arrays
 
On Wed, Mar 08, 2006 at 09:39:07AM -0600, Kiran Kumar wrote:
> Hi,
> 
> As per the definition of type'ArrayHB24ILISTA1' is not 'Array'.. You have to 
> define array of your complex type (ArrayHB24ILISTA1).. It would be something 
> like this :
> 
>   
>   
>type="transactionHB24:ArrayHB24ILISTA1" maxOccurs="unbounded"/>
>   
>   
> 
>
> 
> 
> Name of the your complex type (ArrayHB24ILISTA1) is confusing..Its not an 
> array.. its just a complex type.
> 
> Kiran
> 


But what puzzles me is that this output

 
   
 
   Imp Selo TRF-190
   0
   0.00
 
   
 

is generated after this wsdl:

  

  
  
  

  
  

  
  
  



I really cannot tell any differences


Pedro


> > On 3/8/06, Pedro Alves <[EMAIL PROTECTED] > wrote:
> > 
> > 
> > 
> > Hi.
> > 
> > I have a wsdl that has this element in the request:
> > 
> >  > type="transactionHB24:ArrayHB24ILISTA1" maxOccurs="unbounded" />
> > 
> > 
> > When I invoke the ws, the soap has the form:
> > 
> > <...>
> > ...
> > ...
> > ...
> > ...
> > <...>
> > 
> > But the other side throws an exception. I think the other side is 
> > expecting
> > 
> > <...>
> > 
> > ...
> > ...
> > 
> > <...>
> > 
> > I know that axis can handle this kind of semantics because It can parse
> > correctly when the other side returns a response like this (on other
> > webservice).
> > 
> > How can I force the request to have this form?
> > 
> > 
> > Thanks
> > 
> > 
> > --
> > Pedro Alves
> > 
> > 
> 
> -- 
> Pedro Alves
> [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, and any attachments thereto, is confidential and is intended 
> only for the individual(s) named.  If you are not the intended recipient, 
> please let us know by e-mail reply and delete it from your system; do not 
> copy/save this e-mail or disclose its contents to anyone.  E-mail 
> transmissions cannot be guaranteed to be secure or error-free as the 
> transmission could be interrupted, corrupted, lost, destroyed, altered, 
> arrive late or contain viruses.  ObjectWave does not accept liability for any 
> errors or omissions in the contents of this e-mail which arise as a result of 
> e-mail transmission.  The views expressed in this e-mail do not necessarily 
> reflect those of ObjectWave or its affiliates.
> 
> 
> 
> 



-- 
Pedro Alves
[EMAIL PROTECTED]

<>

Re: in Arrays -

2006-03-08 Thread Kiran Kumar
Hi,

As per the definition of type'ArrayHB24ILISTA1' is not 'Array'.. You have to 
define array of your complex type (ArrayHB24ILISTA1).. It would be something 
like this :







   


Name of the your complex type (ArrayHB24ILISTA1) is confusing..Its not an 
array.. its just a complex type.

Kiran


-Original Message-
From: Pedro Alves [mailto:[EMAIL PROTECTED]
Sent: Wed 3/8/2006 9:13 AM
To: axis-user@ws.apache.org
Subject: [SPAM-HDR] - Re:  in Arrays - Email has different SMTP TO: and 
MIME TO: fields in the email addresses
 
On Wed, Mar 08, 2006 at 09:23:25AM -0500, Anne Thomas Manes wrote:
> What is the type definition for transactionHB24:ArrayHB24ILISTA1?
> 
> Anne

Here is the definition:

  

  
  
  
  
  
  
  
  
  

  


As far as I know, axis is doing the right thing - I use it on the client
side. The server is a weblogic 6.1 server.

On another webservice, the response from the server is: (ArrayHB24ILISTA1
is similar to the one I wrote above)

  

  Imp Selo TRF-190
  0
  0.00

  

Axis can handle this response ok, so thats why I hope to have some kind of
engine option to allow me form a request like this.


Thanks for the help!


> 
> On 3/8/06, Pedro Alves <[EMAIL PROTECTED] > wrote:
> 
> 
> 
> Hi.
> 
> I have a wsdl that has this element in the request:
> 
>  type="transactionHB24:ArrayHB24ILISTA1" maxOccurs="unbounded" />
> 
> 
> When I invoke the ws, the soap has the form:
> 
> <...>
> ...
> ...
> ...
> ...
> <...>
> 
> But the other side throws an exception. I think the other side is 
> expecting
> 
> <...>
> 
> ...
> ...
> 
> <...>
> 
> I know that axis can handle this kind of semantics because It can parse
> correctly when the other side returns a response like this (on other
> webservice).
> 
> How can I force the request to have this form?
> 
> 
> Thanks
> 
> 
> --
> Pedro Alves
> 
> 

-- 
Pedro Alves
[EMAIL PROTECTED]




This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.




<>

RE: [SPAM-HDR] - Re: Cape Clear SOA Editor Tool - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-03-07 Thread Kiran Kumar
Anne, Could you please send a copy to me as well ?

Thanks
Kiran
-
Ph: 312 742 9630
Email: [EMAIL PROTECTED]


>
> On 3/7/06, *Anne Thomas Manes* <[EMAIL PROTECTED] 
> > wrote:
>
> I just received permission from Annrai O'Toole (Founder and
> Chairman of Cape Clear) to redistribute the SOA Editor tool. Let
> me know if you like a copy, and I'll send it to you.
>
> Anne
>
>




This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.




<>

Incorrect serialization with Arrays (wraped style) - Axis 1.3

2006-02-03 Thread Kiran Kumar
Title: Incorrect serialization with Arrays (wraped style) - Axis 1.3






Hello

I am using Axis 1.3 (Java). I created my service endpoint method as

public DataHandler test(String effectiveDate,
            String expiryDate,
            String[] arrActivities,
            String[] arrStatus,                                              
            String typeOfClient) {}

I used Java2WSDL to generate WSDL (wrapped style), it generated the WSDL with XSD type as

- 
- 
  
  
  
  
  
  
  

It works fine as long as the client passes all the elements in the input.

But if the client misses the element 'arrActivities' then it takes 'arrStatus' elements as 'arrActivities' that means arrActivities[] string array will have the elements of  and arrStatus[] will have the value of 'typeOfclient' and typeOfclient will be empty.

Is this a bug or Am I doing something wrong ?

Thanks
Kiran







This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


FW: axis-java2wsdl is throwing java.lang.NoSuchMethodError

2006-02-03 Thread Kiran Kumar
Title: FW: axis-java2wsdl is throwing java.lang.NoSuchMethodError






Has anyone come across the following issue?

Hello, I am using axis-1_3. When I am trying to use ant task "axis-java2wsdl", I am getting the following error.

[axis-java2wsdl] java.lang.NoSuchMethodError: org.apache.axis.encoding.DefaultTypeMappingImpl.getSingleton()Lorg/apache/axis/encoding/TypeMapping;
[axis-java2wsdl]    at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:221)
[axis-java2wsdl]    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[axis-java2wsdl]    at org.apache.tools.ant.Task.perform(Task.java:364)
[axis-java2wsdl]    at org.apache.tools.ant.Target.execute(Target.java:341)
[axis-java2wsdl]    at org.apache.tools.ant.Target.performTasks(Target.java:369)
[axis-java2wsdl]    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[axis-java2wsdl]    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[axis-java2wsdl]    at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:377)
[axis-java2wsdl]    at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)

Initially it was not able to identify 'javax.activation.DataSource' class, so I have added activation.jar (from Sun) and then it threw the above exception.

Any clue? I guess somewhere there is a conflict between the versions of the jar files..

Thanks,Kiran







This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


axis-java2wsdl is throwing java.lang.NoSuchMethodError

2006-02-01 Thread Kiran Kumar
Title: axis-java2wsdl is throwing java.lang.NoSuchMethodError






Hello, I am using axis-1_3. When I am trying to use ant task "axis-java2wsdl", I am getting the following error.

[axis-java2wsdl] java.lang.NoSuchMethodError: org.apache.axis.encoding.DefaultTypeMappingImpl.getSingleton()Lorg/apache/axis/encoding/TypeMapping;
[axis-java2wsdl]    at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:221)
[axis-java2wsdl]    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[axis-java2wsdl]    at org.apache.tools.ant.Task.perform(Task.java:364)
[axis-java2wsdl]    at org.apache.tools.ant.Target.execute(Target.java:341)
[axis-java2wsdl]    at org.apache.tools.ant.Target.performTasks(Target.java:369)
[axis-java2wsdl]    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[axis-java2wsdl]    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[axis-java2wsdl]    at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:377)
[axis-java2wsdl]    at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)

Initially it was not able to identify 'javax.activation.DataSource' class, so I have added activation.jar (from Sun) and then it threw the above exception.

Any clue? I guess somewhere there is a conflict between the versions of the jar files..

Thanks,Kiran






This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


RE: IncompatibleClassChangeError whenever a soap service is called.

2005-11-14 Thread kiran kumar
The error is solved. It was the incompatibilities with the jars that axis needs.
 
Thanks
KiranMatthew Menefee <[EMAIL PROTECTED]> wrote:







I just delt with this error.  Someone pointed me to the fact that when I compile my code, I use different versions of certain software at runtime.  You might also see NoSuchMethodError at some point.
 
I was using JRun4 as my app server and JRun was loading Axis 1.1, and I was compiling with Axis 1.2.  Make sure that our server is not loading JARS from different versions at runtime.  If so, your server should have some mechanism that would allow you to load the web apps classpath first, then the server classpath.
 
 




From: kiran kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, November 10, 2005 4:30 AMTo: axisSubject: IncompatibleClassChangeError whenever a soap service is called.
 

Hi,

  Whenever i try to call a soap service i get a java.lang.IncompatibleClassChangeError. The soap response is given below. The versions of axis(1.2) is the same on both server and client, and i am using the same JVM. The server is running on Resin 3.0.8. Could anyone please help me out. 

 

 

HTTP/1.0 500 Internal Server Error

Server: Resin/3.0.8

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

Date: Thu, 10 Nov 2005 10:00:05 GMT

 

   http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">       soapenv:Server.generalException    java.lang.IncompatibleClassChangeError; nested exception is:
  java.lang.IncompatibleClassChangeError       http://xml.apache.org/axis/">in-w2kzenn27>          

 

 



Yahoo! FareChase - Search multiple travel sites in one click. 
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

Re: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType

2005-11-10 Thread kiran kumar
Hi,
 anyType objects are used when axis does not find a suitable return or argument classes. It seems you are using  Javabean class. If you did, make sure that it is Javabean-compatible, ie. with getters and setters for all variables in the bean class as well as a default ctor.
 
Kiran"Parikh,Pratik" <[EMAIL PROTECTED]> wrote:


Hi Everyone, 
   I have a problem where axis is throwing the error on deserializer. It sends the request from the client and on the web service side it parses the request and creates the response. But deserializer it is throwing the error, while parsing one of the elements it throws out the following exception: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType
I know what is happing, the engine thinks that the element is anyType but the element is of different type. Can some one tell me what I can do to fix this, it seems like that the stub that was generated was not right??? Can some one tell me how is typemapping stored…..
NOTES: 
   This is the object:          qName = new javax.xml.namespace.QName("urn:hl7-org:v3",     "PRPA_MT230101UK13.Subject");     cachedSerQNames.add(qName);     cls = com.cerner.fsi.hl7.v3.PRPA_MT230101UK13Subject.class;     cachedSerClasses.add(cls);     cachedSerFactories.add(beansf);    
 cachedDeserFactories.add(beandf); 
   It is being used by following object as an element seqence with a cardinality of 0..*     qName = new javax.xml.namespace.QName("urn:hl7-org:v3",     "PRPA_MT230101UK13.PdsTraceMatch");     cachedSerQNames.add(qName);     cls = com.cerner.fsi.hl7.v3.PRPA_MT230101UK13PdsTraceMatch.class;     cachedSerClasses.add(cls);     cachedSerFactories.add(beansf);    
 cachedDeserFactories.add(beandf); 
Any help will be greatly appreciated…. 
Thanks, Pratik Parikh 



CONFIDENTIALITY NOTICEThis message and any included attachmentsare from Cerner Corporation and are intendedonly for the addressee. The informationcontained in this message is confidential andmay constitute inside or non-public informationunder international, federal, or statesecurities laws. Unauthorized forwarding,printing, copying, distribution, or use of suchinformation is strictly prohibited and may beunlawful. If you are not the addressee, pleasepromptly delete this message and notify thesender of the delivery error by e-mail or youmay call Cerner's corporate offices in KansasCity, Missouri, U.S.A at (+1) (816)221-1024. --
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

IncompatibleClassChangeError whenever a soap service is called.

2005-11-10 Thread kiran kumar
Hi,
  Whenever i try to call a soap service i get a java.lang.IncompatibleClassChangeError. The soap response is given below. The versions of axis(1.2) is the same on both server and client, and i am using the same JVM. The server is running on Resin 3.0.8. Could anyone please help me out. 
 
 
HTTP/1.0 500 Internal Server Error
Server: Resin/3.0.8
Content-Type: text/xml; charset=utf-8
Date: Thu, 10 Nov 2005 10:00:05 GMT
 
   http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">       soapenv:Server.generalException    java.lang.IncompatibleClassChangeError; nested exception is:  java.lang.IncompatibleClassChangeError   
    http://xml.apache.org/axis/">in-w2kzenn27>          
 
 
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

Axis AdminClient not finding target service to invoke.

2005-11-08 Thread kiran kumar
HI,
 When i am using axis1.1 the deployment of deploy.wsdd using AdminClient works fine. However if i use axis1.2 to deploy the same deploy.wsdd it throws an AxisFault exception.
The target url is still the same..
 
Exception: AxisFault faultCode: {http://xml.apache.org/axis/}Server.NoService faultSubcode: faultString: The AXIS engine could not find a target service to invoke!  target faultActor: faultNode: faultDetail:    {http://xml.apache.org/axis/}stackTrace:AxisFault faultCode: {http://xml.apache.org/axis/}Server.NoService faultSubcode: faultString: The AXIS engine could not find a target service to invoke!  target faultActor: faultNode: faultDetail:
The AXIS engine could not find a target service to invoke!  targetService is nul    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.    at org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseri.java:1092)    at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)    at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLVa    at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispner.java:1204)    at
 org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS    at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)    at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa:257)
.
.
 
Can anyone help me identifying whats wrong.
 
Thanks
Kiran
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

RE: how to call a document style web service?

2005-06-07 Thread Kiran Kumar
Thank You Ephemeris Lappis for your response.
 
I am not using 'wrapped' style web service. If it was the case I would pass the 
input parameters in the way you described in your example.
 
My service end point method signature is something like 
 
public Geocode individual(Gcindividualinputs gcindividualinputs) throws 
java.rmi.RemoteException ;
 
Here the input is being received as an object (Gcindividualinputs is being 
generated by WSDL2Java file) so I will have to send the input in 'xml' format 
which maps to Gcindividualinputs value object at run time by Axis.
 
The issue is, I was able to form SOAPEnvelope with the 'xml' format but I am 
unable to find an API to invoke the service using the SOAPEnvelope that I 
created.  please scroll down , you will see my sample client that I was trying 
to write.
 
 
Thanks
Kiran
-
Ph: 312 742 9630
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 



From: Ephemeris Lappis [mailto:[EMAIL PROTECTED]
Sent: Tue 6/7/2005 12:37 PM
To: axis-user@ws.apache.org
Subject: RE: how to call a document style web service?


Hello.
I suppose that if you have the wsdl for your web service, you can generate the 
client stubs, and use them to call it. If you want, you can also build a call 
by yourself using dynamic invocation, setting appropriate style, etc.
 
Here are few lines from an old test program that builds a literal call to a 
service operation named "evaluate" that takes a string as argument and also 
returns a string. You must adapt the namespaces, names, parameters and endoint 
URL according to your real service. I'm not sure this code work as is with 
recent versions, but this is a base idea... You must also take care about the 
classes you use. In my example, it seems that i were using axis specific 
classes (Call, Service), but i think it should be better to only use the jaxrpc 
API to ensure future compliance...
 
I hope this can help you...



--
Ephemeris Lappis 

 
  String endpoint = 
"http://alhambra:/j2ee14-three-services-ejb/First-Class-WS/FirstClassWS";;
 
  QName operationQName = new QName("http://ws.moon.net/three";, "evaluate");
  QName resultQName = new QName("http://ws.moon.net/three";, "evaluateReturn");
 
  Service service = new Service();
  Call call = (Call) service.createCall();
 
  call.setProperty(javax.xml.rpc.Call.SOAPACTION_USE_PROPERTY, new 
Boolean(true));
  call.setProperty(javax.xml.rpc.Call.OPERATION_STYLE_PROPERTY, "literal");
  call.setProperty(javax.xml.rpc.Call.OPERATION_STYLE_PROPERTY, "document");
 
  call.setTargetEndpointAddress(new java.net.URL(endpoint));
  call.setOperationName(operationQName);
  call.addParameter("evaluate", operationQName, String.class, ParameterMode.IN);
  call.setReturnType(resultQName, String.class);
 
  Object[] input = { "Philippe" };
 
  Object result = call.invoke(input);


-Original Message-
From: Kiran Kumar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 07, 2005 6:39 PM
To: axis-user@ws.apache.org
Subject: RE: how to call a document style web service?


Hello all.. I am really stuck.. please point me to some example on how 
to call webservice using soap envelope..  I searched through google, but could 
not find any example...
 
Thank You, Kiran



From: Kiran Kumar [mailto:[EMAIL PROTECTED]
Sent: Tue 6/7/2005 8:15 AM
To: axis-user@ws.apache.org
Subject: how to call a document style web service?


Helo all,
 
I am using axis 1.2 (java).. I built a document style
webservice, which has following method..


public Geocode onfromto(OnfromtoInputs inputs);

I started writing a client to call this web service
method.. but I could not find any API to call a web
service method with soap envelope.. can you please throw
some light on this ... ?

Thanks for your time, GK.

 I started writing a client something like this..


// create envelope
SOAPEnvelope env = new SOAPEnvelope();

// create body
SOAPBody body = env.addBody();

// Create body
Name bodyName =
env.createName("onfromto","m","http://mydomain.domain/onfromto 
<http://mydomain.domain/onfromto> ");
SOAPBodyElement bodyElement =
body.addBodyElement(bodyName);

Name nameAddress = env.createName("address");
SOAPElement eleAddress =
bodyElement.addChildElement(nameAddress);
eleAddress.addTextNode("2425 springdale"

how to suppress namespaces in the response XML

2005-06-07 Thread Kiran Kumar


Hi, I am using Axis 1.2 and 
using BeanSerializerFactory to return the response in XML form. It was 
generating the output something like this.. I want to suprress the namespaces.. 
Is there any way to do this in Axis?
 
 
http://domain.mydomain/versions/1.0/idindividual"> http://domain.mydomain/versions/1.0/idcommontypes">  151 1.12711579644057E8 87634.71237811  
 
 

Thanks
Kiran
 

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


RE: how to call a document style web service?

2005-06-07 Thread Kiran Kumar



Hello all.. I am really 
stuck.. please point me to some example on how to call webservice using soap 
envelope..  I searched through google, but could not find any 
example...
 

Thank You, 
Kiran

From: Kiran Kumar 
[mailto:[EMAIL PROTECTED]Sent: Tue 6/7/2005 8:15 
AMTo: axis-user@ws.apache.orgSubject: how to call a 
document style web service?


Helo 
all,
 
I am using axis 1.2 
(java).. I built a document stylewebservice, which has following 
method..
public Geocode onfromto(OnfromtoInputs inputs);I 
started writing a client to call this web servicemethod.. but I could not 
find any API to call a webservice method with soap envelope.. can you please 
throwsome light on this ... ?Thanks for your time, GK. I 
started writing a client something like this..// create 
envelopeSOAPEnvelope env = new SOAPEnvelope();// create 
bodySOAPBody body = env.addBody();// Create bodyName bodyName 
=env.createName("onfromto","m","http://mydomain.domain/onfromto");SOAPBodyElement bodyElement 
=body.addBodyElement(bodyName);Name nameAddress = 
env.createName("address");SOAPElement eleAddress 
=bodyElement.addChildElement(nameAddress);eleAddress.addTextNode("2425 
springdale"); 
Name nameGeoCodingTarget = 
env.createName("codingtarget");SOAPElement eleGeo 
=bodyElement.addChildElement(nameGeoCodingTarget);eleGeo.addTextNode("0"); 
Service service = new Service();Call call = (Call) 
service.createCall();call.setTargetEndpointAddress(strEndpoint);
How to invoke with soap envelop ?
=
 

Thanks for your time
Kiran
 

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


how to call a document style web service?

2005-06-07 Thread Kiran Kumar


Helo all,
 
I am using axis 1.2 
(java).. I built a document stylewebservice, which has following 
method..
public Geocode onfromto(OnfromtoInputs inputs);I 
started writing a client to call this web servicemethod.. but I could not 
find any API to call a webservice method with soap envelope.. can you please 
throwsome light on this ... ?Thanks for your time, GK. I 
started writing a client something like this..// create 
envelopeSOAPEnvelope env = new SOAPEnvelope();// create 
bodySOAPBody body = env.addBody();// Create bodyName bodyName 
=env.createName("onfromto","m","http://mydomain.domain/onfromto");SOAPBodyElement bodyElement 
=body.addBodyElement(bodyName);Name nameAddress = 
env.createName("address");SOAPElement eleAddress 
=bodyElement.addChildElement(nameAddress);eleAddress.addTextNode("2425 
springdale"); 
 	Name nameGeoCodingTarget = 
env.createName("codingtarget");SOAPElement eleGeo 
=bodyElement.addChildElement(nameGeoCodingTarget);eleGeo.addTextNode("0");			Service 
service = new Service();Call call = (Call) 
service.createCall();call.setTargetEndpointAddress(strEndpoint);
How to invoke with soap envelop ?
=
 

Thanks for your time
Kiran
 

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


document style client

2005-06-06 Thread Kiran Kumar


Hi, Can any of you please 
tell me what is wrong with my client code ?
 
I am trying to invoke a service (document 
type) but it was not able to construct the input object. I am sure the way I am 
constucting my input XML is not correct, but I am unable to get any exampe on 
how to do that.. 
 
I am here attaching my client code 
(SdeGcIndividualWsTest.java) , my schema definition (gcindividual.xsd) and wsdl 
(getcoordinate.wsdl).
 
Thanks for your time, Kiran
 

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


SdeGcIndividualWsTest.java
Description: SdeGcIndividualWsTest.java

http://domain.cityofchicago.gis.gce/versions/1.0/gcindividual"; xmlns:gccommon="http://domain.cityofchicago.gis.gce/versions/1.0/gccommontypes"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; targetNamespace="http://domain.cityofchicago.gis.gce/versions/1.0/gcindividual"; elementFormDefault="qualified">
	http://domain.cityofchicago.gis.gce/versions/1.0/gccommontypes"; schemaLocation="gccommontypes.xsd"/>
	
		
			
			
			
		
	
	
	
	
	



http://schemas.xmlsoap.org/wsdl/http/"; 
	xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
	xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
	xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
	xmlns:ws="http://www.example.com/webservice"; 
	xmlns:impl="http://domain.cityofchicago.gis.gce/versions/1.0/getcoordinate/wsdl"; 
	xmlns:gcindividualtypes="http://domain.cityofchicago.gis.gce/versions/1.0/gcindividual"; 
	xmlns:gcintersectiontypes="http://domain.cityofchicago.gis.gce/versions/1.0/gcintersection"; 
	xmlns:gconfromtotypes="http://domain.cityofchicago.gis.gce/versions/1.0/gconfromto"; 
	xmlns:gcrangetypes="http://domain.cityofchicago.gis.gce/versions/1.0/gcrange"; 
	xmlns:ns="http://domain.cityofchicago.gis.gce/versions/1.0/gccommontypes"; 
	targetNamespace="http://domain.cityofchicago.gis.gce/versions/1.0/getcoordinate/wsdl";>
	
		http://domain.cityofchicago.gis.gce/versions/1.0/gcindividual/wsdl/importtypes";>
			http://domain.cityofchicago.gis.gce/versions/1.0/gcindividual"; schemaLocation="gcindividual.xsd"/>
		
		http://domain.cityofchicago.gis.gce/versions/1.0/gcintersection/wsdl/importtypes";>
			http://domain.cityofchicago.gis.gce/versions/1.0/gcintersection"; schemaLocation="gcintersection.xsd"/>
		
		http://domain.cityofchicago.gis.gce/versions/1.0/gconfromto/wsdl/importtypes";>
			http://domain.cityofchicago.gis.gce/versions/1.0/gconfromto"; schemaLocation="gconfromto.xsd"/>
		
		http://domain.cityofchicago.gis.gce/versions/1.0/gconfromto/wsdl/importtypes";>
			http://domain.cityofchicago.gis.gce/versions/1.0/gcrange"; schemaLocation="gcrange.xsd"/>
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
		
			
			
		
		
		
			
			
		
		
		
			
			
		
		
		
			
			
		
	
	
		http://schemas.xmlsoap.org/soap/http"/>
		
			
			

			
			

			
		
		
			
			

			
			

			
		
		
			
			

			
			

			
		
		
			
			

			
			

			
		
	
	
		
			http://localhost:8080/gce/services/GetCoord"/>
		
	



RE: import schema to wsdl

2005-06-06 Thread Kiran Kumar
You don't have to specify any other changes in wsdl or WSDL2Java script. Once 
you run WSDL2Java, check the **SOAPBindingImpl.java, the method should return 
correct return type (Flight). 
 
Kiran  



From: James Taylor [mailto:[EMAIL PROTECTED]
Sent: Mon 6/6/2005 3:17 PM
To: axis-user@ws.apache.org
Subject: Re: import schema to wsdl





If I make the changes below will I have to specify anything else in the wsdl or
in wsdl2java to get wrapped-literal style?

Quoting James Taylor <[EMAIL PROTECTED]>:

>
> So I should just chang change types:bookFlightsRequest to types:bookFlights
> and
> reflect this in the external schema, will I have to change  message="tns:bookFlightsReq" />  also?
>
> ...heres the bit of the wsdl that would have to be changed...
>
> 
>   
>   
>   
>   
>   
>
>
>   
>  xmlns:xsd = "http://www.w3.org/2001/XMLSchema";
>   elementFormDefault = "qualified"
>   targetNamespace = 
> "http://ie.tcd/taylorjw/flightbooking";>
>"http://ie.tcd/taylorjw/flightbooking";
> schemaLocation="BookFlights.xsd"/>
>"http://www.w3.org/2001/XMLSchema"; />
>
>   
>   
>
>   
>   
>   
>
>   
>   
>   
>
>   
>   
>   
>   
>   
>   
>
>
> Quoting Anne Thomas Manes <[EMAIL PROTECTED]>:
>
> > James,
> >
> > If you want an interface that accepts parameters rather than an
> > object, then you must define your WSDL so that it matches the
> > "wrapped" convention. What that means is that your input message
> > element name must be identical to your operation name. Currently your
> > input message element name is bookFlightsRequest and your operation
> > name is bookFlights. If you fix it so that they are the same, it
> > should give you what you want.
> >
> > Anne
> >
> > On 6/6/05, Jeff <[EMAIL PROTECTED]> wrote:
> > > In general, I wouldn't let Axis provide a WSDL file. Tell it to use your
> > > WSDL file by adding a  element to the WSDD file before you
> deploy
> > > so you wind up with something like:
> > >
> > >  > > xmlns="http://xml.apache.org/axis/wsdd/";
> > > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
> > >
> > >   /MyService.wsdl
> > >
> > >   http://localhost:9081/AxisWeb/services/BookFlightsSOAPPort
> > >
> > >
> > > Jeff
> > >
> > >
> > >
> > > - Original Message -
> > > From: "James Taylor" <[EMAIL PROTECTED]>
> > > To: 
> > > Sent: Monday, June 06, 2005 5:02 AM
> > > Subject: Re: import schema to wsdl
> > >
> > >
> > > Thanks for your help jeff. The main problem was the conflicting target
> > > namespaces I was trying to import into my wsdl. I've gotten the wsdl2java
> > > tool
> > > to work fine now. Just a question on what will when the service gets
> > > deployed
> > > to axis. I presume axis will make a different wsdl then the one I gave to
> > > the
> > > tool as it has defined a method signature for the portType as
> > >  public java.lang.Object bookFlights(java.lang.Object parameters) throws
> > > java.rmi.RemoteException; would any one mind commenting on this as I
> > defined
> > > the method signature in the wsdl more specific then this... I know that I
> > > defined a custom collection bean that is of type object - I presume I'll
> > > cast
> > > the parameters to get at it.
> > > Regards,
> > > James.
> > >
> > > My wsdl and external schema...
> > >  > >   targetNamespace="http://ie/tcd/taylorjw/flightbooking/wsdl";
> > >   xmlns="http://schemas.xmlsoap.org/wsdl/";
> > >   xmlns:tns="http://ie/tcd/taylorjw/flightbooking/wsdl";
> > >   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> > >   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> > >   xmlns:types="http://ie.tcd/taylorjw/flightbooking"; >
> > >
> > > 
> > >  > > xmlns:xsd = "http://www.w3.org/2001/XMLSchema";
> > > elementFormDefault = "qualified"
> > > targetNamespace = "http://ie.tcd/taylorjw/flightbooking";>
> > > http://ie.tcd/taylorjw/flightbooking";
> > > schemaLocation="BookFlights.xsd"/>
> > > http://www.w3.org/2001/XMLSchema"; />
> > >
> > > 
> > > 
> > >
> > > 
> > > 
> > > 
> > >
> > > 
> > > 
> > > 
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > 
> > >  > > transport="http://schemas.xmlsoap.org/soap/http"; />
> > > 
> > >  
> > >  
> > >   
> > >  
> > >  
> > >   
> > >  
> > > 
> > >   
> > >
> > >   
> > > > > binding="tns:BookFlightsSOAPBinding">
> > >  > > location="http://localhost:9081/AxisWeb/services/BookFlightsSOAPPort"; />
> > >
> > >   
> > >
> > > 
> > >
> > >
> > > 
> > >
> > > 
> > > http://www.w3.org/2001/XMLSchema";
> > > targetNamespace = "htt

Issue with 'wrapped' style webservice code generation - added the attachments

2005-06-06 Thread Kiran Kumar


I am very sorry. I missed the attachments in my last mail.
Thanks Kiran



From: Kiran KumarSent: 
Mon 6/6/2005 2:31 PMTo: axis-user@ws.apache.orgSubject: 
Issue with 'wrapped' style webservice code generation


Hello,
 
I am really stuck with this issue. I am 
using Axis 1.2 and trying to use wrapped style webservice. WSDL2Java is not 
generating the 'response' type Value Object and SoapBindingImpl class method 
return type is wrong.
 
Please have a look at identify.wsdl, 
operation 'individual' has an output parameter (response) whose return type is 
'geocode'. [look at the idindividual.xsd and idcommontypes.xsd].
 
It is supposed to generate 
IdentifySoapBindingImpl class with the following method signature
 
    public 
org.cityofchicago.gis.gce.service.axis.id.Geocode 
individual(java.lang.String address, int geoCodingtarget, java.lang.String 
targetlayers, boolean returnflag, boolean locatortype) throws 
java.rmi.RemoteException {    return 
null;    }
But it was generating the following method 
signature:
 
    public org.cityofchicago.gis.gce.service.axis.id.Outputs 
individual(java.lang.String address, int geoCodingtarget, java.lang.String 
targetlayers, boolean returnflag, boolean locatortype) throws 
java.rmi.RemoteException {    return 
null;    }
It is also not generating the 
Geocode Value Object.
 
PS:
Please observe that input message element 
name (individual) is matching with operation name (individual). If I change the 
input message element name to somename other than "individual" then it was 
generating the Geocode value Object but the method's input parameter will be 
object instead of individual parameters. Since I want the method signature to 
accept individual paramters I kept the input message element name is same as 
operation name.. But I am stuck with above explained problem (return type is not 
correct).
 

Thanks
Kiran
-
Ph: 312 742 9630
Email: [EMAIL PROTECTED]

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


http://schemas.xmlsoap.org/wsdl/http/"; 
			xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
			xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
			xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
			xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
			xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
			xmlns:ws="http://www.example.com/webservice"; 
			xmlns:impl="http://domain.cityofchicago.gis.gce/versions/1.0/identify/wsdl"; 
			xmlns:idindividualtypes="http://domain.cityofchicago.gis.gce/versions/1.0/idindividual"; 
			xmlns:ns="http://domain.cityofchicago.gis.gce/versions/1.0/idcommontypes"; 
			targetNamespace="http://domain.cityofchicago.gis.gce/versions/1.0/identify/wsdl";>
	
		http://domain.cityofchicago.gis.gce/versions/1.0/idindividual/wsdl/importtypes";>
			http://domain.cityofchicago.gis.gce/versions/1.0/idindividual"; schemaLocation="idindividual.xsd"/>
		
	
	
		
	
	
		
	
	
		
		
			
			
		
	
	
		http://schemas.xmlsoap.org/soap/http"/>
		
			
			

			
			

			
		
	
	
		
			http://localhost:8080/gce/services/Ident"/>
		
	


http://domain.cityofchicago.gis.gce/versions/1.0/idindividual"; 
	   xmlns:idcommon="http://domain.cityofchicago.gis.gce/versions/1.0/idcommontypes"; 
	   xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
	   targetNamespace="http://domain.cityofchicago.gis.gce/versions/1.0/idindividual"; elementFormDefault="qualified">
	http://domain.cityofchicago.gis.gce/versions/1.0/idcommontypes"; schemaLocation="idcommontypes.xsd"/>
	
		
			
			
			
			
			
		
	
	
	
	
	


http://domain.cityofchicago.gis.gce/versions/1.0/idcommontypes"; 
	   xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
	   targetNamespace="http://domain.cityofchicago.gis.gce/versions/1.0/idcommontypes"; 
	   elementFormDefault="qualified" attributeFormDefault="unqualified">
	
		

		
		
	
	
		
			
		
		
	
	   
		   
	   
	   
	
	
		
			
			
		
	
	
		
			
		
	



IdentifySoapBindingImpl.java
Description: IdentifySoapBindingImpl.java


Issue with 'wrapped' style webservice code generation

2005-06-06 Thread Kiran Kumar


Hello,
 
I am really stuck with this issue. I am 
using Axis 1.2 and trying to use wrapped style webservice. WSDL2Java is not 
generating the 'response' type Value Object and SoapBindingImpl class method 
return type is wrong.
 
Please have a look at identify.wsdl, 
operation 'individual' has an output parameter (response) whose return type is 
'geocode'. [look at the idindividual.xsd and idcommontypes.xsd].
 
It is supposed to generate 
IdentifySoapBindingImpl class with the following method signature
 
    public 
org.cityofchicago.gis.gce.service.axis.id.Geocode 
individual(java.lang.String address, int geoCodingtarget, java.lang.String 
targetlayers, boolean returnflag, boolean locatortype) throws 
java.rmi.RemoteException {    return 
null;    }
But it was generating the following method 
signature:
 
    public org.cityofchicago.gis.gce.service.axis.id.Outputs 
individual(java.lang.String address, int geoCodingtarget, java.lang.String 
targetlayers, boolean returnflag, boolean locatortype) throws 
java.rmi.RemoteException {    return 
null;    }
It is also not generating the 
Geocode Value Object.
 
PS:
Please observe that input message element 
name (individual) is matching with operation name (individual). If I change the 
input message element name to somename other than "individual" then it was 
generating the Geocode value Object but the method's input parameter will be 
object instead of individual parameters. Since I want the method signature to 
accept individual paramters I kept the input message element name is same as 
operation name.. But I am stuck with above explained problem (return type is not 
correct).
 

Thanks
Kiran
-
Ph: 312 742 9630
Email: [EMAIL PROTECTED]

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


axis bean serializer

2005-06-03 Thread Kiran Kumar


Hello,
 
I am using axis 1.2 doc style (wrapped) web 
services. My web services returns the response in XML format for that I am using 
axis bean serializer/deserializer [we specify in deploy.wsdd] . If I want to 
modify the output generated by these serializers, do I need to write the 
handlers? 
 

Thanks
Kiran
-
Ph: 312 742 9630
Email: [EMAIL PROTECTED]

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


how to modify the output using axis?

2005-06-03 Thread Kiran Kumar


Hello,
 
I am getting the following output from my 
webservice (using Axis, Document style).  I want to turn-ff the namespace 
attributes which are marked in red color. Is there any way out ? 

 xmlns="http://domain.mydomain.com/versions/1.0/coordinate">  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:type="xsd:decimal">1175835.5782096554   http://www.w3.org/2001/XMLSchema-instance" 
xsi:type="xsd:decimal">1900857.8973925328http://www.w3.org/2001/XMLSchema-instance" 
xsi:type="xsd:string">0001 Successful 
Completion 
 
 

Thanks
Kiran
-
Ph: 312 742 9630
Email: [EMAIL PROTECTED]

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


RE: BeanSerializer and WSDL

2005-06-02 Thread Kiran Kumar
Hi, Apache Axis has its own BeanSerializer and BeanDeserializer. However Axis 
supports Castor also.
 
It is a 2 step process..
 
(1) One Define XSD 
(2) Import XSD in your WSDL : Ex- (stockQuote XSD is imported and refer that 
element in port and message tags)
 =
 http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl";
  xmlns="http://schemas.xmlsoap.org/wsdl/";
  xmlns:tns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
  xmlns:types="http://w3.ibm.com/schemas/services/2002/11/15/stockquote";>
   
 http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl/importtypes";>
  http://w3.ibm.com/schemas/services/2002/11/15/stockquote";
 location="StockQuote.xsd" />
 
   
   
 
   
   
 
   
   

 
 

   
..
 
(3) Run WSDL2Java, which generates the VOs corresponding to the XSD types.. You 
will have
to populate these VOs in your service implementation.
 
PS:
Refer generated deploy.wsdd which defines the Bean Serializers.
 
Thanks
Kiran



From: Christoph Meier [mailto:[EMAIL PROTECTED]
Sent: Thu 6/2/2005 10:22 AM
To: axis-user@ws.apache.org
Subject: BeanSerializer and WSDL



Hi!

We are developing a document style web service using AXIS. I know it is
possible to serialize java beans and send them with SOAP.

Is this Axis / Apache SOAP specific? How can I describe such a service
in a WSDL file (especially  part)?

What I have to mention: I don't have AXIS generated stubs at the client
side because I use a tool for web service orchestration
(http://www.jopera.org), that has it's own SOAP engine and uses only the
WSDL file.

Is it only possible if I define the bean's XML schema in the WSDL file?

Thanks a lot for your help. I don't find much information on this topic
in the web.


Chris






This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.




<>

Apache Axis - XMLBeans

2005-06-02 Thread Kiran Kumar

Friends, I have some 
peculiar requirement.. I have an application which has the business logic 
implemented in plain POJOs. These POJOs use XMLBeans to generate the XML 
response in 'String' format. I have EJBs which are calling these POJOs to 
generate the response in XML String format. 
 
Now I have a requirement to expose these 
POJOs into web-services. But POJOs are returning XML in String Format and I 
donot want to use 'RPC' style web-services. If I switch to document/wrapped 
style web services, Axis has its own way of mapping XMLs with Java Beans. Axis 
generates its own VOs and we need to populate those VOs in our service 
implementation to get the response in XML, which I am already achieving through 
XMLBeans, so it is redundant.
 
Is there any way I can instruct Axis to use 
XMLBeans ?
 
Or is there any other mechanism where in I 
can return XMLs in the SOAP response ?
 
Thanks
Kiran

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


RE: application design issue

2005-06-02 Thread Kiran Kumar
Hi, I am also having the same requirement and exploring different options.One 
option which I am currently exploring :
 
Switch from 'RPC' style to 'Document'/'Wrapped'. Then define a XSD for your 
response XML and import that XSD in . Refer the import XSD type in 
 and  response elements. 
 
Run the WSDL2Java , which will generate the VOs for the corresponding elements 
that you defined in your XSD. Populate these VOs with data in your service 
impelmentation class.
 
This should solve the problem. 
 
PS: Apache Axis uses BeanSerializerFactory, BeanDeserializerFactory (refer 
generated deploy.wsdd file) to bind java objects with XML.
 
Regards, Kiran



From: James Taylor [mailto:[EMAIL PROTECTED]
Sent: Thu 6/2/2005 9:22 AM
To: axis-user@ws.apache.org
Subject: application design issue



Hey folks,
  just got a question on a design issue regarding web services.
  I have a rpc web service that returns information as an xml string.
How would I add this xml to the soap message?? Would I be better off using JAXM
if I'm doing this as I'm not passing objects just String which bassically are
documents?
  Regards,
  James.

--
Between the question and the answer lies free will





This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.




<>

Webservice Design related question

2005-06-01 Thread Kiran Kumar


Hello,
 
I am trying to build web services in my 
existing web application. Currently I have a business method
 
String processIndividual(String 
strAddress, int intGeoCodingTarget, boolean blnActual) 
 
This method currently returns XML in the 
form of String. Within this method I am currently using XMLBeans to generate the 
XML response and then converting that XML response into String.
 
Now I want to expose this method as a web 
service. 
 
Since I donot want the clients to be 
tightly coupled with this service,  I will define the input parameters in 
the form of XML Schema (within the WSDL file)
 
 
   
 
 
 
   
     

Now I am confused with my response. 

 
(Q1) Should I just create 
an element in the following way with 'String' type and return my XML response as 
a String?
 
 
   
 
   
     

 
or Should I need to define my actual XML 
Response structure here? if I do that how Axis know how to generate the response 
XML or what I need to do in my code so that Axis will generate the XML response 
?
 

Sorry for my long mail. Please throw some light on 
this.
 
Thank You
Kiran

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


doc/literal web services

2005-06-01 Thread Kiran Kumar


Hello, Can you please point me to some 
tutorial on how to use doc/literal style webservices using Axis 1.2 ? 

 
Thank you, 
Kiran

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


FW: Weblogic8.1 and Axis 1.2 (Final) :: NullPointerException

2005-05-31 Thread Kiran Kumar



Friends, I also tried to 
force weblogic to use xerces with the following VM argument, but I am still 
getting the same error. Please let me know if you have any 
thoughts.
 
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
 
 
Thanks ~Kiran


From: Kiran Kumar 
[mailto:[EMAIL PROTECTED]Sent: Mon 5/30/2005 7:16 
PMTo: axis-user@ws.apache.orgSubject: Weblogic8.1 and Axis 
1.2 (Final) :: NullPointerException


Hello, I wanted to use 
document style webservices so I moved to Axis 1.2 (Final). I built a simple 
webservice (RPC style) to see how Axis 1.2 works.. It did go well with Tomcat 
4.1. I deployed the same war file in weblogic8.1 SP4. It was deployed 
successfully but when I try to call from the client it was giving the following 
error. 
 
org.apache.axis.utils.XMLUtils - Failed to set EntityResolver to null on 
DocumentBuilderjava.lang.NullPointerException at 
weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61) at 
weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:168)
 
 
I attached the detailed stack trace in the 
attached txt file. I did following thing to resolve this but could not get 
through this..
 
1. I kept the jar files saaj.jar, 
xercesImpl.jar, xml-apis.jar, jax-rpc.jar in the weblogic classpath before 
webservices.jar 
 
Based on stack trace, apache.utils.XMLUtils 
is probably sending some XML which is not being able to get through the weblogic 
document builder. 
 
If you guys have any idea please throw some 
light on this..
 

Thanks for your time
Kiran
-
Ph: 312 742 9630
Email: [EMAIL PROTECTED]

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.
http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>http://schemas.xmlsoap.org/soap/encoding/";>50 w washington sthttp://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="xsd:int" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>1http://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="xsd:boolean" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>true
2005-05-30 18:43:44,328 [DEBUG] org.apache.axis.transport.http.HTTPSender - 
HTTP/1.1 500 Internal Server Error
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.transport.http.HTTPSender - 
Date Mon, 30 May 2005 23:43:43 GMT
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.transport.http.HTTPSender - 
Content-Type text/xml; charset=utf-8
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.transport.http.HTTPSender - 
Connection Close

 * HERE IS THE ERROR * 
===
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.utils.XMLUtils - Failed to set 
EntityResolver to null on DocumentBuilder
java.lang.NullPointerException
at 
weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61)
at 
weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:168)
at 
org.apache.axis.utils.XMLUtils.releaseDocumentBuilder(XMLUtils.java:252)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:342)
at 
org.apache.axis.message.SOAPDocumentImpl.(S

Weblogic8.1 and Axis 1.2 (Final) :: NullPointerException

2005-05-30 Thread Kiran Kumar


Hello, I wanted to use 
document style webservices so I moved to Axis 1.2 (Final). I built a simple 
webservice (RPC style) to see how Axis 1.2 works.. It did go well with Tomcat 
4.1. I deployed the same war file in weblogic8.1 SP4. It was deployed 
successfully but when I try to call from the client it was giving the following 
error. 
 
org.apache.axis.utils.XMLUtils - Failed to set EntityResolver to null on 
DocumentBuilderjava.lang.NullPointerException at 
weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61) at 
weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:168)
 
 
I attached the detailed stack trace in the 
attached txt file. I did following thing to resolve this but could not get 
through this..
 
1. I kept the jar files saaj.jar, 
xercesImpl.jar, xml-apis.jar, jax-rpc.jar in the weblogic classpath before 
webservices.jar 
 
Based on stack trace, apache.utils.XMLUtils 
is probably sending some XML which is not being able to get through the weblogic 
document builder. 
 
If you guys have any idea please throw some 
light on this..
 

Thanks for your time
Kiran
-
Ph: 312 742 9630
Email: [EMAIL PROTECTED]

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.
http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>http://schemas.xmlsoap.org/soap/encoding/";>50 w washington sthttp://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="xsd:int" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>1http://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="xsd:boolean" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>true
2005-05-30 18:43:44,328 [DEBUG] org.apache.axis.transport.http.HTTPSender - 
HTTP/1.1 500 Internal Server Error
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.transport.http.HTTPSender - 
Date Mon, 30 May 2005 23:43:43 GMT
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.transport.http.HTTPSender - 
Content-Type text/xml; charset=utf-8
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.transport.http.HTTPSender - 
Connection Close

 * HERE IS THE ERROR * 
===
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.utils.XMLUtils - Failed to set 
EntityResolver to null on DocumentBuilder
java.lang.NullPointerException
at 
weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61)
at 
weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:168)
at 
org.apache.axis.utils.XMLUtils.releaseDocumentBuilder(XMLUtils.java:252)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:342)
at 
org.apache.axis.message.SOAPDocumentImpl.(SOAPDocumentImpl.java:70)
at org.apache.axis.SOAPPart.(SOAPPart.java:1013)
at org.apache.axis.Message.setup(Message.java:366)
at org.apache.axis.Message.(Message.java:232)
at 
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:767)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
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 
GetCoordinateServiceTest.testDynamicWay(GetCoordinateServiceTest.java:47)
at GetCoordinateServiceTest.main(GetCoordinateServiceTest.java:60)


document/wrapped services using Axis

2005-05-27 Thread Kiran Kumar


Hi,
 
I am trying to find an example on how to 
develop document/wrapped web services using Axis. I tried to follow the 
instructions given in the axis 1.2 tutorial, but I was not successful. If you 
know any tutorial links, please pass on..
 
Thank You
Kiran
 

 

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


Axis vs Other App Containers

2005-05-26 Thread Kiran Kumar

Hello friends, I 
need to provide some webservices in my web-application. Currently this 
application is on oracle 9iAS. They have plans to migrate this application on 
weblogic 8.1, but in near future. 
 
I want to build the web services such a 
way that when I migrate to a different container, I don't have to 
change any code. 
 
But once I generate the skeleton 
classes (server side) using 9iAS tools (Jbuilder..), I will edit the 
"impl" classes to call my business logic.. When I eventually 
switch to a different container, I will again have to generate the skeleton 
classes and may need to edit the impl classes and they may generate different 
class names also.
 
So If I choose Axis, I won't have these 
problems. I just have to deploy the war file without changing any code. But I 
will be limited to what Axis provides, I will not be able to utilize any 
extra features provided by the container.
 
I want to take your opinion whether to go 
with Axis in my scenario or put the effort to configure the web services when I 
switch to a different container.
 
Sorry for long mail. I appreciate your help 
and time.
 
Thanks
Kiran

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


RE: weblogic 8.1 and axis 1.2

2005-05-26 Thread Kiran Kumar
Hi Anish,
 
There is nothing specific you need to configure when you are using Axis on a 
different container (other than tomcat). Think Axis as a web-application, you 
can war it and deploy it on any container, it should work right out of the box. 
 
But with weblogic 8.1 there is a conflict between webservices.jar and saaj.jar. 
There are 2 ways to solve this problem. 
 
(a) put the following entry in weblogic.xml of your Axis web-app.
 
true
  
(b) If above one doesn't workput saaj.jar before webservices.jar in 
startWeblogic.cmd's classpath variable. But this will impact other apps.
 
I tried Axis 1.2 with weblogic 8.1 and Jboss, and it was working fine.
 
Thanks
Kiran



From: Anish Jindal [mailto:[EMAIL PROTECTED]
Sent: Thu 5/26/2005 6:40 AM
To: axis-user@ws.apache.org
Subject: weblogic 8.1 and axis 1.2



Hi, 
i have weblogic 8.1 and axis 1.2 on my comp. and i knwo how to run axis with 
tomcat...but i want to run it with weblogic and Jrun. 
so please give me some tutorial for configuring my weblogic server for axis and 
also for Jrun 
Thank You 
Anish Jindal



This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.




<>

Document-oriented services using Axis 2.0

2005-05-25 Thread Kiran Kumar


Hello Friends, I read in Apache Axis 2.0 
introduction document, it now supports document-oriented webservices. I am 
really happy about it. But I am failed to get any sample example or instructions 
on how to use document-oriented (both client and server side) services. If you 
have any example, can you please pass on.
 
Thank you
Kiran

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.