none
Bing Maps SOAP services throw exception while building the proxy classes using Axis RRS feed

  • Question

  • Hi

    We are upgrading from MWS to Bing Maps with SOAP services, searchservice. We are using the following URL to generate the proxy classes.

    http://dev.virtualearth.net/webservices/v1/searchservice/searchservice.svc?wsdl

    when we try using wsdl2java of  Axis 1.3, we receive the following exception

    java.io.IOException: ERROR: Missing <soap:fault> element inFault "ResponseSummaryFault" in operation "ResponseSummaryFault", in binding Search
            at org.apache.axis.wsdl.symbolTable.SymbolTable.faultsFromSOAPFault(SymbolTable.java:2858)
            at org.apache.axis.wsdl.symbolTable.SymbolTable.populateBindings(SymbolTable.java:2549)
            at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:744)
            at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
            at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
            at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
            at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
            at java.lang.Thread.run(Unknown Source)

    Is the webservice URL correct? Kindly let us know how to generate the proxy classes.

    Thanks

     

     

     

     

    • Moved by Ricky_Brundritt Friday, March 9, 2012 6:08 PM (From:Bing Maps: Map Control and Web services Development)
    Wednesday, June 1, 2011 10:32 AM

Answers

All replies

  • Take a look at this article: http://ngjon.wordpress.com/2010/02/01/accessing-web-services-using-axis2/
    Windows Live Developer MVP - http://rbrundritt.wordpress.com | http://inknowledge.co.uk
    Wednesday, June 1, 2011 12:00 PM
  • Here are some informations about the Bing Maps SOAP Web Services:

    http://msdn.microsoft.com/en-us/library/cc966738.aspx

     

    The Bing Maps SOAP Search Service is:

    http://dev.virtualearth.net/webservices/v1/searchservice/searchservice.svc 

    The WSDL Url that is used results in this:

    http://dev.virtualearth.net/webservices/v1/metadata/searchservice/dev.virtualearth.net.webservices.v1.search.wsdl

     

    Here some links in order to generate proxy classes from the WSDL:


    MVP - Bing Maps - My blog (FR): http://blogs.developpeur.org/nicoboo/ Twitter: http://twitter.com/nicolasboonaert/
    Wednesday, June 1, 2011 3:19 PM
    Moderator
  • Thanks for the response Nicolas and Richard!

    We are still not able to generate the proxy classes for the Search service, using AXIS

    We are using the default options of WSDL2Java. Below is the complete stack trace of the exception:

     

    [ERROR] Malformed uri: CustomBinding_ISpatialSearchService_policy
    java.lang.RuntimeException: Malformed uri: CustomBinding_ISpatialSearchService_policy
            at org.apache.neethi.PolicyReference.getRemoteReferedElement(PolicyReference.java:162)
            at org.apache.neethi.PolicyReference.getRemoteReferencedPolicy(PolicyReference.java:176)
            at org.apache.neethi.PolicyReference.normalize(PolicyReference.java:112)

            at org.apache.axis2.util.PolicyUtil.getMergedPolicy(PolicyUtil.java:290)

            at org.apache.axis2.description.AxisBindingMessage.calculateEffectivePolicy(AxisBindingMessage.java:290)
            at org.apache.axis2.description.AxisBindingMessage.getEffectivePolicy(AxisBindingMessage.java:223)
            at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getBindingPolicyFromMessage(AxisServiceBasedMultiLanguageEmitter.java:284)

            at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2802)
            at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2340)
            at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2224)
            at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.java:1213)
            at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:1179)
            at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:496)
            at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:260)
            at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
            at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

    Can't we use axis to generate the proxy classes? Is the WSDL has some issue? Has there been any implementation for the SOAP services using Java? Kindly throw us some light on this,

     

    Thanks a Lot!

     

    Thursday, June 9, 2011 6:23 AM
  • There has always been issues using the SOAP services with AXIS. Try using the classes generated here: http://cid-e7dba9a4bfd458c5.office.live.com/self.aspx/VE%20Tools/BM%5E_WSDL.zip You may also want to consider using the REST Phonebook service for instead of the SOAP search service found here: http://msdn.microsoft.com/en-us/library/dd250913.aspx
    Windows Live Developer MVP - http://rbrundritt.wordpress.com | http://inknowledge.co.uk
    Thursday, June 9, 2011 11:27 AM
  • Hi Richard

     

    Thanks for the response.

     

    Our task is to upgrade our existing store locator applications(MWS) to use the new Bing Maps. Can we use the spatial data with REST? We have to host the database as per the customer locations and accrodingly get the nearest locations list.

     

    Thanks

    Thursday, June 9, 2011 11:48 AM