On Sat, Jun 21, 2008 at 8:40 AM, Samisa Abeysinghe <[EMAIL PROTECTED]> wrote:
> Mike McKee wrote: > >> >> In our WSDL, we will have times where an empty string will be passed. >> Therefore the XML send by the sender could be: >> >> <Param1><Param1/> or <Param1/> >> >> Question 1: >> >> When the Stax gets built, it seems not to include this NODE as I try to >> process the NODE Tree. My expectation that it would be included, but it >> seems like it is only included if a value is passed. Why is this? >> >> > That should be picked up, else it is a bug. > >> >> Question 2: >> >> Is the an Axiom call that can find the name of the element (ie. Param1), >> so that I can know for sure which element I am processing? >> >> > Look for the local name while traversing the tree. > > Question 3: >> >> When I unit test with SOAP UI/AXIS2C, I see that SOAPUI expects all >> XSD:STRINGS to be required fields. It seems like the only way that I can >> even use empty strings in SOAPUI is to specify "minoccurs=0" in my WSDL. I >> thought XSD:STRINGS were always optional, unless you specified required. I >> realize that this last question is not specifically AXIS2C, but any help >> would be appreciated. > > No, xs:string is not always optional. you can make it optional by setting nillable="true" attribute. if you set minOccurs="0" that means even the wrpper element of the string (i.e. in your case <param1></param1>) may not occur. Looks like you use adb codegen with wsdl. If you use adb, you can expect following behaviour if you don't set the value for param1, if the param1 minOccurs="0" whetheit is nillable or not the whole param1 node will not print at all. if the param1 is minOccurs != '0" and nillable="true" it will print the param1 with empty string. if the param1 is minOccurs !="0" and nillable!="true" then it should print an error log, but i think it still continue sending some message. And the program should be corrected to set some value on the param1. And note this is not done in axiom level, it is done in the adb generated code. Thanks Dimuthu > >> >> > Looks like SOAP UI is in RPC mode. Can it deal with doclit style? > > Samisa... > > Thanks >> >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.1/1510 - Release >> Date: 6/19/2008 3:21 PM >> >> > > > -- > Samisa Abeysinghe Director, Engineering; WSO2 Inc. > > http://www.wso2.com/ - "The Open Source SOA Company" > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
