RE: Axis 1.4 + Castor + SOAPDocumentImpl.createElement failure

2007-02-22 Thread Coyne, Jimmy
 

Hi all, 

 I sent this mail a few weeks ago and did not get any response, so Im going
to give it another try.

 I've created a jax-rpc handler to marshal a Castor object to xml node. I've
tested this on Websphere 6.0 + 6.1 and it works correctly.

When I tried using Tomcat and Axis it fails and throws an null pointer
exception. During the marshalling process a SOAPHeaderElement node  is
passed to castor and castor uses Axis own SAAJ library  to create the DOM
object . But the method org.w3c.dom.Element createElement(String tagName)
within org.apache.axis.message.SOAPDocumentImpl  fails.

The first pass of the following line of code works correctly but the all
other calls will fail, as the soapPart is null.

 

 SOAPEnvelope soapenv =

(org.apache.axis.message.SOAPEnvelope)
soapPart.getEnvelope();

 

Any body have any ideas ?

Thanks

Jimmy



Axis 1.4 + Castor + SOAPDocumentImpl.createElement failure

2007-02-09 Thread Coyne, Jimmy
Hi all, 
I've created a jax-rpc handler to marshal a Castor object to xml node. I've
tested this on Websphere 6.0 + 6.1 and it works correctly.
When I tried using Tomcat and Axis it fails and throws an null pointer
exception. During the marshalling process a SOAPHeaderElement node  is
passed to castor and castor uses Axis own SAAJ library  to create the DOM
object . But the method org.w3c.dom.Element createElement(String tagName)
within org.apache.axis.message.SOAPDocumentImpl  fails.

The first pass of the following line of code works correctly but the all
other calls will fail, as the soapPart is null.
 
 SOAPEnvelope soapenv =
(org.apache.axis.message.SOAPEnvelope)
soapPart.getEnvelope();


Any body have any ideas ?
Thanks
Jimmy


RE: Axis 1.2 handlers

2005-10-19 Thread Coyne, Jimmy
Thanks for the replies !
-Original Message-
From: trebor iksrazal [mailto:[EMAIL PROTECTED] 
Sent: 18 October 2005 20:25
To: axis-user@ws.apache.org
Subject: RE: Axis 1.2 handlers


Don't At least one other way is via the
HandlerRegistry, like so: 

//add ClientHandler to chain of events
java.util.List list =
svc.getHandlerRegistry().getHandlerChain(portQN);
list.add(new
javax.xml.rpc.handler.HandlerInfo(ClientHandler.class,this.handlerConfig,nul
l));

ClientHandler in this case simply implements Handler .
 On the client side no wsdd necessary.  

HTH, 
iksrazal 

--- "Flores, Raul" <[EMAIL PROTECTED]> wrote:

>  
> I found the following in this article: 
>
http://www.fawcette.com/javapro/2003_04/online/wsdl_kjones_04_29_03/defa
> ult_pf.aspx
> 
> 
> From above article:
> 
>  To create an Axis client that uses simple sessions,
> you need to
> configure the Axis client-side framework to use the
> handler. The
> procedure is similar to that for the server, but
> instead of deploying to
> the server, the config file is created locally. You
> do this by running
> the org.apache.axis.utils.Admin application. You run
> the code like this:
> 
> org.apache.axis.utils.Admin client deploy.wsdd
> 
> 
> 
> 
> Once you have a client-config.wsdd, you can
> configure the handler
> section same as for the server side.
> 
> Raul
> 
> 
> -Original Message-
> From: Coyne, Jimmy [mailto:[EMAIL PROTECTED]
> 
> Sent: Tuesday, October 18, 2005 11:45 AM
> To: 'axis-user@ws.apache.org'
> Subject: Axis 1.2 handlers
> 
> Hi all,
> Could any body show me some information on how to
> configure handlers on
> the axis client side ?
> Did a search on google , but came up with nothing .
> Thanks
> Jimmy 
> 


"None are more hopelessly enslaved than those who falsely believe they are
free. -- Goethe"



__ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs


Axis 1.2 handlers

2005-10-18 Thread Coyne, Jimmy
Hi all,
Could any body show me some information on how to configure handlers on the
axis client side ?
Did a search on google , but came up with nothing .
Thanks
Jimmy 


RE: How to set proxy?

2005-10-07 Thread Coyne, Jimmy
Title: Message



try 


System.setProperty("http.proxyHost", 
"your.proxy.name");
System.setProperty("http.proxyPort", 
"your.port.number");
 
That should 
work.

  
  -Original Message-From: Huang, Yuming, 
  ALABS [mailto:[EMAIL PROTECTED] Sent: 06 October 2005 
  21:03To: axis-user@ws.apache.orgSubject: How to set 
  proxy?
  
  Hello,
   
  The WSDL2Java command works for 
  local/intranet urls  but fails to 
  connect to outside urls.
  I can view the wsdl using IE.  
  My question is, seems to me Axis does not use IE's proxy setting, 
  
  How to proxy to 
  Axis?
   
  java org.apache.axis.wsdl.WSDL2Java 
  (WSDL-file-URL)
   
   
  Thanks a lot.


Validating a document using WSDL

2005-10-07 Thread Coyne, Jimmy
Hi all,
Just wondering if there has been any up date on  validation the wsdl since
the discussion  
http://marc.theaimsgroup.com/?t=11081125201&r=1&w=2

Thanks
Jimmy


RE: Wsdl2java generated code

2005-10-03 Thread Coyne, Jimmy
Title: Message



Hi 
there , Im afraid I  have no control over the schema and will not be 
allowed to change it :(

  
  -Original Message-From: Grossberger, 
  Guenter [mailto:[EMAIL PROTECTED] Sent: 03 
  October 2005 09:19To: axis-user@ws.apache.orgSubject: 
  RE: Wsdl2java generated code 
  Hi!
   
  You can define the complex type starting after <element 
  name="Request"> as a global type with e.g. <complexType name="RequestType"> and reuse it in both element definitions with 
  <element 
  name="Request" type="RequestType">.
   
  If 
  you have additonale elements in the Update case you can extend the RequestType 
  with xsd:extension. For more information look for documentation of XML 
  Schema.
  Best 
  regards,--DI Günter 
  GrossbergerConsultant 
  Tel: +43 1 329 50 161Software AG Österreich Fax: +43 1 329 50 
  171Guglgasse 7-9  
  GSM: +43 676 833 29 2611030 
  Wien  
  http://www.softwareag.com/austria
   
  


From: Coyne, Jimmy 
[mailto:[EMAIL PROTECTED] Sent: Friday, September 30, 
2005 6:03 PMTo: axis-user@ws.apache.orgSubject: 
Wsdl2java generated code 

Hi all , Our  customer 
have designed there different services   such as CreateAccount , 
UpdateAccount , DeleteAccount etc  in a very a very similar 
manner.
For example CreateAccount 
<element name="CreateAccount">  <complexType>   <sequence>  
<element name="Request">     
<complexType>   
<sequence>     
<element name="accountDetails" minOccurs="0">   
<complexType>     
<sequence>   
<element name="country" type="string"/>   
<element name="accountId" type="string"/>   
<element name="Profile">     
<complexType>   
<sequence>     
<element name="name" 
type="string" minOccurs="0"/>   
sequence>     
complexType>   
element>     
sequence>.. 
Is the same as  UpdateAccount  except for a 
few elements names .. 
<element name="UpdateAccount">  <complexType>   <sequence>  
<element name="Request">     
<complexType>   
<sequence>     
<element name="accountDetails" minOccurs="0">   
<complexType>     
<sequence>   
<element name="country" type="string"/>   
<element name="accountId" type="string"/>   
<element name="Profile">     
<complexType>   
<sequence>     
<element name="name" 
type="string" minOccurs="0"/>   
sequence>     
complexType>   
element>     
sequence>. . . . . . . 
Using wsdl2java  The classes  created very 
similar 
CreateAccount--- generates CreateAccountRequest CreateAccountRequestAccountDetails CreateAccountRequestAccountDetailsProfile . . . . .  . . UpdateAccountRequest - generates 
UpdateAccountRequest UpdateAccountRequestAccountDetails UpdateAccountRequestAccountDetailsProfile  . . . . . . . . . . . . .  . . 
Although the  classes  are almost 
identical  , because they  don't extend   any 
common   class  , I cant see a way of building up the binding 
objects
 in a clean way i.e.  I will have to write 
code to set the binding object for all cases with no reuse . Can any one 
think of a clean way to solve this problem ?
Thanks Jimmy 



Wsdl2java generated code

2005-09-30 Thread Coyne, Jimmy
Title:   Wsdl2java generated code 





Hi all , 
Our  customer have designed there different services   such as CreateAccount , UpdateAccount , DeleteAccount etc  in a very a very similar manner.

For example CreateAccount



 
  
 
    
  
    
  
    
  
  
  
    
  
    
  sequence>
    complexType>
  element>
    sequence>..





Is the same as  UpdateAccount  except for a few elements names ..



 
  
 
    
  
    
  
    
  
  
  
    
  
    
  sequence>
    complexType>
  element>
    sequence>. . . . . . . 




Using wsdl2java  The classes  created very similar


CreateAccount--- generates 
CreateAccountRequest
CreateAccountRequestAccountDetails
CreateAccountRequestAccountDetailsProfile
. . . . .  . .
UpdateAccountRequest - generates 


UpdateAccountRequest
UpdateAccountRequestAccountDetails
UpdateAccountRequestAccountDetailsProfile
 . . . . . . . . . . . . .  . .



Although the  classes  are almost identical  , because they  don't extend   any common   class  , I cant see a way of building up the binding objects

 in a clean way i.e.  I will have to write code to set the binding object for all cases with no reuse . Can any one think of a clean way to solve this problem ?

Thanks
Jimmy 










WSDL2Java and simple types .

2005-09-12 Thread Coyne, Jimmy
Title: WSDL2Java and simple types .





Hi all ,
I'm  encountering  a  problem when generating code with simple types using  WSDL2Java.


For example,  our customer has a simple type called cableIdType defined in the schema 



    
  
    
  
  
  
    xsd:restriction>
  xsd:simpleType>
  
    xsd:restriction>
xsd:simpleType>


WSDL2Java   creates  a class called LineIdType. But this class has no setter or getters for a decimal values.
It simply implements java.io.Serializable ,  org.apache.axis.encoding.SimpleType and creates the 
following methods 


boolean equals(java.lang.Object obj)
int hashCode()
getTypeDesc() 
getSerializer()
getDeserializer()


I've tried the -a flag, with no change .
Any ideas ?
Thanks
Jimmy