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

  • SEARCH
  • Home
  • 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 8338331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:33:38+00:00 2026-06-09T04:33:38+00:00

i have following code example: PlentySoapRequest_GetAuthentificationToken username = new PlentySoapRequest_GetAuthentificationToken(); username.Username = user_textbox.ToString(); username.Userpass

  • 0

i have following code example:

PlentySoapRequest_GetAuthentificationToken username = new PlentySoapRequest_GetAuthentificationToken();

        username.Username = user_textbox.ToString();
        username.Userpass = password_textbox.ToString();

        Uri uri = new Uri("http://www.****.de/plenty/api/soap/version105/");


        XNamespace soapenv = @"http://schemas.xmlsoap.org/soap/envelope/";
        XNamespace xsi = @"http://www.w3.org/2001/XMLSchema-instance";
        XNamespace xsd = @"http://www.w3.org/2001/XMLSchema";
        XNamespace ver = @"http://www.****.de/plenty/api/soap/version105/";

        var document = new XDocument(
           new XDeclaration("1.0", "utf-8", String.Empty),
           new XElement(soapenv + "Envelope",
               new XAttribute(XNamespace.Xmlns + "xsi", xsi),
               new XAttribute(XNamespace.Xmlns + "xsd" , xsd),
               new XAttribute(XNamespace.Xmlns + "soapenv" , soapenv),
               new XAttribute(XNamespace.Xmlns + "ver" , ver),
           new XElement(soapenv + "Header"),
           new XElement(soapenv + "Body",
                   new XElement(ver + "GetAuthentificationToken",
                        new XElement("oLogin" + xsi + "type" + ver + "PlentySoapRequest_GetAuthentificationToken",
                            new XAttribute("Username" + xsi + "type" + xsd + "string", username.Username),
                            new XAttribute("Userpass" + xsi + "type" + xsd + "string", username.Userpass)
                           )
                        )
                    )
                )
               );

I keep getting the error message in the first line. “plentysoaprequest….”

The ':' character, hexadecimal value 0x3A, cannot be included in a name.

if I comment out those lines, it keeps say it is in the first line of the code.

Edit:
the xml should look like this:

<soapenv:Body>
  <ver:GetAuthentificationToken>
     <oLogin xsi:type="ver:PlentySoapRequest_GetAuthentificationToken">
        <!--You may enter the following 2 items in any order-->
        <Username xsi:type="xsd:string">apitest</Username>
        <Userpass xsi:type="xsd:string">apitest</Userpass>
     </oLogin>
  </ver:GetAuthentificationToken>

so there seems to be a problem with the xml-sysntax.
I cant figure out how to set xsi:type or xsi:type

  • 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-06-09T04:33:40+00:00Added an answer on June 9, 2026 at 4:33 am

    "oLogin" + xsi + "type" will create a string with value "oLoginhttp://www.w3.org/2001/XMLSchema-instancetype". That’s not a valid name…

    You need something a little closer to this:

    var document = new XDocument(
       new XDeclaration("1.0", "utf-8", String.Empty),
       new XElement(soapenv + "Envelope",
           new XAttribute(XNamespace.Xmlns + "xsi", xsi),
           new XAttribute(XNamespace.Xmlns + "xsd", xsd),
           new XAttribute(XNamespace.Xmlns + "soapenv", soapenv),
           new XAttribute(XNamespace.Xmlns + "ver", ver),
       new XElement(soapenv + "Header"),
       new XElement(soapenv + "Body",
               new XElement(ver + "GetAuthentificationToken",
                    new XElement(xsi + "Login", 
                        new XAttribute(xsi + "type", "blahblah"),
                        new XElement("Username",
                            new XAttribute(xsi + "type", "xsd:string"),
                                    "myUserName")
                       )
                    )
                )
            )
           );
    

    Which generates this XML

    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ver="http://www.****.de/plenty/api/soap/version105/">
      <soapenv:Header />
      <soapenv:Body>
        <ver:GetAuthentificationToken>
          <xsi:Login xsi:type="blahblah">
            <Username xsi:type="xsd:string">myUserName</Username>
          </xsi:Login>
        </ver:GetAuthentificationToken>
      </soapenv:Body>
    </soapenv:Envelope>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have the following code: <div onclick='location.href=http://www.example.com/'> <a href='#' onclick='alert(blah)'>click</a> </div> Is there
I have the following example code: $dataProvider = new CActiveDataProvider('firstTable', array('criteria' => array( 'select'
On a report I have the following code for a field: =Sum([PartQty]*[ModuleQty]) Example results
Say suppose I have the following Java code. public class Example { public static
I have following code for updating user's column public void UpdateLastModifiedDate(string username) { using
I have the following code example (see below). My problem is that the tooltip
I have the following example code for the knapsack problem in a file called
I have the following example code: <body> <div id=a></div> <div id=b></div> </body> If I
If i have the following code example: public class ClassBase { public int ID
I have the following code: package example; import java.awt.BorderLayout; import java.awt.FlowLayout; import javax.swing.JFrame; import

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.