liubiao4123 / servicestack

Automatically exported from code.google.com/p/servicestack
0 stars 0 forks source link

Can I override ServiceStack.WebHost.Endpoints.Support.Templates #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. build project
2. view wsdl for soap11 or soap12
3.

What is the expected output? What do you see instead?
<wsdl:definitions name="Soap11" 
targetNamespace="http://services.<MYDOMAINHERE>/">
<wsdl:definitions name="Soap11" 
targetNamespace="http://services.servicestack.net/">
What version of the product are you using? On what operating system?
latest version on windows 7

Please provide any additional information below.
I have found where to override most of the default config to see the values I 
want. how can I change the values read from WsdlTemplateBase or do I need to 
custom compile the common project?

Original issue reported on code.google.com by LepardUK on 18 Oct 2010 at 12:00

GoogleCodeExporter commented 8 years ago
I should be add variable placeholders, can you identify all the areas you want 
to change?
Maybe it might be a good idea to upload the original wsdl and your hand 
modified wsdl with your preferred changes?

- Demis

Original comment by demis.be...@gmail.com on 18 Oct 2010 at 12:27

GoogleCodeExporter commented 8 years ago
this is the wsdl created by GenerateSvcProxy.bat. A you can see it contains 
items of type

    targetNamespace="http://services.servicestack.net/" 
    xmlns:svc="http://services.servicestack.net/" 
    xmlns:tns="http://schemas.servicestack.net/types/" 

I would like these to reference a namespace defined in code or config somewhere.

Original comment by LepardUK on 18 Oct 2010 at 1:10

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Leopard,

I've added configurable WSDL namespaces in the Service Stack EndpointHostConfig 
in v1.57+ of Service Stack.
Configuration options are set in Service Stack using the base.SetConfig() 
method in your AppHost, e.g.

public override void Configure(Container container)
{
    base.SetConfig(new EndpointHostConfig
    {
        WsdlServiceNamespace = "http://www.servicestack.net/",
        WsdlServiceTypesNamespace = "http://www.servicestack.net/types",
    });
    ...
}

Let me know if this is satisfactory?

Original comment by demis.be...@gmail.com on 24 Oct 2010 at 11:50