cancel
Showing results for 
Search instead for 
Did you mean: 

Changing namespace

Highlighted
New Contributor

Changing namespace

Hi !!

I'm trying to submit some tests, using ws security, and one of the requested tests is changing xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"  

to

xmlns:soapenv="http://schemas/xmlsoap.org/"

But everytime I submit it, SOAPUI inserts the original namespace above, and causes the following error :

Fri Jul 24 11:43:16 BRT 2020:ERROR:An error occurred [Signature creation failed (Cannot setup signature data structure)], see error log for details
Fri Jul 24 11:43:16 BRT 2020:ERROR:An error occurred [General security error (WSEncryptBody/WSSignEnvelope: Element to encrypt/sign not found: {http://schemas.xmlsoap.org/soap/envelope/}Body)], see error log for details

Any idea about what should I change in my SOAPUI configuration?

Thank you !!!

4 REPLIES 4
Highlighted
Community Hero

Re: Changing namespace

Hey @batboybr,

If the file is being changed, i'd suggest looking at your .wsdl.
People have posted similar issue before on the forum and its cos the change was present in the .wsdl.
Change the namespace in the .wsdl and you should be good to go!

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
New Contributor

Re: Changing namespace

Hi Richie!

Yes, that's what I tried first to do. But my .wsdl file does not contain this namespace inside it.

So, the configuration works fine, when I don't change the soapenv namespace, like the test below:

 

<soapenv:Envelope xmlns:ows="urn:ford/WarrantyClaim/Extended/RepairOrder/v1.0" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:star="http://www.starstandard.org/STAR/5" xmlns:tran="http://www.starstandards.org/webservices/2005/10/transport" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header><wsse:Security 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"><wsse:BinarySecu... 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="6F23D8A3A44559626A1595854570832150">MIID7DCCAtSgAwIBAgIJAL6LeMK/5yaTMA0GCSqGSIb3DQEBCwUAMG4xCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJYWDEMMAoGA1UEBwwDWFhYMRswGQYDVQQKDBJOb3QgRm9yIFB1YmxpYyBVc2UxDDAKBgNVBAsMA1hYWDEZMBcGA1UEAwwQYjJkZ3dxYS5mb3JkLmNvbTAeFw0xNTAyMjMxNTA1NTZaFw0zNTAyMTgxNTA1NTZaMG4xCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJYWDEMMAoGA1UEBwwDWFhYMRswGQYDVQQKDBJOb3QgRm9yIFB1YmxpYyBVc2UxDDAKBgNVBAsMA1hYWDEZMBcGA1UEAwwQYjJkZ3dxYS5mb3JkLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALQLOaQFtRI/dIBBelBNtsMQZ+78q1RxmHJYClzpCQEUNzLvX/xqY1ASvF9ayDB4EEY3zmn4YARo0lB9q6DS5rKfdafsjpWKvobu33HDmMb1bbuNL0ZPkWdn7SCmS3ilDpTotb6F115by96TUpqPzQH1MFd5L5k9jIvGhbVMQx8uh4G+fTN9PMSm7wjWPoAUguKDRzPs1pmz0+gHMJuJCtF/wa7vjPo9rHL/sKw78YKWppUF3HomphfyuZYLNVnAw1x+ceBxjcZ+0WbKSbEssuUAuVF4K4mri5KmSpymDFVJNEYPuEm+p6843pu2n/i68XNzaQQsKUeYuk6KOXaXHqMCAwEAAaOBjDCBiTAdBgNVHQ4EFgQU1UhK7zxen6tEK6Y0jLu18HDAw9QwHwYDVR0jBBgwFoAU1UhK7zxen6tEK6Y0jLu18HDAw9QwDAYDVR0TAQH/BAIwADALBgNVHQ8EBAMCBaAwLAYJYIZIAYb4QgENBB8WHU9wZW5TU0wgR2VuZXJhdGVkIENlcnRpZmljYXRlMA0GCSqGSIb3DQEBCwUAA4IBAQA2UZYW7szQVPHbvOmNTud86H8qFS61AGzCtKc5hxYoOXeqRKgi3jGnoIZSvkO8EzeUHKsjLmaT9GlcyXZFZfkMkR8V7xIs8RkmQ8RYZUaS0xWAc01u++nZOou+nebSjzgys9HlFieXB04gdfXloVIhNcPQ1H6tT2Hi+WKRwcrPO3qW0Js76VXXjWKckiUxSU3oWnNb+WKX9P11pkDiIaWRN3qBKD/kWdn41lYmLlXlZ+6wzlDdv+f8UVrXm4RSGMbJ9q2TF+RCktAmO6stxQqb0ro5TiEyDUAYm47bGFL0sm6EVeVT/ZqhamdW9fuyM71HCuFoBrVj0P++BYB1+yzA</wsse:BinarySecurityToken><xenc:EncryptedKey Id="EK-6F23D8A3A44559626A1595854570832149" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><wsse:SecurityTokenReference><wsse:Reference URI="#6F23D8A3A44559626A1595854570832150" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/></wsse:Secur... URI="#ED-6F23D8A3A44559626A1595854570832151"/></xenc:ReferenceList></xenc:EncryptedKey><wsse:BinarySecurityToken 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#X509PKIPathv1" wsu:Id="X509-6F23D8A3A44559626A1595854570798144">MIIFGjCCBRYwggP+oAMCAQICDF7zITalYEeo61r/PTANBgkqhkiG9w0BAQsFADBQMQswCQYDVQQGEwJCRTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEmMCQGA1UEAxMdR2xvYmFsU2lnbiBSU0EgT1YgU1NMIENBIDIwMTgwHhcN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B0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAfBgNVHSMEGDAWgBT473/yzXhnqN5vjySNiPGHAwKz6zAdBgNVHQ4EFgQUWohIsgT3hkdV/SElglWl5Wf7+rswDQYJKoZIhvcNAQELBQADggEBAJsWzE81pTgWsQBlizwsWDJIB18BsIh+HcfYHtWMTWxeG++7LfVZGsJxNRepOnv0oVk4MzDB4aihFIRvZui8OKRMg/W12Q0CMnZxK++jF8dqo6Yi0pIdVtyN1UGS8veUSEV+tr4QjEmL7HZuEWJJ7vwljvKc4Su84aXFVaAMdVRuepbrcfQwamrI/7VziTUDrEAQVXvvHWHtCf+Cm7ygrB0oApOd08eiS6UOPSkXWKQ5KB/xv6m7EL+jTveaGZ4I/7LhW+xqJiKCNgZ9eoIVzI+QRxsxeVEl+E/nWcAXVU41VwvjWsfpoVYt0080UFuf4MfKt9AiNv/HWB2U6REKrZs=</wsse:BinarySecurityToken><ds:Signature Id="SIG-6F23D8A3A44559626A1595854570798148" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="ows soapenv star tran wsa" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:CanonicalizationMethod><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference URI="#TS-6F23D8A3A44559626A1595854570789143"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="wsse ows soapenv star tran wsa" xmlns:ec="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:DigestValue>OyCOllQGF/1CPCrr59PtXDijpeM=</ds:DigestValu... URI="#id-6F23D8A3A44559626A1595854570798147"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="ows star tran wsa" xmlns:ec="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:DigestValue>750EREdjoWK7kqd+wGqpVXe23r0=</ds:DigestValu... Id="KI-6F23D8A3A44559626A1595854570798145"><wsse:SecurityTokenReference wsse11:TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509PKIPathv1" wsu:Id="STR-6F23D8A3A44559626A1595854570798146" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"><wsse:Reference URI="#X509-6F23D8A3A44559626A1595854570798144" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509PKIPathv1"/></wss... wsu:Id="TS-6F23D8A3A44559626A1595854570789143"><wsu:Created>2020-07-27T12:56:10.789Z</wsu:Created><wsu:Expires>2020-07-27T13:06:10.789Z</wsu:Expires></wsu:Timestamp></wsse:Security>......

 

But when I change the soapenv namespace, SOAPUI keeps my change (in green) , but inserts a new soapenv with the original namespace (in red), like below:

<soapenv:Envelope xmlns:ows="urn:ford/WarrantyClaim/Extended/RepairOrder/v1.0" xmlns:soapenv="http://schemas.xmlsoap.org/" xmlns:star="http://www.starstandard.org/STAR/5" xmlns:tran="http://www.starstandards.org/webservices/2005/10/transport" xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsse:Security xmlns:soapenv="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"><wsse:BinarySecu... 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#X509PKIPathv1" wsu:Id="X509-6F23D8A3A44559626A1595854893783176">MIIFGjCCBRYwggP+oAMCAQICDF7zITalYEeo61r/PTANBgkqhkiG9w0BAQsFADBQMQswCQYDVQQGEwJCRTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEmMCQGA1UEAxMdR2xvYmFsU2lnbiBSU0EgT1YgU1NMIENBIDIwMTgwHhcNMTkxMTE5MTA1MDUwWhcNMjExMTE5MTA1MDUwWjByMQswCQYDVQQGEwJVUzERMA8GA1UECBMITWljaGlnYW4xETAPBgNVBAcTCERlYXJib3JuMRswGQYDVQQKExJGb3JkIE1vdG9yIENvbXBhbnkxIDAeBgNVBAMTF1NaQlJBMDMwMjkuYjJkLmZvcmQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4dTD6EPGkZLjk6jEsZqMHTCl7pDWeN4NzgXGPC74M4l3vBAgDXGZQnjv88RSaaSMDj3BXNtEsv7X2wPFa7ibe2+J2hFJ287SASrFujwMD3LRmAiXeNOyL/zDP0lRAPvQRYZfnqpvLeU4OEnms0CyQUp9qaVhIQlbyWeAbYriSWU6HTUBaDI2RfBbcbgBiEu8TE3Eys0KyVr8yLqIil5l+b14e/hjHrFFDaXl9/79clj1xx1z2W9ERbWatSJTlHnJVKREezmP143MVDE78lmvpSdWx/KEqhbz9w/QjknpuSjFS/GEu8BBmaxctAu2V1YMmtJLz1Ip1k2jzAnRj2Nv3wIDAQABo4IBzDCCAcgwDgYDVR0PAQH/BAQDAgWgMIGOBggrBgEFBQcBAQSBgTB/MEQGCCsGAQUFBzAChjhodHRwOi8vc2VjdXJlLmdsb2JhbHNpZ24uY29tL2NhY2VydC9nc3JzYW92c3NsY2EyMDE4LmNydDA3BggrBgEFBQcwAYYraHR0cDovL29jc3AuZ2xvYmFsc2lnbi5jb20vZ3Nyc2FvdnNzbGNhMjAxODBWBgNVHSAETzBNMEEGCSsGAQQBoDIBFDA0MDIGCCsGAQUFBwIBFiZodHRwczovL3d3dy5nbG9iYWxzaWduLmNvbS9yZXBvc2l0b3J5LzAIBgZngQwBAgIwCQYDVR0TBAIwADA/BgNVHR8EODA2MDSgMqAwhi5odHRwOi8vY3JsLmdsb2JhbHNpZ24uY29tL2dzcnNhb3Zzc2xjYTIwMTguY3JsMCIGA1UdEQQbMBmCF1NaQlJBMDMwMjkuYjJkLmZvcmQuY29tMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAfBgNVHSMEGDAWgBT473/yzXhnqN5vjySNiPGHAwKz6zAdBgNVHQ4EFgQUWohIsgT3hkdV/SElglWl5Wf7+rswDQYJKoZIhvcNAQELBQADggEBAJsWzE81pTgWsQBlizwsWDJIB18BsIh+HcfYHtWMTWxeG++7LfVZGsJxNRepOnv0oVk4MzDB4aihFIRvZui8OKRMg/W12Q0CMnZxK++jF8dqo6Yi0pIdVtyN1UGS8veUSEV+tr4QjEmL7HZuEWJJ7vwljvKc4Su84aXFVaAMdVRuepbrcfQwamrI/7VziTUDrEAQVXvvHWHtCf+Cm7ygrB0oApOd08eiS6UOPSkXWKQ5KB/xv6m7EL+jTveaGZ4I/7LhW+xqJiKCNgZ9eoIVzI+QRxsxeVEl+E/nWcAXVU41VwvjWsfpoVYt0080UFuf4MfKt9AiNv/HWB2U6REKrZs=</wsse:BinarySecurityToken><ds:Signature Id="SIG-6F23D8A3A44559626A1595854893787180" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="ows soapenv star tran wsa" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:CanonicalizationMethod><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference URI="#TS-6F23D8A3A44559626A1595854893779175"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="soapenv wsse ows soapenv star tran wsa" xmlns:ec="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:DigestValue>X9ngcyKbhpqLfEqST5EIB20smEQ=</ds:DigestValu... URI="#id-6F23D8A3A44559626A1595854893784179"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="ows star tran wsa" xmlns:ec="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:DigestValue>qJWl3tsy4HZG8bZF4kbWD/dSGxY=</ds:DigestValu.......

 

Thank you for your response!!!

Batista.

Highlighted
Community Hero

Re: Changing namespace

May youneed to use SOAP version 1.2 on the left side bottom properties and try the request.


Regards,
Rao.
Highlighted
New Contributor

Re: Changing namespace

Thanks, Rao, same problem.

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors