PHP Classes

Visual Studio 2005

Recommend this page to a friend!

      PHP WSDL Generator  >  All threads  >  Visual Studio 2005  >  (Un) Subscribe thread alerts  
Subject:Visual Studio 2005
Summary:Message: "The HTML document does not contain Web service..."
Messages:5
Author:camillo ferraris
Date:2008-07-25 15:38:34
Update:2008-07-29 12:35:08
 

  1. Visual Studio 2005   Reply   Report abuse  
Picture of camillo ferraris camillo ferraris - 2008-07-25 15:38:34
I tried to create a wsdl file, but when importing into Visual Studio 2005 the message is:

"The HTML document does not contain Web service discovery information."

Do I need to do something more?

Thank you!

Camillo

  2. Re: Visual Studio 2005   Reply   Report abuse  
Picture of Protung Dragos Protung Dragos - 2008-07-25 16:27:35 - In reply to message 1 from camillo ferraris
How are you importing your wsdl ?

Does your generated wsdl have any services ?

  3. Re: Visual Studio 2005   Reply   Report abuse  
Picture of camillo ferraris camillo ferraris - 2008-07-29 08:04:50 - In reply to message 2 from Protung Dragos
I had to add

header("Content-Type: text/xml");

to the createwsdl code:

<?php

require_once("./php2wsdl/WSDLCreator.php");
header("Content-Type: text/xml");


$test = new WSDLCreator("ResourceSpaceAPI", "http://10.101.40.102/mam/plugins/api_soap/pages/soapapi.php");
$test->addFile("soapapi.php");

$test->setClassesGeneralURL("http://10.101.40.102/mam/plugins/api_soap/pages/soapapi.php");

$test->addURLToClass("rs", "http://10.101.40.102/mam/plugins/api_soap/pages/soapapi.php");
$test->addURLToTypens("rsapi", "http://10.101.40.102/mam/plugins/api_soap/pages/soapapi.php");

$test->createWSDL();

$test->printWSDL();

?>

  4. Re: Visual Studio 2005   Reply   Report abuse  
Picture of Protung Dragos Protung Dragos - 2008-07-29 09:49:26 - In reply to message 3 from camillo ferraris
easy fix :)

I also updated the class so you can print the wsdl with headers.

I think that putting the headers as

header("Content-Type: application/xml");

is a little bit better.

Let me know

  5. Re: Visual Studio 2005   Reply   Report abuse  
Picture of camillo ferraris camillo ferraris - 2008-07-29 12:35:08 - In reply to message 4 from Protung Dragos
It seems that on Visual Studio 2005 the mime type:

application/xml

is not supported.

It requires text/xml.

Camillo