Forum Discussion
Sita_Advanced_T
15 years agoOccasional Contributor
OK , so here is the soap request we need to be sending to the wsdl.
Can you tell me how to configure soapUI to produce this sort of request?
Content-type: multipart/related;start="<rootpart*7d0f933b-7262-4351-b434-ecea9bc10a7f@example.jaxws.sun.com>";type="application/xop+xml";boundary="uuid:7d0f933b-7262-4351-b434-ecea9bc10a7f";start-info="text/xml"
Soapaction: "enroll"
Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
--uuid:7d0f933b-7262-4351-b434-ecea9bc10a7f
Content-Id: <rootpart*7d0f933b-7262-4351-b434-ecea9bc10a7f@example.jaxws.sun.com>
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:exc14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<S:Header>
<To xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5005">https://localhost/biothenticateWebSvc/BiothenticateWebService</To>
<Action xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5004">enroll</Action>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5003">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</ReplyTo>
<MessageID xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5002">uuid:96494690-5037-4700-bb67-ed6603f89ae9</MessageID>
<wsse:Security S:mustUnderstand="1">
<wsu:Timestamp xmlns:ns17="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:ns16="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_3">
<wsu:Created>2011-03-31T10:11:46Z</wsu:Created>
<wsu:Expires>2011-03-31T10:16:46Z</wsu:Expires>
</wsu:Timestamp>
<wsse:BinarySecurityToken xmlns:ns17="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:ns16="http://www.w3.org/2003/05/soap-envelope" wsu:Id="uuid_eb526300-e4e4-40fd-99c4-b10065f90ddb" 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">
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:015ae9ec-057f-4e5b-9be1-3e1e5854946a@example.jaxws.sun.com"/>
</wsse:BinarySecurityToken>
<xenc:EncryptedKey xmlns:ns17="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:ns16="http://www.w3.org/2003/05/soap-envelope" Id="_5007">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" />
<ds:KeyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="keyInfo">
<wsse:SecurityTokenReference>
<ds:X509Data>
<ds:X509IssuerSerial>
<ds:X509IssuerName>CN=SUNCA, OU=JWS, O=SUN, ST=Some-State, C=AU</ds:X509IssuerName>
<ds:X509SerialNumber>2</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</ds:X509Data>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:107336a2-8338-4ec1-85b4-70d193b76c8c@example.jaxws.sun.com"/>
</xenc:CipherValue>
</xenc:CipherData>
<xenc:ReferenceList>
<xenc:DataReference URI="#_5008" />
</xenc:ReferenceList>
</xenc:EncryptedKey>
<ds:Signature xmlns:ns17="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:ns16="http://www.w3.org/2003/05/soap-envelope" Id="_1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsse S" />
</ds:CanonicalizationMethod><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<ds:Reference URI="#_5002"><ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><exc14n:InclusiveNamespaces PrefixList="S"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:a1d7863a-98ff-485f-94cd-cd718eb8be84@example.jaxws.sun.com"/>
</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5003">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:fc6d5008-2e73-4e2c-a833-9d914d27c545@example.jaxws.sun.com"/>
</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5004">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:30d825d3-37a9-4dda-aac3-881daeb3750a@example.jaxws.sun.com"/>
</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5005">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:5ddf6739-021a-4368-8de4-1ffd9e452e99@example.jaxws.sun.com"/>
</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5006">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:7231bb46-fbda-414b-ac57-970ee7ea218b@example.jaxws.sun.com"/>
</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_3">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsu wsse S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:462028f8-f871-41a1-9cbc-43b1ad7fba3e@example.jaxws.sun.com"/>
</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:e25c1711-15fe-4f7b-b271-0b0d9f7c95ed@example.jaxws.sun.com"/>
</ds:SignatureValue>
<ds:KeyInfo>
<wsse:SecurityTokenReference>
<wsse:Reference ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" URI="#uuid_eb526300-e4e4-40fd-99c4-b10065f90ddb" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</S:Header>
<S:Body wsu:Id="_5006">
<xenc:EncryptedData xmlns:ns17="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:ns16="http://www.w3.org/2003/05/soap-envelope" Type="http://www.w3.org/2001/04/xmlenc#Content" Id="_5008">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc" />
<xenc:CipherData>
<xenc:CipherValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:dfd1ac82-800b-444d-a36d-943fcac0ded5@example.jaxws.sun.com"/>
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</S:Body>
</S:Envelope>
--uuid:7d0f933b-7262-4351-b434-ecea9bc10a7f
Content-Id: <015ae9ec-057f-4e5b-9be1-3e1e5854946a@example.jaxws.sun.com>
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Can you tell me how to configure soapUI to produce this sort of request?
Content-type: multipart/related;start="<rootpart*7d0f933b-7262-4351-b434-ecea9bc10a7f@example.jaxws.sun.com>";type="application/xop+xml";boundary="uuid:7d0f933b-7262-4351-b434-ecea9bc10a7f";start-info="text/xml"
Soapaction: "enroll"
Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
--uuid:7d0f933b-7262-4351-b434-ecea9bc10a7f
Content-Id: <rootpart*7d0f933b-7262-4351-b434-ecea9bc10a7f@example.jaxws.sun.com>
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:exc14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<S:Header>
<To xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5005">https://localhost/biothenticateWebSvc/BiothenticateWebService</To>
<Action xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5004">enroll</Action>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5003">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</ReplyTo>
<MessageID xmlns="http://www.w3.org/2005/08/addressing" wsu:Id="_5002">uuid:96494690-5037-4700-bb67-ed6603f89ae9</MessageID>
<wsse:Security S:mustUnderstand="1">
<wsu:Timestamp xmlns:ns17="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:ns16="http://www.w3.org/2003/05/soap-envelope" wsu:Id="_3">
<wsu:Created>2011-03-31T10:11:46Z</wsu:Created>
<wsu:Expires>2011-03-31T10:16:46Z</wsu:Expires>
</wsu:Timestamp>
<wsse:BinarySecurityToken xmlns:ns17="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:ns16="http://www.w3.org/2003/05/soap-envelope" wsu:Id="uuid_eb526300-e4e4-40fd-99c4-b10065f90ddb" 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">
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:015ae9ec-057f-4e5b-9be1-3e1e5854946a@example.jaxws.sun.com"/>
</wsse:BinarySecurityToken>
<xenc:EncryptedKey xmlns:ns17="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:ns16="http://www.w3.org/2003/05/soap-envelope" Id="_5007">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" />
<ds:KeyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="keyInfo">
<wsse:SecurityTokenReference>
<ds:X509Data>
<ds:X509IssuerSerial>
<ds:X509IssuerName>CN=SUNCA, OU=JWS, O=SUN, ST=Some-State, C=AU</ds:X509IssuerName>
<ds:X509SerialNumber>2</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</ds:X509Data>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:107336a2-8338-4ec1-85b4-70d193b76c8c@example.jaxws.sun.com"/>
</xenc:CipherValue>
</xenc:CipherData>
<xenc:ReferenceList>
<xenc:DataReference URI="#_5008" />
</xenc:ReferenceList>
</xenc:EncryptedKey>
<ds:Signature xmlns:ns17="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:ns16="http://www.w3.org/2003/05/soap-envelope" Id="_1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsse S" />
</ds:CanonicalizationMethod><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<ds:Reference URI="#_5002"><ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><exc14n:InclusiveNamespaces PrefixList="S"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:a1d7863a-98ff-485f-94cd-cd718eb8be84@example.jaxws.sun.com"/>
</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5003">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:fc6d5008-2e73-4e2c-a833-9d914d27c545@example.jaxws.sun.com"/>
</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5004">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:30d825d3-37a9-4dda-aac3-881daeb3750a@example.jaxws.sun.com"/>
</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5005">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:5ddf6739-021a-4368-8de4-1ffd9e452e99@example.jaxws.sun.com"/>
</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_5006">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:7231bb46-fbda-414b-ac57-970ee7ea218b@example.jaxws.sun.com"/>
</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#_3">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<exc14n:InclusiveNamespaces PrefixList="wsu wsse S" />
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:462028f8-f871-41a1-9cbc-43b1ad7fba3e@example.jaxws.sun.com"/>
</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:e25c1711-15fe-4f7b-b271-0b0d9f7c95ed@example.jaxws.sun.com"/>
</ds:SignatureValue>
<ds:KeyInfo>
<wsse:SecurityTokenReference>
<wsse:Reference ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" URI="#uuid_eb526300-e4e4-40fd-99c4-b10065f90ddb" />
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</S:Header>
<S:Body wsu:Id="_5006">
<xenc:EncryptedData xmlns:ns17="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:ns16="http://www.w3.org/2003/05/soap-envelope" Type="http://www.w3.org/2001/04/xmlenc#Content" Id="_5008">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc" />
<xenc:CipherData>
<xenc:CipherValue>
<Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:dfd1ac82-800b-444d-a36d-943fcac0ded5@example.jaxws.sun.com"/>
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</S:Body>
</S:Envelope>
--uuid:7d0f933b-7262-4351-b434-ecea9bc10a7f
Content-Id: <015ae9ec-057f-4e5b-9be1-3e1e5854946a@example.jaxws.sun.com>
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary