You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pradeepta Bhattacharya <pr...@bsil.com> on 2006/07/12 18:49:51 UTC

Optional parameters in a service

How to define that some arguments for a service can be optional and can
contain null values. Do we specify them through wsdl or there is some other
mechanism to achieve that. Thanks a lot.

 

Kind Regards

Pradeepta


Optimized soap content

Posted by "Taylor, Clarence B" <Cl...@ca.com>.
I am attempting to create some web services for existing legacy
applications.  These applications *CAN* take hundreds of parameters but
usually any given invocation will only use a few.  My initial approach
was to create a java class, called InputParms, that have all of the
parameters defined as private with public getter/setters.  This way when
the client side, via its UI or other appropriate mechanism could set the
few parameters needed for this particular service and then invoke the
web-service with the InputParms class as one of the services parameters.
The service side of the code would then format the data appropriately
for the legacy service.
 
However when the InputParms class is serialized into the soap body it
becomes very large.  I am looking for a technique that is "content"
driven so that only those parameters specified are sent.  Because of the
large number of parameters, I hesitate to surface them in WSDL, because
then the WSDL becomes more unwieldy.
 
I am aware that this is not an "AXIS" issue per se, however since the
axis is engine is doing the serialization of the classes, I thought that
perhaps others have run into this issue.  If there are other appropriate
forums, pointers to them would be appreciated.
 
Thank you 
 
Brad Taylor

AXIS2-811 rampart in weblogic 9.1

Posted by qz...@dstina.com.




I have the same issue as that found by Anamitra Bhattacharyya and reported
as a bug (AXIS2-811). I tried a simple web service with web service
security features engaged. It works fine under JBoss 4.0.4 but the same
thing does not work under Weblogic 9.1. I wonder if there is any resolution
to this issue in Axis2 or work around with Weblogic.  Thanks.


-----------------------------------------
This e-mail and any attachments are intended only for the
individual or company to which it is addressed and may contain
information which is privileged, confidential and prohibited from
disclosure or unauthorized use under applicable law.  If you are
not the intended recipient of this e-mail, you are hereby notified
that any use, dissemination, or copying of this e-mail or the
information contained in this e-mail is strictly prohibited by the
sender.  If you have received this transmission in error, please
return the material received to the sender and delete all copies
from your system.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org