Solved

Web Service

Posted on 2009-07-07
7
440 Views
Last Modified: 2015-01-05
Hi,

i get the following error when i use web service (i use the nusoap functionality)

"XML error parsing SOAP payload on line 1: Invalid character "

what would be the problem?
0
Comment
Question by:Vimal DM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 7

Expert Comment

by:aamodt
ID: 24800903
What is the problem on Line 1 exactly ?

It stands "Invalid Character" in the SOAP payload (content) so i guess you use some kinda special character that are not supported.

Please explain a bit future about the problem. Some code and examples of what you are trying to do

Regards Aamodt
0
 
LVL 7

Author Comment

by:Vimal DM
ID: 24805992
Hi,
I have two fields like "field1 and field2"
 where in the server xml fields are equal
i send those two fields to webservice, and it connecting to the WS .. but error displayed first page..

also i am trying to connect the french text stored web service
0
 
LVL 7

Author Comment

by:Vimal DM
ID: 24810670
Hi
sorry
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Author Comment

by:Vimal DM
ID: 24810685
This is the first line of my xml file(web service)

<?xml version="1.0" encoding="iso-8859-1" ?>
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:s0="webservice" xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="webservice">
------------------------------------------------------------------------------------------------------------------
and i pass the parameters to web service,i get the following error

"XML error parsing SOAP payload on line 1: Invalid character"
0
 
LVL 7

Accepted Solution

by:
Vimal DM earned 0 total points
ID: 25306828
Hi,

i got it no issue in this
thanks for your effort aamodt
0
 
LVL 7

Expert Comment

by:aamodt
ID: 25306871
yeah, okey :) sorry for not responding on the last  2 comments you made. have been abit distant from EE the past weeks.

So nice that the WSDL works :)

Regards Aamodt
0
 
LVL 7

Author Comment

by:Vimal DM
ID: 25306896
it is ok no problem
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question