IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Response from webMethods web service

  • 1.  Response from webMethods web service

    Posted Wed March 10, 2010 03:06 PM

    Hi,
    We are migrating from 6.5 to 7.1. Most of the existing code is working in 7.1 without any changes but there is one service which is exposed as a web service thats not working. Below is the error that its throwing out.

    System.InvalidOperationException: There is an error in XML document (868, 33). —> System.InvalidCastException: Cannot assign object of type __InsertFlags to an object of type __InsertFlags2.

    The difference in the responses is :

    6.5 environment

    7.1 environment

    The request and resonse documents have InsertFlags. So in the wsdl the request object is named InsertFlags and referenced to InsertFlags and the response document is named InsertFlags and referencing to InsertFlags2 (which I believe to keep them separate). Below is the specific lines of the wsdl.

    <xsd:element name=“InsertFlags” nillable=“true” type=“tns:__InsertFlags” minOccurs=“0”/>
    <xsd:element name=“InsertFlags” nillable=“true” type=“tns:__InsertFlags2” minOccurs=“0”/>

    Has anyone been in this situation and if so any help/suggestions would be welcome. If possible we want to avoid changing the code as much as possible.


    #soa
    #webMethods
    #API-Management


  • 2.  RE: Response from webMethods web service

    Posted Thu March 11, 2010 06:08 AM

    did your recode service in 71 or just migrated the package to 71? If i understand correctly there is a difference the way we build webservice in 71 and 65.


    #webMethods
    #API-Management
    #soa