473,322 Members | 1,417 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,322 software developers and data experts.

What is the way one should send XML to a webservice

Hello,

I need to send XML data to a web service.
Is there an XSD type I need to define? should I use some kind of encoding
before?

My problem is that the sent XML is being received encoded as follows:
<?xml version="1.0" encoding="utf-8"?.......

now I cant do HTML decoding in the web service as the XML itself contains
HTML tags inside which are also being encoded (i.e. <).

Please help,
Thanks in advance,
Yaniv.
Jul 23 '08 #1
4 1315

"Yaniv" <Ya***@discussions.microsoft.comwrote in message
news:F3**********************************@microsof t.com...
Hello,

I need to send XML data to a web service.
Is there an XSD type I need to define? should I use some kind of encoding
before?
The XSD should have come from the Web service provider as to what the Web
service expects in the XML that you are sending to the provider.
>
My problem is that the sent XML is being received encoded as follows:
<?xml version="1.0" encoding="utf-8"?.......
You should be in contact with the Web service provider about this.
now I cant do HTML decoding in the web service as the XML itself contains
HTML tags inside which are also being encoded (i.e. <).
see above

Jul 23 '08 #2
Hello Mr. Arnold,

Thank you for the reply but I guess I wasn't clear enough.
I own the web service and right now the type is String as I'm sending XML as
String.

However when I'm sending the XML to the web service I get the XML in the web
service encoded (i.e. <) and not "<".

My question is how can I send it so in the web service I will get XML
properly (i.e. "<").

one more thing, the XML may contain HTML tags inside for example:
<XML>
<Items>
<Item>
<Title>
<!-- This is the html -->
<div>HTML VALUE</div>
</Title>
</Item>
</Items>
</XML>
Thanks a lot,
Yaniv.
Jul 24 '08 #3
I'm sorry I just noticed it's not displaying the encoded chars as I wanted.
What I meant in the i.e. was &-l-t-; without the dashes.
Jul 24 '08 #4
How to do this depends on whether you're developing the contract first, or
the code first. If you do contract-first, then define the element as type
xsd:any. In the code, define the corresponding field or property to be of
type XmlElement.

--
John Saunders | MVP - Connected System Developer
Jul 25 '08 #5

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

Similar topics

3
by: Robb Gilmore | last post by:
Hello, We have a C#.NET app which is calling a Java webservice. We use the wsdl file exportted from the java webservice to create our web-reference in Visual Studio. We are able to create the...
4
by: ad | last post by:
I want to send a DataSet to WebService, but the DataSet if too huge(there about 50000 records, and 50 fields every record). My solution is 1.save the DataSet as XML file, 2.zip the XML file. 3....
4
by: Sean Feldman | last post by:
Hello, I've installed WSE2 and succedded to download from WebService DataTable object, but can't do the oposite. Anyone can help please? Thanks a lot!
18
by: A.M | last post by:
Hi, Is there any way to call a WSS web service method by using browser and see the XML result in browser as well? I have been told that there is query string syntax for calling...
2
by: Pablo | last post by:
Hi at all! How can i send a DATA (not a DataTime) Type to a Java WebService? In .NET we have only a DataTime that is incompatible with the Data (calendar) Type of Java! How can i resolve this...
5
by: RG | last post by:
I have an aspx web pages which interacts with an asmx service. The calls to web service are done via Javascript. The asmx service method has the following parameters: public string...
5
by: tommaso.gastaldi | last post by:
Hi. I have been implementing a simple email notification system using the handy class SmtpClient: With SmtpClient .Host =MailServer .Send(MailMessage) '... now my client is asking also for...
2
by: Kenneth Keeley | last post by:
Hi, I have been developing an application that will run on a server and will sends messges to IT staff telling them of different events happening on our systems. I would like to be able to also...
0
by: ultradiv | last post by:
I have a VB.NET application partly built that produces an xml output (just a file at present) I have a .NET webserver and SQLserver 2000 I need to be able to send the xml to the webserver/database...
1
by: Mrozik | last post by:
Hi! I have a problem - after deploying application in client environment, on some client machines occured error. Environment: App server: ASP.NET WebService/Win 2003/ secured SSL (.NET 2.0)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.