Article View: borland.public.cppbuilder.webservices.soap
Article #23Re: Builder and SOAP request format
From: Jean-Marie Babet
Date: Tue, 18 Dec 2007 19:29
Date: Tue, 18 Dec 2007 19:29
45 lines
2671 bytes
2671 bytes
Hello,
PMFJI.
The issue between
> > <CreateAccessKey xmlns="https://gateway.acheck21.com/">
> > <FrontEndID>string</FrontEndID>
and
> > <NS1:CreateAccessKey xmlns:NS1="https://gateway.acheck21.com">
> > <FrontEndID>string</FrontEndID>
... is the <FrontEndID> (and ClientID, Username, etc) are in the wrong
namespace. The whole area of element namespace was not properly handled in
CBuilder6, where the focus was rpc|encoded service where this is not an
issue [rpc|encoded services rely on the xsi:type="xxxxx" attribute].
The good news is that this issue was addressed in a later version. The bad
news is that the fix was never ported back to CBuilder6. I investigated but
the SOAP interface changed so much after v6.0 [to accommodate things such as
attachments/headers/etc] that it was not possible to take the changes while
remaining interface-compatible without going through some meticulous
handling of merge-conflicts.
You can find a copy of the updated runtime that contains fixes for element
namespaces at this URL:
http://cc.codegear.com/Item/24535
But I'm afraid you won't be able to use these runtime updates as is.
I'm afraid the easier route is to use the OnBeforeExecute event to tweak the
XML packet. This approach is acceptable if you have only a few methods. When
accessing several methods of a large service (such as Amazon or eBay), this
approach is unmanageable.
If you can give me some additional info. about your setup (like are you
using packages or linking with the libraries? accessing a few or many
methods of the service? etc), I'll try to suggest some workarounds.
Cheers,
Bruneau.
Technical Details
Message-ID:
<47681f4a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46841eab$1@newsgroups.borland.com> <4766e29e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11096a,af06090e442ba767 X-Google-Attributes: gid11096a,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Jean-Marie Babet" <bbabet@borland.com> Newsgroups: borland.public.cppbuilder.webservices.soap References: <46841eab$1@newsgroups.borland.com> <4766e29e$1@newsgroups.borland.com> Subject: Re: Builder and SOAP request format Date: Tue, 18 Dec 2007 11:29:07 -0800 Lines: 47 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 10.143.102.22 Message-ID: <47681f4a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1198006090 10.143.102.22 (18 Dec 2007 11:28:10 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail