|
Hi all,
I've successfully created several web services and invoked them
without problem from my own machine. I've even consumed the services
from separate machines, but now I'm starting to think about deployment
and how exactly this is going to work.
Currently, I have the following directory structure for a web service
:
--- Web Services
--- MailWebService
--- Bin
As of now, all of the assembly references are copied locally in the
corresponding "Bin" directory. Obviously, this is a less than ideal
deployment structure, as most of these assemblies are used by other
applications/services and need to reside outside the
"Web Services\MailWebService\Bin". Ideally, I'd like to store all the
assemblies in one central "Bin" directory that both web services and
win applications can access, but I'm not exactly sure how I can
accomplish this. Prior to .NET, this was not a problem because of the
use of the registry, but I'm still a little ignorant how to accomplish
the same goal with .NET.
Any ideas on how I can reference the same assemblies from different
channels without having to duplicate bins across my directory
structure?
Thanks
-John
|
|
|
|
|
|
You can mix and match your managed and unmanaged code using MC++ - definitely at least take a look, since it may solve the problem
cheers,
Chris Maunder
|
|
|
|
|
|
Far better approach than starting a C# Web Service project...
I just couldn't help myself...
--
Shine, enlighten me - shine
Shine, awaken me - shine
Shine for all your suffering - shine
|
|
|
|
|
|
I hear ya. Been there, done that, trying real hard not to do it again. Refactoring in all glory, but it sucks when you have to do it in the 11th hour. Ripping out the guts from a carcass only to put it in a new host during stress is.. somewhat error prone.
--
Shine, enlighten me - shine
Shine, awaken me - shine
Shine for all your suffering - shine
|
|
|
|
|
|
You could try gSOAP. It's pretty simple to get up and running and is a highly compliant SOAP implementation. It uses a subset of C++ as an interface definition language that you feed to a compiler to generate client and server stubs. I managed to get a basic service going in a few hours. Its very portable too, if that's an issue for you.
Unique SOAP-to-C/C++ binding: gSOAP is application-centric and provides an automated mapping of native C/C++ and user-defined application data types to SOAP data types through the use of compiler technology. Data is marshalled in SOAP/XML "in-situ" by pre-compiled marshalling routines generated by the gSOAP compiler.
Legacy application integration: gSOAP is not a class library that offers SOAP-specific data structures. gSOAP includes a true RPC compiler for SOAP that supports application-specific data types.
Multi-threaded stand-alone SOAP servers: automatic C and/or C++ source code generation for efficient SOAP Web services (gSOAP 2.0 and higher). Load stress tests indicated that gSOAP has the best performance and scalability compared to other Web services toolkits and implementations.
Platform independent: Windows, Unix, Linux, Pocket PC, Mac OS X, etc.
Integrated WSDL generator: for convenient Web Service publishing.
http://www.cs.fsu.edu/~engelen/soap.html[^]
Ryan.
They read good books, and quote, but never learn
a language other than the scream of rocket-burn.
Our straighter talk is drowned but ironclad;
elections, money, empire, oil and Dad.
|
|
|
|
|
|
Yes.. Well nearly
If you need session control, then you have to use cookies not SOAP header processing. This might not be the case with Everett though, as I think support was added to .NET 1.1. Ditto for DIME attachments, I can only get .NET 1.0 to deal with base64 encoded data.
Other than that its been pretty good going. Have an ASP .NET site chatting away quite happily to FreeBSD machines. Click Add Web Reference Click mostly done..
Ryan.
They read good books, and quote, but never learn
a language other than the scream of rocket-burn.
Our straighter talk is drowned but ironclad;
elections, money, empire, oil and Dad.
|
|
|
|
|
Hi all,
My company is thinking about setting up online transactions with an SSL server, so am I correct in thinking we need an SSL certificate? Is this necessary? I have looked at Verisign, which is quite famous, but its really expensive compared to others. Is it worth this much extra? What about Thawte? Is that any good? Anybody know any other good ones?
Thanks in advance
Anthony Bates
|
|
|
|
|
It's to my understanding that the verisign certificate means little more "we (meaning verisign) approve of this websites online transactions".
Personally so long as I see the little lock in the browser window and I know my data is being encrypted from client to server and it's a site I trust...I could care less if there even is a certificate.
Nevermind super expensive stupid verisign...being all greedy...I hate companies like that...how is the little guy supposed to get ahead? Bullshite!!! Thats all it is...IMHO anyways
Cheers!
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
I don't know much about it, but from what I have read I tend to agree with you. It seems that they have just teamed up with Microsoft (they are a partner) to charge money for nothing. It's not as if their checks they do on your business are particularly strict - you just have to have a bit of money in the bank. And I've never met a rich crook...
Anthony
|
|
|
|
|
We use Thawte, and we've never had any problems.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
How does the sql work to make a tree like query so that the forums are rendered thread by thread, like in codeproject?
I have something like:
Comment:
ID, idForum, idParentComment, idMember, sTitle, sComment, datCreated, _nDepth
Any suggestions?
(I don't want to load all the rows and then sort them with c#. That would be no good with large message boards.)
|
|
|
|
|
Anyone have good examples of calculating distance or shipping costs given two zip codes?
TIA,
Joan
|
|
|
|
|
If you have any experience with web services, there are several free ones out there that'll do the job. Take a look at this service: http://www.discoverdance.co.uk/zipquery/zipcodeservice.asmx
You can just create a web reference to your project that points to this URL above and you'll get the objects you need to calcuate the distance between two zip codes. There are some other web services out there that will tell you shipping rates for all major competitors (fedex, ups, dhl, etc.), but they cost money.
I built a sample web application in C# that uses the zip code distance service I referenced above. If you want it, I can email it to you. Let me know.
Good luck.
-Matt
p.s. Here is a list of a bunch of web services available online: http://www.xmethods.com/ve2/Directory.po;jsessionid=3fRQzLqk6mW3ya-eBjfcU0Rp(QhxieSRM)
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
Hi
I am cant find a suitable replacement method of finding the value of document.body.scrollWidth within Netscape 6. document.body.scrollWidth is IE only it seems but is there any way for determining this value within Netscape6 ?
Cheers
John Cogan
|
|
|
|
|
Can any one till me how to inforce the page NOT to be loaded from the cach?
Mohammed Derbashi
|
|
|
|
|
you could use the following page directive:
<%@ OutputCache Duration="0" VaryByParam="None" %>
|
|
|
|
|
Mohammed Derbashi wrote:
Can any one till me how to inforce the page NOT to be loaded from the cach?
There is no guaranteed way.
There are things you can do to help though
Response.Expires = -1444 in your ASP code
and
<meta http-equiv="expires" content="-1" /> in your HTML HEAD section
However these will not get around a badly set up cache, proxy or firewall. Like with everything else in web development nothing is guaranteed, just have to make do with what you can. If your clients cannot accept that fact then they should swap to a Windows app environment.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
DavidW wrote:
You are totally mad. Nice.
|
|
|
|
|
Hi..
I use vs.net editor to create web pages and use asp , VBScript..
A problem that will drive me mad is that i can't debug neither ASP nor Client side script..(I can't make break points , step through code etc..)
How can i make it in vs.net or any other way ?
I prefere vs.net to Interdev because of its ease of use and autocomplete and intellisense in for html tags..
|
|
|
|
|
Your web folder should have Front Page extensions installed, there you can enable/disable debugging (which is disabled by default AFAIK)
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
Can I programatically control the browser's navigation buttons in my code? For instance, the user can navigate to several diferrent pages in my web application, but whenever he hits the "Back" button in IE, it always brings him back to the main page.
The reason I want to do this is the following. Lets say that the user clicks on a link to go to a form from my main page. He fills out the form and clicks "Submit". My code then clears the textboxs. Now when the user clicks "Back" on the browser, the textboxes become refilled with stuff that he just typed in. I dont not want this. I want him to be taken straight back to the main page when he clicks "Back" in IE.
So is there a way to control the browser's navigational buttons in my C# code? (or in javascript)?
|
|
|
|