Article View: borland.public.cppbuilder.webservices.soap
Article #87Re: WSE 3 and C++ Builder
From: Sig
Date: Fri, 11 May 2007 16:48
Date: Fri, 11 May 2007 16:48
54 lines
2645 bytes
2645 bytes
Jean-Marie Babet wrote:
> Hello Sig,
>
> Whether you can interop with the service using BCB depends on how the
> Service exposes the file. There are many options for exposing the contents
> of a file:
>
> 1. As a string
> 2. As an array of bytes
> 3. As an attachment
>
> CBuilder supports the first two approaches. Item #3 will not work with
> CBuilder as attachment support was added after BCB6. And even if you do use
> a later version, it probably won't work with WSE as CBuilder's support for
> attachment is based on the MIME attachment which is not what WSE supports
> (WSE probably supports DIME or MTOM??).
>
> If you have a WSDL for the service it's possible to infer how the service
> exposes the file from that document. If you can point me to (or email a copy
> of) the WSDL, I'd be happy to look at it and provide more information.
>
> Cheers,
>
> Bruneau.
>
>
Hello Bruneau,
Thank you for your reply. WSDL Importer generates code to use the
service functions as an array of bytes. It works very nicely with
BDS2006 but fails with BCB6. I sent you an e-mail with WSDL attached. It
would be nice to get it work with BCB6 as we still use it in production.
The code generated by WSDL imported looks like this:
__interface INTERFACE_UUID("{CFE467D4-A39E-2BD2-5836-7685A9E27F8D}")
Service1Soap : public IInvokable
{
public:
virtual AnsiString SayHello() = 0;
virtual TByteDynArray ReceiveFile(const AnsiString fileName) = 0;
virtual void SendFile(const TByteDynArray data, const
AnsiString FileName) = 0;
};
typedef DelphiInterface<Service1Soap> _di_Service1Soap;
_di_Service1Soap GetService1Soap(bool useWSDL=false, AnsiString addr="");
Thank you,
Sig
Technical Details
Message-ID:
<46449e6c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<463faf0e$1@newsgroups.borland.com> <4643baa3$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11096a,cf721677876b4b5b X-Google-Attributes: gid11096a,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 11 May 2007 09:48:54 -0700 From: Sig <ss@h.com> User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.webservices.soap Subject: Re: WSE 3 and C++ Builder References: <463faf0e$1@newsgroups.borland.com> <4643baa3$1@newsgroups.borland.com> In-Reply-To: <4643baa3$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.38.39.40 Message-ID: <46449e6c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1178902124 24.38.39.40 (11 May 2007 09:48:44 -0700) Lines: 54 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail