hi all,

here is the problem. 

org.xml.sax.SAXException: Invalid element in
com.verisign.xmlenc.elements.CipherData - CipherValue

i am getting this exception when i invoke the service.
client side code is below. CiperValue is an object in
the CiperData. 

how can i serialize the CiperValue class in client
code ? hope question is clear ...... SOAP message is
added at the end of this mail.

thanks

Dasun


service = new Service();
            call = (Call) service.createCall();
           
call.setTargetEndpointAddress("http://localhost:8080/axis/services/MobileOperatorService";);
            call.setUseSOAPAction(true);
           
call.setSOAPActionURI("http://soapinterop.org/";);

            QName uiqn = new
QName("http://soapinterop.org/";, "CipherData");
            Class cls = CipherData.class;
            call.registerTypeMapping(cls, uiqn,
BeanSerializerFactory.class,
BeanDeserializerFactory.class);


            call.setOperationName(new
QName("http://soapinterop.org/";, "StartBSP"));
            call.addParameter("UI",
XMLType.XSD_STRING, ParameterMode.IN);
            call.setReturnType(uiqn);


            call.invoke(new Object[] {impi});


here is the SOAP message :

  <?xml version="1.0" encoding="UTF-8" ?> 
- <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
- <soapenv:Body>
- <xenc:EncryptedData
Type="http://www.w3.org/2001/04/xmlenc#Element";
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#";>
  <xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc";
/> 
- <xenc:CipherData>
 
<xenc:CipherValue>VRjPvjRgGcuG9oFYDuELgt5pvzwFhUVphVzKI7wh/QkA1hlPoNHkPl9USayObMmitVod6WXT
7AjPLO+zWl+JvpMLX99emIPwpDG/SK9o+bP7/11drcfC/pwku4GBhWBV/1vlMsRQ1YtfsHab
GBW8Vd6WqKECG7ehdOU0YHFXCDK2EuwH5NcbjJjL45FAU8f8wWFt8U35K2vqPCAW51XffupB
RJnrGf3ndWYLO1q19+pArOT9SJEla/uxWY2vnYAgoZ/DoobKqvFnaBHqQ2GSTZwCKoc6GHUw
+XBu3ErZM/udglg+5mCe8XOZYrN2M27rqq0a8nyTyblmsJwHDUMLh9Fdx/tGtZENzF+BwjhE
oy4bnBJaUa9m7LHvWcP0fR0iZ/Txfl3EGAma1fap88n/ebWCQ33vpPiui31SaC1f3C+N7dba
4duJLwuPk2Tt6pN475cx0gAWpM+EwPRU2WRr9UfBQI8EIr6HKgTP6m7G8vISpTO0P5dyVZ36
+G7zNWHEWGjLGG/9Am3FtLhtT/J71M2swFzuKBkKb27x9rH5qvOWDbKAZ3QucqIP8pOTLqvb
Yjy5J6XsVNsQMCeJr/Fzcg==</xenc:CipherValue> 
  </xenc:CipherData>
  </xenc:EncryptedData>
  </soapenv:Body>
  </soapenv:Envelope>

Send instant messages to your online friends http://uk.messenger.yahoo.com 

Reply via email to