webMethods

webMethods

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

Passing Soap message using SoapClient

  • 1.  Passing Soap message using SoapClient

    Posted Fri December 03, 2010 07:39 AM

    Hi All,

    I face a difficulty when try to invoke back end system using the wsdl that they provided.
    The input signature are having , and block , the block is unbounded and they set it abstract to true. When I imported the wsdl file, I need to manual set abstract to false from wsdl file then only I can see the in input doc in developer which is in stringlist format.

    My problem is when I invoke the web services, the soap message that formed will be something like below:

    <?xml version="1.0"?>
    tns:ServiceRequest
    tns:RequestHeader
    tns:ServiceT1</tns:Service>
    tns:Credentials
    tns:NameEAIUSER</tns:Name>
    </tns:Credentials>
    </tns:RequestHeader>
    tns:data
    <p:FXRate>
    <p:MaintType>A</p:MaintType>
    <p:Code>IBANK</p:Code>
    <p:Currency>AED</p:Currency>
    </p:FXRate>
    </tns:data>

    </tns:ServiceRequest>

    Instead, they are expecting something like this:-

    <?xml version="1.0"?>

    tns:ServiceRequest
    tns:RequestHeader
    tns:ServiceT1</tns:Service>
    tns:Credentials
    tns:NameEAIUSER</tns:Name>
    </tns:Credentials>
    </tns:RequestHeader>
    <p:FXRate>
    <p:MaintType>A</p:MaintType>
    <p:Code>IBANK</p:Code>
    <p:Currency>AED</p:Currency>
    </p:FXRate>

    </tns:ServiceRequest>

    Can developer do something like this? WHen I am using the soapUI. I can invoke them successfuly becos the SoapUI tool is way different from EAI developer.


    #API-Management
    #webMethods
    #soa


  • 2.  RE: Passing Soap message using SoapClient

    Posted Sun December 05, 2010 12:34 PM

    Hi,

    First we have to check whether abstract type is supported.
    Alternatively, you can format XML and then use soap client API to call webservice instead of using out of box consumers.

    Regards,
    Sumit


    #soa
    #webMethods
    #API-Management