Home > Ask the SOA Experts > SOA governance and standards Questions & Answers > Java clients for Microsoft MapPoint .NET
Ask The SOA Expert: Questions & Answers
EMAIL THIS

Java clients for Microsoft MapPoint .NET

Anne Thomas Manes EXPERT RESPONSE FROM: Anne Thomas Manes

Pose a Question
Other SOA Categories
Meet all SOA Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 18 June 2002
I cannot get Java clients to work after generating Java classes from MapPoint Web services WSDL available at http://service.mappoint.net/find-20/mappoint.wsdl

I know that Microsoft uses document style SOAP as default while most Java implementations use RPC by default. Is this a reason for problems in running clients/generating WSDL for MapPoint services?

I tried testing MapPoint WSDL in Round 3 SoapBuilders interoperabity and the error is as follows:

 Errors
wsdl exception: com.iona.webservices.wsdl.handlers.schema.ElementHandler :
PropertyValue element doesnt have a type defined
com.iona.webservices.soap.client.WSDLToolkitException: wsdl exception:
com.iona.webservices.wsdl.handlers.schema.ElementHandler : PropertyValue
element doesnt have a type defined

>
The problem is not related to RPC/Literal. It's an incompatibility with the WSDL type definitions. As your error message says, there's no type definition for the PropertyValue element. The PropertyValue element is an element within the PropertySet type:

<s:complexType name="PropertySet">
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="PropertyName" type="s:string"
/>
  <s:element minOccurs="0" maxOccurs="1" name="PropertyValue" />
  </s:sequence>
</s:complexType>

But as you can see, it has no type definition, and the element isn't defined anywhere else in the WSDL file, either. It appears that IONA XMLBus requires that all elements have an explicit type definition. SOAP doesn't specify a default type, so I wouldn't say that IONA is in error here. Other WSDL tools may be able to tolerate this situation, though.

For example, the WASP WSDL Compiler can process the WSDL just fine. It produces the following class for PropertySet:

public class PropertySet {

    public java.lang.String PropertyName;
    public java.lang.Object PropertyValue;

}
As you can see, it maps the unknown XML type to an object.

If you want to get XMLbus to compile the WSDL, I guess you'll need to modify the WSDL and give PropertyValue a type. It's hard to tell from the WSDL what the PropertyValue is supposed to contain, but I would assume a string. Modify the WSDL thus:

<s:complexType name="PropertySet">
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="PropertyName" type="s:string"
/>
  <s:element minOccurs="0" maxOccurs="1" name="PropertyValue"
type="s:string" />
  </s:sequence>
</s:complexType>

and it should work.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
SOA governance and standards
UDDI clients and UDDI implementations
Creating an enterprise data dictionary
Hard vs. live real time systems
Service contract tools
Open source UDDI tools
SOA policy management
Service reuse rules
WSDM lagging behind WS-Management
The status of JBI
WSDL 1.1 vs. WSDL 2.0

SOAP (Simple Object Access Protocol)
On the road to SOA – Part 1, Boubez on early insights
Progress/Actional SOA diagnostic tool builds on Mindreef purchase
InterSystems Ensemble environment adds binary SOAP messaging
User combines open source ESB with data services to speed customer reports
WSDLs get a report card
Simple Object Access Protocol (SOAP) Tutorial
Web services for Windows CE
SOA for pets uses REST and SOAP
Netrics uses SOAP to clean data
Mindreef updates SOA testing tools
SOAP (Simple Object Access Protocol) Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
DIME  (SearchSOA.com)
endpoint reference  (SearchSOA.com)
SOAP  (SearchSOA.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SOA Governance White Papers - BPM, EDA, IT Governance
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts