njgreen
01-30-2009, 08:05 PM
Hi,
I'm trying to set up WebServiceProxyFactory with a WSDL file via http. For some reason I'm getting an Invalid URI exception. Below is the source and stack trace (the protocol in the source has _ characters in it because the forum does not allow us to post URLs - assume that it's spelled correctly in real life.)
Any help is greatly, greatly appreciated - thanks!
-Noah
Source:
<object id="requester" type="Spring.Web.Services.WebServiceProxyFactory, Spring.Services">
<property name="ServiceUri" value="h_t_t_p://localhost:8080/holidayService/holiday.wsdl"/>
<property name="ServiceInterface" value="MyTest.IHolidayRequester, MyTests"/>
</object>
Stack Trace:
[2009-01-30 16:03:32,542] [10] [FATAL] App.Program - Failed to configure Spring application context
System.Configuration.ConfigurationErrorsException: Error creating context 'spring.root': Invalid URI: The format of the URI could not be determined. ---> Spring.Objects.Factory.ObjectCreationException: Error thrown by a dependency of object 'reqForm' defined in 'file [C:\dev\Delta1Trader\Delta1Trader\bin\Debug\Config\ Spring\application.xml] line 10' : FactoryObject threw exception on object creation.
while resolving 'Requester' to 'requester' defined in 'file [C:\dev\Delta1Trader\Delta1Trader\bin\Debug\Config\ Spring\application.xml] line 5' ---> Spring.Util.FatalReflectionException: Cannot instantiate Type [SoapHttpClientProxy_3fd6d61e7b584e2f84124bfcb0d57f 5a] using ctor [Void .ctor()] : 'Invalid URI: The format of the URI could not be determined.' ---> System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
at System.Web.Services.Protocols.WebClientProtocol.se t_Url(String value)
at SoapHttpClientProxy_3fd6d61e7b584e2f84124bfcb0d57f 5a..ctor()
at (Object[] )
at Spring.Reflection.Dynamic.SafeConstructor.Invoke(O bject[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Reflection\Dynami c\DynamicConstructor.cs:line 116
at Spring.Util.ObjectUtils.InstantiateType(Constructo rInfo constructor, Object[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Util\ObjectUtils. cs:line 252
--- End of inner exception stack trace ---
at Spring.Util.ObjectUtils.InstantiateType(Constructo rInfo constructor, Object[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Util\ObjectUtils. cs:line 257
at Spring.Web.Services.WebServiceProxyFactory.GetObje ct() in l:\projects\spring-net\trunk\src\Spring\Spring.Services\Web\Services\ WebServiceProxyFactory.cs:line 247
at Spring.Objects.Factory.Support.AbstractObjectFacto ry.GetObjectFromFactoryObject(IFactoryObject factory, String objectName, RootObjectDefinition rod) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Objects\Factory\S upport\AbstractObjectFactory.cs:line 798
. . . . . . .
Once again - thanks!
I'm trying to set up WebServiceProxyFactory with a WSDL file via http. For some reason I'm getting an Invalid URI exception. Below is the source and stack trace (the protocol in the source has _ characters in it because the forum does not allow us to post URLs - assume that it's spelled correctly in real life.)
Any help is greatly, greatly appreciated - thanks!
-Noah
Source:
<object id="requester" type="Spring.Web.Services.WebServiceProxyFactory, Spring.Services">
<property name="ServiceUri" value="h_t_t_p://localhost:8080/holidayService/holiday.wsdl"/>
<property name="ServiceInterface" value="MyTest.IHolidayRequester, MyTests"/>
</object>
Stack Trace:
[2009-01-30 16:03:32,542] [10] [FATAL] App.Program - Failed to configure Spring application context
System.Configuration.ConfigurationErrorsException: Error creating context 'spring.root': Invalid URI: The format of the URI could not be determined. ---> Spring.Objects.Factory.ObjectCreationException: Error thrown by a dependency of object 'reqForm' defined in 'file [C:\dev\Delta1Trader\Delta1Trader\bin\Debug\Config\ Spring\application.xml] line 10' : FactoryObject threw exception on object creation.
while resolving 'Requester' to 'requester' defined in 'file [C:\dev\Delta1Trader\Delta1Trader\bin\Debug\Config\ Spring\application.xml] line 5' ---> Spring.Util.FatalReflectionException: Cannot instantiate Type [SoapHttpClientProxy_3fd6d61e7b584e2f84124bfcb0d57f 5a] using ctor [Void .ctor()] : 'Invalid URI: The format of the URI could not be determined.' ---> System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
at System.Web.Services.Protocols.WebClientProtocol.se t_Url(String value)
at SoapHttpClientProxy_3fd6d61e7b584e2f84124bfcb0d57f 5a..ctor()
at (Object[] )
at Spring.Reflection.Dynamic.SafeConstructor.Invoke(O bject[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Reflection\Dynami c\DynamicConstructor.cs:line 116
at Spring.Util.ObjectUtils.InstantiateType(Constructo rInfo constructor, Object[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Util\ObjectUtils. cs:line 252
--- End of inner exception stack trace ---
at Spring.Util.ObjectUtils.InstantiateType(Constructo rInfo constructor, Object[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Util\ObjectUtils. cs:line 257
at Spring.Web.Services.WebServiceProxyFactory.GetObje ct() in l:\projects\spring-net\trunk\src\Spring\Spring.Services\Web\Services\ WebServiceProxyFactory.cs:line 247
at Spring.Objects.Factory.Support.AbstractObjectFacto ry.GetObjectFromFactoryObject(IFactoryObject factory, String objectName, RootObjectDefinition rod) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Objects\Factory\S upport\AbstractObjectFactory.cs:line 798
. . . . . . .
Once again - thanks!