Re: Problem passing parms to .NET webservice
Last night I worked through the same thing in Delphi 6 and heres what I found. For me there were two changes I had to make on the client side:
1) I did indeed have to add InvRegistry.RegisterInvokeOptions(TypeInfo(YourSOAPInterface),[ioDocument]); to my initialization clause. For a while I wondered if that made a difference, but I actually stepped through the code, and watched the packets using Ethereal and it did. I later inspected the WSDL from my web service and saw that it said style="document"
2) This was the gotcha for me. I had to change my RegisterInterface from
InvRegistry.RegisterInterface(TypeInfo(CallCopyServicePortType), 'Service', 'UTF-8');
to
InvRegistry.RegisterInterface(TypeInfo(CallCopyServicePortType), '
survey.btc.callcopy', 'UTF-8');
I looked at the examples that .Net studio publishes for you and I noticed that it said xmlns=
survey.btc.callcopy . Looking at the packets I noticed I was sending xmlns=Service.
Changing the RegisterInterface declaration removed the references to NS1: for me, and allowed me to send parameters to the .Net web service.
I should also note that throughout all of this I was able to receive values from the .Net service just fine