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

does attach WSDL support Microsoft NegoiateAuthentication

  • 1.  does attach WSDL support Microsoft NegoiateAuthentication

    Posted Thu May 26, 2011 03:43 PM

    Hi

    Attaching WSDL allows for user/pass for authentication with the provider of WSDL. I am getting 401 error (auth problem). Looking the WSDL it is equiped with MS NegoiateAuthencation (
    http://207.46.16.248/en-us/library/ee525179(PROT.10).aspx

    does attach WSDL support Microsoft NegoiateAuthentication, what can I do to attach .NET WS WSDL with the NegoiateAuthentication.

    NOTE: webMethods and SOAPUI can consume the WSDL without problem


    #CentraSite
    #API-Management
    #webMethods


  • 2.  RE: does attach WSDL support Microsoft NegoiateAuthentication

    Posted Fri May 27, 2011 10:35 AM

    I can get through the auth with Authenticator…

    public static void withAuth(String[] args) throws Exception {
    Authenticator.setDefault(new MyAuthenticator());
    //URL url = new URL(args[0]);
    URL url = new URL("http://workmanagersystest.perpetual.com.au/Services/XML/TeamUtilisationService.svc?wsdl");
    InputStream ins = url.openConnection().getInputStream();
    BufferedReader reader = new BufferedReader(new InputStreamReader(ins));
    String str;
    while((str = reader.readLine()) != null)
    System.out.println(str);
    }
    

    Why CentraSite cannot get through even I provide user/password when attche WSDL.???
    I also extend the JAAS config,…
    SeriNTLM
    {
    com.sun.security.auth.module.NTLoginModule required dubug=true;
    };

    Here is the error log.

    WsdlImportFileTable: WsdlImportFileTable(0) mode = 0
    ERROR: Throwable
    java.io.IOException: WSDLException: faultCode=OTHER_ERROR: Unable to locate document at ‘http://workmanagersystest.perpetual.com.au/Services/XML/TeamUtilisationService.svc?wsdl’. (Server returned HTTP response code: 401 for URL: http://workmanagersystest.perpetual.com.au/Services/XML/TeamUtilisationService.svc?wsdl)
    at com.centrasite.jaxr.webservice.WebServiceAnalyzer.getWSDLDefinition(WebServiceAnalyzer.java:512)
    at com.centrasite.jaxr.webservice.WebServiceAnalyzer.(WebServiceAnalyzer.java:116)
    at com.centrasite.jaxr.webservice.WebServiceAnalyzer.(WebServiceAnalyzer.java:138)
    at com.centrasite.jaxr.webservice.WebServiceRegistrator.(WebServiceRegistrator.java:491)
    at com.centrasite.control.logged.action.LoggedWebserviceImport.run(LoggedWebserviceImport.java:108)
    at com.centrasite.control.logged.action.LoggedExecutor.run(LoggedExecutor.java:190)
    at com.centrasite.control.logged.action.LoggedExecutor.execute(LoggedExecutor.java:64)
    at com.centrasite.control.adapters.WebServiceImportAdapter$RegisterWebService.register(WebServiceImportAdapter.java:827)
    at com.centrasite.control.adapters.AbstractFileImport.registerAttempt(AbstractFileImport.java:206)
    at com.centrasite.control.adapters.AbstractFileImport.doImport(AbstractFileImport.java:144)
    at com.centrasite.control.adapters.WebServiceImportAdapter.run(WebServiceImportAdapter.java:573)
    at com.softwareag.cis.plugin.adapter.util.CommonAdapter.executeNow(CommonAdapter.java:462)
    at com.softwareag.cis.plugin.adapter.util.CommonAdapter.executeSessionRunnable(CommonAdapter.java:442)
    at com.softwareag.cis.plugin.adapter.util.CommonAdapter.reactOnDataTransferEnd(CommonAdapter.java:498)
    at com.centrasite.control.adapters.BaseAdapter.reactOnDataTransferEnd(BaseAdapter.java:218)
    at com.softwareag.cis.server.InteractionModel.a(Unknown Source)
    at com.softwareag.cis.server.InteractionModel.setDataAsXML(Unknown Source)
    at com.softwareag.cis.server.XMLProcessor.processXML(Unknown Source)
    at com.softwareag.cis.server.XMLProcessor.processXMLAndSerialize(Unknown Source)
    at com.softwareag.cis.server.Connector.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:619)


    #webMethods
    #CentraSite
    #API-Management


  • 3.  RE: does attach WSDL support Microsoft NegoiateAuthentication

    Posted Fri May 27, 2011 11:14 AM

    Here is my workaround!!

    Import the wsdl in the CentraSite via File.
    Step1. use microsoft disco to bring the WSDL and XSD locally
    Step2. remove all reference to the host and replace with File URL (otherwise it will do the check to the host and will get stuck with Window Security NTLM or Krb )
    Step3. move th modify files to the CentraSite’s host (host you install CentraSite) and attached the WSDL from there via FILE URL

    Generally, this service cannot override outside window domain.
    AND, CentraSite does have problem with Authentication extention, I can get through with pure java code… but not real sure where to or if CentraSite allows extra authentication to be hooked up…


    #CentraSite
    #API-Management
    #webMethods