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!
  • Students Click Here

*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.

Students Click Here


dash in xml schema

dash in xml schema

dash in xml schema

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.
- <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: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">

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!

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