473,396 Members | 2,016 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,396 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 1031

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.