Board index » delphi » Fix for using Delphi 6/7 client with ASP.NET 2.0 Web Service

Fix for using Delphi 6/7 client with ASP.NET 2.0 Web Service


2005-12-06 03:47:13 AM
delphi172
The Delphi 6/7 WSDL importer fails to add the following line to newly
created webservice units for any .NET 2.0 webservice:
InvRegistry.RegisterInvokeOptions(TypeInfo(Service1Soap), ioDocument);
To fix, simply copy this line (replacing Service1 with your webservice name)
into the Service unit's initialization section BELOW
InvRegistry.RegisterInterface and
InvRegistry.RegisterDefaultSOAPAction. The cause of the problem relates to
document-based vs RPC soap rules.
Brett
www.autoglasscenter.com
www.arniesautoglass.com
www.oneilsglass.com
www.jcglass.com
www.nwautoglass.com
 
 

Re:Fix for using Delphi 6/7 client with ASP.NET 2.0 Web Service

Brett Bartholomew schreef:
Quote
The Delphi 6/7 WSDL importer fails to add the following line to newly
created webservice units for any .NET 2.0 webservice:

InvRegistry.RegisterInvokeOptions(TypeInfo(Service1Soap), ioDocument);
Thanks for sharing!
Danny
---
 

Re:Fix for using Delphi 6/7 client with ASP.NET 2.0 Web Service

Many Thanks.
I searched a lot.
Works for Delphi 2005 too.
"Brett Bartholomew" <XXXX@XXXXX.COM>
schrieb im Newsbeitrag news:4394990f$XXXX@XXXXX.COM...
Quote
The Delphi 6/7 WSDL importer fails to add the following line to newly
created webservice units for any .NET 2.0 webservice:


InvRegistry.RegisterInvokeOptions(TypeInfo(Service1Soap), ioDocument);


To fix, simply copy this line (replacing Service1 with your webservice
name) into the Service unit's initialization section BELOW
InvRegistry.RegisterInterface and
InvRegistry.RegisterDefaultSOAPAction. The cause of the problem relates
to document-based vs RPC soap rules.

Brett


www.autoglasscenter.com
www.arniesautoglass.com
www.oneilsglass.com
www.jcglass.com
www.nwautoglass.com



 

Re:Fix for using Delphi 6/7 client with ASP.NET 2.0 Web Service

Brett!
THANK YOU! Was tearing my hair out wondering where the parameters I was
sending to the web service were going. This fixed it.
-Tom
"Brett Bartholomew" <XXXX@XXXXX.COM>
writes news:4394990f$XXXX@XXXXX.COM...
Quote
The Delphi 6/7 WSDL importer fails to add the following line to newly
created webservice units for any .NET 2.0 webservice:


InvRegistry.RegisterInvokeOptions(TypeInfo(Service1Soap), ioDocument);


To fix, simply copy this line (replacing Service1 with your webservice
name) into the Service unit's initialization section BELOW
InvRegistry.RegisterInterface and
InvRegistry.RegisterDefaultSOAPAction. The cause of the problem relates
to document-based vs RPC soap rules.

Brett


www.autoglasscenter.com
www.arniesautoglass.com
www.oneilsglass.com
www.jcglass.com
www.nwautoglass.com



 

Re:Fix for using Delphi 6/7 client with ASP.NET 2.0 Web Service

Thanks for sharing that info.
 

Re:Fix for using Delphi 6/7 client with ASP.NET 2.0 Web Service

Quote
The Delphi 6/7 WSDL importer fails to add the following line to newly
created webservice units for any .NET 2.0 webservice:


InvRegistry.RegisterInvokeOptions(TypeInfo(Service1Soap), ioDocument);


To fix, simply copy this line (replacing Service1 with your webservice name)
into the Service unit's initialization section BELOW
InvRegistry.RegisterInterface and
InvRegistry.RegisterDefaultSOAPAction. The cause of the problem relates to
document-based vs RPC soap rules.

Brett


www.autoglasscenter.com
www.arniesautoglass.com
www.oneilsglass.com
www.jcglass.com
www.nwautoglass.com


Thank you very much, now I can get the parameters from my asp net application
BizTalk Utilities - Frustration free BizTalk Adapters
www.topxml.com/biztalkutilities