Problem creating proxy for java webservice with svcutilHello,<br><br>I tried to create a proxy for a java web service using svcutil.exe. <br>Svcutil.exe fails with the message<br><span style="font-family:Courier New,Courier,Monospace">Error: Cannot import wsdl:portType</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">Error: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager']/wsdl:portType[@name='AccessControl']</span><br style="font-family:Courier New,Courier,Monospace"><br>The wsdl is as follows:<br><span style="font-family:Courier New,Courier,Monospace">&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">&lt;definitions name=&quot;de.itinformatik.SOAMetaModel.Services.SecurityManager.AccessControl&quot; targetNamespace=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager&quot;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    xmlns=&quot;http://schemas.xmlsoap.org/wsdl/&quot; xmlns:ns2=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager/types&quot;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    xmlns:soap=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot; xmlns:tns=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager&quot;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;types&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;schema targetNamespace=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager/types&quot;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:soap11-enc=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            xmlns:tns=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager/types&quot;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            xmlns:wsdl=&quot;http://schemas.xmlsoap.org/wsdl/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;ServiceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;sequence&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;element name=&quot;domainClass&quot; nillable=&quot;true&quot; type=&quot;string&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;element name=&quot;message&quot; nillable=&quot;true&quot; type=&quot;string&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/sequence&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;InternalException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;extension base=&quot;tns:ServiceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                        &lt;sequence /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;/extension&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;PersistenceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;extension base=&quot;tns:ServiceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                        &lt;sequence /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;/extension&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;AuthenticationFailedException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;extension base=&quot;tns:ServiceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                        &lt;sequence /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;/extension&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;TransactionException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;extension base=&quot;tns:ServiceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                        &lt;sequence /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;/extension&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;EnlistmentFailedException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;extension base=&quot;tns:TransactionException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                        &lt;sequence /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;/extension&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;StringArray&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;sequence&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;element maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot; name=&quot;content&quot; nillable=&quot;true&quot; type=&quot;string&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/sequence&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;BooleanArray&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;sequence&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;element maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot; name=&quot;content&quot; type=&quot;boolean&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/sequence&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;element name=&quot;PersistenceException&quot; type=&quot;tns:PersistenceException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;element name=&quot;TransactionException&quot; type=&quot;tns:TransactionException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;element name=&quot;InternalException&quot; type=&quot;tns:InternalException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;element name=&quot;EnlistmentFailedException&quot; type=&quot;tns:EnlistmentFailedException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;/schema&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/types&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;message name=&quot;TransactionException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part element=&quot;ns2:TransactionException&quot; name=&quot;TransactionException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/message&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;message name=&quot;AccessControl_isAuthorizedForUseCases&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part name=&quot;String_1&quot; type=&quot;xsd:string&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part name=&quot;StringArray_2&quot; type=&quot;ns2:StringArray&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/message&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;message name=&quot;PersistenceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part element=&quot;ns2:PersistenceException&quot; name=&quot;PersistenceException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/message&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;message name=&quot;AccessControl_isAuthorizedForUseCasesResponse&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part name=&quot;result&quot; type=&quot;ns2:BooleanArray&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/message&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;message name=&quot;InternalException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part element=&quot;ns2:InternalException&quot; name=&quot;InternalException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/message&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;message name=&quot;EnlistmentFailedException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part element=&quot;ns2:EnlistmentFailedException&quot; name=&quot;EnlistmentFailedException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/message&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;portType name=&quot;AccessControl&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;operation name=&quot;isAuthorizedForUseCases&quot; parameterOrder=&quot;String_1 StringArray_2&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;input message=&quot;tns:AccessControl_isAuthorizedForUseCases&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;output message=&quot;tns:AccessControl_isAuthorizedForUseCasesResponse&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault message=&quot;tns:InternalException&quot; name=&quot;InternalException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault message=&quot;tns:PersistenceException&quot; name=&quot;PersistenceException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault message=&quot;tns:TransactionException&quot; name=&quot;TransactionException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault message=&quot;tns:EnlistmentFailedException&quot; name=&quot;EnlistmentFailedException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;/operation&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/portType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;binding name=&quot;AccessControlBinding&quot; type=&quot;tns:AccessControl&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;soap:binding style=&quot;rpc&quot; transport=&quot;http://schemas.xmlsoap.org/soap/http&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;operation name=&quot;isAuthorizedForUseCases&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;soap:operation soapAction=&quot;&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;input&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;soap:body namespace=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager&quot; use=&quot;literal&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/input&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;output&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;soap:body namespace=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager&quot; use=&quot;literal&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/output&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault name=&quot;InternalException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;soap:fault name=&quot;InternalException&quot; use=&quot;literal&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/fault&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault name=&quot;PersistenceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;soap:fault name=&quot;PersistenceException&quot; use=&quot;literal&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/fault&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault name=&quot;TransactionException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;soap:fault name=&quot;TransactionException&quot; use=&quot;literal&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/fault&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault name=&quot;EnlistmentFailedException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;soap:fault name=&quot;EnlistmentFailedException&quot; use=&quot;literal&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/fault&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;/operation&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/binding&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;service name=&quot;De.itinformatik.SOAMetaModel.Services.SecurityManager.AccessControl&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;port binding=&quot;tns:AccessControlBinding&quot; name=&quot;AccessControlPort&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;soap:address location=&quot;http://it1srv19:8080/SecurityManager/AccessControl&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;/port&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/service&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">&lt;/definitions&gt;</span><br style="font-family:Courier New,Courier,Monospace"><br>Using .NET2.0/WSE3.0, there was no problem to create the proxy.<br>Any suggestions?<br>Regards, Martin<br>© 2009 Microsoft Corporation. All rights reserved.Thu, 09 Oct 2008 22:55:23 Zee54c604-1f85-41b9-9123-efab5c9131dfhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#ee54c604-1f85-41b9-9123-efab5c9131dfhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#ee54c604-1f85-41b9-9123-efab5c9131dfmsteinlehttp://social.msdn.microsoft.com/Profile/en-US/?user=msteinleProblem creating proxy for java webservice with svcutilHello,<br><br>I tried to create a proxy for a java web service using svcutil.exe. <br>Svcutil.exe fails with the message<br><span style="font-family:Courier New,Courier,Monospace">Error: Cannot import wsdl:portType</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">Error: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager']/wsdl:portType[@name='AccessControl']</span><br style="font-family:Courier New,Courier,Monospace"><br>The wsdl is as follows:<br><span style="font-family:Courier New,Courier,Monospace">&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">&lt;definitions name=&quot;de.itinformatik.SOAMetaModel.Services.SecurityManager.AccessControl&quot; targetNamespace=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager&quot;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    xmlns=&quot;http://schemas.xmlsoap.org/wsdl/&quot; xmlns:ns2=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager/types&quot;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    xmlns:soap=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot; xmlns:tns=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager&quot;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;types&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;schema targetNamespace=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager/types&quot;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:soap11-enc=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            xmlns:tns=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager/types&quot;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            xmlns:wsdl=&quot;http://schemas.xmlsoap.org/wsdl/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;ServiceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;sequence&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;element name=&quot;domainClass&quot; nillable=&quot;true&quot; type=&quot;string&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;element name=&quot;message&quot; nillable=&quot;true&quot; type=&quot;string&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/sequence&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;InternalException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;extension base=&quot;tns:ServiceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                        &lt;sequence /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;/extension&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;PersistenceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;extension base=&quot;tns:ServiceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                        &lt;sequence /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;/extension&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;AuthenticationFailedException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;extension base=&quot;tns:ServiceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                        &lt;sequence /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;/extension&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;TransactionException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;extension base=&quot;tns:ServiceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                        &lt;sequence /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;/extension&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;EnlistmentFailedException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;extension base=&quot;tns:TransactionException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                        &lt;sequence /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;/extension&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/complexContent&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;StringArray&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;sequence&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;element maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot; name=&quot;content&quot; nillable=&quot;true&quot; type=&quot;string&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/sequence&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;complexType name=&quot;BooleanArray&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;sequence&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                    &lt;element maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot; name=&quot;content&quot; type=&quot;boolean&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;/sequence&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/complexType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;element name=&quot;PersistenceException&quot; type=&quot;tns:PersistenceException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;element name=&quot;TransactionException&quot; type=&quot;tns:TransactionException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;element name=&quot;InternalException&quot; type=&quot;tns:InternalException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;element name=&quot;EnlistmentFailedException&quot; type=&quot;tns:EnlistmentFailedException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;/schema&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/types&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;message name=&quot;TransactionException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part element=&quot;ns2:TransactionException&quot; name=&quot;TransactionException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/message&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;message name=&quot;AccessControl_isAuthorizedForUseCases&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part name=&quot;String_1&quot; type=&quot;xsd:string&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part name=&quot;StringArray_2&quot; type=&quot;ns2:StringArray&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/message&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;message name=&quot;PersistenceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part element=&quot;ns2:PersistenceException&quot; name=&quot;PersistenceException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/message&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;message name=&quot;AccessControl_isAuthorizedForUseCasesResponse&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part name=&quot;result&quot; type=&quot;ns2:BooleanArray&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/message&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;message name=&quot;InternalException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part element=&quot;ns2:InternalException&quot; name=&quot;InternalException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/message&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;message name=&quot;EnlistmentFailedException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;part element=&quot;ns2:EnlistmentFailedException&quot; name=&quot;EnlistmentFailedException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/message&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;portType name=&quot;AccessControl&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;operation name=&quot;isAuthorizedForUseCases&quot; parameterOrder=&quot;String_1 StringArray_2&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;input message=&quot;tns:AccessControl_isAuthorizedForUseCases&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;output message=&quot;tns:AccessControl_isAuthorizedForUseCasesResponse&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault message=&quot;tns:InternalException&quot; name=&quot;InternalException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault message=&quot;tns:PersistenceException&quot; name=&quot;PersistenceException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault message=&quot;tns:TransactionException&quot; name=&quot;TransactionException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault message=&quot;tns:EnlistmentFailedException&quot; name=&quot;EnlistmentFailedException&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;/operation&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/portType&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;binding name=&quot;AccessControlBinding&quot; type=&quot;tns:AccessControl&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;soap:binding style=&quot;rpc&quot; transport=&quot;http://schemas.xmlsoap.org/soap/http&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;operation name=&quot;isAuthorizedForUseCases&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;soap:operation soapAction=&quot;&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;input&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;soap:body namespace=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager&quot; use=&quot;literal&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/input&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;output&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;soap:body namespace=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager&quot; use=&quot;literal&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/output&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault name=&quot;InternalException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;soap:fault name=&quot;InternalException&quot; use=&quot;literal&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/fault&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault name=&quot;PersistenceException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;soap:fault name=&quot;PersistenceException&quot; use=&quot;literal&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/fault&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault name=&quot;TransactionException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;soap:fault name=&quot;TransactionException&quot; use=&quot;literal&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/fault&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;fault name=&quot;EnlistmentFailedException&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">                &lt;soap:fault name=&quot;EnlistmentFailedException&quot; use=&quot;literal&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;/fault&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;/operation&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/binding&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;service name=&quot;De.itinformatik.SOAMetaModel.Services.SecurityManager.AccessControl&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;port binding=&quot;tns:AccessControlBinding&quot; name=&quot;AccessControlPort&quot;&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">            &lt;soap:address location=&quot;http://it1srv19:8080/SecurityManager/AccessControl&quot; /&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &lt;/port&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    &lt;/service&gt;</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">&lt;/definitions&gt;</span><br style="font-family:Courier New,Courier,Monospace"><br>Using .NET2.0/WSE3.0, there was no problem to create the proxy.<br>Any suggestions?<br>Regards, Martin<br>Mon, 12 Mar 2007 08:50:23 Z2007-03-20T14:10:57Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#91a5c69f-6ae4-4821-b12d-b96c37515201http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#91a5c69f-6ae4-4821-b12d-b96c37515201Quantum00http://social.msdn.microsoft.com/Profile/en-US/?user=Quantum00Problem creating proxy for java webservice with svcutilIs that error message in German??<br>Mon, 12 Mar 2007 19:20:37 Z2007-03-12T19:20:37Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#5ab76e1f-2113-4c85-91d8-e59671bd6684http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#5ab76e1f-2113-4c85-91d8-e59671bd6684msteinlehttp://social.msdn.microsoft.com/Profile/en-US/?user=msteinleProblem creating proxy for java webservice with svcutil<p>It is in german, the english translation is &quot;Object reference not set to an instance of an object.&quot;. The standard message of a NullReferenceException.</p>Tue, 13 Mar 2007 15:27:26 Z2007-03-13T15:27:26Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#c79a7863-3728-4112-acd7-83eca7a97fa7http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#c79a7863-3728-4112-acd7-83eca7a97fa7Hao Xu - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Hao%20Xu%20-%20MSFTProblem creating proxy for java webservice with svcutilI don't see the soap:binding element in the AccessControl portType. Could that be the cause? Is it possible for you to update the WSDL and see if it fixes the problem?Fri, 16 Mar 2007 17:05:13 Z2007-03-16T17:05:13Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#b4afd525-c11d-4760-a96a-81068f39c0ebhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#b4afd525-c11d-4760-a96a-81068f39c0ebmsteinlehttp://social.msdn.microsoft.com/Profile/en-US/?user=msteinleProblem creating proxy for java webservice with svcutil<p>I've never seen a portType with soap:binding element. The soap:binding element is in the binding. </p> <p>To be sure, I looked at the wsdl of a .NET WSE web service. It does not have a soap:binding element in its portType, but in the wsdl:binding element, just like my java web service.</p> <p>Greetings, Martin</p>Fri, 16 Mar 2007 17:24:10 Z2007-03-16T17:24:10Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#3c3f2fab-c9e9-46b2-b979-2afec3605d8ahttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#3c3f2fab-c9e9-46b2-b979-2afec3605d8aHao Xu - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Hao%20Xu%20-%20MSFTProblem creating proxy for java webservice with svcutilSorry, my bad. It turned out to be the differences between XmlSerializer and XmlFormatter. If you use XmlSerializer (use SvcUtil option /serializer:XmlSerializer), it should work fine.Fri, 16 Mar 2007 21:11:19 Z2007-03-20T14:10:57Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#06a06edb-c9e1-482b-b8d8-d7bace091487http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee54c604-1f85-41b9-9123-efab5c9131df#06a06edb-c9e1-482b-b8d8-d7bace091487msteinlehttp://social.msdn.microsoft.com/Profile/en-US/?user=msteinleProblem creating proxy for java webservice with svcutilThank you for your reply. I tried this, and svcutil completed without exception. <br>But now, the generated proxy code does not compile.<br>In the generated interface, the method is annotated with some FaultContract attributes, which refer to classes svcutil did not generate.<br>The attributes look the following:<br>   <span style="font-family:Courier New,Courier,Monospace"> [System.ServiceModel.FaultContractAttribute(typeof(www.itinformatik.de.de1.itinformatik1.SOAMetaModel.Services.SecurityManager.types.InternalException), Action=&quot;&quot;, Name=&quot;InternalException&quot;, Namespace=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager&quot; +</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &quot;/types&quot;)]</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    [System.ServiceModel.FaultContractAttribute(typeof(www.itinformatik.de.de1.itinformatik1.SOAMetaModel.Services.SecurityManager.types.PersistenceException), Action=&quot;&quot;, Name=&quot;PersistenceException&quot;, Namespace=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager&quot; +</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &quot;/types&quot;)]</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    [System.ServiceModel.FaultContractAttribute(typeof(www.itinformatik.de.de1.itinformatik1.SOAMetaModel.Services.SecurityManager.types.TransactionException), Action=&quot;&quot;, Name=&quot;TransactionException&quot;, Namespace=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager&quot; +</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &quot;/types&quot;)]</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">    [System.ServiceModel.FaultContractAttribute(typeof(www.itinformatik.de.de1.itinformatik1.SOAMetaModel.Services.SecurityManager.types.EnlistmentFailedException), Action=&quot;&quot;, Name=&quot;EnlistmentFailedException&quot;, Namespace=&quot;http://www.it-informatik.de/de/itinformatik/SOAMetaModel/Services/SecurityManager&quot; +</span><br style="font-family:Courier New,Courier,Monospace"><span style="font-family:Courier New,Courier,Monospace">        &quot;/types&quot;)]</span><br><br>I had to remove those attributes to make the proxy work.<br>Could you tell me if Microsoft is planning to improve svcutil for better support of Java web services?<br><br>Mon, 19 Mar 2007 13:26:41 Z2007-03-19T13:26:41Z