Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling BSF webservice

Status
Not open for further replies.

rroqueA5

Technical User
Oct 3, 2012
4
BR
HI,

I'm calling a Web service form BSF called QueryFacade to get information from a calling but I got error.

I would like to know if there is someone here how works with this web services that could help me?

Regards
Ricardo Roque
 
post bsf log. what are you trying to achieve,send us a outline of project scope
 
I imported the WSDL at Netbeans but it shows this message "PKIK path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to request target"

But Netbeans created a source code, when a run the program a error occurs:

10/10/2012 15:57:10 [com.sun.xml.ws.policy.EffectiveAlternativeSelector] selectAlternatives
AVISO: WSP0075: Policy assertion "{ was evaluated as "UNKNOWN".
10/10/2012 15:57:10 [com.sun.xml.ws.policy.EffectiveAlternativeSelector] selectAlternatives
AVISO: WSP0019: Suboptimal policy alternative selected on the client side with fitness "PARTIALLY_SUPPORTED".
10/10/2012 15:57:10 [com.sun.xml.ws.policy.EffectiveAlternativeSelector] selectAlternatives
AVISO: WSP0075: Policy assertion "{ was evaluated as "UNKNOWN".
10/10/2012 15:57:10 com.sun.xml.ws.security.impl.policy.Constants log_invalid_assertion
AVISO: SP0100: a asserção da política Assertion[com.sun.xml.ws.policy.sourcemodel.DefaultPolicyAssertionCreator$DefaultPolicyAssertion] {
assertion data {
namespace = ' prefix = 'msf'
local name = 'SslTransportSecurity'
value = 'null'
optional = 'false'
ignorable = 'false'
no attributes
}
no parameters
no nested policy
} não é suportada na asserção Token.
10/10/2012 15:57:10 [com.sun.xml.ws.policy.EffectiveAlternativeSelector] selectAlternatives
AVISO: WSP0019: Suboptimal policy alternative selected on the client side with fitness "PARTIALLY_SUPPORTED".
10/10/2012 15:57:10 [com.sun.xml.ws.policy.EffectiveAlternativeSelector] selectAlternatives
AVISO: WSP0075: Policy assertion "{ was evaluated as "UNKNOWN".
10/10/2012 15:57:10 [com.sun.xml.ws.policy.EffectiveAlternativeSelector] selectAlternatives
AVISO: WSP0019: Suboptimal policy alternative selected on the client side with fitness "PARTIALLY_SUPPORTED".
10/10/2012 15:57:13 ws1.NewWebServiceFromWSDL main
GRAVE: null
javax.xml.ws.soap.SOAPFaultException: An error occurred when verifying security for the message.
at com.sun.xml.ws.security.secconv.WSSCPlugin.sendRequest(WSSCPlugin.java:444)
at com.sun.xml.ws.security.secconv.WSSCPlugin.process(WSSCPlugin.java:263)
at com.sun.xml.ws.security.secconv.impl.client.SCTokenProviderImpl.issue(SCTokenProviderImpl.java:135)
at com.sun.xml.ws.api.security.trust.client.IssuedTokenManager.getIssuedToken(IssuedTokenManager.java:83)
at com.sun.xml.wss.jaxws.impl.SecurityClientTube.startSecureConversation(SecurityClientTube.java:554)
at com.sun.xml.ws.rx.util.Communicator.tryStartSecureConversation(Communicator.java:406)
at com.sun.xml.ws.rx.rm.runtime.ClientTube.createSequences(ClientTube.java:409)
at com.sun.xml.ws.rx.rm.runtime.ClientTube.openRmSession(ClientTube.java:347)
at com.sun.xml.ws.rx.rm.runtime.ClientTube.processRequest(ClientTube.java:188)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:961)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:910)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:873)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:775)
at com.sun.xml.ws.client.Stub.process(Stub.java:429)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:168)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:102)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:151)
at $Proxy44.queryCalls(Unknown Source)
at ws1.NewWebServiceFromWSDL.main(NewWebServiceFromWSDL.java:75)

Regards
 
Preparing a Certificate
A certificate is necessary for BSF to establish SSL communication.
Before you begin:
• Prepare the host name of the computer on which the System Applications run.
Certificate Requirements
The certificate must contain the following information:
• Subject name identical to the machine name on which the BSF Server is installed.
• Key Usage parameter values: Digital Signature, Non-Repudiation, Key Encipherment, Data
Encipherment (f0).
• XXXX The site ID on which the BSF Server is installed.
• YYYY The machine name on which the BSF Server is installed.
IMPORTANT
Usually, an SSL certificate does not provide all the required Key Usage attributes. For example,
a VeriSign SSL certificate only provides Digital Signature and Key Encipherment (a0).
 

I believe certification is right. Now I'm get this message error:
Client received SOAP Fault from server: Object reference not set to an instance of an object. Please see the server log to find more detail regarding exact cuase of the failure.


BSF show:

16/10/12 18:09:44.150 | DEBUG | 5 | NICEPerform.BSF.Logic.AuthenticationManager | AuthenticationManager.AuthenticateNiceIdentity User was authenticated. User already exists in local authentication repository. (user name = 'XXXX') 
16/10/12 18:09:44.150 | DEBUG | 5 | NICEPerform.BSF.DataAccessLayer.InMemoryAuthenticationRepositoryAdapter | InMemoryAuthenticationRepositoryAdapter.Update Expiration date of user Authentication Record was updated. (old expiration date = '10/16/2012 21:36:14', record = 'AuthenticationRecord: (user = 'XXXX', ExpirationDate='10/16/2012 9:39:44 PM'' 
16/10/12 18:09:44.150 | DEBUG | 5 | NICEPerform.BSF.DataAccessLayer.InMemoryClientRepositoryAdapter | InMemoryClientRepositoryAdapter.Update Client last access was updated. (key = 'XXXX', last access = '10/16/2012 21:09:44')) 

Thanks for you help.
Ricardo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top