Note that there are some explanatory texts on larger screens.

plurals
  1. POWarning: The optional WSDL extension element 'body' from namespace 'http://schemas.xmlsoap.org/wsdl/soap/' was not handled
    primarykey
    data
    text
    <p>I'm using Visual Studio 2010, .Net4, Silverlight(4.0.50826.0).</p> <p>I created a WCF service and I`m trying to create a proxy with SlSvcUtil like:</p> <pre><code>SlSvcUtil.exe /serializer:DataContractSerializer http://192.128.09.26:8080/Server?wsdl /out:C:\Projets\Client\dService.cs /config:C:\Projets\Client\ServiceReferences.ClientConfig </code></pre> <p>When I add some methods with customer type and also they have some attributes I got this msg:</p> <blockquote> <p>Warning: The optional WSDL extension element 'body' from namespace '<a href="http://schemas.xmlsoap.org/wsdl/soap/" rel="nofollow">http://schemas.xmlsoap.org/wsdl/soap/</a>' was not handled.</p> <p>XPath: //wsdl:definitions[@targetNamespace='<a href="http://tempuri.org/" rel="nofollow">http://tempuri.org/</a>']/wsdl:binding[@ name='BasicHttpBinding_IService']/wsdl:operation[@name='GetDefinitionsHavingFre']/wsdl:output</p> </blockquote> <p>If I ignore the warning and I try to use the class I get a NullException error when I call any method.</p> <p>If I change the option <code>/Serializer:XmlSerializer</code> or any other option Its possible create the proxy correctly but I get a lot of null references in the visual studio, so Its necessary to add the correct .dll.</p> <p>If I add: <code>System.ServiceModel</code> from Silverlight -the xmlserializerformatattribute doesn't exist <code>System.ServiceModel</code> from .NET -the ChannelBase doesn't exist</p> <p>If I didn't use the customer method my service works fine, so my question is has silverlight some limit when use customer types or methods with attributes ? </p> <p>Someone has some clue what could be done to solve this ?</p> <p>Thanks,</p> <p>WSDL:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; - &lt;wsdl:definitions name="TestService" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"&gt; - &lt;wsdl:types&gt; - &lt;xsd:schema targetNamespace="http://tempuri.org/Imports"&gt; &lt;xsd:import schemaLocation="http://192.128.09.26:8080/Server?xsd=xsd0" namespace="http://tempuri.org/" /&gt; &lt;xsd:import schemaLocation="http://192.128.09.26:8080/Server?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" /&gt; &lt;xsd:import schemaLocation="http://192.128.09.26:8080/Server?xsd=xsd10" namespace="http://schemas.datacontract.org/2004/07/DataCompany.Data.Faults" /&gt; &lt;xsd:import schemaLocation="http://192.128.09.26:8080/Server?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/DataCompany.Data.PortalModel" /&gt; &lt;xsd:import schemaLocation="http://192.128.09.26:8080/Server?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses" /&gt; &lt;xsd:import schemaLocation="http://192.128.09.26:8080/Server?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/System.Data" /&gt; &lt;xsd:import schemaLocation="http://192.128.09.26:8080/Server?xsd=xsd5" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" /&gt; &lt;xsd:import schemaLocation="http://192.128.09.26:8080/Server?xsd=xsd6" namespace="http://schemas.datacontract.org/2004/07/DataCompany.Data.Components" /&gt; &lt;xsd:import schemaLocation="http://192.128.09.26:8080/Server?xsd=xsd7" namespace="http://schemas.datacontract.org/2004/07/System" /&gt; &lt;xsd:import schemaLocation="http://192.128.09.26:8080/Server?xsd=xsd8" namespace="http://schemas.datacontract.org/2004/07/DataCompany.Data" /&gt; &lt;xsd:import schemaLocation="http://192.128.09.26:8080/Server?xsd=xsd9" namespace="http://schemas.datacontract.org/2004/07/DataCompany.Data.LocalizationManagement" /&gt; &lt;/xsd:schema&gt; &lt;/wsdl:types&gt; - &lt;wsdl:message name="ITestService_StatusService_InputMessage"&gt; &lt;wsdl:part name="parameters" element="tns:StatusService" /&gt; &lt;/wsdl:message&gt; - &lt;wsdl:message name="ITestService_StatusService_OutputMessage"&gt; &lt;wsdl:part name="parameters" element="tns:StatusServiceResponse" /&gt; &lt;/wsdl:message&gt; - &lt;wsdl:message name="ITestService_getData_InputMessage"&gt; &lt;wsdl:part name="parameters" element="tns:getData" /&gt; &lt;/wsdl:message&gt; - &lt;wsdl:message name="ITestService_getData_OutputMessage"&gt; &lt;wsdl:part name="parameters" element="tns:getDataResponse" /&gt; &lt;/wsdl:message&gt; - &lt;wsdl:message name="ITestService_getTime_InputMessage"&gt; &lt;wsdl:part name="parameters" element="tns:getTime" /&gt; &lt;/wsdl:message&gt; - &lt;wsdl:message name="ITestService_getTime_OutputMessage"&gt; &lt;wsdl:part name="parameters" element="tns:getTimeResponse" /&gt; &lt;/wsdl:message&gt; - &lt;wsdl:message name="ITestService_getText_InputMessage"&gt; &lt;wsdl:part name="parameters" element="tns:getText" /&gt; &lt;/wsdl:message&gt; - &lt;wsdl:message name="ITestService_getText_OutputMessage"&gt; &lt;wsdl:part name="parameters" element="tns:getTextResponse" /&gt; &lt;/wsdl:message&gt; - &lt;wsdl:message name="ITestService_SaveEntity_InputMessage"&gt; &lt;wsdl:part name="parameters" element="tns:SaveEntity" /&gt; &lt;/wsdl:message&gt; - &lt;wsdl:message name="ITestService_SaveEntity_OutputMessage"&gt; &lt;wsdl:part name="parameters" element="tns:SaveEntityResponse" /&gt; &lt;/wsdl:message&gt; - &lt;wsdl:message name="ITestService_SaveEntity_DatabaseFaultFault_FaultMessage"&gt; &lt;wsdl:part name="detail" element="q1:DatabaseFault" xmlns:q1="http://schemas.datacontract.org/2004/07/DataCompany.Data.Faults" /&gt; &lt;/wsdl:message&gt; - &lt;wsdl:portType name="ITestService"&gt; - &lt;wsdl:operation name="StatusService"&gt; &lt;wsdl:input wsaw:Action="http://tempuri.org/ITestService/StatusService" message="tns:ITestService_StatusService_InputMessage" /&gt; &lt;wsdl:output wsaw:Action="http://tempuri.org/ITestService/StatusServiceResponse" message="tns:ITestService_StatusService_OutputMessage" /&gt; &lt;/wsdl:operation&gt; - &lt;wsdl:operation name="getData"&gt; &lt;wsdl:input wsaw:Action="http://tempuri.org/ITestService/getData" message="tns:ITestService_getData_InputMessage" /&gt; &lt;wsdl:output wsaw:Action="http://tempuri.org/ITestService/getDataResponse" message="tns:ITestService_getData_OutputMessage" /&gt; &lt;/wsdl:operation&gt; - &lt;wsdl:operation name="getTime"&gt; &lt;wsdl:input wsaw:Action="http://tempuri.org/ITestService/getTime" message="tns:ITestService_getTime_InputMessage" /&gt; &lt;wsdl:output wsaw:Action="http://tempuri.org/ITestService/getTimeResponse" message="tns:ITestService_getTime_OutputMessage" /&gt; &lt;/wsdl:operation&gt; - &lt;wsdl:operation name="getText"&gt; &lt;wsdl:input wsaw:Action="http://tempuri.org/ITestService/getText" message="tns:ITestService_getText_InputMessage" /&gt; &lt;wsdl:output wsaw:Action="http://tempuri.org/ITestService/getTextResponse" message="tns:ITestService_getText_OutputMessage" /&gt; &lt;/wsdl:operation&gt; - &lt;wsdl:operation name="SaveEntity"&gt; &lt;wsdl:input wsaw:Action="http://tempuri.org/ITestService/SaveEntity" message="tns:ITestService_SaveEntity_InputMessage" /&gt; &lt;wsdl:output wsaw:Action="http://tempuri.org/ITestService/SaveEntityResponse" message="tns:ITestService_SaveEntity_OutputMessage" /&gt; &lt;wsdl:fault wsaw:Action="http://tempuri.org/ITestService/SaveEntityDatabaseFaultFault" name="DatabaseFaultFault" message="tns:ITestService_SaveEntity_DatabaseFaultFault_FaultMessage" /&gt; &lt;/wsdl:operation&gt; &lt;/wsdl:portType&gt; - &lt;wsdl:binding name="BasicHttpBinding_ITestService" type="tns:ITestService"&gt; &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" /&gt; - &lt;wsdl:operation name="StatusService"&gt; &lt;soap:operation soapAction="http://tempuri.org/ITestService/StatusService" style="document" /&gt; - &lt;wsdl:input&gt; &lt;soap:body use="literal" /&gt; &lt;/wsdl:input&gt; - &lt;wsdl:output&gt; &lt;soap:body use="literal" /&gt; &lt;/wsdl:output&gt; &lt;/wsdl:operation&gt; - &lt;wsdl:operation name="getData"&gt; &lt;soap:operation soapAction="http://tempuri.org/ITestService/getData" style="document" /&gt; - &lt;wsdl:input&gt; &lt;soap:body use="literal" /&gt; &lt;/wsdl:input&gt; - &lt;wsdl:output&gt; &lt;soap:body use="literal" /&gt; &lt;/wsdl:output&gt; &lt;/wsdl:operation&gt; - &lt;wsdl:operation name="getTime"&gt; &lt;soap:operation soapAction="http://tempuri.org/ITestService/getTime" style="document" /&gt; - &lt;wsdl:input&gt; &lt;soap:body use="literal" /&gt; &lt;/wsdl:input&gt; - &lt;wsdl:output&gt; &lt;soap:body use="literal" /&gt; &lt;/wsdl:output&gt; &lt;/wsdl:operation&gt; - &lt;wsdl:operation name="getText"&gt; &lt;soap:operation soapAction="http://tempuri.org/ITestService/getText" style="document" /&gt; - &lt;wsdl:input&gt; &lt;soap:body use="literal" /&gt; &lt;/wsdl:input&gt; - &lt;wsdl:output&gt; &lt;soap:body use="literal" /&gt; &lt;/wsdl:output&gt; &lt;/wsdl:operation&gt; - &lt;wsdl:operation name="SaveEntity"&gt; &lt;soap:operation soapAction="http://tempuri.org/ITestService/SaveEntity" style="document" /&gt; - &lt;wsdl:input&gt; &lt;soap:body use="literal" /&gt; &lt;/wsdl:input&gt; - &lt;wsdl:output&gt; &lt;soap:body use="literal" /&gt; &lt;/wsdl:output&gt; - &lt;wsdl:fault name="DatabaseFaultFault"&gt; &lt;soap:fault name="DatabaseFaultFault" use="literal" /&gt; &lt;/wsdl:fault&gt; &lt;/wsdl:operation&gt; &lt;/wsdl:binding&gt; - &lt;wsdl:service name="TestService"&gt; - &lt;wsdl:port name="BasicHttpBinding_ITestService" binding="tns:BasicHttpBinding_ITestService"&gt; &lt;soap:address location="http://192.128.09.26:8080/Server" /&gt; &lt;/wsdl:port&gt; &lt;/wsdl:service&gt; &lt;/wsdl:definitions&gt; </code></pre> <hr>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload