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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

(401)[ISS.0084.9004] Access Denied

  • 1.  (401)[ISS.0084.9004] Access Denied

    Posted Tue July 01, 2008 06:01 PM

    Hi,

    I have created a java client from WSDL of flow service created using IS 6.1. Now i am settin SOAP header so that IS will authenticate user and then will allow to execute web service. But when i tried this i am getting
    [SIZE=2]B[ISS.0084.9004] Access Denied[/b] excepion. I have set my Flow service Execute ACL property to Anonymous.

    See this Java code where i am setting SOAP header to populate user credentials.

    BSFNFlowServicesBindingStub ws=
    (BSFNFlowServicesBindingStub) bsfnLocator.getBSFNFlowServicesPort0();
    SOAPHeaderElement xyz=new SOAPHeaderElement(“http://test”,
    “Authorrization”);
    xyz.setPrefix(“Basic”);
    xyz.setMustUnderstand(false);
    SOAPElement oElement =xyz.addChildElement(“UserName”);
    oElement.addTextNode(“Administrator”);
    oElement = xyz.addChildElement(“Password”);
    oElement.addTextNode(“secret”);

      ws.setHeader(xyz);
    

    String result= ws.getPhoneService(“751”);
    System.out.println(“WS Called”);
    System.out.println(“Result=”+result);

    Thanks
    [/size]


    #soa
    #webMethods
    #API-Management


  • 2.  RE: (401)[ISS.0084.9004] Access Denied

    Posted Tue July 01, 2008 06:33 PM

    Hi,

    I found the solution for above exception, did some silly mistake while setting USER credentials. Now when i am calling web service i am getting following exception

    [SIZE=2][COLOR=#000080]org.xml.sax.SAXParseException[/color][/size]: Character conversion error: “Unconvertible UTF-8 character beginning with 0xa9” (line number may be too low).

    Can any one tell me why this exception is comming.

    Thanks


    #API-Management
    #webMethods
    #soa