Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > DTD are not supported by SOAP
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 16th March 06:27
andreas
External User
 
Posts: 1
Default DTD are not supported by SOAP


Hi!

If I create a SoapClient with an URL to a wsdl I get the error message
"DTD are not supported by SOAP" when calling __soapCall()

****begin code****
$wsdl_url = "http://localhost:8080/jboss-net/services/MyService?wsdl";
$server = new SoapClient($wsdl_url, array('trace'=>1, 'exceptions'=>0,
'classmap'=>$map));
$server->__soapCall($function_name, $soap_params, null, $header,
$output_headers);
*****end code*****

If I download and save the WSDL as a file and use this file when I
create the SoapClient then __soapCall() will return successfully!

****begin code****
$wsdl_local = "MyService.wsdl";
$server = new SoapClient($wsdl_local, array('trace'=>1,
'exceptions'=>0, 'classmap'=>$map));
$server->__soapCall($function_name, $soap_params, null, $header,
$output_headers);
*****end code*****

Is this a bug or am I doing something wrong here?!

Thanks for any help!

/Andreas
  Reply With Quote


  sponsored links


2 16th March 06:27
david haynes
External User
 
Posts: 1
Default DTD are not supported by SOAP


try: $wsdl_url = "http://localhost:8080/jboss-net/services/MyService.wsdl";
  Reply With Quote
3 16th March 06:27
andreas
External User
 
Posts: 1
Default DTD are not supported by SOAP


Thanks for your reply David,

....but

the url itself isn't the problem. The creation of SoapClient works
fine. It is the call to __soapCall that fails with the error message
"DTD are not ...".

When using . instead of ? I get an error message (failed to load HTTP
resource) when creating the SoapClient.

Any other suggestions?

/Andreas
  Reply With Quote
4 16th March 09:57
david haynes
External User
 
Posts: 1
Default DTD are not supported by SOAP


What do you get when you enter
http://localhost:8080/jboss-net/services/MyService.wsdl"
in your browser?

You should get the contents of the wsdl file displayed.

-david-
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666