Having a lot of difficulty getting the IPAWSTester application in your EDXLSharp_Tools solution to work. I have my certificate and the cog id/user id info all correct. I can ping, and i can run your 'getmessage' methods. But the postCAP method is giving me a lot of issues.
I'm using the sample CAP data you provide in https://edxlsharp.codeplex.com/wikipage?title=CAP%20Sample%202&referringTitle=XML%20Examples
First, the XML would error out because it needs 'IPAWSv1.0' as a 'code' value. So i added that to the XML. Secondly, it errored out because it didn't like the polygon values you were using. So i just deleted those right now.
Now finally i've reached the SignXML procedure in the IPAWS_CAP12Proxy class. I error out at signedXML.ComputeSignature with the error:
{"Invalid algorithm specified.\r\n"}
See the stack trace below if it helps. Any guidance on how to move past this issue? I'm using the latest download as of today from your source code.
at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
at System.Security.Cryptography.Utils.SignValue(SafeKeyHandle hKey, Int32 keyNumber, Int32 calgKey, Int32 calgHash, Byte[] hash, Int32 cbHash, ObjectHandleOnStack retSignature)
at System.Security.Cryptography.Utils.SignValue(SafeKeyHandle hKey, Int32 keyNumber, Int32 calgKey, Int32 calgHash, Byte[] hash)
at System.Security.Cryptography.RSACryptoServiceProvider.SignHash(Byte[] rgbHash, Int32 calgHash)
at System.Security.Cryptography.RSAPKCS1SignatureFormatter.CreateSignature(Byte[] rgbHash)
at System.Security.Cryptography.AsymmetricSignatureFormatter.CreateSignature(HashAlgorithm hash)
at System.Security.Cryptography.Xml.SignedXml.ComputeSignature()
at IPAWSProxyLib.IPAWS_CAP12Proxy.SignXml(XmlDocument xmlDoc) in c:\Temp\edxlsharp-94332\EDXLSharp-3.1\EDXLSharp_Tools\IPAWSProxyLib\IPAWS_CAP12Proxy.cs:line 736
I'm using the sample CAP data you provide in https://edxlsharp.codeplex.com/wikipage?title=CAP%20Sample%202&referringTitle=XML%20Examples
First, the XML would error out because it needs 'IPAWSv1.0' as a 'code' value. So i added that to the XML. Secondly, it errored out because it didn't like the polygon values you were using. So i just deleted those right now.
Now finally i've reached the SignXML procedure in the IPAWS_CAP12Proxy class. I error out at signedXML.ComputeSignature with the error:
{"Invalid algorithm specified.\r\n"}
See the stack trace below if it helps. Any guidance on how to move past this issue? I'm using the latest download as of today from your source code.
at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
at System.Security.Cryptography.Utils.SignValue(SafeKeyHandle hKey, Int32 keyNumber, Int32 calgKey, Int32 calgHash, Byte[] hash, Int32 cbHash, ObjectHandleOnStack retSignature)
at System.Security.Cryptography.Utils.SignValue(SafeKeyHandle hKey, Int32 keyNumber, Int32 calgKey, Int32 calgHash, Byte[] hash)
at System.Security.Cryptography.RSACryptoServiceProvider.SignHash(Byte[] rgbHash, Int32 calgHash)
at System.Security.Cryptography.RSAPKCS1SignatureFormatter.CreateSignature(Byte[] rgbHash)
at System.Security.Cryptography.AsymmetricSignatureFormatter.CreateSignature(HashAlgorithm hash)
at System.Security.Cryptography.Xml.SignedXml.ComputeSignature()
at IPAWSProxyLib.IPAWS_CAP12Proxy.SignXml(XmlDocument xmlDoc) in c:\Temp\edxlsharp-94332\EDXLSharp-3.1\EDXLSharp_Tools\IPAWSProxyLib\IPAWS_CAP12Proxy.cs:line 736