Q
Problem solve Get help with specific problems with your technologies, process and projects.

Problems with map and querybean WSDL types

I'm deploying my first set of Web services my "consumers" are having problems with the WSDL types my app is generating: map and querybean. Are these types not widely accepted yet?
Unfortunately, what you've run into are interoperability problems, possibly because different vendors are interpreting the standards differently. The WS-I organization was set up to iron out these wrinkles in interoperability and the result to date is the WS-I Basic Profile which outlines how to properly interpret the standards (you can find it at http://www.ws-i.org/Profiles/Basic/2003-08/BasicProfile-1.0a.html). Generally, if your services conform to WS-I Basic Profile, they will interoperate with most of the existing implementations. Unfortunately, vendors have not yet made their SOAP implementations WS-I compliant out-of-the-box for services you build with them. If you want interoperability today, sadly, the burden falls on you to make your service WS-I Basic Profile compliant (through careful definition of your service and use of the platform it's built on). Luckily, there are tools which can help you test if your service is compliant (and diagnose why they might not be). An example of this type of tool is SOAPScope.

A guideline I like to follow (beyond the Basic Profile) when I design services are to keep the datatypes simple. I don't mean that you should avoid large data structures, but that you should try not to depend on very specific semantics of programming language data types. For example, don't depend on the fact that numerical data types can have null values -- even though SOAP fully supports this, not all programming languages (and thus consumers) support this. The set of data types I generally limit my services to are non-nullable integral types, non-nullable floating point types, timezone-less date/time, string, enumerations, array-like types, and "structs" (ones that are almost purely data structures with no methods other than "helpers" used to read/write the fields of the data structure) -- of course, the structs can contain any of the data types in this list (including other structs). All of these data types map cleaning into most programming languages that will be service consumers. Other data types rarely map so cleanly or easily.

Dig Deeper on Topics Archive

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchSoftwareQuality

SearchAWS

SearchCloudComputing

TheServerSide.com

Close