• Post Reply Bookmark Topic Watch Topic
  • New Topic

How simpleTypes should be transported?

 
Jean-Francois Beauchef
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I am far from an expert in web services, but I will try to make my question as clear as possible. I was wondering how simpleTypes defined in a schema (imported in a WSDL) should be transported in a SOAP message.

When I compile a WSDL file in WebSphere (RAD6 actually, but my test environment is WebSphere 5.1), I get a different result than with Axis (I don't know which version though, but it could be Axis 1.0). In Axis, I get a class for all simple types (which are basically just strings in my case), while in WebSphere, the simpleTypes appear as just strings in my objects.

When I try to consume a service between the 2, I get an error. WebSphere and Axis cannot understand each others SOAP messages when a simpleType is involved.

For example, one could send:
...
<postalCode>
H1H1H1
</postalCode>
...

While the other expects:
...
<postalCode>
<value>
H1H1H1
</value>
</postalCode>
...

I tried to read some specifications, but can't find anything on this. Should I look in the WS-I Basic Profile? WSDL? SOAP? XML Schemas? This is quite obscure for me...

Am I doing something wrong here?

Thank you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!