[prev in list] [next in list] [prev in thread] [next in thread]
List: wss4j-dev
Subject: [jira] Updated: (WSS-120) Arrays of objects from axis 1.4 are not
From: José_Ferreiro_(JIRA) <jira () apache ! org>
Date: 2008-05-29 18:07:44
Message-ID: 1878323824.1212084464957.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/WSS-120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
José Ferreiro updated WSS-120:
------------------------------
Description:
Hello,
I wrote this wsdl which is working fine when using Axis 1.4 for the server and the \
client. I try to send an object and I receive the same object into an array serveral \
times. This is working fine with Axis 1.4. The wsdl file follows below.
When I apply the handlers from WSS4J. then the problem arises . I perform: Signature \
Encrypt Timestamp I alradey checked it is not a problem of encryption or decripton. \
the proof is that I may exchange the previous wsdl but only sending an object and \
receving an object. When I try to send the the response as an array I got the \
following error.
I need to go to the production phase because I invest a lot of time in trying to \
interoperate with .net in a secure way. Thing that I succeed. See blog \
http://magnot.blogspot.com/2008/04/secure-web-services-interoperability.html
I though I did the more difficult achieving interoperability with the JKS and PKCS12 \
but now I am not able to receive the response of arrays whenever I use the wss4j.
May you please help me?
I may collaborate in sending you the files or whatever information is necessary!
Thank you in advance.
ERROR.
Error I get at the client (whenever I receive an array of object)
- Verification successful for URI "#id-9135999"
- Verification successful for URI "#SigConf-7859095"
- Exception:
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is \
NOT expected, in something it was trying to deserialize. at \
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2467)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at org.unece.tir.wss.itdbonlineplus.testscomplex.client.BasicComplexTypeSOAPSoapBindingStub.getBasicComplexType(BasicComplexTypeSOAPSoapBindingStub.java:201)
at org.unece.tir.wss.itdbonlineplus.testscomplex.client.Tester.singleArrayExchange(Tester.java:42)
at org.unece.tir.wss.itdbonlineplus.testscomplex.client.Tester.main(Tester.java:13)
; nested exception is:
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is \
NOT expected, in something it was trying to deserialize.
WSDL file:
<?xml version="1.0" encoding="utf-8"?>
<!--
Version: 1.0
Author: Jose Ferreiro
Last Updated: 01/02/2007
-->
<wsdl:definitions name="TIR secure Web Services"
targetNamespace="http://webservices.tir.unece.org/itdbonlineplus"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://webservices.tir.unece.org/itdbonlineplus"
xmlns:intf="http://webservices.tir.unece.org/itdbonlineplus"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema
elementFormDefault="qualified"
targetNamespace="http://webservices.tir.unece.org/itdbonlineplus"
xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="ComplexTypeRequest">
<annotation>
<documentation>
operation request element
</documentation>
</annotation>
<sequence>
<element name="stringType" type="xsd:string" nillable ="false" \
minOccurs="1" maxOccurs="1"/>
<element name="integerType" type="xsd:int" nillable ="false" \
minOccurs="1" maxOccurs="1"/>
<element name="doubleType" type="xsd:double" nillable ="false" \
minOccurs="1" maxOccurs="1"/>
<element name="booleanType" type="xsd:boolean" nillable ="false" \
minOccurs="1" maxOccurs="1"/>
<element name="dataTimeType" type="xsd:dateTime" nillable ="false" \
minOccurs="1" maxOccurs="1"/> </sequence>
</complexType>
<!--complexType name="ComplexTypeResponse">
<annotation>
<documentation>
operation response element
</documentation>
</annotation>
<sequence>
<element name="stringType" type="xsd:string" />
<element name="integerType" type="xsd:int" />
<element name="doubleType" type="xsd:double" />
<element name="booleanType" type="xsd:boolean" />
<element name="dataTimeType" type="xsd:dateTime" />
</sequence>
</complexType-->
<complexType name="ComplexTypeResponse">
<annotation>
<documentation>
operation response element
</documentation>
</annotation>
<sequence>
<element name="resultItem" minOccurs="1" maxOccurs="unbounded" \
type="impl:resultItem"> </element>
</sequence>
</complexType>
<complexType name="resultItem">
<sequence>
<element name="stringType" type="xsd:string" />
<element name="integerType" type="xsd:int" />
<element name="doubleType" type="xsd:double" />
<element name="booleanType" type="xsd:boolean" />
<element name="dataTimeType" type="xsd:dateTime" />
</sequence>
</complexType>
<complexType name="ComplexTypeRequestFault">
<annotation>
<documentation>
fault element
</documentation>
</annotation>
<sequence>
<element name="errorCode" type="xsd:int" />
<element name="errorDescription" type="xsd:string" />
</sequence>
</complexType>
<complexType name="ComplexTypeRequestFault2">
<annotation>
<documentation>
fault element
</documentation>
</annotation>
<sequence>
<element name="errorCode" type="xsd:int" nillable \
="false" minOccurs="1" maxOccurs="1"/>
<element name="errorDescription" type="xsd:string" nillable= \
"false" minOccurs="1" maxOccurs="1"/> </sequence>
</complexType>
<element name="ComplexTypeRequest" \
type="impl:ComplexTypeRequest" > <annotation>
<documentation>
Container for the categorical subject and natural language \
subject classifications. </documentation>
</annotation>
</element>
<element name="ComplexTypeResponse" \
type="impl:ComplexTypeResponse" />
<element name="ComplexTypeRequestFault" \
type="impl:ComplexTypeRequestFault" />
<element name="ComplexTypeRequestFault2" \
type="impl:ComplexTypeRequestFault2" /> </schema>
</wsdl:types>
<wsdl:message name="BasicComplexTypeRequest">
<wsdl:documentation>No arguments; we just want the list</wsdl:documentation>
<wsdl:part element="impl:ComplexTypeRequest" name="ComplexTypeRequest" />
</wsdl:message>
<wsdl:message name="BasicComplexTypeResponse">
<wsdl:part element="impl:ComplexTypeResponse" name="ComplexTypeResponse" />
</wsdl:message>
<wsdl:message name="ComplexTypeRequestFaultMessage">
<wsdl:documentation>Error message if the request has invalid \
parameters</wsdl:documentation> <wsdl:part element="impl:ComplexTypeRequestFault" \
name="ComplexTypeRequestFault" /> </wsdl:message>
<wsdl:message name="ComplexTypeRequestFaultMessage2">
<wsdl:documentation>Error message if the request has invalid \
parameters</wsdl:documentation> <wsdl:part element="impl:ComplexTypeRequestFault2" \
name="ComplexTypeRequestFault2" /> </wsdl:message>
<wsdl:portType name="BasicComplexPort">
<wsdl:documentation>
SERVICE "METHODS" - The actual set of operations the
service is capable of supporting. For each we can have a
message that goes in and a message that comes out (though
not always both; see for instance the background search
submission / notification operations).
The "portType" section combines messages into operations.
This will be like the "methods". Our operations are all
query-response, so each operation has an input message
and an output message.
</wsdl:documentation>
<wsdl:operation name="getBasicComplexType">
<wsdl:documentation>This wsdl is just an example to show how complex types may \
be used and nested.</wsdl:documentation>
<wsdl:input name="BasicComplexTypeRequest" \
message="impl:BasicComplexTypeRequest" />
<wsdl:output name="BasicComplexTypeResponse" \
message="impl:BasicComplexTypeResponse" />
<wsdl:fault name="ComplexTypeRequestFaultMessage" \
message="impl:ComplexTypeRequestFaultMessage"/>
<wsdl:fault name="ComplexTypeRequestFaultMessage2" \
message="impl:ComplexTypeRequestFaultMessage2"/> </wsdl:operation>
</wsdl:portType>
<wsdl:binding name="BasicComplexTypeSOAPSoapBinding" type="impl:BasicComplexPort">
<wsdlsoap:binding style="document" \
transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation \
name="getBasicComplexType">
<wsdlsoap:operation \
soapAction="http://BasicComplexType.wsdl.test/BasicComplexType" />
<wsdl:input name="BasicComplexTypeRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output name="BasicComplexTypeResponse">
<wsdlsoap:body use="literal" />
</wsdl:output>
<wsdl:fault name="ComplexTypeRequestFaultMessage">
<wsdlsoap:fault use="literal" />
</wsdl:fault>
<wsdl:fault name="ComplexTypeRequestFaultMessage2">
<wsdlsoap:fault use="literal" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="BasicComplexTypeExampleService">
<wsdl:port name="Associations1" binding="impl:BasicComplexTypeSOAPSoapBinding" >
<wsdlsoap:address location="http://ece-96242:8080/axis/services/Associations1" \
/> </wsdl:port>
</wsdl:service>
</wsdl:definitions>
Exchanged messages using Axis 1.4 (able to deserialize properly at the client the out \
response)
IN (request)
POST http://ece-96242:8080/axis/services/Associations1 HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.4
Host: 127.0.0.1:1234
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://BasicComplexType.wsdl.test/BasicComplexType"
Content-Length: 615
<?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>
<ComplexTypeRequest xmlns="http://webservices.tir.unece.org/itdbonlineplus">
<stringType>Client-29-May-José Ferreiro (request from the client's \
computer to the server)</stringType> <integerType>1975</integerType>
<doubleType>1975.1975</doubleType>
<booleanType>true</booleanType>
<dataTimeType>2008-05-29T17:13:13.437Z</dataTimeType>
</ComplexTypeRequest>
</soapenv:Body>
</soapenv:Envelope>
OUT (RESPONSE)
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Date: Thu, 29 May 2008 17:13:13 GMT
Server: Apache Coyote/1.0
Connection: close
<?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>
<ComplexTypeResponse \
xmlns="http://webservices.tir.unece.org/itdbonlineplus"> <resultItem>
<stringType>Vector 1-29-May - José Ferreiro (response from Server \
to the client)</stringType> <integerType>1975</integerType>
<doubleType>1975.1975</doubleType>
<booleanType>true</booleanType>
<dataTimeType>2008-05-29T17:13:13.921Z</dataTimeType>
</resultItem>
<resultItem>
<stringType>Vector 2-29-May - José Ferreiro (response from Server \
to the client)</stringType> <integerType>1975</integerType>
<doubleType>1975.1975</doubleType>
<booleanType>true</booleanType>
<dataTimeType>2008-05-29T17:13:13.921Z</dataTimeType>
</resultItem>
</ComplexTypeResponse>
</soapenv:Body>
</soapenv:Envelope>
IN Encrypted (Signature Encrypt Timestamp )
POST http://ece-96242:8080/axis/services/Associations1 HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.4
Host: 127.0.0.1:1234
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://BasicComplexType.wsdl.test/BasicComplexType"
Content-Length: 6039
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" \
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" \
xmlns:xsd="http://www.w3.org/2001/XMLSchema" \
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header>
<wsse:Security \
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" \
soapenv:mustUnderstand="1">
<wsu:Timestamp \
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
wsu:Id="Timestamp-3902281"> <wsu:Created>2008-05-29T17:15:52.281Z</wsu:Created>
<wsu:Expires>2008-05-29T18:15:52.281Z</wsu:Expires>
</wsu:Timestamp>
<xenc:EncryptedKey Id="EncKeyId-24054760">
<xenc:EncryptionMethod \
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"></xenc:EncryptionMethod> \
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> \
<wsse:SecurityTokenReference> <ds:X509Data>
<ds:X509IssuerSerial>
\
<ds:X509IssuerName>EMAILADDRESS=itdbonlineplus@unece.org,CN=ca,OU=ca,O=ca,L=Geneva,ST=Geneva,C=CH</ds:X509IssuerName>
<ds:X509SerialNumber>3</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</ds:X509Data>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>LLc5swoTXjyKdIfuIARC7WdtfmxCSysUJEENaNneCrDQlVmxl0 \
4JcVDWG7j+JqqNGeZE/fzwd9ukCpQUesTpMKr1M2dp4qozQpduZVALxa/Pgw93JBs+E6mQ9pz/rnx9wCqaRfbxw8T4WXrYbsZoQLS2FjvTtgJqSsowlIb9Uj0=</xenc:CipherValue>
</xenc:CipherData>
<xenc:ReferenceList>
<xenc:DataReference URI="#EncDataId-27667505"></xenc:DataReference>
</xenc:ReferenceList>
</xenc:EncryptedKey>
<wsse:BinarySecurityToken \
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" \
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" \
wsu:Id="CertId-5528252">MIIDPjCCAqegAwIBAgIBBDANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJDSD \
EPMA0GA1UECBMGR2VuZXZhMQ8wDQYDVQQHEwZHZW5ldmExCzAJBgNVBAoTAmNhMQswCQYDVQQLEwJjYTELMAkG \
A1UEAxMCY2ExJzAlBgkqhkiG9w0BCQEWGGl0ZGJvbmxpbmVwbHVzQHVuZWNlLm9yZzAeFw0wODA0MjUxNDU5MD \
NaFw0yODA0MjAxNDU5MDNaMGIxCzAJBgNVBAYTAkNIMQ8wDQYDVQQIEwZHZW5ldmExDzANBgNVBAcTBkdlbmV2 \
YTEPMA0GA1UEChMGY2xpZW50MQ8wDQYDVQQLEwZjbGllbnQxDzANBgNVBAMTBmNsaWVudDCBnzANBgkqhkiG9w \
0BAQEFAAOBjQAwgYkCgYEAuRqcEmoZtHI5K17RK+DYA3xPIzUngUMCmMnui5Fa53tv9w+wp0H/EKWRs26W2r3s \
ZJdkyLNuS++R87Yrri3eXnz4rDqyKqkBKwnTAyGmvYEcf/ArVAGby95fUflqxyYQFWjAIinRrabGbvYcSbPC+D \
oBUBjOrGoZwP7SiBiMoTUCAwEAAaOB5jCB4zAdBgNVHQ4EFgQUTKLAk6o9t0veG4D6lpk5sxoMWiIwgbMGA1Ud \
IwSBqzCBqIAUu1FuqyKqhCuzYiq1iFPQ9vQS6ZqhgYSkgYEwfzELMAkGA1UEBhMCQ0gxDzANBgNVBAgTBkdlbm \
V2YTEPMA0GA1UEBxMGR2VuZXZhMQswCQYDVQQKEwJjYTELMAkGA1UECxMCY2ExCzAJBgNVBAMTAmNhMScwJQYJ \
KoZIhvcNAQkBFhhpdGRib25saW5lcGx1c0B1bmVjZS5vcmeCCQC3WMb3kvFjjzAMBgNVHRMEBTADAQH/MA0GCS \
qGSIb3DQEBBQUAA4GBABcPQ9zROxb+tXF5Xunk3gPt6X3492lUU34zJtfUnqQHmUBRAJ85zG2wQ15u7Sv73BmS \
9+w7QHeUQ649yMdsWHLlpQPHfI7pK2Ki5MqSbREsMOOh3nHxd1AzdO/gn4H6EQJM93V0SEc56mACEEX7ikD/PRCoRDWZaC4VsrGacnUC</wsse:BinarySecurityToken>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" \
Id="Signature-16471729"> <ds:SignedInfo>
<ds:CanonicalizationMethod \
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
<ds:SignatureMethod \
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod> \
<ds:Reference URI="#id-27667505"> <ds:Transforms>
<ds:Transform \
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform> </ds:Transforms>
<ds:DigestMethod \
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
<ds:DigestValue>QDcTTH4WvGhyG5g/FlRfaVkQS0M=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>aFr7oWN6FjHratE/pWq83x2JhSmV01JCYrXaAEdwEn3dFIVGYgyS \
oGZIOuMJFZy5R9BIFZcBWb+c4Z3gOAQ8S6wg12uV7TIVFt3suR6F46JZrAbQaADjMa3T0lPyaX5itbZ7as/Du7YN61OeJYt0l+RwZaD343EqDQdW/yHcZKo=</ds:SignatureValue>
<ds:KeyInfo Id="KeyId-6603598">
<wsse:SecurityTokenReference \
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
wsu:Id="STRId-33414193"> <wsse:Reference URI="#CertId-5528252" \
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</soapenv:Header>
<soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
wsu:Id="id-27667505">
<xenc:EncryptedData Id="EncDataId-27667505" \
Type="http://www.w3.org/2001/04/xmlenc#Content">
<xenc:EncryptionMethod \
Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"></xenc:EncryptionMethod> \
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference \
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:Reference URI="#EncKeyId-24054760"></wsse:Reference>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>gtXUqttW8BZb0gjNFhHETJsKKGtpuqVetLBfFaPPnATxiwocB9ulk \
HSiNbHWtK1WQItkGbD7cTX1z1uHLFLNQzLGOuquuXESjEyq8+oSYBd938YmUyokoxUJ3NZgdWbpGqpBv7M+mI1 \
RnhIYzC5D+4MHGabG68ae7w5HHeE9Lx5y8iCh4BJVc+A9HMqWTmORnOZwo1m2/PXZMmfbZLC/CJovZox5PDWDF \
Sf0W6yuzIamuHOYVVeGAPZNvPkzzjkSDlvpCDoPGegrSHNosuTRbfTLyC9waRIing7cvauTPBTmHbe/lIFdioU \
K0SMKZXVsDEQJDUQxzXXzE1XZad7OoQC42h7VUdF1xovdlCz/C/xIB0tr28fcibKPw/U3FAZKZKTcIc9azIvmW \
USqcLkdeaTXj+PZ1Hm13dX7Xwtp5ERJdW7RHWuy0LifrwU+lXo2NTokBKQhAcHlt6HJp7G/BUyMIb3ySjFcnqk \
LNkkozzormZKIYHbjz1YkkFvcnKlIoAPJLNbzN+Yn1GXt1mvl3rjMUDUGTGZ0Zq/F67cRrn7iXtoaY6bM0GXV1 \
Oq13UWxoErd78zBMt7pkgBoKjcD4D74v/1zZaKC/aZ8fDz5XI6D0Y3napajnm00tggX2c8bGjrjg41HqwYrSsQ \
mzh9Fmv97jmUmg0JKUAi9cJ9CKJGTaMrNnWD7RRdHrt1ay5YCjNJDmVCJ5KbM6K9RLkpt+3vgUDD9KxjkTbZU7 \
inSaD8MUMt5M9KOWx+biqre2T2eVtsbpZd6nfbQjw7ejAKYoar2T+5oSyLtFqMZVXDXg1gKIUq0XZLoCLrnuf0 \
C6QEw3nDOkKxMYuxeqfjHZ4TFLg8k2VSlaUkJ7KuBgQg++5RKBZpKnPaxD6o01GpIa17bHLKk4YG78zmxM8fCyuPYcKyIKJURD+CSGKpFXqNIByjQe7Xtaxm274eNhmpbkDI3</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</soapenv:Body>
</soapenv:Envelope>
OUT (RESPONSE) problem in with this packet at the client side!!!!
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Date: Thu, 29 May 2008 17:15:57 GMT
Server: Apache Coyote/1.0
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" \
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" \
xmlns:xsd="http://www.w3.org/2001/XMLSchema" \
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header>
<wsse:Security \
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" \
soapenv:mustUnderstand="1">
<wsu:Timestamp \
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
wsu:Id="Timestamp-23220779"> <wsu:Created>2008-05-29T17:15:57.296Z</wsu:Created>
<wsu:Expires>2008-05-29T17:20:57.296Z</wsu:Expires>
</wsu:Timestamp>
<wsse:BinarySecurityToken \
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" \
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" \
wsu:Id="EncCertId-5528252">MIIDPjCCAqegAwIBAgIBBDANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJ \
DSDEPMA0GA1UECBMGR2VuZXZhMQ8wDQYDVQQHEwZHZW5ldmExCzAJBgNVBAoTAmNhMQswCQYDVQQLEwJjYTELM \
AkGA1UEAxMCY2ExJzAlBgkqhkiG9w0BCQEWGGl0ZGJvbmxpbmVwbHVzQHVuZWNlLm9yZzAeFw0wODA0MjUxNDU \
5MDNaFw0yODA0MjAxNDU5MDNaMGIxCzAJBgNVBAYTAkNIMQ8wDQYDVQQIEwZHZW5ldmExDzANBgNVBAcTBkdlb \
mV2YTEPMA0GA1UEChMGY2xpZW50MQ8wDQYDVQQLEwZjbGllbnQxDzANBgNVBAMTBmNsaWVudDCBnzANBgkqhki \
G9w0BAQEFAAOBjQAwgYkCgYEAuRqcEmoZtHI5K17RK+DYA3xPIzUngUMCmMnui5Fa53tv9w+wp0H/EKWRs26W2 \
r3sZJdkyLNuS++R87Yrri3eXnz4rDqyKqkBKwnTAyGmvYEcf/ArVAGby95fUflqxyYQFWjAIinRrabGbvYcSbP \
C+DoBUBjOrGoZwP7SiBiMoTUCAwEAAaOB5jCB4zAdBgNVHQ4EFgQUTKLAk6o9t0veG4D6lpk5sxoMWiIwgbMGA \
1UdIwSBqzCBqIAUu1FuqyKqhCuzYiq1iFPQ9vQS6ZqhgYSkgYEwfzELMAkGA1UEBhMCQ0gxDzANBgNVBAgTBkd \
lbmV2YTEPMA0GA1UEBxMGR2VuZXZhMQswCQYDVQQKEwJjYTELMAkGA1UECxMCY2ExCzAJBgNVBAMTAmNhMScwJ \
QYJKoZIhvcNAQkBFhhpdGRib25saW5lcGx1c0B1bmVjZS5vcmeCCQC3WMb3kvFjjzAMBgNVHRMEBTADAQH/MA0 \
GCSqGSIb3DQEBBQUAA4GBABcPQ9zROxb+tXF5Xunk3gPt6X3492lUU34zJtfUnqQHmUBRAJ85zG2wQ15u7Sv73 \
BmS9+w7QHeUQ649yMdsWHLlpQPHfI7pK2Ki5MqSbREsMOOh3nHxd1AzdO/gn4H6EQJM93V0SEc56mACEEX7ikD/PRCoRDWZaC4VsrGacnUC</wsse:BinarySecurityToken>
<xenc:EncryptedKey Id="EncKeyId-16949413">
<xenc:EncryptionMethod \
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"></xenc:EncryptionMethod> \
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> \
<wsse:SecurityTokenReference> <wsse:Reference URI="#EncCertId-5528252" \
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>mPP1ofeb25GClWT8afn9k70op3CnXUKKHOcRe/QEELe4NuvQsA \
xBtbcPZNFrsChRfi8dRKokp/ql+KbLW208R2E7oX22+yHpWzbwf/CVhJF4vWN3k6doU/f8Gs2NjCuth9VQM/gFUuA+4oVYWY3A4huCJny6rhzRejDdMKtVdGE=</xenc:CipherValue>
</xenc:CipherData>
<xenc:ReferenceList>
<xenc:DataReference URI="#EncDataId-9135999"></xenc:DataReference>
</xenc:ReferenceList>
</xenc:EncryptedKey>
<wsse:BinarySecurityToken \
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" \
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" \
wsu:Id="CertId-3403220">MIIDPjCCAqegAwIBAgIBAzANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJDSD \
EPMA0GA1UECBMGR2VuZXZhMQ8wDQYDVQQHEwZHZW5ldmExCzAJBgNVBAoTAmNhMQswCQYDVQQLEwJjYTELMAkG \
A1UEAxMCY2ExJzAlBgkqhkiG9w0BCQEWGGl0ZGJvbmxpbmVwbHVzQHVuZWNlLm9yZzAeFw0wODA0MjUxNDU4ND \
JaFw0yODA0MjAxNDU4NDJaMGIxCzAJBgNVBAYTAkNIMQ8wDQYDVQQIEwZHZW5ldmExDzANBgNVBAcTBkdlbmV2 \
YTEPMA0GA1UEChMGc2VydmVyMQ8wDQYDVQQLEwZzZXJ2ZXIxDzANBgNVBAMTBnNlcnZlcjCBnzANBgkqhkiG9w \
0BAQEFAAOBjQAwgYkCgYEAihGx4RUeU3+PRqP8jN7SKXKclQ8XJY7FHL8BpD7C1tzW5zYCmT2QQUth7qJXN/9v \
LpU/AYhwo32vK9h+4vV20HpH6F7WGkU3ANTW0s9Ilp6GbHbdxLkvpZECvEbvDcL+0AnAY7E5RNSVjFVUJgQbid \
zeRD7BbYE8CK+zOGRJnr8CAwEAAaOB5jCB4zAdBgNVHQ4EFgQUGwfVW9D2mGmG9oulRSqjjmTK5GMwgbMGA1Ud \
IwSBqzCBqIAUu1FuqyKqhCuzYiq1iFPQ9vQS6ZqhgYSkgYEwfzELMAkGA1UEBhMCQ0gxDzANBgNVBAgTBkdlbm \
V2YTEPMA0GA1UEBxMGR2VuZXZhMQswCQYDVQQKEwJjYTELMAkGA1UECxMCY2ExCzAJBgNVBAMTAmNhMScwJQYJ \
KoZIhvcNAQkBFhhpdGRib25saW5lcGx1c0B1bmVjZS5vcmeCCQC3WMb3kvFjjzAMBgNVHRMEBTADAQH/MA0GCS \
qGSIb3DQEBBQUAA4GBADt0Ri+tJ8t9DascKYGdjW7LWeU5tdYiSqpcBonZ+wm3wpc9fuggtyAUmY1GhP61LtUk \
iK85Fnyt7NghItJiKTR9D4DYGEgA+mAg6p3LRU+Sbvqtv2R7d4W8Z1myGoLoumzCiIRduEx4a0qtHYG6XJO21YeRnLICuCvzgT8U85w7</wsse:BinarySecurityToken>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" \
Id="Signature-9383078"> <ds:SignedInfo>
<ds:CanonicalizationMethod \
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
<ds:SignatureMethod \
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod> \
<ds:Reference URI="#id-9135999"> <ds:Transforms>
<ds:Transform \
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform> </ds:Transforms>
<ds:DigestMethod \
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
<ds:DigestValue>Y0Sm8T/zHl/g6gOEAibePh7+djs=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#SigConf-7859095">
<ds:Transforms>
<ds:Transform \
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform> </ds:Transforms>
<ds:DigestMethod \
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
<ds:DigestValue>CboJgDGEHxRZExUWQVptuNYaQqk=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>LphwR9tqivq9IMG109GGswKMhz1iaeYOwYeN2UGpWqyx6q7YRRrP \
Ej8x+PAbzlNIo22hlUCHg70tEzvhDLU6CQoiBkMLGFCbuwL0uqvVdEb4uLL4p4NA0u/J2bh/u8NnS20B2SsyuFhILNCtukbjbFx+oj+GYLbaUfh4fwSjkQM=</ds:SignatureValue>
<ds:KeyInfo Id="KeyId-30949593">
<wsse:SecurityTokenReference \
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
wsu:Id="STRId-9012544"> <wsse:Reference URI="#CertId-3403220" \
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
<wsse11:SignatureConfirmation \
xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd" \
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
Value="aFr7oWN6FjHratE/pWq83x2JhSmV01JCYrXaAEdwEn3dFIVGYgySoGZIOuMJFZy5R9BIFZcBWb+c4Z3 \
gOAQ8S6wg12uV7TIVFt3suR6F46JZrAbQaADjMa3T0lPyaX5itbZ7as/Du7YN61OeJYt0l+RwZaD343EqDQdW/yHcZKo=" \
wsu:Id="SigConf-7859095"></wsse11:SignatureConfirmation> </wsse:Security>
</soapenv:Header>
<soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
wsu:Id="id-9135999">
<xenc:EncryptedData Id="EncDataId-9135999" \
Type="http://www.w3.org/2001/04/xmlenc#Content">
<xenc:EncryptionMethod \
Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"></xenc:EncryptionMethod> \
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference \
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:Reference URI="#EncKeyId-16949413"></wsse:Reference>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>dqrhc3U73nvB3s6e5GkVsjjFJ+DSbu8qzS9oBKBOWQ24CM4rKVqbT \
L3qUGAZ4W/yA9s2bxaOKwU89MHHoDQdF6oZoMPG+op32P2Y0ECpPhJ0OWV34QPV/U/sv0M6SZ+bMpMQI9OXa6i \
U45vZ2wd2bLOtc6+AssiQnCRhQ/0YuavHXQFawTb9wSGcCrShlu+HZFb5thMkmZE4cYBq+AoEWtPDnoZdL3mq9 \
kjXGiOFg410EkOZqF0GbKE2YP2pxaZmWLxJTV0a2i44lN0Z/BC+IZKnFvDOraJJNnzn2LgN1O49wq1cJe2QPfa \
3ie84aV+MMyUioX70VVZODY2KSMqlk+j2XOyp/oOZnotQRk0iJ3DqcVZe1ZsUmDyVecRY1w4kBGXAtpn2Ro11F \
frNzg/uM6w4OCgH5o8TvMO26mCDqHRYQN6uuCiYeCu8phUvA6HjlslidSdLaMu67O1/ENAvF7RvoVrJH6a7Zc2 \
dYEbszTQP7ZGhY9kDr37AY9wwOlAJ1TiS//PdaY7jGQjpXinAPY6H6tGCcdXxOLjHaQWZteY6mVsKOpPNCdzFy \
3jEXVzy7+7ztlHyA4Jxa+BPKcxaO6SHMC3lNdVjQlQ5FCAa2cba5PL77EFgtZH907IWp/f1WUqzUCDHst++HXA \
fdXelzmAgZyesR+lGllGSWVrteA48ewCDpIicqdIniPdVHgLKsBdaXNm4wB0xVOsa/QF9nitSWiDaU7DKj+8s8 \
eEE0RqROqF2dy2D0xq/e2d3kL/P1HzUphQCe0c7BFCiaOP2oxNJGC9wrgE4PKaafUJQTDXJk/uMIffK99BMtWa \
uP4z6nOOyxtR1uXg4ZRyBSSJkgWAUdUoOlyLNjvrKAzOuogvKiaHCQuov1AJAMFjhkoge8xRv3k8QLPp9Fw97h \
RZR6S74JLT0Ecsb+4VyL3IuFe3SMTvK7SV5O9qxe8J6U+30FoOsYUOw1VbCgUmjSvwxZOQXC+6MFAc5P/Jcqh1a0ohfQU9FG5+xayQIRyNIrl/65pHlbSAWm7hT+hG0Kg62lp1XvGfOBPmwGgTeZQJv
L4fQ1TQNNiN70W25eXCNEqtsLPiwo34ttZO3ou0ORtx88mQWYH6yO/v6envvwfon6Sx2bazlgV0s
GTX+erNVFOWxGDH1dmvZ72TjEJrcB+NM+TYi1/1AYw9qqYrt50WMIcOY74awuF9hhdw1oUjJFVZt
WHTSVVBFqwn/qOnx/U5oJtJ3ooREzROVgKqYxM0LXfcT4Ju4Icq1MvAJxe0e3lT1</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</soapenv:Body>
</soapenv:Envelope>
was:
Hello,
I wrote this wsdl which is working fine when using Axis 1.4 for the server and the \
client. I try to send an object and I receive the same object into an array serveral \
times. This is working fine with Axis 1.4. The wsdl file follows below.
When I apply the handlers from WSS4J. then the problem arises.
I alradey checked it is not a problem of encryption or decripton. the proof is that I \
may exchange the previous wsdl but only sending an object and receving an object. \
When I try to send the the response as an array I got the following error.
I need to go to the production phase because I invest a lot of time in trying to \
interoperate with .net in a secure way. Thing that I succeed. See blog \
http://magnot.blogspot.com/2008/04/secure-web-services-interoperability.html
I though I did the more difficult achieving interoperability with the JKS and PKCS12 \
but now I am not able to receive the response of arrays whenever I use the wss4j.
May you please help me?
I may collaborate in sending you the files or whatever information is necessary!
Thank you in advance.
ERROR.
Error I get at the client (whenever I receive an array of object)
- Verification successful for URI "#id-9135999"
- Verification successful for URI "#SigConf-7859095"
- Exception:
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is \
NOT expected, in something it was trying to deserialize. at \
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2467)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at org.unece.tir.wss.itdbonlineplus.testscomplex.client.BasicComplexTypeSOAPSoapBindingStub.getBasicComplexType(BasicComplexTypeSOAPSoapBindingStub.java:201)
at org.unece.tir.wss.itdbonlineplus.testscomplex.client.Tester.singleArrayExchange(Tester.java:42)
at org.unece.tir.wss.itdbonlineplus.testscomplex.client.Tester.main(Tester.java:13)
; nested exception is:
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is \
NOT expected, in something it was trying to deserialize.
WSDL file:
<?xml version="1.0" encoding="utf-8"?>
<!--
Version: 1.0
Author: Jose Ferreiro
Last Updated: 01/02/2007
-->
<wsdl:definitions name="TIR secure Web Services"
targetNamespace="http://webservices.tir.unece.org/itdbonlineplus"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://webservices.tir.unece.org/itdbonlineplus"
xmlns:intf="http://webservices.tir.unece.org/itdbonlineplus"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema
elementFormDefault="qualified"
targetNamespace="http://webservices.tir.unece.org/itdbonlineplus"
xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="ComplexTypeRequest">
<annotation>
<documentation>
operation request element
</documentation>
</annotation>
<sequence>
<element name="stringType" type="xsd:string" nillable ="false" \
minOccurs="1" maxOccurs="1"/>
<element name="integerType" type="xsd:int" nillable ="false" \
minOccurs="1" maxOccurs="1"/>
<element name="doubleType" type="xsd:double" nillable ="false" \
minOccurs="1" maxOccurs="1"/>
<element name="booleanType" type="xsd:boolean" nillable ="false" \
minOccurs="1" maxOccurs="1"/>
<element name="dataTimeType" type="xsd:dateTime" nillable ="false" \
minOccurs="1" maxOccurs="1"/> </sequence>
</complexType>
<!--complexType name="ComplexTypeResponse">
<annotation>
<documentation>
operation response element
</documentation>
</annotation>
<sequence>
<element name="stringType" type="xsd:string" />
<element name="integerType" type="xsd:int" />
<element name="doubleType" type="xsd:double" />
<element name="booleanType" type="xsd:boolean" />
<element name="dataTimeType" type="xsd:dateTime" />
</sequence>
</complexType-->
<complexType name="ComplexTypeResponse">
<annotation>
<documentation>
operation response element
</documentation>
</annotation>
<sequence>
<element name="resultItem" minOccurs="1" maxOccurs="unbounded" \
type="impl:resultItem"> </element>
</sequence>
</complexType>
<complexType name="resultItem">
<sequence>
<element name="stringType" type="xsd:string" />
<element name="integerType" type="xsd:int" />
<element name="doubleType" type="xsd:double" />
<element name="booleanType" type="xsd:boolean" />
<element name="dataTimeType" type="xsd:dateTime" />
</sequence>
</complexType>
<complexType name="ComplexTypeRequestFault">
<annotation>
<documentation>
fault element
</documentation>
</annotation>
<sequence>
<element name="errorCode" type="xsd:int" />
<element name="errorDescription" type="xsd:string" />
</sequence>
</complexType>
<complexType name="ComplexTypeRequestFault2">
<annotation>
<documentation>
fault element
</documentation>
</annotation>
<sequence>
<element name="errorCode" type="xsd:int" nillable \
="false" minOccurs="1" maxOccurs="1"/>
<element name="errorDescription" type="xsd:string" nillable= \
"false" minOccurs="1" maxOccurs="1"/> </sequence>
</complexType>
<element name="ComplexTypeRequest" \
type="impl:ComplexTypeRequest" > <annotation>
<documentation>
Container for the categorical subject and natural language \
subject classifications. </documentation>
</annotation>
</element>
<element name="ComplexTypeResponse" \
type="impl:ComplexTypeResponse" />
<element name="ComplexTypeRequestFault" \
type="impl:ComplexTypeRequestFault" />
<element name="ComplexTypeRequestFault2" \
type="impl:ComplexTypeRequestFault2" /> </schema>
</wsdl:types>
<wsdl:message name="BasicComplexTypeRequest">
<wsdl:documentation>No arguments; we just want the list</wsdl:documentation>
<wsdl:part element="impl:ComplexTypeRequest" name="ComplexTypeRequest" />
</wsdl:message>
<wsdl:message name="BasicComplexTypeResponse">
<wsdl:part element="impl:ComplexTypeResponse" name="ComplexTypeResponse" />
</wsdl:message>
<wsdl:message name="ComplexTypeRequestFaultMessage">
<wsdl:documentation>Error message if the request has invalid \
parameters</wsdl:documentation> <wsdl:part element="impl:ComplexTypeRequestFault" \
name="ComplexTypeRequestFault" /> </wsdl:message>
<wsdl:message name="ComplexTypeRequestFaultMessage2">
<wsdl:documentation>Error message if the request has invalid \
parameters</wsdl:documentation> <wsdl:part element="impl:ComplexTypeRequestFault2" \
name="ComplexTypeRequestFault2" /> </wsdl:message>
<wsdl:portType name="BasicComplexPort">
<wsdl:documentation>
SERVICE "METHODS" - The actual set of operations the
service is capable of supporting. For each we can have a
message that goes in and a message that comes out (though
not always both; see for instance the background search
submission / notification operations).
The "portType" section combines messages into operations.
This will be like the "methods". Our operations are all
query-response, so each operation has an input message
and an output message.
</wsdl:documentation>
<wsdl:operation name="getBasicComplexType">
<wsdl:documentation>This wsdl is just an example to show how complex types may \
be used and nested.</wsdl:documentation>
<wsdl:input name="BasicComplexTypeRequest" \
message="impl:BasicComplexTypeRequest" />
<wsdl:output name="BasicComplexTypeResponse" \
message="impl:BasicComplexTypeResponse" />
<wsdl:fault name="ComplexTypeRequestFaultMessage" \
message="impl:ComplexTypeRequestFaultMessage"/>
<wsdl:fault name="ComplexTypeRequestFaultMessage2" \
message="impl:ComplexTypeRequestFaultMessage2"/> </wsdl:operation>
</wsdl:portType>
<wsdl:binding name="BasicComplexTypeSOAPSoapBinding" type="impl:BasicComplexPort">
<wsdlsoap:binding style="document" \
transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation \
name="getBasicComplexType">
<wsdlsoap:operation \
soapAction="http://BasicComplexType.wsdl.test/BasicComplexType" />
<wsdl:input name="BasicComplexTypeRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output name="BasicComplexTypeResponse">
<wsdlsoap:body use="literal" />
</wsdl:output>
<wsdl:fault name="ComplexTypeRequestFaultMessage">
<wsdlsoap:fault use="literal" />
</wsdl:fault>
<wsdl:fault name="ComplexTypeRequestFaultMessage2">
<wsdlsoap:fault use="literal" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="BasicComplexTypeExampleService">
<wsdl:port name="Associations1" binding="impl:BasicComplexTypeSOAPSoapBinding" >
<wsdlsoap:address location="http://ece-96242:8080/axis/services/Associations1" \
/> </wsdl:port>
</wsdl:service>
</wsdl:definitions>
> Arrays of objects from axis 1.4 are not properly deseralized when applying WSS4J on \
> top of Axis 1.4. Note:
> -----------------------------------------------------------------------------------------------------------
>
> Key: WSS-120
> URL: https://issues.apache.org/jira/browse/WSS-120
> Project: WSS4J
> Issue Type: Bug
> Affects Versions: 1.5.3
> Environment: JDK1.6.0_05, eclipse 3.3, axis 1.4, wss4j 1.5.3
> Reporter: José Ferreiro
> Assignee: Ruchith Udayanga Fernando
> Priority: Blocker
> Fix For: 1.5.3
>
>
> Hello,
> I wrote this wsdl which is working fine when using Axis 1.4 for the server and the \
> client. I try to send an object and I receive the same object into an array \
> serveral times. This is working fine with Axis 1.4. The wsdl file follows below.
> When I apply the handlers from WSS4J. then the problem arises . I perform: \
> Signature Encrypt Timestamp I alradey checked it is not a problem of encryption or \
> decripton. the proof is that I may exchange the previous wsdl but only sending an \
> object and receving an object. When I try to send the the response as an array I \
> got the following error. I need to go to the production phase because I invest a \
> lot of time in trying to interoperate with .net in a secure way. Thing that I \
> succeed. See blog \
> http://magnot.blogspot.com/2008/04/secure-web-services-interoperability.html I \
> though I did the more difficult achieving interoperability with the JKS and PKCS12 \
> but now I am not able to receive the response of arrays whenever I use the wss4j. \
> May you please help me? I may collaborate in sending you the files or whatever \
> information is necessary! Thank you in advance.
> ERROR.
> Error I get at the client (whenever I receive an array of object)
> - Verification successful for URI "#id-9135999"
> - Verification successful for URI "#SigConf-7859095"
> - Exception:
> org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is \
> NOT expected, in something it was trying to deserialize. at \
> org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
> at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
> at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
> at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
> at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
> at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
> at org.apache.axis.client.Call.invoke(Call.java:2467)
> at org.apache.axis.client.Call.invoke(Call.java:2366)
> at org.apache.axis.client.Call.invoke(Call.java:1812)
> at org.unece.tir.wss.itdbonlineplus.testscomplex.client.BasicComplexTypeSOAPSoapBindingStub.getBasicComplexType(BasicComplexTypeSOAPSoapBindingStub.java:201)
> at org.unece.tir.wss.itdbonlineplus.testscomplex.client.Tester.singleArrayExchange(Tester.java:42)
> at org.unece.tir.wss.itdbonlineplus.testscomplex.client.Tester.main(Tester.java:13)
> ; nested exception is:
> org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is \
> NOT expected, in something it was trying to deserialize. WSDL file:
> <?xml version="1.0" encoding="utf-8"?>
> <!--
>
> Version: 1.0
> Author: Jose Ferreiro
> Last Updated: 01/02/2007
> -->
> <wsdl:definitions name="TIR secure Web Services"
> targetNamespace="http://webservices.tir.unece.org/itdbonlineplus"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="http://webservices.tir.unece.org/itdbonlineplus"
> xmlns:intf="http://webservices.tir.unece.org/itdbonlineplus"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
>
> <wsdl:types>
> <schema
> elementFormDefault="qualified"
> targetNamespace="http://webservices.tir.unece.org/itdbonlineplus"
> xmlns="http://www.w3.org/2001/XMLSchema">
>
>
> <complexType name="ComplexTypeRequest">
> <annotation>
> <documentation>
> operation request element
> </documentation>
> </annotation>
> <sequence>
> <element name="stringType" type="xsd:string" nillable ="false" minOccurs="1" \
> maxOccurs="1"/> <element name="integerType" type="xsd:int" nillable ="false" \
> minOccurs="1" maxOccurs="1"/> <element name="doubleType" type="xsd:double" \
> nillable ="false" minOccurs="1" maxOccurs="1"/> <element name="booleanType" \
> type="xsd:boolean" nillable ="false" minOccurs="1" maxOccurs="1"/> <element \
> name="dataTimeType" type="xsd:dateTime" nillable ="false" minOccurs="1" \
> maxOccurs="1"/> </sequence>
> </complexType>
>
>
> <!--complexType name="ComplexTypeResponse">
> <annotation>
> <documentation>
> operation response element
> </documentation>
> </annotation>
> <sequence>
> <element name="stringType" type="xsd:string" />
> <element name="integerType" type="xsd:int" />
> <element name="doubleType" type="xsd:double" />
> <element name="booleanType" type="xsd:boolean" />
> <element name="dataTimeType" type="xsd:dateTime" />
> </sequence>
> </complexType-->
>
>
> <complexType name="ComplexTypeResponse">
> <annotation>
> <documentation>
> operation response element
> </documentation>
> </annotation>
> <sequence>
> <element name="resultItem" minOccurs="1" maxOccurs="unbounded" \
> type="impl:resultItem"> </element>
> </sequence>
> </complexType>
>
> <complexType name="resultItem">
> <sequence>
> <element name="stringType" type="xsd:string" />
> <element name="integerType" type="xsd:int" />
> <element name="doubleType" type="xsd:double" />
> <element name="booleanType" type="xsd:boolean" />
> <element name="dataTimeType" type="xsd:dateTime" />
> </sequence>
> </complexType>
>
>
>
>
> <complexType name="ComplexTypeRequestFault">
> <annotation>
> <documentation>
> fault element
> </documentation>
> </annotation>
> <sequence>
> <element name="errorCode" type="xsd:int" />
> <element name="errorDescription" type="xsd:string" />
> </sequence>
> </complexType>
>
>
> <complexType name="ComplexTypeRequestFault2">
> <annotation>
> <documentation>
> fault element
> </documentation>
> </annotation>
> <sequence>
> <element name="errorCode" type="xsd:int" nillable ="false" minOccurs="1" \
> maxOccurs="1"/> <element name="errorDescription" type="xsd:string" nillable= \
> "false" minOccurs="1" maxOccurs="1"/> </sequence>
> </complexType>
>
> <element name="ComplexTypeRequest" type="impl:ComplexTypeRequest" \
> > <annotation>
> <documentation>
> Container for the categorical subject and natural language subject classifications.
> </documentation>
> </annotation>
> </element>
>
> <element name="ComplexTypeResponse" type="impl:ComplexTypeResponse" \
> /> <element name="ComplexTypeRequestFault" type="impl:ComplexTypeRequestFault" /> \
> <element name="ComplexTypeRequestFault2" type="impl:ComplexTypeRequestFault2" />
> </schema>
> </wsdl:types>
> <wsdl:message name="BasicComplexTypeRequest">
> <wsdl:documentation>No arguments; we just want the list</wsdl:documentation>
> <wsdl:part element="impl:ComplexTypeRequest" name="ComplexTypeRequest" />
> </wsdl:message>
> <wsdl:message name="BasicComplexTypeResponse">
> <wsdl:part element="impl:ComplexTypeResponse" name="ComplexTypeResponse" />
> </wsdl:message>
>
> <wsdl:message name="ComplexTypeRequestFaultMessage">
> <wsdl:documentation>Error message if the request has invalid \
> parameters</wsdl:documentation> <wsdl:part element="impl:ComplexTypeRequestFault" \
> name="ComplexTypeRequestFault" /> </wsdl:message>
>
> <wsdl:message name="ComplexTypeRequestFaultMessage2">
> <wsdl:documentation>Error message if the request has invalid \
> parameters</wsdl:documentation> <wsdl:part element="impl:ComplexTypeRequestFault2" \
> name="ComplexTypeRequestFault2" /> </wsdl:message>
>
>
>
> <wsdl:portType name="BasicComplexPort">
> <wsdl:documentation>
> SERVICE "METHODS" - The actual set of operations the
> service is capable of supporting. For each we can have a
> message that goes in and a message that comes out (though
> not always both; see for instance the background search
> submission / notification operations).
> The "portType" section combines messages into operations.
> This will be like the "methods". Our operations are all
> query-response, so each operation has an input message
> and an output message.
> </wsdl:documentation>
>
> <wsdl:operation name="getBasicComplexType">
> <wsdl:documentation>This wsdl is just an example to show how complex types may be \
> used and nested.</wsdl:documentation> <wsdl:input name="BasicComplexTypeRequest" \
> message="impl:BasicComplexTypeRequest" /> <wsdl:output \
> name="BasicComplexTypeResponse" message="impl:BasicComplexTypeResponse" \
> /> <wsdl:fault name="ComplexTypeRequestFaultMessage" \
> message="impl:ComplexTypeRequestFaultMessage"/> <wsdl:fault \
> name="ComplexTypeRequestFaultMessage2" \
> message="impl:ComplexTypeRequestFaultMessage2"/> </wsdl:operation>
>
>
> </wsdl:portType>
>
> <wsdl:binding name="BasicComplexTypeSOAPSoapBinding" type="impl:BasicComplexPort">
>
> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" \
> /> <wsdl:operation name="getBasicComplexType">
> <wsdlsoap:operation soapAction="http://BasicComplexType.wsdl.test/BasicComplexType" \
> />
> <wsdl:input name="BasicComplexTypeRequest">
> <wsdlsoap:body use="literal" />
> </wsdl:input>
>
> <wsdl:output name="BasicComplexTypeResponse">
> <wsdlsoap:body use="literal" />
> </wsdl:output>
>
> <wsdl:fault name="ComplexTypeRequestFaultMessage">
> <wsdlsoap:fault use="literal" />
> </wsdl:fault>
>
> <wsdl:fault name="ComplexTypeRequestFaultMessage2">
> <wsdlsoap:fault use="literal" />
> </wsdl:fault>
>
> </wsdl:operation>
>
>
>
> </wsdl:binding>
>
> <wsdl:service name="BasicComplexTypeExampleService">
> <wsdl:port name="Associations1" binding="impl:BasicComplexTypeSOAPSoapBinding" >
> <wsdlsoap:address location="http://ece-96242:8080/axis/services/Associations1" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> Exchanged messages using Axis 1.4 (able to deserialize properly at the client the \
> out response) IN (request)
> POST http://ece-96242:8080/axis/services/Associations1 HTTP/1.0
> Content-Type: text/xml; charset=utf-8
> Accept: application/soap+xml, application/dime, multipart/related, text/*
> User-Agent: Axis/1.4
> Host: 127.0.0.1:1234
> Cache-Control: no-cache
> Pragma: no-cache
> SOAPAction: "http://BasicComplexType.wsdl.test/BasicComplexType"
> Content-Length: 615
> <?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>
> <ComplexTypeRequest xmlns="http://webservices.tir.unece.org/itdbonlineplus">
> <stringType>Client-29-May-José Ferreiro (request from the client's computer to \
> the server)</stringType> <integerType>1975</integerType>
> <doubleType>1975.1975</doubleType>
> <booleanType>true</booleanType>
> <dataTimeType>2008-05-29T17:13:13.437Z</dataTimeType>
> </ComplexTypeRequest>
> </soapenv:Body>
> </soapenv:Envelope>
> OUT (RESPONSE)
> HTTP/1.1 200 OK
> Content-Type: text/xml; charset=utf-8
> Date: Thu, 29 May 2008 17:13:13 GMT
> Server: Apache Coyote/1.0
> Connection: close
> <?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>
> <ComplexTypeResponse xmlns="http://webservices.tir.unece.org/itdbonlineplus">
> <resultItem>
> <stringType>Vector 1-29-May - José Ferreiro (response from Server to the \
> client)</stringType> <integerType>1975</integerType>
> <doubleType>1975.1975</doubleType>
> <booleanType>true</booleanType>
> <dataTimeType>2008-05-29T17:13:13.921Z</dataTimeType>
> </resultItem>
> <resultItem>
> <stringType>Vector 2-29-May - José Ferreiro (response from Server to the \
> client)</stringType> <integerType>1975</integerType>
> <doubleType>1975.1975</doubleType>
> <booleanType>true</booleanType>
> <dataTimeType>2008-05-29T17:13:13.921Z</dataTimeType>
> </resultItem>
> </ComplexTypeResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> IN Encrypted (Signature Encrypt Timestamp )
> POST http://ece-96242:8080/axis/services/Associations1 HTTP/1.0
> Content-Type: text/xml; charset=utf-8
> Accept: application/soap+xml, application/dime, multipart/related, text/*
> User-Agent: Axis/1.4
> Host: 127.0.0.1:1234
> Cache-Control: no-cache
> Pragma: no-cache
> SOAPAction: "http://BasicComplexType.wsdl.test/BasicComplexType"
> Content-Length: 6039
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" \
> xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" \
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" \
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header>
> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" \
> soapenv:mustUnderstand="1"> <wsu:Timestamp \
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
> wsu:Id="Timestamp-3902281"> <wsu:Created>2008-05-29T17:15:52.281Z</wsu:Created>
> <wsu:Expires>2008-05-29T18:15:52.281Z</wsu:Expires>
> </wsu:Timestamp>
> <xenc:EncryptedKey Id="EncKeyId-24054760">
> <xenc:EncryptionMethod \
> Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"></xenc:EncryptionMethod> \
> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> \
> <wsse:SecurityTokenReference> <ds:X509Data>
> <ds:X509IssuerSerial>
> <ds:X509IssuerName>EMAILADDRESS=itdbonlineplus@unece.org,CN=ca,OU=ca,O=ca,L=Geneva,ST=Geneva,C=CH</ds:X509IssuerName>
> <ds:X509SerialNumber>3</ds:X509SerialNumber>
> </ds:X509IssuerSerial>
> </ds:X509Data>
> </wsse:SecurityTokenReference>
> </ds:KeyInfo>
> <xenc:CipherData>
> <xenc:CipherValue>LLc5swoTXjyKdIfuIARC7WdtfmxCSysUJEENaNneCrDQlVmxl04JcVDWG7j+JqqNGe \
> ZE/fzwd9ukCpQUesTpMKr1M2dp4qozQpduZVALxa/Pgw93JBs+E6mQ9pz/rnx9wCqaRfbxw8T4WXrYbsZoQLS2FjvTtgJqSsowlIb9Uj0=</xenc:CipherValue>
> </xenc:CipherData>
> <xenc:ReferenceList>
> <xenc:DataReference URI="#EncDataId-27667505"></xenc:DataReference>
> </xenc:ReferenceList>
> </xenc:EncryptedKey>
> <wsse:BinarySecurityToken \
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
> EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" \
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" \
> wsu:Id="CertId-5528252">MIIDPjCCAqegAwIBAgIBBDANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJD \
> SDEPMA0GA1UECBMGR2VuZXZhMQ8wDQYDVQQHEwZHZW5ldmExCzAJBgNVBAoTAmNhMQswCQYDVQQLEwJjYTEL \
> MAkGA1UEAxMCY2ExJzAlBgkqhkiG9w0BCQEWGGl0ZGJvbmxpbmVwbHVzQHVuZWNlLm9yZzAeFw0wODA0MjUx \
> NDU5MDNaFw0yODA0MjAxNDU5MDNaMGIxCzAJBgNVBAYTAkNIMQ8wDQYDVQQIEwZHZW5ldmExDzANBgNVBAcT \
> BkdlbmV2YTEPMA0GA1UEChMGY2xpZW50MQ8wDQYDVQQLEwZjbGllbnQxDzANBgNVBAMTBmNsaWVudDCBnzAN \
> BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuRqcEmoZtHI5K17RK+DYA3xPIzUngUMCmMnui5Fa53tv9w+wp0H/ \
> EKWRs26W2r3sZJdkyLNuS++R87Yrri3eXnz4rDqyKqkBKwnTAyGmvYEcf/ArVAGby95fUflqxyYQFWjAIinR \
> rabGbvYcSbPC+DoBUBjOrGoZwP7SiBiMoTUCAwEAAaOB5jCB4zAdBgNVHQ4EFgQUTKLAk6o9t0veG4D6lpk5 \
> sxoMWiIwgbMGA1UdIwSBqzCBqIAUu1FuqyKqhCuzYiq1iFPQ9vQS6ZqhgYSkgYEwfzELMAkGA1UEBhMCQ0gx \
> DzANBgNVBAgTBkdlbmV2YTEPMA0GA1UEBxMGR2VuZXZhMQswCQYDVQQKEwJjYTELMAkGA1UECxMCY2ExCzAJ \
> BgNVBAMTAmNhMScwJQYJKoZIhvcNAQkBFhhpdGRib25saW5lcGx1c0B1bmVjZS5vcmeCCQC3WMb3kvFjjzAM \
> BgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBABcPQ9zROxb+tXF5Xunk3gPt6X3492lUU34zJtfUnqQH \
> mUBRAJ85zG2wQ15u7Sv73BmS9+w7QHeUQ649yMdsWHLlpQPHfI7pK2Ki5MqSbREsMOOh3nHxd1AzdO/gn4H6EQJM93V0SEc56mACEEX7ikD/PRCoRDWZaC4VsrGacnUC</wsse:BinarySecurityToken>
> <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" \
> Id="Signature-16471729"> <ds:SignedInfo>
> <ds:CanonicalizationMethod \
> Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod> \
> <ds:SignatureMethod \
> Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod> \
> <ds:Reference URI="#id-27667505"> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
> <ds:DigestValue>QDcTTH4WvGhyG5g/FlRfaVkQS0M=</ds:DigestValue>
> </ds:Reference>
> </ds:SignedInfo>
> <ds:SignatureValue>aFr7oWN6FjHratE/pWq83x2JhSmV01JCYrXaAEdwEn3dFIVGYgySoGZIOuMJFZy5R \
> 9BIFZcBWb+c4Z3gOAQ8S6wg12uV7TIVFt3suR6F46JZrAbQaADjMa3T0lPyaX5itbZ7as/Du7YN61OeJYt0l+RwZaD343EqDQdW/yHcZKo=</ds:SignatureValue>
> <ds:KeyInfo Id="KeyId-6603598">
> <wsse:SecurityTokenReference \
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
> wsu:Id="STRId-33414193"> <wsse:Reference URI="#CertId-5528252" \
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference>
> </wsse:SecurityTokenReference>
> </ds:KeyInfo>
> </ds:Signature>
> </wsse:Security>
> </soapenv:Header>
> <soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
> wsu:Id="id-27667505"> <xenc:EncryptedData Id="EncDataId-27667505" \
> Type="http://www.w3.org/2001/04/xmlenc#Content"> <xenc:EncryptionMethod \
> Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"></xenc:EncryptionMethod> \
> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> \
> <wsse:SecurityTokenReference \
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
> <wsse:Reference URI="#EncKeyId-24054760"></wsse:Reference>
> </wsse:SecurityTokenReference>
> </ds:KeyInfo>
> <xenc:CipherData>
> <xenc:CipherValue>gtXUqttW8BZb0gjNFhHETJsKKGtpuqVetLBfFaPPnATxiwocB9ulkHSiNbHWtK1WQI \
> tkGbD7cTX1z1uHLFLNQzLGOuquuXESjEyq8+oSYBd938YmUyokoxUJ3NZgdWbpGqpBv7M+mI1RnhIYzC5D+4 \
> MHGabG68ae7w5HHeE9Lx5y8iCh4BJVc+A9HMqWTmORnOZwo1m2/PXZMmfbZLC/CJovZox5PDWDFSf0W6yuzI \
> amuHOYVVeGAPZNvPkzzjkSDlvpCDoPGegrSHNosuTRbfTLyC9waRIing7cvauTPBTmHbe/lIFdioUK0SMKZX \
> VsDEQJDUQxzXXzE1XZad7OoQC42h7VUdF1xovdlCz/C/xIB0tr28fcibKPw/U3FAZKZKTcIc9azIvmWUSqcL \
> kdeaTXj+PZ1Hm13dX7Xwtp5ERJdW7RHWuy0LifrwU+lXo2NTokBKQhAcHlt6HJp7G/BUyMIb3ySjFcnqkLNk \
> kozzormZKIYHbjz1YkkFvcnKlIoAPJLNbzN+Yn1GXt1mvl3rjMUDUGTGZ0Zq/F67cRrn7iXtoaY6bM0GXV1O \
> q13UWxoErd78zBMt7pkgBoKjcD4D74v/1zZaKC/aZ8fDz5XI6D0Y3napajnm00tggX2c8bGjrjg41HqwYrSs \
> Qmzh9Fmv97jmUmg0JKUAi9cJ9CKJGTaMrNnWD7RRdHrt1ay5YCjNJDmVCJ5KbM6K9RLkpt+3vgUDD9KxjkTb \
> ZU7inSaD8MUMt5M9KOWx+biqre2T2eVtsbpZd6nfbQjw7ejAKYoar2T+5oSyLtFqMZVXDXg1gKIUq0XZLoCL \
> rnuf0C6QEw3nDOkKxMYuxeqfjHZ4TFLg8k2VSlaUkJ7KuBgQg++5RKBZpKnPaxD6o01GpIa17bHLKk4YG78zmxM8fCyuPYcKyIKJURD+CSGKpFXqNIByjQe7Xtaxm274eNhmpbkDI3</xenc:CipherValue>
> </xenc:CipherData>
> </xenc:EncryptedData>
> </soapenv:Body>
> </soapenv:Envelope>
> OUT (RESPONSE) problem in with this packet at the client side!!!!
> HTTP/1.1 200 OK
> Content-Type: text/xml; charset=utf-8
> Date: Thu, 29 May 2008 17:15:57 GMT
> Server: Apache Coyote/1.0
> Connection: close
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" \
> xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" \
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" \
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header>
> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" \
> soapenv:mustUnderstand="1"> <wsu:Timestamp \
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
> wsu:Id="Timestamp-23220779"> <wsu:Created>2008-05-29T17:15:57.296Z</wsu:Created>
> <wsu:Expires>2008-05-29T17:20:57.296Z</wsu:Expires>
> </wsu:Timestamp>
> <wsse:BinarySecurityToken \
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
> EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" \
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" \
> wsu:Id="EncCertId-5528252">MIIDPjCCAqegAwIBAgIBBDANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGE \
> wJDSDEPMA0GA1UECBMGR2VuZXZhMQ8wDQYDVQQHEwZHZW5ldmExCzAJBgNVBAoTAmNhMQswCQYDVQQLEwJjY \
> TELMAkGA1UEAxMCY2ExJzAlBgkqhkiG9w0BCQEWGGl0ZGJvbmxpbmVwbHVzQHVuZWNlLm9yZzAeFw0wODA0M \
> jUxNDU5MDNaFw0yODA0MjAxNDU5MDNaMGIxCzAJBgNVBAYTAkNIMQ8wDQYDVQQIEwZHZW5ldmExDzANBgNVB \
> AcTBkdlbmV2YTEPMA0GA1UEChMGY2xpZW50MQ8wDQYDVQQLEwZjbGllbnQxDzANBgNVBAMTBmNsaWVudDCBn \
> zANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuRqcEmoZtHI5K17RK+DYA3xPIzUngUMCmMnui5Fa53tv9w+wp \
> 0H/EKWRs26W2r3sZJdkyLNuS++R87Yrri3eXnz4rDqyKqkBKwnTAyGmvYEcf/ArVAGby95fUflqxyYQFWjAI \
> inRrabGbvYcSbPC+DoBUBjOrGoZwP7SiBiMoTUCAwEAAaOB5jCB4zAdBgNVHQ4EFgQUTKLAk6o9t0veG4D6l \
> pk5sxoMWiIwgbMGA1UdIwSBqzCBqIAUu1FuqyKqhCuzYiq1iFPQ9vQS6ZqhgYSkgYEwfzELMAkGA1UEBhMCQ \
> 0gxDzANBgNVBAgTBkdlbmV2YTEPMA0GA1UEBxMGR2VuZXZhMQswCQYDVQQKEwJjYTELMAkGA1UECxMCY2ExC \
> zAJBgNVBAMTAmNhMScwJQYJKoZIhvcNAQkBFhhpdGRib25saW5lcGx1c0B1bmVjZS5vcmeCCQC3WMb3kvFjj \
> zAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBABcPQ9zROxb+tXF5Xunk3gPt6X3492lUU34zJtfUn \
> qQHmUBRAJ85zG2wQ15u7Sv73BmS9+w7QHeUQ649yMdsWHLlpQPHfI7pK2Ki5MqSbREsMOOh3nHxd1AzdO/gn4H6EQJM93V0SEc56mACEEX7ikD/PRCoRDWZaC4VsrGacnUC</wsse:BinarySecurityToken>
> <xenc:EncryptedKey Id="EncKeyId-16949413">
> <xenc:EncryptionMethod \
> Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"></xenc:EncryptionMethod> \
> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> \
> <wsse:SecurityTokenReference> <wsse:Reference URI="#EncCertId-5528252" \
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference>
> </wsse:SecurityTokenReference>
> </ds:KeyInfo>
> <xenc:CipherData>
> <xenc:CipherValue>mPP1ofeb25GClWT8afn9k70op3CnXUKKHOcRe/QEELe4NuvQsAxBtbcPZNFrsChRfi \
> 8dRKokp/ql+KbLW208R2E7oX22+yHpWzbwf/CVhJF4vWN3k6doU/f8Gs2NjCuth9VQM/gFUuA+4oVYWY3A4huCJny6rhzRejDdMKtVdGE=</xenc:CipherValue>
> </xenc:CipherData>
> <xenc:ReferenceList>
> <xenc:DataReference URI="#EncDataId-9135999"></xenc:DataReference>
> </xenc:ReferenceList>
> </xenc:EncryptedKey>
> <wsse:BinarySecurityToken \
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
> EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" \
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" \
> wsu:Id="CertId-3403220">MIIDPjCCAqegAwIBAgIBAzANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJD \
> SDEPMA0GA1UECBMGR2VuZXZhMQ8wDQYDVQQHEwZHZW5ldmExCzAJBgNVBAoTAmNhMQswCQYDVQQLEwJjYTEL \
> MAkGA1UEAxMCY2ExJzAlBgkqhkiG9w0BCQEWGGl0ZGJvbmxpbmVwbHVzQHVuZWNlLm9yZzAeFw0wODA0MjUx \
> NDU4NDJaFw0yODA0MjAxNDU4NDJaMGIxCzAJBgNVBAYTAkNIMQ8wDQYDVQQIEwZHZW5ldmExDzANBgNVBAcT \
> BkdlbmV2YTEPMA0GA1UEChMGc2VydmVyMQ8wDQYDVQQLEwZzZXJ2ZXIxDzANBgNVBAMTBnNlcnZlcjCBnzAN \
> BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAihGx4RUeU3+PRqP8jN7SKXKclQ8XJY7FHL8BpD7C1tzW5zYCmT2Q \
> QUth7qJXN/9vLpU/AYhwo32vK9h+4vV20HpH6F7WGkU3ANTW0s9Ilp6GbHbdxLkvpZECvEbvDcL+0AnAY7E5 \
> RNSVjFVUJgQbidzeRD7BbYE8CK+zOGRJnr8CAwEAAaOB5jCB4zAdBgNVHQ4EFgQUGwfVW9D2mGmG9oulRSqj \
> jmTK5GMwgbMGA1UdIwSBqzCBqIAUu1FuqyKqhCuzYiq1iFPQ9vQS6ZqhgYSkgYEwfzELMAkGA1UEBhMCQ0gx \
> DzANBgNVBAgTBkdlbmV2YTEPMA0GA1UEBxMGR2VuZXZhMQswCQYDVQQKEwJjYTELMAkGA1UECxMCY2ExCzAJ \
> BgNVBAMTAmNhMScwJQYJKoZIhvcNAQkBFhhpdGRib25saW5lcGx1c0B1bmVjZS5vcmeCCQC3WMb3kvFjjzAM \
> BgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBADt0Ri+tJ8t9DascKYGdjW7LWeU5tdYiSqpcBonZ+wm3 \
> wpc9fuggtyAUmY1GhP61LtUkiK85Fnyt7NghItJiKTR9D4DYGEgA+mAg6p3LRU+Sbvqtv2R7d4W8Z1myGoLoumzCiIRduEx4a0qtHYG6XJO21YeRnLICuCvzgT8U85w7</wsse:BinarySecurityToken>
> <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" \
> Id="Signature-9383078"> <ds:SignedInfo>
> <ds:CanonicalizationMethod \
> Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod> \
> <ds:SignatureMethod \
> Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod> \
> <ds:Reference URI="#id-9135999"> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
> <ds:DigestValue>Y0Sm8T/zHl/g6gOEAibePh7+djs=</ds:DigestValue>
> </ds:Reference>
> <ds:Reference URI="#SigConf-7859095">
> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
> <ds:DigestValue>CboJgDGEHxRZExUWQVptuNYaQqk=</ds:DigestValue>
> </ds:Reference>
> </ds:SignedInfo>
> <ds:SignatureValue>LphwR9tqivq9IMG109GGswKMhz1iaeYOwYeN2UGpWqyx6q7YRRrPEj8x+PAbzlNIo \
> 22hlUCHg70tEzvhDLU6CQoiBkMLGFCbuwL0uqvVdEb4uLL4p4NA0u/J2bh/u8NnS20B2SsyuFhILNCtukbjbFx+oj+GYLbaUfh4fwSjkQM=</ds:SignatureValue>
> <ds:KeyInfo Id="KeyId-30949593">
> <wsse:SecurityTokenReference \
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
> wsu:Id="STRId-9012544"> <wsse:Reference URI="#CertId-3403220" \
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference>
> </wsse:SecurityTokenReference>
> </ds:KeyInfo>
> </ds:Signature>
> <wsse11:SignatureConfirmation \
> xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd" \
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
> Value="aFr7oWN6FjHratE/pWq83x2JhSmV01JCYrXaAEdwEn3dFIVGYgySoGZIOuMJFZy5R9BIFZcBWb+c4 \
> Z3gOAQ8S6wg12uV7TIVFt3suR6F46JZrAbQaADjMa3T0lPyaX5itbZ7as/Du7YN61OeJYt0l+RwZaD343EqDQdW/yHcZKo=" \
> wsu:Id="SigConf-7859095"></wsse11:SignatureConfirmation> </wsse:Security>
> </soapenv:Header>
> <soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \
> wsu:Id="id-9135999"> <xenc:EncryptedData Id="EncDataId-9135999" \
> Type="http://www.w3.org/2001/04/xmlenc#Content"> <xenc:EncryptionMethod \
> Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"></xenc:EncryptionMethod> \
> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> \
> <wsse:SecurityTokenReference \
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
> <wsse:Reference URI="#EncKeyId-16949413"></wsse:Reference>
> </wsse:SecurityTokenReference>
> </ds:KeyInfo>
> <xenc:CipherData>
> <xenc:CipherValue>dqrhc3U73nvB3s6e5GkVsjjFJ+DSbu8qzS9oBKBOWQ24CM4rKVqbTL3qUGAZ4W/yA9 \
> s2bxaOKwU89MHHoDQdF6oZoMPG+op32P2Y0ECpPhJ0OWV34QPV/U/sv0M6SZ+bMpMQI9OXa6iU45vZ2wd2bL \
> Otc6+AssiQnCRhQ/0YuavHXQFawTb9wSGcCrShlu+HZFb5thMkmZE4cYBq+AoEWtPDnoZdL3mq9kjXGiOFg4 \
> 10EkOZqF0GbKE2YP2pxaZmWLxJTV0a2i44lN0Z/BC+IZKnFvDOraJJNnzn2LgN1O49wq1cJe2QPfa3ie84aV \
> +MMyUioX70VVZODY2KSMqlk+j2XOyp/oOZnotQRk0iJ3DqcVZe1ZsUmDyVecRY1w4kBGXAtpn2Ro11FfrNzg \
> /uM6w4OCgH5o8TvMO26mCDqHRYQN6uuCiYeCu8phUvA6HjlslidSdLaMu67O1/ENAvF7RvoVrJH6a7Zc2dYE \
> bszTQP7ZGhY9kDr37AY9wwOlAJ1TiS//PdaY7jGQjpXinAPY6H6tGCcdXxOLjHaQWZteY6mVsKOpPNCdzFy3 \
> jEXVzy7+7ztlHyA4Jxa+BPKcxaO6SHMC3lNdVjQlQ5FCAa2cba5PL77EFgtZH907IWp/f1WUqzUCDHst++HX \
> AfdXelzmAgZyesR+lGllGSWVrteA48ewCDpIicqdIniPdVHgLKsBdaXNm4wB0xVOsa/QF9nitSWiDaU7DKj+ \
> 8s8eEE0RqROqF2dy2D0xq/e2d3kL/P1HzUphQCe0c7BFCiaOP2oxNJGC9wrgE4PKaafUJQTDXJk/uMIffK99 \
> BMtWauP4z6nOOyxtR1uXg4ZRyBSSJkgWAUdUoOlyLNjvrKAzOuogvKiaHCQuov1AJAMFjhkoge8xRv3k8QLP \
> p9Fw97hRZR6S74JLT0Ecsb+4VyL3IuFe3SMTvK7SV5O9qxe8J6U+30FoOsYUOw1VbCgUmjSvwxZOQXC+6MFAc5P/Jcqh1a0ohfQU9FG5+xayQIRyNIrl/65pHlbSAWm7hT+hG0Kg62lp1XvGfOBPmwGgTeZQJv
> L4fQ1TQNNiN70W25eXCNEqtsLPiwo34ttZO3ou0ORtx88mQWYH6yO/v6envvwfon6Sx2bazlgV0s
> GTX+erNVFOWxGDH1dmvZ72TjEJrcB+NM+TYi1/1AYw9qqYrt50WMIcOY74awuF9hhdw1oUjJFVZt
> WHTSVVBFqwn/qOnx/U5oJtJ3ooREzROVgKqYxM0LXfcT4Ju4Icq1MvAJxe0e3lT1</xenc:CipherValue>
> </xenc:CipherData>
> </xenc:EncryptedData>
> </soapenv:Body>
> </soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic