Thread View: borland.public.cppbuilder.webservices.soap
2 messages
2 total messages
Started by Matthew Kemmerer
Thu, 15 Mar 2007 21:02
Cannot Access Web Service
Author: Matthew Kemmerer
Date: Thu, 15 Mar 2007 21:02
Date: Thu, 15 Mar 2007 21:02
7 lines
1203 bytes
1203 bytes
I have a very simple web service written in C# in Visual Studio 2005 that I'm trying to access using Borland Builder 6. The web service method takes a single integer argument but no matter what I pass it always appears to the web service that i've passed in a 0. Does anyone know how to make this work? --Matt
Re: Cannot Access Web Service
Author: Jean-Marie Babet
Date: Thu, 15 Mar 2007 22:08
Date: Thu, 15 Mar 2007 22:08
31 lines
2301 bytes
2301 bytes
Hello Matthew, Can you post some additional information about the WebService? I know of couple of issues that will cause problems. They are related to namespaces. Basically, the support in CBuilder6 for document|literal services [default for .NET WebServices] was rudimentary. If the service, for example, uses an unqualified element, CBuilder6 always assumed qualified element. The net result is that the XML sent to the service would not match what was described in the WSDL, and the service will be unable to deserialize the data. If you control the WebService, you can maximize compatibility with CBuilder6 by using an Rpc style service. However, if you don't control the WebService side, then we would need to find out a little more before coming up with a solution/workaround. If you can post (or email me if it contains sensitive data) the WSDL, we can diagnose the problem a little more. Alternatively, .NET Webservices are typically good at showing a sample of the XML they expect. You can compare that with the one CBuilder6 is generating (you can peek at the XML by handling the OnBeforeExecute event on the THTTPRIO) and often the issue will be evident. There were also some issues with cases where the method or parameters were renamed (say because they conflict with a C++ keyword)...in these cases C++Builder6 did not always renamed the identifier properly in the XML. Again the WSDL will reveal if that's the issue. Cheers, Bruneau.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads