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

Error invoking IS web service from .Net client - connection closed

  • 1.  Error invoking IS web service from .Net client - connection closed

    Posted Fri July 28, 2006 09:35 PM

    Hi,

    I created a WSDL which was called from a .NET Apps. I got the error “The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.”

    Could you help?

    Thanks


    #API-Management
    #soa
    #webMethods


  • 2.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Fri July 28, 2006 10:59 PM

    Not enough information. Where was the WSDL located? Can you ping the IS box hosting the web service from the box running the .Net soap client? Etc.

    What troubleshooting have you already performed on your own? What did it reveal? How have you attempted to isolate the problem?

    Mark


    #API-Management
    #webMethods
    #soa


  • 3.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Mon July 31, 2006 03:37 PM

    Hi Mark,
    I created a web service and generated a wsdl and stored in my c:\inetpub\wwwroot\webservices.

    For testing, I run .NET WebService Studio and invoke the .wsdl with parameters. It returns TOTAL_RECORDS = null. When I run the webservice in WM, it works just fine. In the Request/Response tab in .NET Webservice, the item TOTAL_RECORDS is not in the OUTPUT even though it is defined in the webservice in WM, and I cannot figure out why. My .NET WebApps is checking on TOTAL_RECORDS and expecting a value of 0 (not found) or > 0 (record found).

    Any help is very much appreciated.
    Van-Loc Doran

    SOAP-ENV:Body
    <ser-root:searchEmployeeResponse xmlns:ser-root=“http://templeton/krEnterpriseServices.empLookUp” SOAP-ENC:root=“1”>

    <ERROR_CODE xsi:type=“xsd:string”>0</ERROR_CODE>
    <ERROR_MESSAGE xsi:type=“xsd:string”>
    </ERROR_MESSAGE>

    </ser-root:searchEmployeeResponse>
    </SOAP-ENV:Body>


    #API-Management
    #soa
    #webMethods


  • 4.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Mon July 31, 2006 06:24 PM

    Van-Loc,

    What style of web service are you using, soap-rpc or soap-message? Can you generate a web service connector from the WSDL you created and run it successfully in Developer?

    Can you post the WSDL as an attachment to you post?

    Mark


    #API-Management
    #soa
    #webMethods


  • 5.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Mon July 31, 2006 10:41 PM

    Mark, I’m using soap-rpc. Per your suggestion, I have generated a webservice from the WSDL and it did not run successfully in Developer. So I’m still trying to fix it. Will let you know.
    Thanks, Van-Loc


    #webMethods
    #API-Management
    #soa


  • 6.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Tue August 01, 2006 03:27 AM

    Hi Mark,

    I generated a webservice from the WSDL and ran it in Developer. It returns the following fault message, so I did not know what was wrong with the results. Please help.

    Thanks, Van-Loc

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

    <SOAP-ENV:Envelope xmlns:SOAP-ENV=“[URL=“http://schemas.xmlsoap.org/soap/envelope/”]http://schemas.xmlsoap.org/soap/envelope/[/URL]” xmlns:xsi=“[URL=“http://www.w3.org/2001/XMLSchema-instance”]http://www.w3.org/2001/XMLSchema-instance[/URL]” xmlns:xsd=“[URL=“XML Schema”]http://www.w3.org/2001/XMLSchema[/URL]”>
    SOAP-ENV:Body
    SOAP-ENV:Fault
    SOAP-ENV:Client
    [ISS.0088.9133] Error while encoding RPC output
    http://templeton:5000/soap/rpc
    <detail xmlns:webM=“[URL=“API Integration Platform | Software AG”]API Integration Platform | Software AG”>
    webM:exception
    webM:classNamecom.wm.soap.coder.SoapCoderRuntimeException</webM:className>
    <webM:message xml:lang=“”>[ISC.0076.9211] SOAP Message Coder cannot encode output data; pipeline does not match output signature, required variable OUTPUT is missing</webM:message>
    </webM:exception>

    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>


    #soa
    #API-Management
    #webMethods


  • 7.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Tue August 01, 2006 02:50 PM

    Mark,
    I created a WSDL and it has a warning. “[ISC.0124.9001] Document to XSD warning: For interoperability reasons, the type is not used in SOAP RPC WSDL. Document queryParams will be defined as closed in the XSD”. What does this warning mean and how to fix it?

    Thanks for your help.
    Van-Loc


    #webMethods
    #soa
    #API-Management


  • 8.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Tue August 01, 2006 03:26 PM

    Van-Loc,

    I’m just guessing since a) I don’t know the input/output signature of the service you are exposing and b) you haven’t shared your WSDL, but it would appear that IS is having difficulting creating an XML representation of the inputs or outputs of your service. That can happen if your service accepts or returns object variables, uses wildcards (documents with no contents) or other non-standard, non-interoperable approaches.

    As I have written here many, many times, Soap-RPC is notorious for its interoperability issues. My guess is that you are experiencing just a few of them.

    Mark


    #webMethods
    #API-Management
    #soa


  • 9.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Tue August 01, 2006 07:12 PM

    Mark,
    I try to send you my WSDL but it exceeds the allowed text ( > 10000 characters). What should I do to send it to you?
    Thanks, Van-Loc


    #soa
    #API-Management
    #webMethods


  • 10.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Tue August 01, 2006 07:20 PM

    Try it again… I upped the limit on that file type.


    #webMethods
    #soa
    #API-Management


  • 11.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Tue August 01, 2006 07:27 PM

    Thank you very much. Here is my WSDL.
    Van-Loc
    searchEmployee.wsdl (4.72 KB)


    #soa
    #webMethods
    #API-Management


  • 12.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Tue August 01, 2006 07:40 PM

    Your service returns a document list. This results in the need to serialize an array of objects in soap-rpc, a particularly nasty interoperability area.

    Try returning only a single document rather than the EMPLOYEELIST document list and see if you can get it working there.

    The Web Services Connector wizard in Developer 6.5 generated a Flow with no errors from your WSDL.

    Mark


    #API-Management
    #webMethods
    #soa


  • 13.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Tue August 01, 2006 08:02 PM

    I have to set the document list to contain multiple records returned. When I changed the document list to a single document, it will not contain other records.

    You mentioned Developer 6.5 has no problem, is this problem also related to the Developer version?

    Thanks, Van-Loc


    #webMethods
    #API-Management
    #soa


  • 14.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Tue August 01, 2006 08:19 PM

    First of all, I said that Developer 6.5’s Web Service Connector wizard can generate a Flow from your WSDL. Without access to your servers I could not test it to determine whether it actually works.

    Soap-RPC interoperability issues are independent of any webMethods product version.

    My advice is to use SOAP-MSG (aka document/literal) style soap messaging instead. There are lots of posts and examples here on how to do that.

    Mark


    #API-Management
    #webMethods
    #soa


  • 15.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Wed August 02, 2006 01:44 PM

    Hi Mark,

    There are web services created in my systems and WSDLs were generated using SOAP-rpc and accessed successfully from .NET apps. Maybe my webservice is not rightly created, hence the problem with my WSDL. I will let you know when I get my issues resolved. Thank you very much for your time and help.
    Regards, Van-Loc Doran


    #webMethods
    #soa
    #API-Management


  • 16.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Wed August 02, 2006 08:07 PM

    Mark,

    I fixed my problem and was able to generate a working WSDL. I have a very basic (maybe stupid) question. When I click ‘Run’, it does not displayed any results, but when I run it in Trace mode, the results are displayed. Do you know why?

    Thanks, Van-Loc


    #webMethods
    #soa
    #API-Management


  • 17.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Thu August 03, 2006 01:08 PM

    What did you “fix”? Please share the solution.


    #webMethods
    #API-Management
    #soa


  • 18.  RE: Error invoking IS web service from .Net client - connection closed

    Posted Thu August 03, 2006 07:17 PM

    It’s all about mapping the output of the document lists throughout several services. I will post more details later, my WM server has been down since this morning.

    Regards, Van-Loc


    #soa
    #API-Management
    #webMethods