Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1065305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T19:47:06+00:00 2026-05-16T19:47:06+00:00

First, take a quick look at my other question ( part 1 ). It

  • 0

First, take a quick look at my other question (part 1). It tells of how I want to call web services on a Cisco router (The Web Services Management Agent – WSMA) from .NET 4 using WCF.

I have applied Ladislav’s technique, and gotten very far. However, I’m now at a stage where I’m pretty confident that I’m sending well-formed SOAP requests, yet the router does not accept it.

In the Cisco documentation, there are several examples of valid SOAP requests, such as this one:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SOAP:Body>
    <request xmlns="urn:cisco:wsma-config" correlator="4.1">
      <configApply details="all">
        <config-data>
          <cli-config-data>
            <cmd>no cns config partial mixy</cmd>
            <cmd>no stupid</cmd>
            <cmd>no cns exec 80 </cmd>
          </cli-config-data>
        </config-data>
      </configApply>
    </request>
  </SOAP:Body>
</SOAP:Envelope>]]>]]>

Using WCF trace, I verify that the request I’m sending looks like this:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <request correlator="1" xmlns="urn:cisco:wsma-config">
      <configApply action-on-fail="rollback" details="all">
        <config-data>
          <cli-config-data>
            <cmd xsi:type="xsd:string">hostname Gunnar</cmd>
          </cli-config-data>
        </config-data>
      </configApply>
    </request>
  </s:Body>
</s:Envelope>

To me, that looks pretty damn right. Yes, the xsd and xsi namespaces are declared on the soap body rather than the envelope, but that should make no difference. The action-on-fail attribute is optional, and present in other examples. The xs:type should be OK too. Otherwise, it’s completely equivalent. Or?

Still, the response I invariably get is:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xml="http://www.w3.org/XML/1998/namespace">
  <s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"></s:Header>
  <SOAP:Body>
    <SOAP:Fault>
      <faultcode xmlns="">SOAP:Client</faultcode>
      <faultstring xmlns="">An expected XML tag or sequence is missing</faultstring>
      <detail xmlns="">
        <WSMA-ERR:error xmlns:WSMA-ERR="urn:cisco:wsma-errors">
          <WSMA-ERR:tag>xml</WSMA-ERR:tag>
          <WSMA-ERR:details>XML_ERROR_MISSING_ELEMENT</WSMA-ERR:details>
        </WSMA-ERR:error>
      </detail>
    </SOAP:Fault>
  </SOAP:Body>
</SOAP:Envelope>

I can’t see that any element is missing.

You don’t suppose IOS requires the namespace prefix to be SOAP (rather than s)? That would be utterly stupid, but I’m running out of options (who knows, maybe they don’t deserialize the XML, but rather parses it textually). Does anyone know how I can specify the namespace prefix that WCF will use for the SOAP envelope?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T19:47:06+00:00Added an answer on May 16, 2026 at 7:47 pm

    Yup.

    Using WCF tracing, fiddler and debugging on the router, and manually posting messages over HTTP, I have finally figured out what’s going on.

    Turns out the WSMA agent on the router expects the SOAP message payload in the HTTP request to include an XML declaration. And WCF isn’t sending one.

    I have posted a new question about how to make the WCF client send an XML declaration with its SOAP requests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When you take your first look at an Oracle database, one of the first
OK, first for context look at the Windows desktop; You can take items (folders,
Could someone take a quick look, why the text in the dark grey isn't
I keep getting this message (in the title). Just take a quick look at
First, let me explain what I am doing. I need to take an order,
I'm writing my first Maven Mojo, in it I'm wanting to take a file
I have a quick question should be easy, but need to make it fast
I have quick question for you SQL gurus. I have existing tables without primary
First, let's get the security considerations out of the way. I'm using simple authentication
First off, I am using Windows XP. I have multiple hard drives and it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.