choice problems for Axis 1.3

2006-03-31 Thread Jordan Lee
Hi,

We're having problems with the choice tag using Axis 1.3.

xsd:choice
xsd:sequence
xsd:element name=Value1 type=ns:Value1/
xsd:element name=Value2 type=ns:Value2 minOccurs=0/
/xsd:sequence
xsd:element name=Value2 type=ns:Value2/
/xsd:choice

Basically, we wanted to implmeent non-exclusive or. So  either value 1 and 
value 2 are present, or one of either, but not neither.

If we only set value2, then Axis complains about value 1 not being present. 

Has anyone ever seen something like this before?

thanks,
Jordan.


Writing SOAP messages to disk

2006-03-17 Thread Jordan Lee
Hi all,

I've figured out how to get my web service to write incoming SOAP xml to disk 
(using the response\request flows of the wsdd and Handler classes).

However - if I'm accessing an Axis web service as a client - creating a 
binding, calling the method with a n Axis defined class as a parameter, etc - 
how abouts would I write the outgoing XML to disk?

thanks,
Jordan.


Re: Writing SOAP messages to disk

2006-03-17 Thread Jordan Lee
Hi Robert,

I'm not too sure what you mean by this. My 'client' does the following:

MyServiceSoapHTTPBindingStub binding = (MyServiceSoapHTTPBindingStub) new 
MyServiceServiceLocator()
.getMyService(target web service url);

binding.someMethod(axisMessage);

i'm trying to get the underlying XML representation of the 'axisMessage' object.

- Original Message -
From: robert [EMAIL PROTECTED]
Date: Friday, March 17, 2006 11:47 am
Subject: Re: Writing SOAP messages to disk

 Have you considered a client side handler ? Same concept, but you 
 use: 
 
 Service.getHandlerRegistry().getHandlerChain(portQN)
 
 instead of WSDD to configure it.
 
 This would allow you to write the file on the client side, if I 
 understand you 
 right. 
 
 HTH,
 Robert
 http://www.braziloutsource.com/
 
 Em Sexta 17 Março 2006 16:35, o Jordan Lee escreveu:
  Hi all,
 
  I've figured out how to get my web service to write incoming 
 SOAP xml to
  disk (using the response\request flows of the wsdd and Handler 
 classes).
  However - if I'm accessing an Axis web service as a client - 
 creating a
  binding, calling the method with a n Axis defined class as a 
 parameter, etc
  - how abouts would I write the outgoing XML to disk?
 
  thanks,
  Jordan.
 
 -- 



Re: Writing SOAP messages to disk

2006-03-17 Thread Jordan Lee
Hi Robert,

Thanks for the response. You are correct on 1) and I have this working. You are 
correct on 2). But I think you may have an assumption as to the implementation 
of my client.

Or it may be that I'm not implementing the client in the correct way.

The code snippet that I provided, is the sole link between my application code 
and where it calls another web service. The HTTPBindingStub is generated from 
the WSDL2Java, and it is through this object that I bind to the target web 
service and call a method on it.

Jordan.

- Original Message -
From: robert [EMAIL PROTECTED]
Date: Friday, March 17, 2006 12:16 pm
Subject: Re: Writing SOAP messages to disk

 Perhaps I misunderstand what you are trying to do. 
 
 1) You have a handler on the service side that gets the 
 SOAPMessage as a 
 Document and writes it to disk on the service side. 
 
 2) You want to do the same thing on the client side, with the out 
 going 
 message. 
 
 What I recommended was to put another separate though similar 
 Handler on the 
 client side. Or to add to my first post call MessageContext in a 
 static way 
 from your client - the FAQ explains how. 
 
 If that's wrong try to clarify and maybe I can help. 
 
 Robert
 http://www.braziloutsource.com/
 
 Em Sexta 17 Março 2006 17:02, o Jordan Lee escreveu:
  Hi Robert,
 
  I'm not too sure what you mean by this. My 'client' does the 
 following:
  MyServiceSoapHTTPBindingStub binding = 
 (MyServiceSoapHTTPBindingStub) new
  MyServiceServiceLocator() .getMyService(target web service url);
 
  binding.someMethod(axisMessage);
 
  i'm trying to get the underlying XML representation of the 
 'axisMessage' object.
 
  - Original Message -
  From: robert [EMAIL PROTECTED]
  Date: Friday, March 17, 2006 11:47 am
  Subject: Re: Writing SOAP messages to disk
 
   Have you considered a client side handler ? Same concept, but you
   use:
  
   Service.getHandlerRegistry().getHandlerChain(portQN)
  
   instead of WSDD to configure it.
  
   This would allow you to write the file on the client side, if I
   understand you
   right.
  
   HTH,
   Robert
   http://www.braziloutsource.com/
  
   Em Sexta 17 Março 2006 16:35, o Jordan Lee escreveu:
Hi all,
   
I've figured out how to get my web service to write incoming
  
   SOAP xml to
  
disk (using the response\request flows of the wsdd and Handler
  
   classes).
  
However - if I'm accessing an Axis web service as a client -
  
   creating a
  
binding, calling the method with a n Axis defined class as a
  
   parameter, etc
  
- how abouts would I write the outgoing XML to disk?
   
thanks,
Jordan.
  
   --
 
 -- 



Re: Writing SOAP messages to disk

2006-03-17 Thread Jordan Lee
Robert,

I see now that new MyServiceServiceLocator() in fact extends Axis.Client. I was 
able to get it to work by using the Handler strategy that you suggested.

Thanks!

Jordan.

- Original Message -
From: Jordan Lee [EMAIL PROTECTED]
Date: Friday, March 17, 2006 12:55 pm
Subject: Re: Writing SOAP messages to disk

 Robert, to clarify, how I call the web service is nearly identical 
 to what they do in step 6 on 
 
 http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2
 
 thanks again,
 Jordan.
 
 - Original Message -
 From: Jordan Lee [EMAIL PROTECTED]
 Date: Friday, March 17, 2006 12:50 pm
 Subject: Re: Writing SOAP messages to disk
 
  Hi Robert,
  
  Thanks for the response. You are correct on 1) and I have this 
  working. You are correct on 2). But I think you may have an 
  assumption as to the implementation of my client.
  
  Or it may be that I'm not implementing the client in the correct 
 way. 
  The code snippet that I provided, is the sole link between my 
  application code and where it calls another web service. The 
  HTTPBindingStub is generated from the WSDL2Java, and it is 
 through 
  this object that I bind to the target web service and call a 
  method on it.
  
  Jordan.
  
  - Original Message -
  From: robert [EMAIL PROTECTED]
  Date: Friday, March 17, 2006 12:16 pm
  Subject: Re: Writing SOAP messages to disk
  
   Perhaps I misunderstand what you are trying to do. 
   
   1) You have a handler on the service side that gets the 
   SOAPMessage as a 
   Document and writes it to disk on the service side. 
   
   2) You want to do the same thing on the client side, with the 
  out 
   going 
   message. 
   
   What I recommended was to put another separate though similar 
   Handler on the 
   client side. Or to add to my first post call MessageContext in 
 a 
   static way 
   from your client - the FAQ explains how. 
   
   If that's wrong try to clarify and maybe I can help. 
   
   Robert
   http://www.braziloutsource.com/
   
   Em Sexta 17 Março 2006 17:02, o Jordan Lee escreveu:
Hi Robert,
   
I'm not too sure what you mean by this. My 'client' does the 
   following:
MyServiceSoapHTTPBindingStub binding = 
   (MyServiceSoapHTTPBindingStub) new
MyServiceServiceLocator() .getMyService(target web service 
 url);  
binding.someMethod(axisMessage);
   
i'm trying to get the underlying XML representation of the 
   'axisMessage' object.
   
- Original Message -
From: robert [EMAIL PROTECTED]
Date: Friday, March 17, 2006 11:47 am
Subject: Re: Writing SOAP messages to disk
   
 Have you considered a client side handler ? Same concept, 
  but you
 use:

 Service.getHandlerRegistry().getHandlerChain(portQN)

 instead of WSDD to configure it.

 This would allow you to write the file on the client side, 
  if I
 understand you
 right.

 HTH,
 Robert
 http://www.braziloutsource.com/

 Em Sexta 17 Março 2006 16:35, o Jordan Lee escreveu:
  Hi all,
 
  I've figured out how to get my web service to write incoming

 SOAP xml to

  disk (using the response\request flows of the wsdd and 
 Handler   
 classes).

  However - if I'm accessing an Axis web service as a 
 client 
  -

 creating a

  binding, calling the method with a n Axis defined class 
 as a

 parameter, etc

  - how abouts would I write the outgoing XML to disk?
 
  thanks,
  Jordan.

 --
   
   -- 
   
  



Receiving null Message Parameter

2006-03-09 Thread Jordan Lee
Hi,

I've set up an Axis service, and am using a Java test client to test the port. 

I am trying to use the driver to send the following type of Message:

wsdl:message name=returnAcceptanceInput
wsdl:documentationThis message is for 
acceptance/wsdl:documentation
wsdl:part name=header type=nb:MessageHeader / 
wsdl:part name=parameter type=nb:Acceptance /
/wsdl:message

When the method is called by WSDL on the service,
'header' comes through fine, but 'parameter' is null. Has anyone encountered 
this before?

thanks,
Jordan.



Registering Handler class under Spring

2006-03-08 Thread Jordan Lee
Hi,

We're using Spring and Axis together. We have a Handler clas thats called in 
the responseFlow and requestFlow tags in our wsdd to write xml to disk.

Unfortunaately, we're having trouble making our Handler Spring-aware. 
Registering the Handler class in our Spring context files does not work.

The reason for wanting it to be Spring aware is because we use Spring to load 
property file constants into classes. We want to be able to store directory 
paths to be able to write the XML to disk (as mentioned above).

1) is there a way to make this Handler spring-aware?
2) if not, is there a way to define constant values (like directory paths) so 
that the handler class can retrieve them?