You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Sanjiva Weerawarana <sa...@watson.ibm.com> on 2000/06/25 10:38:39 UTC
Re: [SOAP] gotcha's for IBM-SOAP inter-op
Hi Simon,
You posted the following in the SOAP discussion list. I'd like to
understand what's going wrong.
(Please see inlined questions.)
----- Original Message -----
From: "Simon Fell" <so...@ZAKS.DEMON.CO.UK>
To: <SO...@DISCUSS.DEVELOP.COM>
Sent: Saturday, June 24, 2000 1:08 AM
Subject: [SOAP] gotcha's for IBM-SOAP inter-op
> I've been testing my SOAP/COM server from an IBM-SOAP client, found
> one or two gotcha's, hopefully this 'll save someone else some time.
>
> 1. namespace URI's need to be enclosed in ' not "
Are you saying that your code needs the ' or that the Apache code
(or the IBM code; the IBM code is now frozen) needs it? We use Xerces-J
to parse the XML and if this is true then its a Xerces-J bug!!
> 2. all return val's need to have their type explicitly set (not sure
> how this pans out for array's yet)
This is true for all values, not just returns. The reason is that the
code is currently not schema-aware. That is, while we use element type
strings to identify things, we don't go off and read a schema to do
stuff. This comes from tooling around the IDL language part IMO.
> here's an example of a working response message
>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
> xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
> xmlns:xsd='http://www.w3.org/1999/XMLSchema/'
> xmlns:xsi='http://www.w3.org/1999/XMLSchema/instance/'
>
> SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
> <SOAP-ENV:Body>
> <AddResponse>
> <added xsi:type="xsd:int">30</added>
> </AddResponse>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
>
> Cheers
> Simon
>
> You can read messages from the SOAP archive, unsubscribe from SOAP, or
subscribe to other
> DevelopMentor lists at http://discuss.develop.com.
Thanks!
Sanjiva.
Re: [SOAP] gotcha's for IBM-SOAP inter-op
Posted by Simon Fell <so...@zaks.demon.co.uk>.
Hi,
I have a java client to my COM server, if the response SOAP message is
(note the " rather than ' for the ns attributes)
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<Add3Response>
<added xsi:type="xsd:int">100</added>
</Add3Response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Then i was getting errors at the java end about each element needing
to be typed. However i can't reproduce it now, it may actually have
been the xsd & xsi namespace URLs, the SOAP spec says that xsd is
associated with http://www.w3.org/1999/XMLSchema rather than
http://www.w3.org/1999/XMLSchema/ , but removing the trailing / yealds
the following error
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=No mapping found for 'http://www.w3.org/1999/XMLSchema:string'
using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.;
targetException=java.lang.IllegalArgumentException: No mapping found
for 'http://www.w3.org/1999/XMLSchema:string' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.]
at com.ibm.soap.rpc.Call.invoke(Call.java:124)
at interop_tests.soap4j.Split.main(split.java:42)
I don't know if this is a typo in the SOAP spec or not, as i haven't
studied the Schema specs yet. (and I've just noticed that my xsi
namespace is wrong)
The explicitly typed thing was just unexpected more than anything
else, there are very few (if any) examples of this in the SOAP spec,
and the polymorphic accessor part of the spec is pretty small. On
reflection i don't have any issues with it. I'm trying to avoid
involving schema's in the system at the moment, but i do have the
advantage of having the COM TypeInfo around to help out.
Cheers
Simon
On Sun, 25 Jun 2000 04:38:39 -0400, in soap you wrote:
>Hi Simon,
>
>You posted the following in the SOAP discussion list. I'd like to
>understand what's going wrong.
>
>(Please see inlined questions.)
>
>----- Original Message -----
>From: "Simon Fell" <so...@ZAKS.DEMON.CO.UK>
>To: <SO...@DISCUSS.DEVELOP.COM>
>Sent: Saturday, June 24, 2000 1:08 AM
>Subject: [SOAP] gotcha's for IBM-SOAP inter-op
>
>
>> I've been testing my SOAP/COM server from an IBM-SOAP client, found
>> one or two gotcha's, hopefully this 'll save someone else some time.
>>
>> 1. namespace URI's need to be enclosed in ' not "
>
>Are you saying that your code needs the ' or that the Apache code
>(or the IBM code; the IBM code is now frozen) needs it? We use Xerces-J
>to parse the XML and if this is true then its a Xerces-J bug!!
>
>> 2. all return val's need to have their type explicitly set (not sure
>> how this pans out for array's yet)
>
>This is true for all values, not just returns. The reason is that the
>code is currently not schema-aware. That is, while we use element type
>strings to identify things, we don't go off and read a schema to do
>stuff. This comes from tooling around the IDL language part IMO.
>
>> here's an example of a working response message
>>
>> <SOAP-ENV:Envelope
>> xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
>> xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
>> xmlns:xsd='http://www.w3.org/1999/XMLSchema/'
>> xmlns:xsi='http://www.w3.org/1999/XMLSchema/instance/'
>>
>> SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
>> <SOAP-ENV:Body>
>> <AddResponse>
>> <added xsi:type="xsd:int">30</added>
>> </AddResponse>
>> </SOAP-ENV:Body>
>> </SOAP-ENV:Envelope>
>>
>>
>> Cheers
>> Simon
>>
>> You can read messages from the SOAP archive, unsubscribe from SOAP, or
>subscribe to other
>> DevelopMentor lists at http://discuss.develop.com.
>
>Thanks!
>
>Sanjiva.
>
Re: [SOAP] gotcha's for IBM-SOAP inter-op
Posted by Simon Fell <so...@zaks.demon.co.uk>.
Hi,
I have a java client to my COM server, if the response SOAP message is
(note the " rather than ' for the ns attributes)
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<Add3Response>
<added xsi:type="xsd:int">100</added>
</Add3Response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Then i was getting errors at the java end about each element needing
to be typed. However i can't reproduce it now, it may actually have
been the xsd & xsi namespace URLs, the SOAP spec says that xsd is
associated with http://www.w3.org/1999/XMLSchema rather than
http://www.w3.org/1999/XMLSchema/ , but removing the trailing / yealds
the following error
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=No mapping found for 'http://www.w3.org/1999/XMLSchema:string'
using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.;
targetException=java.lang.IllegalArgumentException: No mapping found
for 'http://www.w3.org/1999/XMLSchema:string' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.]
at com.ibm.soap.rpc.Call.invoke(Call.java:124)
at interop_tests.soap4j.Split.main(split.java:42)
I don't know if this is a typo in the SOAP spec or not, as i haven't
studied the Schema specs yet. (and I've just noticed that my xsi
namespace is wrong)
The explicitly typed thing was just unexpected more than anything
else, there are very few (if any) examples of this in the SOAP spec,
and the polymorphic accessor part of the spec is pretty small. On
reflection i don't have any issues with it. I'm trying to avoid
involving schema's in the system at the moment, but i do have the
advantage of having the COM TypeInfo around to help out.
Cheers
Simon
On Sun, 25 Jun 2000 04:38:39 -0400, in soap you wrote:
>Hi Simon,
>
>You posted the following in the SOAP discussion list. I'd like to
>understand what's going wrong.
>
>(Please see inlined questions.)
>
>----- Original Message -----
>From: "Simon Fell" <so...@ZAKS.DEMON.CO.UK>
>To: <SO...@DISCUSS.DEVELOP.COM>
>Sent: Saturday, June 24, 2000 1:08 AM
>Subject: [SOAP] gotcha's for IBM-SOAP inter-op
>
>
>> I've been testing my SOAP/COM server from an IBM-SOAP client, found
>> one or two gotcha's, hopefully this 'll save someone else some time.
>>
>> 1. namespace URI's need to be enclosed in ' not "
>
>Are you saying that your code needs the ' or that the Apache code
>(or the IBM code; the IBM code is now frozen) needs it? We use Xerces-J
>to parse the XML and if this is true then its a Xerces-J bug!!
>
>> 2. all return val's need to have their type explicitly set (not sure
>> how this pans out for array's yet)
>
>This is true for all values, not just returns. The reason is that the
>code is currently not schema-aware. That is, while we use element type
>strings to identify things, we don't go off and read a schema to do
>stuff. This comes from tooling around the IDL language part IMO.
>
>> here's an example of a working response message
>>
>> <SOAP-ENV:Envelope
>> xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
>> xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
>> xmlns:xsd='http://www.w3.org/1999/XMLSchema/'
>> xmlns:xsi='http://www.w3.org/1999/XMLSchema/instance/'
>>
>> SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
>> <SOAP-ENV:Body>
>> <AddResponse>
>> <added xsi:type="xsd:int">30</added>
>> </AddResponse>
>> </SOAP-ENV:Body>
>> </SOAP-ENV:Envelope>
>>
>>
>> Cheers
>> Simon
>>
>> You can read messages from the SOAP archive, unsubscribe from SOAP, or
>subscribe to other
>> DevelopMentor lists at http://discuss.develop.com.
>
>Thanks!
>
>Sanjiva.
>