Re: anyType element again and again

2008-07-10 Thread pierre betz
HI Keith, I tried to change the namespaces under some prefixs, as you
recommended like :

xs:schema
 xmlns:xs=http://www.w3.org/2001/XMLSchema;
 xmlns:tns=http://myservice/VSLCommonTypes;
 attributeFormDefault=unqualified
 elementFormDefault=unqualified
 targetNamespace=http://myservice/VSLCommonTypes;

and my bugging element (and all the others of course)

xs:element maxOccurs=unbounded name=Values nillable=true
type=xs:anyType
xs:annotation
xs:documentation
   Problem in element definition
/xs:documentation
/xs:annotation
/xs:element

but it still not work, Axis2 send the ADBexception error as before :

org.apache.axis2.databinding.ADBException: Any type element type has not
been given

really don't understand, and don't know what I can do to fix that..
Does someone created a request with an anyType element in it, which works
quite good ??



xs:element type:AnyIdeas/ are welcomed !!











2008/7/5 keith chapman [EMAIL PROTECTED]:

 Hi,

 I assume he issue is in your xsd. You have difined its default namespace to
 be xmlns=http://www.w3.org/2001/XMLSchema;. I wonder weather this caused
 an issue to Axis. Amila might be in a better position to answer this
 question though. Can try try changing the default namespace of the xsd and
 declaring xmlns=http://www.w3.org/2001/XMLSchema; under some prefix.

 Thanks,
 Keith.


 On Fri, Jul 4, 2008 at 8:18 AM, pierre betz [EMAIL PROTECTED] wrote:

 So, any ideas ? I tried some other ways, but I still really need to make a
 request which can send differents type of elements when I call it
 still blocked..




 --
 Keith Chapman
 Senior Software Engineer
 WSO2 Inc.
 Oxygenating the Web Service Platform.
 http://wso2.org/

 blog: http://www.keith-chapman.org



Re: anyType element again and again

2008-07-10 Thread pierre betz
.. maybe I have a little idea of what does not work :
this is a part of what I send with SoapUI for my tests.


soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:oper=
http://service.vslitc.com/2008/webservice/2008/CommonData/operations;
   soapenv:Header/
   soapenv:Body
  oper:SearchLanguage
 SearchParameters
Fragment
   !--Optional:--
   ConditionClause
  ComparatorEqual/Comparator
  FieldNameCountryCode/FieldName
  !--1 or more repetitions:--
  *ValuesDJ/Values*

   /ConditionClause
  /oper:SearchLanguage
   /soapenv:Body

The field   *Values/Values* is from the anyTypes part of the schema.
Maybe I have to explain there that I put a string or whatever no ? like
  Values   *string*DJ*/string* /Values   ? or something like that (
this exemple does notwork :) )

.. that was my last idea..






/soapenv:Envelope


Re: anyType element again and again

2008-07-04 Thread keith chapman
Hi,

I assume he issue is in your xsd. You have difined its default namespace to
be xmlns=http://www.w3.org/2001/XMLSchema;. I wonder weather this caused
an issue to Axis. Amila might be in a better position to answer this
question though. Can try try changing the default namespace of the xsd and
declaring xmlns=http://www.w3.org/2001/XMLSchema; under some prefix.

Thanks,
Keith.


On Fri, Jul 4, 2008 at 8:18 AM, pierre betz [EMAIL PROTECTED] wrote:

 So, any ideas ? I tried some other ways, but I still really need to make a
 request which can send differents type of elements when I call it
 still blocked..




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: anyType element again and again

2008-07-03 Thread pierre betz
So, any ideas ? I tried some other ways, but I still really need to make a
request which can send differents type of elements when I call it
still blocked..


Re: anyType element again and again

2008-07-01 Thread pierre betz
I've put the wsdl and xsd in attached files, too big to paste them in the
mail.

As you will see, the requests are a little bigger than the exemple I gave in
the previous mail.

Thanks to have a look !!


VSLCommonTypes.xsd
Description: Binary data
?xml version=1.0 encoding=UTF-8?
wsdl:definitions xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
	xmlns:tns=http://service.vslitc.com/2008/webservice/2008/CommonData/;
	xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
	xmlns:xsd=http://www.w3.org/2001/XMLSchema;
	xmlns:vslcommon=http://service.vslitc.com/2008/schema/2008/VSLCommonTypes;
	name=CommonData
	targetNamespace=http://service.vslitc.com/2008/webservice/2008/CommonData/;
	wsdl:documentation/wsdl:documentation
	wsdl:types
		xsd:schema
			targetNamespace=http://service.vslitc.com/2008/webservice/2008/CommonData/;

			xsd:import
namespace=http://service.vslitc.com/2008/schema/2008/VSLCommonTypes;
schemaLocation=http://service.vslitc.com/2008/schema/2008/VSLCommonTypes.xsd;
			/xsd:import

		/xsd:schema

	/wsdl:types

	wsdl:message name=GetCountryListResponse
		wsdl:part type=vslcommon:CountryListType name=CountryList /
	/wsdl:message
	wsdl:message name=GetCountryListRequest
		wsdl:part name=page type=xsd:int /
		wsdl:part name=size type=xsd:int/wsdl:part
	/wsdl:message
	wsdl:message name=GetAllCountryListRequest
		wsdl:part name=ListParameters
			type=vslcommon:ListParametersType
		/wsdl:part
	/wsdl:message
	wsdl:message name=GetAllCountryListResponse
		wsdl:part name=CountryList
			type=vslcommon:CountryListType
		/wsdl:part
	/wsdl:message
	wsdl:message name=GetCountryByISOCodeRequest
		wsdl:part name=ISOCode type=xsd:string/wsdl:part
	/wsdl:message
	wsdl:message name=GetCountryByISOCodeResponse
		wsdl:part name=Country type=vslcommon:CountryType/wsdl:part
	/wsdl:message
	wsdl:message name=GetAllLanguagesRequest
		wsdl:part name=ListParameters
			type=vslcommon:ListParametersType
		/wsdl:part
		wsdl:part name=MainLanguagesOnly type=xsd:boolean
			wsdl:documentation
If true, a simplified list of languages is returned. The
returned list will only contains main languages and not
all country-specific dialects.
			/wsdl:documentation
		/wsdl:part
	/wsdl:message
	wsdl:message name=GetAllLanguagesResponse
		wsdl:part name=LanguageList
			type=vslcommon:LanguageListType
		/wsdl:part
	/wsdl:message
	wsdl:message name=GetLanguageByISOCodeRequest
		wsdl:part name=ISOCode type=xsd:string/wsdl:part
	/wsdl:message
	wsdl:message name=GetLanguageByISOCodeResponse
		wsdl:part name=Language type=vslcommon:LanguageType/wsdl:part
	/wsdl:message

	wsdl:message name=AddGeoLocalizationRequest
		wsdl:part name=AddressId type=xsd:string/wsdl:part
		wsdl:part name=Longitude type=xsd:float/wsdl:part
		wsdl:part name=Latitude type=xsd:float/wsdl:part
	/wsdl:message
	wsdl:message name=AddGeoLocalizationResponse
		wsdl:part name=Inserted type=xsd:boolean/wsdl:part
	/wsdl:message
	wsdl:message name=GetGeoLocalizationRequest
		wsdl:part name=AddressId type=xsd:string/wsdl:part
	/wsdl:message
	wsdl:message name=GetGeoLocalizationResponse
		wsdl:part name=Longitude type=xsd:float/wsdl:part
		wsdl:part name=Latitude type=xsd:float/wsdl:part
	/wsdl:message
	wsdl:message name=ModifyGeoLocalizationRequest
		wsdl:part name=AddressId type=xsd:string/wsdl:part
		wsdl:part name=Longitude type=xsd:float/wsdl:part
		wsdl:part name=Latitude type=xsd:float/wsdl:part
	/wsdl:message
	wsdl:message name=ModifyGeoLocalizationResponse
		wsdl:part name=Successful type=xsd:boolean/wsdl:part
	/wsdl:message
	wsdl:message name=GetLanguageListByStringRequest
		wsdl:part name=MatchingString type=xsd:string/wsdl:part
		wsdl:part name=ListParameters
			type=vslcommon:ListParametersType
		/wsdl:part
		wsdl:part name=MainLanguagesOnly type=xsd:boolean/wsdl:part
	/wsdl:message
	wsdl:message name=GetLanguageListByStringResponse
		wsdl:part name=LanguageList
			type=vslcommon:LanguageListType
		/wsdl:part
	/wsdl:message

	wsdl:message name=GetCountryListByStringRequest
		wsdl:part name=MatchingString type=xsd:string/wsdl:part
		wsdl:part name=ListParameters
			type=vslcommon:ListParametersType
		/wsdl:part
	/wsdl:message
	wsdl:message name=GetCountryListByStringResponse
		wsdl:part name=CountryList
			type=vslcommon:CountryListType
		/wsdl:part
	/wsdl:message
	
!--  replacing type by element
	wsdl:message name=InternalError_faultMsg
		wsdl:part name=InternalErrorMessage type=xsd:string/wsdl:part
	/wsdl:message
	wsdl:message name=FaultMsg_CountryNotFound
		wsdl:part name=ErrorMessage type=xsd:string/wsdl:part
	/wsdl:message
	wsdl:message name=FaultMsg_LanguageNotFound
		wsdl:part name=ErrorMessage type=xsd:string/wsdl:part
	/wsdl:message
	wsdl:message name=FaultMsg_ObjectAlreadyExist
		wsdl:part name=ErrorMessage type=xsd:string/wsdl:part
	/wsdl:message
	wsdl:message name=FaultMsg_ObjectNotFound
		wsdl:part name=ErrorMessage type=xsd:string/wsdl:part
	/wsdl:message
	wsdl:message name=FaultMsg_GeoLocalizationAlreadyExist
		wsdl:part name=ErrorMessage