V
VGE
I am having a problem when trying to add a Service Reference to a web
service created in php using NuSoap. If I run the wsdl through a
validator it comes back clean and if I try it at soapclient.com
(http://www.soapclient.com/soapclien...portal2/dedicated/WSTest/PNGQuote.php?wsdl)it
generates a form for the webservice based off the wsdl. However if I try
to do it through the IDE in 2008 I get the following:
The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved:
'http://ecare.pngcom.com/agentportal2/dedicated/WSTest/PNGQuote.php'.
The content type text/xml; charset=ISO-8859-1 of the response message
does not match the content type of the binding (application/soap+xml;
charset=utf-8). If using a custom encoder, be sure that the
IsContentTypeSupported method is implemented properly. The first 691
bytes of the response were: '<?xml version="1.0"
encoding="ISO-8859-1"?><SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body><SOAP-ENV:Fault><faultcode
xsi:type="xsd:string">Client</faultcode><faultactor
xsi:type="xsd:string"></faultactor><faultstring
xsi:type="xsd:string">Operation '' is not defined in the WSDL
for this service</faultstring><detail
xsi:type="xsd:string"></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>'.
The remote server returned an error: (500) Internal Server Error.
If the service is defined in the current solution, try building the
solution and adding the service reference again.
And if I get the WSDL and save it locally and try generating using the
WSDL tool (wsdl /ongQuote.cs PngQuote.wsdl) I get the following:
Error: There is an error in XML document (97, 41).
- The element was not expected in this context: <xsd:enumeration
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>..</xsd:enumeration>.
Expected elements: http://www.w3.org/2001/XMLSchema:annotation,
http://www.w3.org/2001/XMLSchema:list,
http://www.w3.org/2001/XMLSchema:restriction,
http://www.w3.org/2001/XMLSchema:union.
And if try using the svcutil (svcutil PNGQuote.wsdl /language:C#) I get:
Error: Cannot read PNGQuote.wsdl.
WSDL Parsing Error while reading:
'C:\Projects\QuoteWare.root\PNGQuoteApi\PNGQuote.wsdl' verify that the
XML is both well-formed and valid.
There is an error in XML document (97, 41).
The element was not expected in this context: <xsd:enumeration
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>..</xsd:enumeration>.
Expected elements: http://www.w3.org/2001/XMLSchema:annotation,
http://www.w3.org/2001/XMLSchema:list,
http://www.w3.org/2001/XMLSchema:restriction,
http://www.w3.org/2001/XMLSchema:union.
Any help would be appreciated.
service created in php using NuSoap. If I run the wsdl through a
validator it comes back clean and if I try it at soapclient.com
(http://www.soapclient.com/soapclien...portal2/dedicated/WSTest/PNGQuote.php?wsdl)it
generates a form for the webservice based off the wsdl. However if I try
to do it through the IDE in 2008 I get the following:
The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved:
'http://ecare.pngcom.com/agentportal2/dedicated/WSTest/PNGQuote.php'.
The content type text/xml; charset=ISO-8859-1 of the response message
does not match the content type of the binding (application/soap+xml;
charset=utf-8). If using a custom encoder, be sure that the
IsContentTypeSupported method is implemented properly. The first 691
bytes of the response were: '<?xml version="1.0"
encoding="ISO-8859-1"?><SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body><SOAP-ENV:Fault><faultcode
xsi:type="xsd:string">Client</faultcode><faultactor
xsi:type="xsd:string"></faultactor><faultstring
xsi:type="xsd:string">Operation '' is not defined in the WSDL
for this service</faultstring><detail
xsi:type="xsd:string"></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>'.
The remote server returned an error: (500) Internal Server Error.
If the service is defined in the current solution, try building the
solution and adding the service reference again.
And if I get the WSDL and save it locally and try generating using the
WSDL tool (wsdl /ongQuote.cs PngQuote.wsdl) I get the following:
Error: There is an error in XML document (97, 41).
- The element was not expected in this context: <xsd:enumeration
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>..</xsd:enumeration>.
Expected elements: http://www.w3.org/2001/XMLSchema:annotation,
http://www.w3.org/2001/XMLSchema:list,
http://www.w3.org/2001/XMLSchema:restriction,
http://www.w3.org/2001/XMLSchema:union.
And if try using the svcutil (svcutil PNGQuote.wsdl /language:C#) I get:
Error: Cannot read PNGQuote.wsdl.
WSDL Parsing Error while reading:
'C:\Projects\QuoteWare.root\PNGQuoteApi\PNGQuote.wsdl' verify that the
XML is both well-formed and valid.
There is an error in XML document (97, 41).
The element was not expected in this context: <xsd:enumeration
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>..</xsd:enumeration>.
Expected elements: http://www.w3.org/2001/XMLSchema:annotation,
http://www.w3.org/2001/XMLSchema:list,
http://www.w3.org/2001/XMLSchema:restriction,
http://www.w3.org/2001/XMLSchema:union.
Any help would be appreciated.