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 3877530
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:30:30+00:00 2026-05-19T22:30:30+00:00

I want to create a php webservice server to be used from a C#

  • 0

I want to create a php webservice server to be used from a C# application.

I want to have a library who autogenerate wsdl file for easy management (That’s the reason why I choosed NuSoap).

I tried to use nusoap on PHP5. I have some problems with charset and Content-Type.

Visual Studio gives this error :


The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: 'https://www.xxx.yy'.
There is a problem with the XML that was received from the network. See inner exception for more details.
The encoding in the declaration 'ISO-8859-1' does not match the encoding of the document 'utf-8'.
If the service is defined in the current solution, try building the solution and adding the service reference again.

$soap= new soap_server();
$soap->xml_encoding = 'utf-8';
$soap->configureWSDL('Bonjour', 'https://www.xxx.yy');
$soap->wsdl->schemaTargetNamespace = 'http://soapinterop.org/xsd/';
$soap->register('bonjour', array('prenom' => 'xsd:string'));

$HTTP_RAW_POST_DATA = file_get_contents("php://input");

$soap->service($HTTP_RAW_POST_DATA);

header('Content-Type: application/soap+xml; charset=utf-8');

function bonjour($prenom)
{

return "Bonjour ".$prenom;
}

?>

Does someone knows how to change that to make it compliant and working ?

Thanks

  • 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-05-19T22:30:31+00:00Added an answer on May 19, 2026 at 10:30 pm

    I found finally a tutorial who worked for me like a charm : http://www.sanity-free.com/125/php_webservices_and_csharp_dotnet_soap_clients.html

    Best regards !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a static class in PHP and have it behave like
I want to create a file on the webserver dynamically in PHP. First I
I have a website which uses PHP and HTML pages, I want to create
I want to create an application in PHP implementing virtual directory feature. Example: http://mydomain.com/user001
I have php generating html and I want to create layers. Basically I want
I want to create a contact importer application.How to Import facebook contact using php
I want to create an application send an request like http://www.mysiteabc.com/api.php?email=emailtologin@gmail.com&password=123321 and read data
I want to create a PHP program that could create a .php file that
I want to create a php calender application. What is the optimal database design
I want to create a CAPTCHA similar to http://www.gigbooks.com/getcaptcha.php this one. But its in

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.