servicestack

Service Stack Serialization Exception for soap 1.1

只愿长相守 提交于 2019-12-08 06:49:44
问题 The Request Message: <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendGetAccountNotification xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="mynamespace"> <getAccountResponse xmlns:d2p1="mynamespace"> <d2p1:Account> <d2p1:BusOpsDesc>String</d2p1:BusOpsDesc> <d2p1:ExternalAccountID>String</d2p1:ExternalAccountID> </d2p1:Account> <d2p1

How can MonoTouch supply cookie on each ServiceStack request?

一个人想着一个人 提交于 2019-12-08 06:36:23
I've spent several days attempting to get to grips with ServiceStack and it seems great. Only issue is with authentication which seems to be a lot of friction, hard work and tears. I want MonoTouch to register users, authenticate against ServiceStack/authenticate against OAuth and generally minimise calls to the database when authenticating. So far I have got this: var client = new JsonServiceClient(newbaseUri); // register a new user: var registration = new Registration { FirstName = "john" UserName = "user" , Password = "pass", Email = "john@john.com", }; var registerResponse = client.Send

How can MonoTouch supply cookie on each ServiceStack request?

依然范特西╮ 提交于 2019-12-08 06:20:36
问题 I've spent several days attempting to get to grips with ServiceStack and it seems great. Only issue is with authentication which seems to be a lot of friction, hard work and tears. I want MonoTouch to register users, authenticate against ServiceStack/authenticate against OAuth and generally minimise calls to the database when authenticating. So far I have got this: var client = new JsonServiceClient(newbaseUri); // register a new user: var registration = new Registration { FirstName = "john"

ServiceStack JsonServiceClient based test fails, but service works in browser

纵饮孤独 提交于 2019-12-08 05:52:33
问题 After I got my single-page web app working (web pages served with ServiceStack's RazorFormat() MVC, not .ASP MVC) , I ran a (previously passing) test for the service. The test failed. Tested the web app again (debug run, navigate to //localhost:1337/ResourceList in the browser) : still working. Is something wrong with my test? Here's the error: Test Name: TestResourceList Test FullName: [0-1015]ServiceWrapper.Test.TestSWrapperServices.TestResourceList Test Source: c:\Users\uname\Documents

Does ServiceStack support Token based authentication?

雨燕双飞 提交于 2019-12-08 05:46:22
问题 Asp.net Web api has out of the box support for token based authentication with minor configuration settings. I havent found anything like that for servicestack. Is there anyway how I can setup servicestack to provide tokens on authentication instead of session id. 回答1: ServiceStack includes support for JWT built-in there are also a couple of other projects that enable token-based authentication with ServiceStack: StatelessAuthentication Using IdentityServer 4 with ServiceStack and Angular

Dynamically creating operations and services in ServiceStack

柔情痞子 提交于 2019-12-08 04:37:33
问题 I'm working on a ServiceStack project that requires me to gather a list of commands, of which I have over 200, and create a operation and service for each of them. Essentially I am making a Commanding API which will allow users to send commands without using the UI (exposing my commands). A simplistic example of what I am trying to do: (Application Start) Gather all commands (with some exemptions) for each command make an operation and service for that command map the commands attributes to

Servicestack RabbitMQ: Infinite loop fills up dead-letter-queue when RabbitMqProducer cannot redeclare temporary queue in RPC-pattern

谁都会走 提交于 2019-12-08 04:21:48
问题 When I declare a temporary reply queue to be exclusive (e.g. anonymous queue (exclusive=true, autodelete=true) in rpc-pattern), the response message cannot be posted to the specified reply queue (e.g. message.replyTo="amq.gen-Jg_tv8QYxtEQhq0tF30vAA") because RabbitMqProducer.PublishMessage() tries to redeclare the queue with different parameters (exclusive=false), which understandably results in an error. Unfortunately, the erroneous call to channel.RegisterQueue(queueName) in

Is ServiceStack v4 beta ready for Mono?

喜夏-厌秋 提交于 2019-12-08 01:45:10
问题 After converting my solution to SS v4 from v3 - in VS 2012 on Windows 8 I hit the 10 services limit otherwise seems to work. However on OS X, in Xamarin Studio with Mono 3.2.5 I get a stackoverflow exception. In the stack trace every line is: at System.Attribute.GetHashCode () [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.5/mcs/class/corlib/System/Attribute.cs:261 Any ideas what causes that? When I switch back to my v3 branch it still works

Populating POCO's with ServiceStack.OrmLite

▼魔方 西西 提交于 2019-12-07 23:51:08
问题 Consider the following domain model: class Customer { int id {get;set} string Name {get;set} List<Contact> Contacts {get;set} } class Contact { int id {get;set} string FullName {get;set} List<PhoneNumber> {get;set} } class PhoneNumber { int id {get;set} PhoneType Type {get;set} string Number {get;set} } Customer, Contact & PhoneNumbers are separate entities in our DB. Any Suggestions as to how to populate a full customer with all its linked contacts and the contacts phone numbers in the most

Handle any default document type in servicestack Html5ModeFeature plugin

拜拜、爱过 提交于 2019-12-07 23:25:18
问题 The code below is an initial pass at a ServiceStack plugin to support the angularjs configuration $locationProvider.html5Mode(true); when servicestack is self-hosted (as requested here: Routing path with ServiceStack and Serving default index.html page when using Angular HTML5mode and Servicestack on the backend). I think I've got a good general solution, with one last question (other than switching this to a Feature naming convention in line with other plugins). How can I generically handle