INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

dash in xml schema

dash in xml schema

(OP)
I have created a basic HTTP wweb service to communicate with a end-web service through an intermediate web service(more like a pass thru).
The end-service is calling my service and the response contains xml with dashes at the beginging of some lines. Thess dashes are maknig xml unrecoginsable as xml.
EX:
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
- <s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing...">http://abc.EFG.schemas/MyService/Interface/v1.0.0/...;
</s:Header>
- <s:Body>
- <GetList xmlns="http://abc.EFG.schemas/MyService/Interface/v1.0.0">
- <request xmlns:d4p1="http://abc.EFG.schemas/MyService/v1.0.0" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a41:ClientId>007</a41:ClientId>
<a41:ClientNumber>00077</a41:ClientNumber>
</request>
</GetList>
</s:Body>
</s:Envelope>


I get the error:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Invalid at the top level of the document. Error processing resource 'file:///C:/Documents and Settings/My Document...
<?xml version="1.0" encoding="utf-8" ?>

Whats causing this error? How to make sure these dashes dont get attached in the xml?

RE: dash in xml schema

The browser (IE most likely) is adding those. What do you see when you view the source?

Tom Morrison
Micro Focus

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close