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

Unable to decrypt the webservice content in webMethods 71

  • 1.  Unable to decrypt the webservice content in webMethods 71

    Posted Wed August 13, 2008 01:29 AM

    Hi,
    I am trying to use ws security with webservices in 71. I need to only encrypt the data.
    I created a policy file for encryption and assigned the policy to webservice.
    Below is my policy file.

    <SecurityPolicy xmlns="http://www.webmethods.com/2007/01/policy/security">
    
    <InboundSecurity>
    
    
    <Encryption 
    Usage="Required"
    RequireEncryptedBody="true"/>
    
    </InboundSecurity>
    
    When I send encrypted data I am receiving following error response. Any help? HTTP/1.1 500 Internal Server Error Content-Length: 1716 Set-Cookie: ssnid=29b408d068ca11ddbdded06f91d3984d; path=/; Content-Type: text/xml <?xml version="1.0" encoding="UTF-8"?>

    <SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:xsd=“XML Schema” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
    <SOAP-ENV:Header xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/”></SOAP-ENV:Header><SOAP-ENV:Body xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:xsd=“XML Schema” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”><SOAP-ENV:Fault xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“XML Schema”>
    SOAP-ENV:Client
    [ISS.0088.9251] JAX-RPC Handler failed to process the message
    http://ubebua702:5555/ws/Meena.Services.Inbound:userwsdl_sbox<SOAP-ENV:detail xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“XML Schema”><webM:detailEntry xmlns:webM=“API Integration Platform | Software AG” xmlns:xml=“The "xml:" Namespace”>
    <webM:message xml:lang=“”>com.webMethods.ws.security.SecurityException: Security Engine error while processing WS Security headers org.apache.ws.security.WSSecurityException: Cannot encrypt/decrypt data; nested exception is:
    javax.crypto.BadPaddingException: Plaintext too large</webM:message>
    </webM:detailEntry>
    </SOAP-ENV:detail></SOAP-ENV:Fault></SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    Thanks,
    Meena


    #API-Management
    #soa
    #webMethods


  • 2.  RE: Unable to decrypt the webservice content in webMethods 71

    Posted Wed August 13, 2008 07:56 PM

    Resolved the issue by defining public key in the end point alias.

    Thanks,
    Meena


    #API-Management
    #soa
    #webMethods