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

Importing wsdl into webmethods that has XSD imports in the definition

  • 1.  Importing wsdl into webmethods that has XSD imports in the definition

    Posted Fri January 06, 2012 09:56 PM

    Hi-
    I’m the provider for my cient. I’ve a WSDL provided by the client. This wsdl contains all the imports to the XSD’s (It does not expand the XSDs).

    I’m on webMethods 8.0 server on UNIX.

    Also, what version of WSDL (1.0 or 2.0) does webMethods 8.0 support/generate?

    Example:

    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:tns="http://OrderServices.org" xmlns:wsdl=[URL]http://schemas.xmlsoap.org/wsdl/[/URL][/color][/size][/font][/SIZE][/FONT][FONT=Arial][SIZE=2][COLOR=#ff0000][FONT=Arial][SIZE=2][COLOR=#ff0000][FONT=Arial][SIZE=2][COLOR=#ff0000] xmlns:soap[/COLOR][/COLOR][/SIZE][/FONT]="http://schemas.xmlsoap.org/wsdl/soap/[/color][/size][/font][/SIZE][/FONT][FONT=Arial][SIZE=2][COLOR=#0000ff][FONT=Arial][SIZE=2][COLOR=#0000ff][FONT=Arial][SIZE=2][COLOR=#0000ff]"[/COLOR][/COLOR][/SIZE][/FONT] xmlns:xsd="http://www.w3.org/2001/XMLSchema[/color][/size][/font][/SIZE][/FONT][FONT=Arial][SIZE=2][COLOR=#0000ff][FONT=Arial][SIZE=2][COLOR=#0000ff][FONT=Arial][SIZE=2][COLOR=#0000ff]"[/COLOR][/COLOR][/SIZE][/FONT] xmlns:osData="http://OrderServices.org" xmlns:osOrderRequest="http://OrderServicesOrderRequest.org" targetNamespace="http://OrderServices.org">
    <wsdl:documentation>Ordering Service</wsdl:documentation>
    <wsdl:types>

    <xsd:schema>
    <xsd:import namespace="http://OrderServicesOrderRequest.org" schemaLocation="OrderRequest.xsd[FONT=Arial][SIZE=2][COLOR=#0000ff][FONT=Arial][SIZE=2][COLOR=#0000ff]"/> …

    Question: Where should I keep this wsdl and xsd on my server for the succesful import of the wsdl?

    Thanks,

    [FONT=Arial][SIZE=2]Venkat[/size][/font][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT]


    #webMethods
    #API-Management
    #soa


  • 2.  RE: Importing wsdl into webmethods that has XSD imports in the definition

    Posted Sat January 07, 2012 11:08 PM

    As the provider of the web service it is you that should be defining the WSDL, not the client.

    Review the wM-supplied documentation for creating a WSD, doc types, etc. in IS from a WSDL. The steps are pretty clear.


    #webMethods
    #API-Management
    #soa


  • 3.  RE: Importing wsdl into webmethods that has XSD imports in the definition

    Posted Mon January 09, 2012 05:27 PM

    What you said is absolutely true. That’s what the process is and I suggested that. but I don’t have control on that except importing the WSDL provided by client as it comes from government and has some scurity issues.

    So, Just want to know if I can import at all.


    #soa
    #API-Management
    #webMethods


  • 4.  RE: Importing wsdl into webmethods that has XSD imports in the definition

    Posted Tue January 10, 2012 04:30 PM

    When you import a WSDL, it will create the document types and schemas from the schemas that are either defined inline in the WSDL or imported from external xsd files. Those doc types are what you will use to implement a flow or java service that provides a service with the interface described in the WSDL.


    #API-Management
    #soa
    #webMethods


  • 5.  RE: Importing wsdl into webmethods that has XSD imports in the definition

    Posted Tue January 10, 2012 05:06 PM

    Yes you can import WSDL provided by your end provider client…Are you getting any errors with loading WS-Security headers or some thing?

    As Mark stated above the way it will work and be used in WSD consumer mapping interface perspective:

    HTH,
    RMG


    #API-Management
    #webMethods
    #soa