how to pass password text while calling java-cxf webservice from php

Posted by Darpan Desai on Stack Overflow See other posts from Stack Overflow or by Darpan Desai
Published on 2010-06-18T09:05:07Z Indexed on 2010/06/18 10:43 UTC
Read the original article Hit count: 569

Filed under:
|

hi,

i have developed my webservice in java-cxf which returns java.util.List. This webservice is password enabled. that means i have used org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor for security purpose.

Now i want to call this webservice from php. but i am not able to do so. Without security settings i am able to access my webservice using nusoap. but when i enabled security feture (interceptor) in webservice, i am getting error like ns1:InvalidSecurity An error was discovered processing the header

and i am getting response as follows:

HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=ISO-8859-1 Content-Length: 361 Date: Fri, 18 Jun 2010 08:53:54 GMT Connection: close

< soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">< soap:Body>< soap:Fault>< faultcode xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" > ns1:InvalidSecurity< /faultcode>< faultstring>An error was discovered processing the <wsse:Security > header< /faultstring>< /soap:Fault>< /soap:Body>

any help will be appriciated thanks in advance Darpan Desai

© Stack Overflow or respective owner

Related posts about php

Related posts about web-services