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
  • 1.  Problem mapping abstract types

    Posted Wed February 11, 2015 01:44 PM

    Hello everybody!

    I am deploying a service that connects to a BackEnd. This Backend contains Abstract Types ( xsd:complexType abstract=“true”) and when I import this WSDL, in this types I can see: *docType.
    I dont know how to map this abstract structures.
    Does anyone know how to handle whis this abstract Types?

    Im using webMethods 8.2 SP2.

    Thanks and regards.
    Diego.


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Problem mapping abstract types

    Posted Wed February 11, 2015 03:43 PM

    Are you not seeing any fields under that *docType is it what the issue?

    What doyou expect under that tree and also can you run the nodetodocument with the XML against that doctype and see what is showing in the pipeline?

    Normally it’s the same as *body object type for the complex structure based on the schema definition.

    HTH
    RMG


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Problem mapping abstract types

    Posted Fri February 13, 2015 12:53 AM

    Hi Diego,
    I think case 1 in my topic will help you, Dataset also doesn’t show docType in wsdl [url]http://tech.forums.softwareag.com/techjforum/posts/list/54413.page[/url]
    If you find out better way, please share it.


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Problem mapping abstract types

    Posted Wed February 18, 2015 04:49 AM

    Hello everybody,

    I have not been able to test yet because I’m having problems connecting to the backend because of certificates and signature issues :frowning: :
    [url]http://tech.forums.softwareag.com/techjforum/posts/list/0/54455.page#197611[/url]

    Once I have fixed my connectivity issues, I will try to implement your ideas.

    Thanks and Regards,
    Diego


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Problem mapping abstract types

    Posted Wed February 18, 2015 10:44 AM

    Sure Diego…Please try it and keep the forum posted!


    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Problem mapping abstract types

    Posted Mon March 02, 2015 01:32 PM

    Hi all,

    I solved this issue by adding this lines in abstract type WSDL/XSD:

      <xsd:complexType abstract="true" name="AbstractTypeExample">
    <xsd:attribute name="xsitype" type="xsd:string"/>
    <xsd:attribute name="xmlnstns" type="xsd:string"/>
    </xsd:complexType>

    Then I imported WSDL in designer and modified Derived types which I want to use by changing: xsitype to xsi:type and xmlnstns to xmlns:tns.

    Finally I populated this attribute values with desired values in pipeline, example:

                 <tns:exampletype xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:type="ns1:ConcreteType">
    <ns1:Name>Chavalote</ns1:Name> 
    <ns1:Address>Direccion</ns1:Address> 
    </tns:exampletype>

    Thanks all!
    Diego


    #Integration-Server-and-ESB
    #webMethods