wsdl

WCF: how to generate a single WSDL document, without WSDL:import?

Hi, I'm troubling into an issue... I'm trying to find a way to generate a single wsdl document from my WCF service, i.e. without any link to external documents. I've used FlatWsdl to remove all xsd:import links, bou my generated wsdl still contains a link to an external wsdl document via a wsdl:import declaration: <wsdl:import namespace...

WCF WSDL Soap Header on all operations

By defining an attribute that implements IContactBehavior and IWsdlExportExtension and set that attribute on your service contract, you can easily add Soap Headers to your wsdl (see http://wcfextras.codeplex.com/ for more information) But now I need to set a Soap Header contract in the wsdl on all Operationcontracts and this time I cann...

When defining a message part (wsdl:part) can the message-type attribute 'type' be used to refer to a wsdl:fault?

I am trying to consume a third party WSDL using the Weblogic 10.3 clientgen ant task (which wraps wsimport). When doing this I get the following error: [clientgen] [ERROR] in message "JobSubmissionErrorFault", part "exception" must specify a "element" attribute Below is a subset of the WSDL I am trying to consume (names have been c...

Creating bindable classes from WSDL for Flex 3

Two of our apps are web applications with a Flex 3 front end and a SOAP-style WCF back end. To communicate with the back end, I generate web service client classes through Flex Builder 3. Everything's functional, but maintaining those generated classes has been quite annoying, and I'm looking for a better way to do things (without havi...

Consuming a WSDL file using .NET - Total Newbie Question!

I'm taking my first baby steps into consuming web services. Here's my situation: I'm writing in .NET 3.5 for an existing corporate intranet website. I need to add a call to a web service, passing account data and getting a response. I am able to add a web reference to the .wsdl file and have Visual Studio generate the Service Referen...

Tool to generate WSDL 2.0 for RESTful URLs and document schemas?

I need to make a web "service". Since the primary use of this service is going to be to read and write some data that can be encoded as XML documents (the same data both ways), I want to do this as REST interface. Since I will be asked to provide WSDL, is there a tool to ease the pain of this? Is there something that will let me provi...

Why does a webservice specify all request and response types as a string?

I am working with a legacy webservice, and they supplied us their WSDL to work with. Now my problem is, that every function specifies the same argument and return type. And this type is then specified as being string! Example: <definitions targetNamespace="java:the.custom.namespace" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="...

wsdl + svutil

I need to resolve a pcakage import in java.. but the package was not present.. Then i later found that I have to use some wsdl file to genrate the pacakage.. I have a link fo that wsdl file.. How to use svcutil to generate that pacakage/ resolve the imported pacakage... D:\Profiles\pdk473\Desktop>svcutil /t:metadata http://service/meta...

Why is the WSDL fetched by JAX-WS on every WS call?

I'm playing around with NetBeans and JAX-WS and I see that the WSDL is fetched every time a WS is called. Is there a way to avoid this? Is there some configuration? ...

wsdl java import problem

import com.premiereconnect.premconn.FaxNumberAvailableListRequest; import com.premiereconnect.premconn.FaxNumberAvailableListResult; import com.premiereconnect.premconn.GroupListResult; import com.premiereconnect.premconn.UserCreateRequest; import com.premiereconnect.premconn.UserCreateResult; import com.premiereconnect.premconn.UserUpda...

svcutil.exe - Proxy generated not allowing for nullable fields

I am trying to consume a web service specified using WSDL by creating a WCF proxy using svcutil.exe, but the WSDL specifies that some of the operations have parameters that are optional (minOccurs="0"), for example: <xs:element minOccurs="0" maxOccurs="1" name="meetingId" type="xs:int" /> Unfortunately, the generated proxy does not al...

Consuming Third Party web services through Spring WebServiceTemplate

I'm trying to consume a Third Party web service, through a wsdl file provided. I would load the file locally from a Spring-J2EE based project underneath WEB-INF folder. The wsdl might have more than one operation exposed. So I need a way to be able to choose the method to be called. I would also need to make use of a JaxbMarshaller. Ca...

Which programs can I use to test my ASP.NET webservice which requires some SOAP HEADER?

Hi folks, I've been given this legacy app to do some bugtesting. Joy :( It's a simple webservice written in C# -> api.asmx. Now, the trick for testing it, is that it requires some SOAP HEADER for authentication. I know I can just go to the asmx page, and it gives me all the api methods that are exposed. Clicking on those methods gives ...

How do I send a byteArrayOutputStream via soap from C# to a Java WebService?

I'm used to sending files via SOAP to / from C# based web services and we've always used the "byte[]" type for the contents of the file. However, I've now got a java web service that wants a byteArrayOutputStream and I have no idea how to send it one from my C# client. The WSDL shows it as <xs:element name="baos" type="tns:byteArra...

SOAP servers and clients with Zend framework (Getting errors)

I am testing a server and client i made on my webspace. when i try to call a simple "testServer" function defined in a ServerMap class, I get "Looks like we got no XML document" ..? I called getFunctions on the client and testServer is a valid function. I tried catching all exceptions and then calling __getLastResponseHeaders() and __...

.NET Web Service Client - Client found response content type of 'text/plain', but expected 'text/xml'

I have an ASP.NET webpage that has a web reference to a SOAP WSDL. If I call the methods associated with this WSDL (the methods live on another server), everything works fine. However, I'd like to be able to dynamically change the endpoint address where the WSDL points. The reason being that we host the same set of web services for diffe...

How can I customize WCF client code generation?

Are there any tools or code generation templates that will let me customize and extend the WCF cliend proxies? It's not that svcutil is horribly broken, but rather I'd like to be able to generatate additional code based on the service contract, not just be limited the svcutil output. ...

How to pass Authorization header from Flex WebService?

Hi, I have Basic Authorization mechanism on the server for WSDL/SOAP. How I can send "Authorization" header through Flex WebService? Simplified example: var ws:WebService = new WebService(); ws.wsdl = "http://localhost:8000/api/service.wsdl" var encoder:Base64Encoder = new Base64Encoder(); encoder.insertNewLines = false; encoder.enco...

wsdl: type * not declared

It seems that the nested element with a custom defined type doesn't work in visual studio 2008. I have the following wsdl file: <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http...

Spring WS-Security visible in WSDL

I've implemented authentication through WS-Security on my webservice as described at http://static.springframework.org/spring-ws/sites/1.5/reference/html/security.html, like so: <bean id="callbackHandler" class="org.springframework.ws.soap.security.wss4j.callback.SimplePasswordValidationCallbackHandler"> <property name="users"> ...