List Info

Thread: Off Topic. Visual Studio WS Consuming




Off Topic. Visual Studio WS Consuming
country flaguser name
United States
2007-05-11 15:23:23

Hi there,

 

Sorry for the (slightly) off topic posting.  I’m wondering if anyone has had any success consuming a SCA web service in Visual Studio (VB or C#)?  I know very, very little about VB, C#, and Visual Studio.  But, I want to make sure that end users of my service can actually consume it in this environment.  I’ve gotten as far as fixing the SCA generated WSDL so VS can create a reference to it.  Beyond that, all the online tutorials I’ve come across just aren’;t doing it.  I’m not sure if I am rubbing against VS issues, or SCA WSDL issues.  Is there anyone out there that has had success in this area that I can toss a few questions off of?

 

Super appreciate it,

 

Mike

 

E-mail messages may contain viruses, worms, or other malicious code. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective action against such code. Henry Schein is not liable for any loss or damage arising from this message.

The information in this email is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this e-mail by anyone else is unauthorized.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "phpsoa" group.
To post to this group, send email to phpsoagooglegroups.com
To unsubscribe from this group, send email to phpsoa-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: Off Topic. Visual Studio WS Consuming
country flaguser name
United States
2007-05-14 04:38:58
Hi Mike

I had a go at this a while back so I repeated the simple
experiment I
carried out back then. I took the greeting.wsdl from
examples/SCA/
helloworldscawsservice/wsdl. I fixed it to remove the
xsi:type
attributes ( :-( need to fix this) and then imported it into
my
VisualStudio environment. Now I currently have a fairly old
2003 copy
of VS.net so your experience may differ but I imported it as
a web
reference.

I then wrote a little bit of C# relying heavily on code
completion to
tell me what to do.

using System;

namespace HelloWorld
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	class Class1
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main(string[] args)
		{
			//
			// TODO: Add code to start application here
			//
			Console.WriteLine("Hello World Test");

			WebReference1.GreetingService greetingService = new
WebReference1.GreetingService();
			WebReference1.greet request  = new
WebReference1.greet();
            request.name = "Fred";
			WebReference1.greetResponse response =
greetingService.greet(request);

			Console.WriteLine(response.greetReturn);

		}
	}
}

I then ran up the PHP SCA samples by copying examples into
htdocs.
Then I ran this C# app in a console and got.

C:simonProjectsVisualStudiophpsoaHelloWorldbin
Debug>HelloWorld.exe
Hello World Test
hello Fred

Clearly not an exhaustive test but it can be made to work at
the very
basic level.

Hope that helps

Simon




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "phpsoa" group.
To post to this group, send email to phpsoagooglegroups.com
To unsubscribe from this group, send email to
phpsoa-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Off Topic. Visual Studio WS Consuming
country flaguser name
United States
2007-05-14 08:58:13
Hi Simon,

Thanks again for your feedback.  The example code is
immensely helpful.


Unfortunately, I seem to be suffering from a Visual Studio
issue related
to the consumption of the WSDL.  If I understand how web
services work
in Visual Studio C#, it generates proxy code that handles
routing web
service calls.  The proxy code is built off of the imported
web
reference WSDL.  

The WSDL imports fine as a web reference, with the noted
WSDL mods.
But, VS seems to be chocking on the creation of this proxy
code.  I'm
getting an error when building that "DiscoCodeGenerator
unable to
initialize code generator.  No code generated."

This doesn't seem to be an isolated issue (Google brings up
many hits),
although I can't find anything on MSDN about this.  I also
can't find
any meaningful details on this issue, other than other
people have run
across it.  I can't for the life of me figure out how to
debug this
DiscoCodeGenerator error.  My best guess is, contrary to the
simple
Hello World example, I have defined many imported  schema
types.  Maybe
it is chocking on that?.!?!

Best,

Mike



> -----Original Message-----
> From: phpsoagooglegroups.com [mailto:phpsoagooglegroups.com] On
> Behalf Of simonslawsgooglemail.com
> Sent: May 14, 2007 6:39 AM
> To: phpsoa
> Subject: [phpsoa] Re: Off Topic. Visual Studio WS
Consuming
> 
> 
> Hi Mike
> 
> I had a go at this a while back so I repeated the
simple experiment I
> carried out back then. I took the greeting.wsdl from
examples/SCA/
> helloworldscawsservice/wsdl. I fixed it to remove the
xsi:type
> attributes ( :-( need to fix this) and then imported it
into my
> VisualStudio environment. Now I currently have a fairly
old 2003 copy
> of VS.net so your experience may differ but I imported
it as a web
> reference.
> 
> I then wrote a little bit of C# relying heavily on code
completion to
> tell me what to do.
> 
> using System;
> 
> namespace HelloWorld
> {
> 	/// <summary>
> 	/// Summary description for Class1.
> 	/// </summary>
> 	class Class1
> 	{
> 		/// <summary>
> 		/// The main entry point for the application.
> 		/// </summary>
> 		[STAThread]
> 		static void Main(string[] args)
> 		{
> 			//
> 			// TODO: Add code to start application here
> 			//
> 			Console.WriteLine("Hello World Test");
> 
> 			WebReference1.GreetingService greetingService =
new
> WebReference1.GreetingService();
> 			WebReference1.greet request  = new
> WebReference1.greet();
>             request.name = "Fred";
> 			WebReference1.greetResponse response =
> greetingService.greet(request);
> 
> 			Console.WriteLine(response.greetReturn);
> 
> 		}
> 	}
> }
> 
> I then ran up the PHP SCA samples by copying examples
into htdocs.
> Then I ran this C# app in a console and got.
> 
> C:simonProjectsVisualStudiophpsoaHelloWorldbin
> Debug>HelloWorld.exe
> Hello World Test
> hello Fred
> 
> Clearly not an exhaustive test but it can be made to
work at the very
> basic level.
> 
> Hope that helps
> 
> Simon
> 
> 
> 
> 
> E-mail messages may contain viruses, worms, or other
malicious code. By reading the message and opening any
attachments, the recipient accepts full responsibility for
taking protective action against such code. Henry Schein is
not liable for any loss or damage arising from this
message.

The information in this email is confidential and may be
legally privileged. It is intended solely for the
addressee(s). Access to this e-mail by anyone else is
unauthorized.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "phpsoa" group.
To post to this group, send email to phpsoagooglegroups.com
To unsubscribe from this group, send email to
phpsoa-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )