473,395 Members | 2,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Data Typ NM Token

AJ
Hi

I have a RPC Encoded webservice.

The method looks like this

[WebMethod]
[return: System.Xml.Serialization.SoapElementAttribute("ret urn",
DataType="NMTOKEN")]
public string
echoNMTOKEN([System.Xml.Serialization.SoapElementAttribute(Data Type="NMTOKEN")] string inputString)
{
return inputString;
}

When I send a SOAP Message which looks like this.

POST http://bowie/DotnetServices/XmlTypes...dTypesRpc.asmx
Content-Type: text/xml; charset="utf-8"
SOAPAction: http://soapinterop.org/derivedtypesrpc/echoNMTOKEN

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap
enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://soapinterop.or
g/derivedtypesrpc"
xmlns:types="http://soapinterop.org/derivedtypesrpc/encodedTy
pes" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2
001/XMLSchema-instance">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<tns:echoNMTOKEN>
<inputString xsi:type="xsd:NMTOKEN">NMTOKEN</inputString>
</tns:echoNMTOKEN>
</soap:Body>
</soap:Envelope>
I get a error

Cannot assign object of type System.Xml.XmlNode[] to an object of type
System.String

The response looks like this
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XM
LSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Server was unable to read request. --> There is an error i
n XML document (4, 64). --> Cannot assign object of type System.Xml.XmlNode[]
to an object of type System.String.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
** E N D R E S P O N S E **
I am able to get a similar example with Document Literal webservice to work

Let me know

Thanks
--
AJ
Nov 23 '05 #1
0 1030

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Coen | last post by:
Hi, can anyone help me with the following error while reading a xsd file (XML) into a typed dataset? Error: An unhandled exception of type 'System.Data.DataException' occurred in...
3
by: Gary Smith | last post by:
Hi, Using Access 2000 on a 2000 Workstation. Need to get data that's been entered as "Wks: 2-6, 8-11" (for example) into the format: "2, 3, 4, 5, 6, 8, 9, 10, 11", and finally into a checkbox...
19
by: Johnny Google | last post by:
Here is an example of the type of data from a file I will have: Apple,4322,3435,4653,6543,4652 Banana,6934,5423,6753,6531 Carrot,3454,4534,3434,1111,9120,5453 Cheese,4411,5522,6622,6641 The...
14
by: Simon Morgan | last post by:
I'm trying to write a function to parse a Reverse Polish Notation string from stdin and return 1 token at a time. For those of you who are unaware an RPN string looks like this: 1 2 + 4 * 3 + ...
10
by: Ian Lazarus | last post by:
Hello. How do "unresolved token" link errors occur. How do I fix them? Linking... LINK : error LNK2020: unresolved token (0A000015) ??_7type_info@@6B@ LINK : error LNK2020: unresolved token...
6
by: Rob | last post by:
I am trying to copy some data from one datagrid to another. The first datagrid containing data is called DocList. The blank Datagrid that I am trying to copy some data to is called DataGrid1. ...
0
by: Jay C. | last post by:
Jay 3 Jan. 11:38 Optionen anzeigen Newsgroups: microsoft.public.dotnet.framework.webservices.enhancements Von: "Jay" <p.brunm...@nusurf.at> - Nachrichten dieses Autors suchen Datum: 3 Jan...
12
by: Joriveek | last post by:
Hi, I have a little piece of program here Basically what it does is, it copies the strings of variable widths. The basis is until it finds a comma ",". The input is a CSV/Comma Separated...
2
by: archana | last post by:
Hi all, I am facing some wierd problem in web service. I have on web service with is accepting 3 dataset. One dataset content of csv file. Size of csv file is 86MB. But when i am...
0
by: Sid DeLuca | last post by:
I'm modifying the WSE2 HOL sample to develop my web service. I'm able to get the client application's username token encrypted on the way out (outputTrace.webinfo), but not on receipt from the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.