Re: I don't think I can do that !



Yes, I understand your concern very well.
It is not a problem with VS2005, it is a problem with ASP.NET because it
uses a new application model based on different folders
(e.g, App_Code to store the code, App_WebReferences to store the web
services proxies).
The ASP.NET team in Microsoft will also provide the previous model (The
model used by ASP.NET 1.1 and VS2003) in the next version,
so you will able to chose the compilation model for your application. This
is great news for many people, including me :).

Regards,
Pablo Cibraro.

"DaveP" <dave.prout@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6BC7456F-3F2D-47A8-AB8E-92224313C752@xxxxxxxxxxxxxxxx
> Pablo, thanks, it makes sense. But.. this takes me back to my previous
> problem. My client is a Web App built in VS2005, and when I do an Add Web
> Reference I don't get the proxy class, I just get the discomap and wsdl.
>
> I can try it by using the command line tool, WseWsdl3.exe, but then I have
> to copy it back into my VS2005 structure. When I've finished this I have
> to
> document it as the way that our developers should work. It looks bad if I
> tell them to use Visual Studio, but to use a command line tool every time
> they have to add a Web reference !
>
> Do you understand my problem ? Do you know if this will be fixed in VS2005
> some day ?
> --
> Regards
>
> DaveP
> UK
>
>
>
> "Pablo Cibraro" wrote:
>
>> Hi DaveP,
>> Ok, you can do the same on the proxy class for the web service.
>> I mean, you can define a custom header in the same way. Does it make
>> sense ?
>>
>> Regards,
>> Pablo Cibraro.
>>
>> "DaveP" <dave.prout@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:8F8A9233-D579-4A3D-87E7-5BA33DF58A7D@xxxxxxxxxxxxxxxx
>> > Pablo,
>> >
>> > I'm calling Web services. I have no control over them. They are Java,
>> > and
>> > they are part of a vendor product.
>> >
>> > So I have to add values to the SOAP header without changing the Web
>> > service.
>> > --
>> > Regards
>> >
>> > DaveP
>> > UK
>> >
>> >
>> >
>> > "Pablo Cibraro" wrote:
>> >
>> >> Hi DaveP,
>> >> Are you using WSE only to add a soap header to the message ?.
>> >> That can be done with a simple web service without using WSE.
>> >> WSE is usefull when you need to add support for different WS-*
>> >> protocols
>> >> to
>> >> your service.
>> >>
>> >> For example,
>> >>
>> >> public class MyService : System.Web.Services.WebService
>> >> {
>> >> public MyHeader CustomHeader;
>> >>
>> >> [WebMethod()]
>> >> [SoapHeader( "CustomHeader")]
>> >> public void MyWebMethod(string value)
>> >> {
>> >> }
>> >> }
>> >>
>> >> /// <remarks/>
>> >> [XmlRoot("MyHeader", Namespace=http://temp.uri";)]
>> >> [XmlType(Namespace=http://temp.uri)]
>> >> public class MyHeader: SoapHeader
>> >> {
>> >> /// <remarks/>
>> >> public string StringValue;
>> >> }
>> >>
>> >> Regards,
>> >> Pablo Cibraro
>> >>
>> >>
>> >> "DaveP" <dave.prout@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> >> news:E15D13AC-77E3-4285-90D9-834D9E51FCD2@xxxxxxxxxxxxxxxx
>> >> > Pablo,
>> >> >
>> >> > I've tried using the Wse 3 tool, but it won't work for me. The tool
>> >> > seems
>> >> > to
>> >> > be just for security settings. I'm not doing any security.
>> >> >
>> >> > The web services that I'm calling ask for an id, or 'handle', to be
>> >> > placed
>> >> > in the SOAP header. I was just using the CustomInputFilter and
>> >> > CustomOutputFilter to do this, but this seems to be difficult in
>> >> > WSE3.
>> >> >
>> >> > What is the best way to put a string in the SOAP header on the
>> >> > request,
>> >> > and
>> >> > then to check what value is in the SOAP Header when my client
>> >> > receives
>> >> > the
>> >> > response ?
>> >> > --
>> >> > Regards
>> >> >
>> >> > DaveP
>> >> > UK
>> >> >
>> >> >
>> >> >
>> >> > "Pablo Cibraro" wrote:
>> >> >
>> >> >> Hi Dave,
>> >> >> It is better if you the use tool because you can reduce the
>> >> >> probability
>> >> >> to
>> >> >> make a mistake.
>> >> >>
>> >> >> Regards,
>> >> >> Pablo Cibraro.
>> >> >>
>> >> >> "DaveP" <dave.prout@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> >> >> news:9274F09B-F8BD-444B-BFC8-31B62CEDF2F0@xxxxxxxxxxxxxxxx
>> >> >> > Yes, I have access to class EchoService and EchoServiceWse.
>> >> >> > EchoServiceWse
>> >> >> > allows me to SetPolicy.
>> >> >> >
>> >> >> > I don't understand why I can't see the source code for the
>> >> >> > classes,
>> >> >> > like
>> >> >> > EchoService.cs and EchoServiceWse.cs.
>> >> >> >
>> >> >> > The next step, I think, is to create a Policy file, and to name a
>> >> >> > policy,
>> >> >> > so
>> >> >> > that I can do
>> >> >> >
>> >> >> > EchoServiceWse.SetPolicy("myPolicy");
>> >> >> >
>> >> >> > Do I use the Wse3 Tool to cfreate the policy xml file, or do it
>> >> >> > by
>> >> >> > hand
>> >> >> > ?
>> >> >> >
>> >> >> > Thanks for your help
>> >> >> > --
>> >> >> > Regards
>> >> >> >
>> >> >> > DaveP
>> >> >> > UK
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > "Pablo Cibraro" wrote:
>> >> >> >
>> >> >> >> Hi DaveP,
>> >> >> >> That strange, you should have access to a class EchoServiceWse.
>> >> >> >> Have
>> >> >> >> you
>> >> >> >> enabled WSE on that ASP.NET application ?.
>> >> >> >>
>> >> >> >> Regards,
>> >> >> >> Pablo Cibraro
>> >> >> >> http://weblogs.asp.net/cibrax
>> >> >> >> http://www.lagash.com
>> >> >> >>
>> >> >> >> "DaveP" <dave.prout@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> >> >> >> news:C714CF81-811F-4856-82DC-460003F95A42@xxxxxxxxxxxxxxxx
>> >> >> >> > So presumably this is a bug in VS2005 ? Not having access to a
>> >> >> >> > proxy
>> >> >> >> > a
>> >> >> >> > class
>> >> >> >> > is a big problem isn't it ?
>> >> >> >> > --
>> >> >> >> > Regards
>> >> >> >> >
>> >> >> >> > DaveP
>> >> >> >> > UK
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > "Pablo Cibraro" wrote:
>> >> >> >> >
>> >> >> >> >> Hi Dave,
>> >> >> >> >> Yes, that's a problem. ASP.NET automatically creates the
>> >> >> >> >> proxies
>> >> >> >> >> for
>> >> >> >> >> the
>> >> >> >> >> web
>> >> >> >> >> services. You will able to find two proxies for your service:
>> >> >> >> >>
>> >> >> >> >> 1. es.EchoService
>> >> >> >> >> 2. es.EchoServiceWse (This is the proxy for WSE)
>> >> >> >> >>
>> >> >> >> >> It will be better if you create the proxy class using the
>> >> >> >> >> tool
>> >> >> >> >> WSEWsdl3.exe
>> >> >> >> >>
>> >> >> >> >> Regards,
>> >> >> >> >> Pablo Cibraro
>> >> >> >> >> http://weblogs.asp.net/cibrax
>> >> >> >> >> http://www.lagash.com
>> >> >> >> >>
>> >> >> >> >> "DaveP" <dave.prout@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in
>> >> >> >> >> message
>> >> >> >> >> news:776566DC-6097-4B5E-B9E8-6365903F0A49@xxxxxxxxxxxxxxxx
>> >> >> >> >> >I just get
>> >> >> >> >> >
>> >> >> >> >> > EchService.discomap and EchoService.wsdl
>> >> >> >> >> >
>> >> >> >> >> > how to I get the proxy class source code ?
>> >> >> >> >> > --
>> >> >> >> >> > Regards
>> >> >> >> >> >
>> >> >> >> >> > DaveP
>> >> >> >> >> > UK
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > "DaveP" wrote:
>> >> >> >> >> >
>> >> >> >> >> >> Pablo, I have a problem. I can't find the proxy class !
>> >> >> >> >> >>
>> >> >> >> >> >> My application is in VS2005, with the WSE3 tool and WSE3
>> >> >> >> >> >> turned
>> >> >> >> >> >> on.
>> >> >> >> >> >> When
>> >> >> >> >> >> I
>> >> >> >> >> >> want to create a proxy I do Add WebReference, then put in
>> >> >> >> >> >> the
>> >> >> >> >> >> WSDL,
>> >> >> >> >> >> say
>> >> >> >> >> >> http://localhost/EchService.asmx?WSDL. I call it es
>> >> >> >> >> >>
>> >> >> >> >> >> Then in my app I can say
>> >> >> >> >> >>
>> >> >> >> >> >> es.EchoService myService = new es.EchoService();
>> >> >> >> >> >>
>> >> >> >> >> >> But I can't find the proxy code. Also, I can't use
>> >> >> >> >> >> SetPolicy
>> >> >> >> >> >> as
>> >> >> >> >> >> this
>> >> >> >> >> >> does
>> >> >> >> >> >> not appear as a property of myService. It looks like my
>> >> >> >> >> >> WSE3
>> >> >> >> >> >> implementation
>> >> >> >> >> >> isnt complete. Can you suggest anything ?
>> >> >> >> >> >> of myService
>> >> >> >> >> >> --
>> >> >> >> >> >> Regards
>> >> >> >> >> >>
>> >> >> >> >> >> DaveP
>> >> >> >> >> >> UK
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> "Pablo Cibraro" wrote:
>> >> >> >> >> >>
>> >> >> >> >> >> > Hi Dave,
>> >> >> >> >> >> > I have written something regarding this topic in my
>> >> >> >> >> >> > weblog.
>> >> >> >> >> >> >
>> >> >> >> >> >> > http://weblogs.asp.net/cibrax/archive/2005/07/19/419921.aspx
>> >> >> >> >> >> >
>> >> >> >> >> >> > I hope this can help you.
>> >> >> >> >> >> >
>> >> >> >> >> >> > Regards,
>> >> >> >> >> >> > Pablo Cibraro
>> >> >> >> >> >> > http://weblogs.asp.net/cibrax
>> >> >> >> >> >> > http://www.lagash.com
>> >> >> >> >> >> >
>> >> >> >> >> >> > "DaveP" <dave.prout@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in
>> >> >> >> >> >> > message
>> >> >> >> >> >> > news:C73DE2D9-F20E-47F7-8094-DE765D73BF04@xxxxxxxxxxxxxxxx
>> >> >> >> >> >> > > Hi,
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > I'm converting an app from WSE2 to WSE3. The WSE2 app
>> >> >> >> >> >> > > contains
>> >> >> >> >> >> > > the
>> >> >> >> >> >> > > following
>> >> >> >> >> >> > > code for 4 different Web services;
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > service.Pipeline.OutputFilters.Add(OutputFilter);
>> >> >> >> >> >> > > service.Pipeline.InputFilters.Add(InputFilter);
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > There is no service.Pipeline in WSE3. I've seen some
>> >> >> >> >> >> > > info
>> >> >> >> >> >> > > that
>> >> >> >> >> >> > > says I
>> >> >> >> >> >> > > should
>> >> >> >> >> >> > > use a Policy Assertion. But is there a tutorial that
>> >> >> >> >> >> > > will
>> >> >> >> >> >> > > help
>> >> >> >> >> >> > > me
>> >> >> >> >> >> > > re-wrte
>> >> >> >> >> >> > > this code ?
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > --
>> >> >> >> >> >> > > Regards
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > DaveP
>> >> >> >> >> >> > > UK
>> >> >> >> >> >> > >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>


.



Relevant Pages

  • Re: Session Variables in WSE 3.0
    ... >> used to protect the communication during that session. ... >> Regards, ... >> Pablo Cibraro ... >>> I got many webmethods in my web service. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: WSE2 to WSE3, what to do with the pipeline ?
    ... Regards ... "Pablo Cibraro" wrote: ... > It will be better if you create the proxy class using the tool WSEWsdl3.exe ... >> DaveP ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: WSE2 to WSE3, what to do with the pipeline ?
    ... Hi DaveP, ... Regards, ... >> It will be better if you create the proxy class using the tool ... >> Pablo Cibraro ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: WSE2 to WSE3, what to do with the pipeline ?
    ... Regards, ... I have access to class EchoService and EchoServiceWse. ... >> Hi DaveP, ... >> Pablo Cibraro ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: I dont think I can do that !
    ... Pablo, thanks, it makes sense. ... Regards ... > Hi DaveP, ... you can do the same on the proxy class for the web service. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)

Loading