View Full Version : Method with the Same for Web Service
herman_d
11-01-2007, 08:29 AM
I've tried to use web service which one of the method is being overload. And I've modified the web method attribute in the xml config.
For more detail please find the the source code below :
ContactServiceProxy.xml
<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net">
<object id="ContactServiceProxy" type="Spring.Aop.Framework.ProxyFactoryObject, Spring.Aop">
<property name="targetSource">
<object type="Spring.Aop.Target.PrototypeTargetSource, Spring.Aop">
<property name="TargetObjectName" value="ContactService"/>
</object>
</property>
</object>
</objects>
ContactWebService
<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net">
<object id="ContactWebService" type="Spring.Web.Services.WebServiceExporter, Spring.Web">
<property name="TargetName" value="ContactServiceProxy" />
<property name="Name" value="ContactWebService" />
<property name="Namespace" value="http://localhost/ContactDirectory/ContactWebService" />
<property name="Description" value="Contact Directory Web Services" />
<property name="MemberAttributes">
<dictionary>
<entry key="FindList()">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Find list all"/>
<property name="MessageName" value="FindListAll"/>
</object>
</entry>
<entry key="FindList(FindOrder[])">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Find list using order"/>
<property name="MessageName" value="FindListWithOrder"/>
</object>
</entry>
<entry key="FindList(int, int, out int, FindOrder[])">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Find list using pagination and order"/>
<property name="MessageName" value="FindListWithPaginationOrder"/>
</object>
</entry>
<entry key="FindList(FindValueCriteria[], FindOrCriteria[])">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Find list using criteria"/>
<property name="MessageName" value="FindListWithCriteria"/>
</object>
</entry>
<entry key="FindList(FindValueCriteria[], FindOrCriteria[], FindOrder[])">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Find list using criteria and order"/>
<property name="MessageName" value="FindListWithCriteriaOrder"/>
</object>
</entry>
<entry key="FindList(FindValueCriteria[], FindOrCriteria[], FindOrder[], int, int, out int)">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Find list using criteria, order and pagination"/>
<property name="MessageName" value="FindListWithCriteriaOrderPagination"/>
</object>
</entry>
</dictionary>
</property>
</object>
</objects>
And the error is :
Server Error in '/ContactDirectory' Application.
--------------------------------------------------------------------------------
Both System.Collections.IList FindList(MyCompany.FindCondition.FindOrder[]) and System.Collections.IList FindList() use the message name 'FindListWithCriteria'. Use the MessageName property of the WebMethod custom attribute to specify unique message names for the methods.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Bruno Baia
11-07-2007, 06:17 PM
Hi,
try specify full type name adding namespace when specifyng the key, and let me know :
<entry key="FindList(MyCompany.FindCondition..FindOrder[])">
(except if you defined some aliases)
NOTE 1: that you can't use interfaces in a web service : findList returns IList...
NOTE 2: I will investigate why it does not throw another error (like 'could not find 'FindOrder' type)
- Bruno
herman_d
04-18-2008, 06:32 AM
Hi Bruno,
After change the WebMethod to the Format, and run the project, it will taking long time to start and seems hang in processing.
DEBUG Spring.Context.Support.WebSupportModule - Set default resource protocol to 'web' and installed HttpContext-aware HybridContextStorage
DEBUG Spring.Context.Support.WebSupportModule - Initializing Application instance
DEBUG Spring.Context.Support.WebSupportModule - attaching to InProcSessionStateStore
DEBUG Spring.Context.Support.WebApplicationContext - BeforeFirstRequest:False
DEBUG Spring.Context.Support.WebApplicationContext - looking up web context 'spring.root' in WebContextCache
DEBUG Spring.Context.Support.WebApplicationContext - looking up web context 'spring.root' in ContextRegistry
DEBUG Spring.Context.Support.WebApplicationContext - web context for vpath 'spring.root' not found. Force creation using filepath '/dummy.context'
DEBUG Spring.Context.Support.ContextHandler - creating context 'spring.root'
DEBUG Spring.Objects.Factory.Support.WebObjectFactory - hooking up event handlers
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loading XML object definitions from file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\TransformerContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Loading object definitions.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Loading object definitions...
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default lazy init 'false'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default dependency check 'none'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default autowire 'no'.
DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser - Registering object definition with id 'ContactTransformer'.
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Found 1 <object> elements defining objects.
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loaded 1 bean definitions from location [~/ContextConfig/TransformerContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loading XML object definitions from file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\DomainContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Loading object definitions.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Loading object definitions...
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default lazy init 'false'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default dependency check 'none'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default autowire 'no'.
DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser - Registering object definition with id 'Contact'.
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Found 2 <object> elements defining objects.
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loaded 1 bean definitions from location [~/ContextConfig/DomainContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loading XML object definitions from file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\RepositoryContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Loading object definitions.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Loading object definitions...
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default lazy init 'false'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default dependency check 'none'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default autowire 'no'.
DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser - Registering object definition with id 'ContactRepository'.
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Found 3 <object> elements defining objects.
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loaded 1 bean definitions from location [~/ContextConfig/RepositoryContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loading XML object definitions from file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\FacadeContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Loading object definitions.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Loading object definitions...
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default lazy init 'false'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default dependency check 'none'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default autowire 'no'.
DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser - Registering object definition with id 'ContactFacade'.
DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser - Registering object definition with id 'ContactListFacade'.
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Found 5 <object> elements defining objects.
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loaded 2 bean definitions from location [~/ContextConfig/FacadeContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loading XML object definitions from file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\ServiceContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Loading object definitions.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Loading object definitions...
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default lazy init 'false'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default dependency check 'none'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default autowire 'no'.
DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser - Registering object definition with id 'ContactService'.
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Found 6 <object> elements defining objects.
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loaded 1 bean definitions from location [~/ContextConfig/ServiceContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loading XML object definitions from file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\ProxyContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Loading object definitions.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Loading object definitions...
To be continuee
herman_d
04-18-2008, 06:33 AM
...continued
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default lazy init 'false'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default dependency check 'none'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default autowire 'no'.
DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser - Registering object definition with id 'ContactServiceProxy'.
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Found 7 <object> elements defining objects.
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loaded 1 bean definitions from location [~/ContextConfig/ProxyContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loading XML object definitions from file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\WebServiceContext.xml]
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Loading object definitions.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Loading object definitions...
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default lazy init 'false'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default dependency check 'none'.
DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserH elper - Default autowire 'no'.
DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser - Registering object definition with id 'ContactWebService'.
DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinition DocumentReader - Found 8 <object> elements defining objects.
DEBUG Spring.Objects.Factory.Support.AbstractObjectDefin itionReader - Loaded 1 bean definitions from location [~/ContextConfig/WebServiceContext.xml]
DEBUG Spring.Context.Support.AbstractXmlApplicationConte xt - Refreshed ObjectFactory for application context 'spring.root'.
DEBUG Spring.Context.Support.AbstractApplicationContext - 8 objects defined in application context [spring.root].
DEBUG Spring.Context.Support.AbstractApplicationContext - processed 0 IFactoryObjectPostProcessors defined in application context [spring.root].
DEBUG Spring.Context.Support.AbstractApplicationContext - processed 0 IObjectPostProcessors defined in application context [spring.root].
DEBUG Spring.Context.Support.AbstractApplicationContext - No IEventRegistry found with name 'eventRegistry' : using default 'Spring.Objects.Events.Support.EventRegistry'.
DEBUG Spring.Context.Support.AbstractApplicationContext - No IMessageSource found with name 'messageSource' : using default 'StaticMessageSource : '.
DEBUG Spring.Objects.Factory.Support.DefaultListableObje ctFactory - Pre-instantiating singletons in factory [Spring.Objects.Factory.Support.WebObjectFactory]
DEBUG Spring.Objects.Factory.Support.WebObjectFactory - Creating shared instance of singleton object 'ContactServiceProxy'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Creating instance of Object 'ContactServiceProxy' with merged definition [Root web object with class [Spring.Aop.Framework.ProxyFactoryObject] defined in file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\ProxyContext.xml]].
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'ContactServiceProxy'.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Eagerly caching object 'ContactServiceProxy' to allow for resolving potential circular references
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - configuring object 'Spring.Aop.Framework.ProxyFactoryObject:
0 interfaces=[];
0 pointcuts=[];
targetSource=[EmptyTargetSource: no target];
advisorChainFactory=Spring.Aop.Framework.Hashtable CachingAdvisorChainFactory;
proxyTargetType=False; proxyTargetAttributes=True; exposeProxy=False; isFrozen=False; optimize=False; aopProxyFactory=Spring.Aop.Framework.DynamicProxy. CachedAopProxyFactory; ' using definition 'ContactServiceProxy'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Creating instance of Object '(inner object)' with merged definition [Root web object with class [Spring.Aop.Target.PrototypeTargetSource] defined in file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\ProxyContext.xml]].
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '(inner object)'.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - configuring object 'Spring.Aop.Target.PrototypeTargetSource' using definition '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Setting the ObjectFactory property on the IObjectFactoryAware object '(inner object)'.
To be continue....
herman_d
04-18-2008, 06:34 AM
DEBUG Spring.Aop.Target.AbstractPrototypeTargetSource - Getting object with name 'ContactService' to determine class.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors before initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Calling AfterPropertiesSet() on object with name '(inner object)'.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors after initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Setting the ObjectFactory property on the IObjectFactoryAware object 'ContactServiceProxy'.
DEBUG Spring.Aop.Framework.ProxyFactoryObject - Setting IObjectFactory. Will configure target, interceptors and introductions...
DEBUG Spring.Aop.Framework.ProxyFactoryObject - ProxyFactoryObject config: Spring.Aop.Framework.ProxyFactoryObject:
2 interfaces=[[MyCompany.Service.IService] -> target[MyCompany.ContactDirectory.Service.ContactService], [MyCompany.ContactDirectory.Service.IContactService] -> target[MyCompany.ContactDirectory.Service.ContactService]];
0 pointcuts=[];
targetSource=[Spring.Aop.Target.PrototypeTargetSource];
advisorChainFactory=Spring.Aop.Framework.Hashtable CachingAdvisorChainFactory;
proxyTargetType=False; proxyTargetAttributes=True; exposeProxy=False; isFrozen=False; optimize=False; aopProxyFactory=Spring.Aop.Framework.DynamicProxy. CachedAopProxyFactory;
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors before initialization of object 'ContactServiceProxy'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors after initialization of object 'ContactServiceProxy'
DEBUG Spring.Objects.Factory.Support.WebObjectFactory - Calling code asked for IFactoryObject instance for name 'ContactServiceProxy'.
DEBUG Spring.Objects.Factory.Support.WebObjectFactory - Returning cached instance of singleton object 'ContactServiceProxy'.
DEBUG Spring.Objects.Factory.Support.WebObjectFactory - Object with name 'ContactServiceProxy' is a factory object.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors after initialization of object 'ContactServiceProxy'
DEBUG Spring.Objects.Factory.Support.WebObjectFactory - Creating shared instance of singleton object 'ContactWebService'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Creating instance of Object 'ContactWebService' with merged definition [Root web object with class [Spring.Web.Services.WebServiceExporter] defined in file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\WebServiceContext.xml]].
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'ContactWebService'.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Eagerly caching object 'ContactWebService' to allow for resolving potential circular references
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - configuring object 'Spring.Web.Services.WebServiceExporter' using definition 'ContactWebService'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Creating instance of Object '(inner object)' with merged definition [Root web object with class [System.Web.Services.WebMethodAttribute] defined in file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\WebServiceContext.xml]].
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '(inner object)'.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - configuring object 'System.Web.Services.WebMethodAttribute' using definition '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors before initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors after initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Creating instance of Object '(inner object)' with merged definition [Root web object with class [System.Web.Services.WebMethodAttribute] defined in file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\WebServiceContext.xml]].
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '(inner object)'.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - configuring object 'System.Web.Services.WebMethodAttribute' using definition '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors before initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors after initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Creating instance of Object '(inner object)' with merged definition [Root web object with class [System.Web.Services.WebMethodAttribute] defined in file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\WebServiceContext.xml]].
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '(inner object)'.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - configuring object 'System.Web.Services.WebMethodAttribute' using definition '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors before initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors after initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Creating instance of Object '(inner object)' with merged definition [Root web object with class [System.Web.Services.WebMethodAttribute] defined in file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\WebServiceContext.xml]].
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '(inner object)'.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - configuring object 'System.Web.Services.WebMethodAttribute' using definition '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors before initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors after initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Creating instance of Object '(inner object)' with merged definition [Root web object with class [System.Web.Services.WebMethodAttribute] defined in file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\WebServiceContext.xml]].
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '(inner object)'.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - configuring object 'System.Web.Services.WebMethodAttribute' using definition '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors before initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors after initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Creating instance of Object '(inner object)' with merged definition [Root web object with class [System.Web.Services.WebMethodAttribute] defined in file [D:\MyCompany.ContactDirectory.WebService\ContextCo nfig\WebServiceContext.xml]].
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '(inner object)'.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - configuring object 'System.Web.Services.WebMethodAttribute' using definition '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors before initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors after initialization of object '(inner object)'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Setting the name property on the IObjectNameAware object 'ContactWebService'.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Setting the ObjectFactory property on the IObjectFactoryAware object 'ContactWebService'.
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Invoking IObjectPostProcessors before initialization of object 'ContactWebService'
DEBUG Spring.Objects.Factory.Support.AbstractAutowireCap ableObjectFactory - Calling AfterPropertiesSet() on object with name 'ContactWebService'.
Bruno Baia
04-30-2008, 12:50 PM
Hi,
WSI Basic Profile 1.1 does not accept methods with the same name, u should try to conform to it and rename them.
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
Anyway, I don't see any error on your logs.
- Bruno
herman_d
05-05-2008, 09:00 AM
Hi Bruno,
Thanks for your reply.
I have run through, is it because of the out parameter that I use on my method?
<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net">
<object id="ContactWebService" type="Spring.Web.Services.WebServiceExporter, Spring.Web">
<property name="TargetName" value="ContactServiceProxy" />
<property name="Name" value="ContactWebService" />
<property name="Namespace" value="http://MyCompany/ContactDirectory/ContactWebService" />
<property name="Description" value="MyCompany Contact Directory Web Services" />
<property name="MemberAttributes">
<dictionary>
<entry key="FindList()">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Find list all"/>
<property name="MessageName" value="FindListAll"/>
</object>
</entry>
<entry key="FindList(MyCompany.FindCondition..FindOrder[])">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Find list using order"/>
<property name="MessageName" value="FindListWithOrder"/>
</object>
</entry>
<entry key="FindList(int, int, out int, MyCompany.FindCondition..FindOrder[])">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Find list using pagination and order"/>
<property name="MessageName" value="FindListWithPaginationOrder"/>
</object>
</entry>
<entry key="FindList(MyCompany.FindCondition..FindValueCriteri a[], MyCompany.FindCondition..FindOrCriteria[])">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Find list using criteria"/>
<property name="MessageName" value="FindListWithCriteria"/>
</object>
</entry>
<entry key="FindList(MyCompany.FindCondition..FindValueCriteri a[], MyCompany.FindCondition..FindOrCriteria[], MyCompany.FindCondition..FindOrder[])">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Find list using criteria and order"/>
<property name="MessageName" value="FindListWithCriteriaOrder"/>
</object>
</entry>
<entry key="FindList(MyCompany.FindCondition..FindValueCriteri a[], MyCompany.FindCondition..FindOrCriteria[], MyCompany.FindCondition..FindOrder[], int, int, out int)">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Find list using criteria, order and pagination"/>
<property name="MessageName" value="FindListWithCriteriaOrderPagination"/>
</object>
</entry>
</dictionary>
</property>
</object>
</objects>
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.