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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Error while calling remote webservice

  • 1.  Error while calling remote webservice

    Posted 05/13/14 12:44 PM

    Hi All,

    I have received WSDL from client and consumed it in webMethods 8.2 .

    while calling the remote service by using connector I am getting below error

    interface name: soap11
    service name: TEST
    Parameter “location” is not optional

    but I consumed same WSDL in soap UI and getting positive response.

    Please help me to resolve .


    #API-Management
    #soa
    #webMethods


  • 2.  RE: Error while calling remote webservice

    Posted 05/13/14 02:09 PM

    What does the WSDL actually do? If possible can you share it…

    I see it says location is not optional and I guess it should be mandatory…


    #webMethods
    #API-Management
    #soa


  • 3.  RE: Error while calling remote webservice

    Posted 05/14/14 04:23 AM

    Hi Mahesh,

    Thanks for your response .

    I am afraid I can not share my WSDL.

    The below error I am getting in server log file

    –Requst xml

    <?xml version="1.0" encoding="UTF-8" ?>

    <SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:xsd=“XML Schema” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” SOAP-ENV:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/”>
    <SOAP-ENV:Header xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/”></SOAP-ENV:Header>SOAP-ENV:Body
    <ser-root:getStatus xmlns:ser-root=“urn:TEST” SOAP-ENC:root=“1”>

    CLCLL0301
    1
    2

    </ser-root:getStatus>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    –Response xml
    interface name: soap11
    service name: TEST
    Parameter “location” is not optional

    I removed the id tag in location field and then posted the same request in Soap UI, then I am getting positive response


    Kindly let me know how to remove id tag in the input document after consuming it in webMethods developer 8.2


    #webMethods
    #soa
    #API-Management


  • 4.  RE: Error while calling remote webservice

    Posted 05/14/14 11:29 AM

    Hi Charles,

    With Ref: Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language,

    The location attribute specifies the base URI for the port. The value of the attribute is combined with the values of the location attribute of the http:operation binding element.

    location should contain the URI, the complete address, not the shorter one as shown in attached error.

    HTH.

    Thanks,
    Rankesh


    #API-Management
    #webMethods
    #soa


  • 5.  RE: Error while calling remote webservice

    Posted 05/15/14 04:12 AM

    Hi Rankesh,

    Thanks for your response.

    location is not an attribute its a complex type in the wsdl.

    Please find the sample wsdl attached.

    correct me if I am wrong.

    sample.wsdl (2.29 KB)


    #webMethods
    #API-Management
    #soa


  • 6.  RE: Error while calling remote webservice

    Posted 05/15/14 05:07 AM

    Hi Charles,

    My apologies, I missed that.

    I am able to import the sample wsdl in wm 8.2.

    It seems you need to update your IS to latest patches. What is your is_core_fix?

    Thanks,
    Rankesh


    #webMethods
    #soa
    #API-Management


  • 7.  RE: Error while calling remote webservice

    Posted 05/15/14 05:41 AM

    Hi Rankesh,

    This is latest core fix “IS_8.2_SP2_Core_Fix7”.

    I am able to consume the wsdl but while calling I am getting above mentioned error.

    Please help me how to proceed further.


    #soa
    #webMethods
    #API-Management


  • 8.  RE: Error while calling remote webservice

    Posted 05/15/14 05:56 AM

    Hi Charles,

    I found no issue while importing the attached WSDL.

    The latest fix is : IS_8.2_SP2_Core_Fix13 - IS_8.2_SP2_Core_Fix13

    Please get the latest fix(es) from empower. For your reference I am attaching the screenshot.

    Thanks,
    Rankesh
    IS Latest Core Fix.PNG


    #soa
    #webMethods
    #API-Management


  • 9.  RE: Error while calling remote webservice

    Posted 05/15/14 08:19 AM

    Thanks Rankesh,

    I have referred the webMethods SOAP developer’s guide and found a solution .

    we need to set “watt.server.SOAP.useMultiReference=false” in the extended setting ,default is true.

    It removes the id and href attribute for parameter.

    Now its working fine .

    If I am facing any further problem I will let you know.


    #API-Management
    #webMethods
    #soa


  • 10.  RE: Error while calling remote webservice

    Posted 05/15/14 08:24 AM

    Charles,
    Thanks for giving your update on the resolution.

    Good day :slight_smile:


    #API-Management
    #webMethods
    #soa