|
| Re: Missing namespace in soap body |
 |
Mon, 5 Nov 2007 11:47:30 -0800 |
Hello Erik,
Do you have the patches posted here applied:
http://cc.codegear.com/Item/24535
There are a few element namespace related issues addressed in that patch. In
particular, see the 'FIX_ELEM_NODE_NS' define.
If this does not address the issue, I'll be happy to investigate. (Seems
that this is EventCentral's WSDL, right?. Our SOAP unit tests interact with
EventCentral although we invoke just a few methods: prodFindAll and
something else that I cannot remember right now).
Cheers,
Bruneau.
|
| Post Reply
|
| Missing namespace in soap body |
 |
Mon, 5 Nov 2007 12:48:43 +0100 |
Hi!
I have a problem with the SOAP body generated by my Delphi 2007 RAD.
The body generated by delphi looks like this:
<SOAP xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/
xmlns:default="http://medcom.dk>
<SOAP-ENV Body>
<default:getPersonInformationIn xmlns="http://medcom.dk>
<default:PersonCivilRegistrationIdentifier>2512484916</default:PersonCi
vilRegistrationIdentifier>
</default:getPersonInformationIn xmlns="http://medcom.dk>
<SOAP-ENV Body>
the problem is however that it should look like this:
<SOAP xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/
xmlns:default="http://medcom.dk>
<SOAP-ENV Body>
<default:getPersonInformationIn xmlns="http://medcom.dk>
<PersonCivilRegistrationIdentifier
xmlns="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/03/18">251248
4916</default:PersonCivilRegistrationIdentifier>
</default:getPersonInformationIn xmlns="http://medcom.dk>
<SOAP-ENV Body>
The namespace for PersonCivilRegistrationIdentifier should be different from
the one that Delphi assigns. How can I fix this?
The WSDL for the webservice is
http://83.90.36.36/DetGodeCprOpslag/DetGodeCprOpslag.asmx?wsdl.
Thanks!
Erik
|
| Post Reply
|
| Re: Missing namespace in soap body |
 |
Tue, 6 Nov 2007 10:37:45 +0100 |
Hello!
I did try the patch and it made no difference. I have D2007 and really
didn't think that I needed that patch but maby I'm wrong?
I'm not sure what EventCentral is but I did log a case with you earlier
regarding the types problem with the WSDL importer and later on the problem
with internal error URW4590. During our following conversation I might have
e-mailed you this WSDL as well.
Should I log another case at your self-service support pages? I have a very
prestigious project coming up which involves parts of the danish government
and I'm stuck at the integration testing level at the moment :-( I need a
work around!! I already manipulate the Delphi generated SOAP in order to add
WS Security information to the SOAP header, so a generic patch at the XML
level will do nicely (I have webservices with 100's of methods like this one
so it mush be a completely generic patch).
Regards,
Erik
"Jean-Marie Babet" <bbabet@borland.com> skrev i en meddelelse
news:472f734b$1@newsgroups.borland.com...
> Hello Erik,
>
> Do you have the patches posted here applied:
>
> http://cc.codegear.com/Item/24535
>
> There are a few element namespace related issues addressed in that patch.
> In
> particular, see the 'FIX_ELEM_NODE_NS' define.
>
> If this does not address the issue, I'll be happy to investigate. (Seems
> that this is EventCentral's WSDL, right?. Our SOAP unit tests interact
> with
> EventCentral although we invoke just a few methods: prodFindAll and
> something else that I cannot remember right now).
>
> Cheers,
>
> Bruneau.
>
>
|
| Post Reply
|
| Re: Missing namespace in soap body |
 |
Tue, 6 Nov 2007 14:36:46 -0800 |
Hello,
> I did try the patch and it made no difference. I have D2007 and really
> didn't think that I needed that patch but maby I'm wrong?
Correct, you don't need the patch if you're using D2007. The patch is
derived from the D2007 codebase for users of earlier versions of Delphi.
> I'm not sure what EventCentral is but I did log a case with you earlier
> regarding the types problem with the WSDL importer and later on the
problem
> with internal error URW4590. During our following conversation I might
have
> e-mailed you this WSDL as well.
Thank you for the reminder. I do recall the URW4590 (with strong alias of
enumerations).
> Should I log another case at your self-service support pages? I have a
very
> prestigious project coming up which involves parts of the danish
government
> and I'm stuck at the integration testing level at the moment :-( I need a
> work around!! I already manipulate the Delphi generated SOAP in order to
add
> WS Security information to the SOAP header, so a generic patch at the XML
> level will do nicely (I have webservices with 100's of methods like this
one
> so it mush be a completely generic patch).
You may log a case or you can wait for me to investigate a little. There are
two cases that I know of regarding incorrect element namespaces:
#1. When a 'property' does not correspond to an xsd:element in the schema
(There's a thread on this issue regarding WSSE headers currently).
#2. When there's an array and the namespace of the array differs from the
namespace of the element of the array.
Neither of these sounds related to what you reported but I'll need to
investigate further to confirm.
More as soon as I have investigated.
Cheers,
Bruneau.
|
| Post Reply
|
| Re: Missing namespace in soap body |
 |
Wed, 7 Nov 2007 10:29:26 +0100 |
Hi!
FYI I tested from C#.Net and the SOAP code generated here look fine.
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getPersonInformationIn xmlns="http://medcom.dk">
<PersonCivilRegistrationIdentifier
xmlns="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/03/18">251248
4916</PersonCivilRegistrationIdentifier>
</getPersonInformationIn>
<soap:Body>
Very nice soap I think... And correct!
Regerds,
Erik
"Jean-Marie Babet" <bbabet@borland.com> skrev i en meddelelse
news:4730ec79$1@newsgroups.borland.com...
> Hello,
>
>> I did try the patch and it made no difference. I have D2007 and really
>> didn't think that I needed that patch but maby I'm wrong?
>
> Correct, you don't need the patch if you're using D2007. The patch is
> derived from the D2007 codebase for users of earlier versions of Delphi.
>
>
>> I'm not sure what EventCentral is but I did log a case with you
earlier
>> regarding the types problem with the WSDL importer and later on the
> problem
>> with internal error URW4590. During our following conversation I might
> have
>> e-mailed you this WSDL as well.
>
> Thank you for the reminder. I do recall the URW4590 (with strong alias of
> enumerations).
>
>
>> Should I log another case at your self-service support pages? I have a
> very
>> prestigious project coming up which involves parts of the danish
> government
>> and I'm stuck at the integration testing level at the moment :-( I need
a
>> work around!! I already manipulate the Delphi generated SOAP in order
to
> add
>> WS Security information to the SOAP header, so a generic patch at the
XML
>> level will do nicely (I have webservices with 100's of methods like
this
> one
>> so it mush be a completely generic patch).
>
> You may log a case or you can wait for me to investigate a little. There
> are
> two cases that I know of regarding incorrect element namespaces:
>
> #1. When a 'property' does not correspond to an xsd:element in the schema
> (There's a thread on this issue regarding WSSE headers currently).
>
> #2. When there's an array and the namespace of the array differs from the
> namespace of the element of the array.
>
> Neither of these sounds related to what you reported but I'll need to
> investigate further to confirm.
>
> More as soon as I have investigated.
>
> Cheers,
>
> Bruneau.
>
>
|
| Post Reply
|
|
|
|
|
|
|
|
|
|