Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. Can't generate client from WSDL

Can't generate client from WSDL

Scheduled Pinned Locked Moved WCF and WF
wcfcsharpjavadatabasewpf
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Don Rolando
    wrote on last edited by
    #1

    I cannot add a service reference for my java-side web service, WCF (or svcutil) simply does not generate the client. :( I have stripped it down to this simple example, but still, there seems to be something wrong with the Fault... can anybody help me? I am currently lost.

    <wsdl:definitions name="HelloWorldService"
    targetNamespace="http://my.samle.com/HelloWorldService/"
    xmlns:tns="http://my.samle.com/HelloWorldService/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <wsdl:types>
    	<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
    		xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    		targetNamespace="http://my.samle.com/HelloWorldService/">
    			
    		<xsd:simpleType name="NoObjectFoundFault">
    			<xsd:restriction base="xsd:int"></xsd:restriction>
    		</xsd:simpleType>
    		
    		<xsd:element name="NoObjectFoundFault" type="tns:NoObjectFoundFault"></xsd:element>
    		
    		<xsd:simpleType name="SayHelloRequest">
    			<xsd:restriction base="xsd:string"></xsd:restriction>
    		</xsd:simpleType>
    		
    		<xsd:element name="SayHelloRequest" type="tns:SayHelloRequest"></xsd:element>
    		
    		<xsd:simpleType name="SayHelloResponse">
    			<xsd:restriction base="xsd:int"></xsd:restriction>
    		</xsd:simpleType>
    		
    		<xsd:element name="SayHelloResponse" type="tns:SayHelloResponse"></xsd:element>
    	</xsd:schema>
    </wsdl:types>
    
    <wsdl:message name="NoObjectFoundFault">
    	<wsdl:part name="faultCode" element="tns:NoObjectFoundFault"></wsdl:part>
    </wsdl:message>
    
    <wsdl:message name="sayHello">
    	<wsdl:part element="tns:SayHelloRequest" name="parameters1" />
    </wsdl:message>
    <wsdl:message name="sayHelloResponse">
    	<wsdl:part element="tns:SayHelloResponse" name="parameters2" />
    </wsdl:message>
    
    
    <wsdl:portType name="HelloWorld">
    	<wsdl:operation name="sayHello">
    		<wsdl:input message="tns:sayHello"></wsdl:input>
    		<wsdl:output message="tns:sayHelloResponse"></wsdl:output>
    		<wsdl:fault name="fault" message="tns:NoObjectFoundFault"></wsdl:fault>
        </wsdl:operation>
    </wsdl:portType>
    
    <wsdl:binding name="HelloWorldSOAP" type="tns:HelloWorld">
    
    	<soap12:binding style="document"
    		transport="http://w
    
    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups