jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

View:
Q Trailing or leading White space in a an XML tag value
Topic: SOAP
Satish Kumar, Jun 20, 2005
I am using SOAP in my application. My application is using an API for signing/encrpting/decrypting/verifiing the XML request. It fails at verification the XML if the XML request contains a space at the start or at the end of the tag value. Eg: <ID> aba-aba-abc </ID>.

Whats happening is that when an XML document with a space in the tag value as mentioned above is passed to the Signing API, it gives the output as the same document containing the space init. This output is encrypted and sent to an application. This application decrypts the request and verifies it. The output of the decryption process doesn't contains the space init which means that this decryption process is removing the spaces in the XML. Due to this the verification is failing.

The XML Specification says that if we want to preserve the space inside the tag value, we should define a tag named xml:space.

How should we handle this situation? We can't ask people who create an XML to make sure that there are no spaces init. So, should this be handled at the signing stage or should the decryption stage return the output with a space?

Please suggest.

Thanks in Adance.

Is this item helpful?  yes  no     Previous votes   Yes: 0  No: 0







Ask A Question



 

Related Links

SOAP FAQ

SOAP Forum

Wish List
Features
About jGuru
Contact Us

 



The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers