Offline stand-alone WSDL generation from WCF for Java client
NickName:SharpC Ask DateTime:2013-09-13T23:39:47

Offline stand-alone WSDL generation from WCF for Java client

I'm looking to generate a WSDL for offline use that someone can then use to create a service reference and generate a mock service to test their client against. Simple, right? Just use svcutil to generate the files:

svcutil http://localhost:1234/MyService.svc /t:metadata

The developer of the client can then use soapUI to generate a mock service.

The trouble is the files contain references to http://localhost:1234/MyService.svc, so soapUI fails when trying to create the mock service with the error:

Error loading [http://localhost:1234/MyService?wsdl=wsdl1]:
java.lang.Exception: Failed to load url;
http://localhost:1234/MyService.svc?wsdl=wsdl1, 0 -

I've found a reference to download WSDL files for offline use, but surely there must be some easier way of generating a complete self-contained offline WSDL without installing Java or requiring a live service?

Copyright Notice:Content Author:「SharpC」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/18790241/offline-stand-alone-wsdl-generation-from-wcf-for-java-client

More about “Offline stand-alone WSDL generation from WCF for Java client” related questions

Offline stand-alone WSDL generation from WCF for Java client

I'm looking to generate a WSDL for offline use that someone can then use to create a service reference and generate a mock service to test their client against. Simple, right? Just use svcutil to

Show Detail

WCF and code generation from WSDL

I am writing a "universal" client for Web services, and have hit an unexpected problem. I generate the code for the client dynamically by retrieving the Web services WSDL, and using the following (

Show Detail

ServiceRoute + WebServiceHostFactory kills WSDL generation? How to create extensionless WCF service with ?wsdl

I'm trying to use extension-less / .svc-less WCF services. Can anyone else confirm or deny the issue I'm experiencing? I use routing in code, and do this in Application_Start of global.asax.cs:

Show Detail

WSDL Client Generation not complete?

Just tried to generate java client generation from a WSDL file ( using XFire using XMLBeans binding ) I am able to generate the client + Fault Message ( no error ) , however input message and output

Show Detail

WCF Serialization problems with WSDL file created by Java tools

My team is tasked with getting several in-house developed .NET client applications to connect to some new Java web services. The Java web service is a third party, vendor supplied WSDL file that ou...

Show Detail

Bundling wsdl in jar with CXF wsdl2java

I'm working on an implementation that will use a wsdl that I have gotten from a vendor. Our project is running on Spring and CXF, and I'd like to create a jar that will allow me to access this vend...

Show Detail

A WCF service behind a firewall generates a wrong wsdl URI

I developed a WCF service and i have published it with IIS. All goes well inside the local network but when the service is accessed by an external client from the internet, redirected by a firewall...

Show Detail

WSDL generated in WCF consumed by Delphi client

I have a WCF (.net 3.5) service that implements security through ws-security. I have generated a WSDL file for consumption by a client created in Delhi v7.0. I have been having a number of issues ...

Show Detail

Regarding client side code generation from WSDL

I am a new bie to the world of webservices , I have to develop the client side code that is the java code,I have been provided a wsdl which I can see by opening that wsdl in the browser , As i have

Show Detail

Remove schema elements from WSDL generated by WCF

I have a Product Datacontract with a couple of Datamembers that are part of a WCF Service. I also serialise and store this Product Datacontract in my app using the DataContractSerializer. Now, I w...

Show Detail