How do I override the soap:address field in the auto-generated WSDL document?

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default How do I override the soap:address field in the auto-generated WSDL document?


    My web service will be served on a farm of servers. However, the WSDL
    document that get's created
    uses information about the local machine. More specifically the
    "soap:address" field is set to something
    like this:

    <soap:address location=http://webserver1:7000/ingenio.asmx />

    However, for people to use the real service they need to hit a different
    address on our
    load balancer. So the soap:address really should be something like this:

    <soap:address location=http://services.ingenio.com/ingenio.asmx />

    I have been unable to figure out how to tell the .asmx page to generate a
    different WSDL
    file with the proper address. ANyone know how to do this?

    Ray


    Ray Johnson Guest

  2. Similar Questions and Discussions

    1. Making a value-type property optional in WSDL generated by ASP.NET
      Hello all, Is there a way to mark a value-type property on a class as optional when being used as a parameter to a web service? The problem is...
    2. Array Of Arrays - Cape Generated WSDL with .NET
      Hello all, I have a CAPE generated WSDL that is an array of arrays. Let me elaborate I have a struct of public class Properties() { } Now I...
    3. .NET should move documentation from the WSDL to the generated code
      When I have a WSDL that is documented like: <?xml version="1.0" encoding="UTF-8"?> <!-- edited by Sebastien Tardif (Anacomp) --> <wsdl:definitions...
    4. wsdl.exe fails with WebMethods generated wsdl file
      Using WebMethods, Inc Developer tool to create a wsdl for a flow service. Try to use .NET wsdl utility to create a C# proxy, but get the errors...
    5. Problem generating appropriate WSDL from C# classes generated from an XSD
      Hi all, We are integrating Great Plains 7.5 (GP) with BizTalk 2004 (BT) through web services. GP's connectivity component (eConnect) works...
  3. #2

    Default Re: How do I override the soap:address field in the auto-generated WSDL document?

    Check out following article:
    [url]http://msdn.microsoft.com/webservices/default.aspx?pull=/library/en-us/dnweb[/url]
    srv/html/insidewsdl.asp#insidewsdl_code15

    Inside WSDL with .NET Attribution
    Code block 15 depicts the service element for the MyStore Web service. The
    port element is actually a sub-element located under the Service element.
    (The Service element will be discussed in the next section.) The port is
    given a unique name within the Service element, which in this case is
    MyStoreSoap and is linked to a previously defined binding, also named
    MyStoreSoap, via the binding attribute. Finally and most importantly, the
    port element contains a SOAP address element that specifies the physical
    address of this port. If you are using the HTTP transport, then this address
    is a URL. If the transport specified in the Bindings element is SMTP, then
    this address would be an e-mail address. All requests transmitted to this
    address must use the transport and protocol specified in the MyStoreSoap
    binding element.

    --
    Greetz

    Jan Tielens
    ________________________________
    Read my weblog: [url]http://weblogs.asp.net/jan[/url]


    "Ray Johnson" <rayj@ingenio.com> wrote in message
    news:e6NHCCY2DHA.2428@tk2msftngp13.phx.gbl...
    >
    > My web service will be served on a farm of servers. However, the WSDL
    > document that get's created
    > uses information about the local machine. More specifically the
    > "soap:address" field is set to something
    > like this:
    >
    > <soap:address location=http://webserver1:7000/ingenio.asmx />
    >
    > However, for people to use the real service they need to hit a different
    > address on our
    > load balancer. So the soap:address really should be something like this:
    >
    > <soap:address location=http://services.ingenio.com/ingenio.asmx />
    >
    > I have been unable to figure out how to tell the .asmx page to generate a
    > different WSDL
    > file with the proper address. ANyone know how to do this?
    >
    > Ray
    >
    >

    Jan Tielens Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139