blackspotter-webapi Mailing List for Black Spotter
Status: Alpha
Brought to you by:
filipecarneiro
You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(12) |
Dec
(8) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(10) |
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Nuno M. <nun...@gm...> - 2011-07-08 15:10:59
|
LinkedIn ------------ Eu gostaria de adicioná-lo à minha rede profissional no LinkedIn. -Nuno Nuno Mendes Logística na Avetel Porto e redondezas, Portugal Confirme que você conhece Nuno Mendes https://www.linkedin.com/e/c1511x-gpva910w-o/isd/3473405061/Rs73WyMH/ -- (c) 2011, LinkedIn Corporation |
From: Filipe F. <fmf...@gm...> - 2010-02-16 14:15:27
|
> Viva, > > Parabéns pela aplicação! Assim que pudermos adicionamos à página do 3rdblock para que seja > do conhecimento público. > Posso acrescentar que parece funcionar num Nokia E72 (não testei ainda tudo). > É possível escolher o ponto de acesso? É que o mapa e fotos ainda consomem bastante dados > 3g/gprs... :) > > Abraço > João Paulo Barraca Obrigado. Tanto quanto conseguimos apurar e/ou implementar, a decisão de que ponto de acesso usar é deixada a cargo do sistema operativo, pois o Java ME apenas lhe pede para efectuar uma ligação. É outra das tais nuances específicas a modelos/marcas/sistemas operativos que têm que ser consideradas no processo de desenvolvimento, talvez com o recurso às bibliotecas adicionais disponibilizadas pela nokia seja possivel, mas para tal é necessário criar uma versão somente para telemóveis nokia que suportem essa versão especifica. On 13 Feb 2010, at 19:13, Marco Ascensão wrote: > Boa tarde, > > Quero colocar uma notícia no site, sobre este novo desenvolvimento. Para o > público em geral, é suficiente o texto colocado pelo Filipe ou será melhor > acrescentar alguma coisa? > > Abraço! > Marco Para comunicar ao público geral (i.e. o utilizador final), acho que convirá salientar que a aplicação é fornecida "as-is" e que está, ainda em "fase beta", dize mos isto pois embora possa mos garantir que o programa está protegido de forma a que o utilizador não possa efectuar acções indevidas ou que sejam feitos commits e alterações indesejadas ou involuntárias, todo o projecto foi na sua grande maioria testado dentro do emulador, logo quase de certeza que no uso em campo iram surgir pequenos problemas. Por isto a aplicação ainda carece de algum possível desenvolvimento e manutenção(o objectivo principal era disponibilizar o código-fonte a desenvolvedores interessados). Como a aplicação foi criada no decorrer de um semestre como projecto de unidades curriculares, e outros projectos se avizinham, não disporemos de tempo algum para a desenvolver no futuro previsível. Estaremos disponíveis para responder a questões, mas se algum membro da comunidade se quiser voluntariar para chefiar o projecto, contacte-nos. Cumprimentos, Filipe Felisberto Ricardo Silva |
From: Marco A. <rea...@gm...> - 2010-02-13 19:13:12
|
Boa tarde, Quero colocar uma notícia no site, sobre este novo desenvolvimento. Para o público em geral, é suficiente o texto colocado pelo Filipe ou será melhor acrescentar alguma coisa? Abraço! Marco 2010/2/12 João Paulo Barraca <jpb...@gm...> > Viva, > > Parabéns pela aplicação! Assim que pudermos adicionamos à página do > 3rdblock para que seja do conhecimento público. > Posso acrescentar que parece funcionar num Nokia E72 (não testei ainda > tudo). > É possível escolher o ponto de acesso? É que o mapa e fotos ainda consomem > bastante dados 3g/gprs... :) > > Abraço > João Paulo Barraca > > > On 12 Feb 2010, at 0:50 , Filipe Felisberto wrote: > > > Saudações, > > > > Serve o presente para informar a comunidade de que foi disponibilizado > > o código-fonte da aplicação desenvolvida no âmbito das unidades > > curriculares de Interfaces para Ambientes Ubíquos e Plataformas de > > Sistemas de Software afectas ao Mestrado de Engenharia Informática - > > Computação Móvel do Instituto Politécnico de Leiria pelos alunos > > Filipe Felisberto e Ricardo Silva. > > > > Foi criado um repositório SVN no Google Code onde poderão fazer > > download do código e dos últimos binários compilados: > > > > http://code.google.com/p/plp-ipleiria/ > > > > A aplicação foi desenvolvida na plataforma Java ME, usando o toolkit > > gráfico J2ME Polish e o NetBeans IDE. São consumidos todos os > > webservices do 3rd Block, tanto quanto possível, na sua forma actual. > > Adiantamos que apenas foi testada num aparelho virtual genérico para > > propósitos de teste no emulador do Sun Wireless Toolkit, e num > > telemóvel Sony Ericsson W880i, usando para este último uma versão sem > > acesso à Location API (i.e. sem GPS, que o telemóvel não suporta, isto > > porque embora existam directivas de pre-processador para verificar se > > existe existe a API no telemovel estas estão a ser ignoradas e como > > tal não corre no dito telem), versão essa também disponível no > > repositório. > > > > A versão genérica deverá funcionar em aparelhos CLDC-1.1/MIDP-2.0 que > > suportem as seguintes especificações Java: > > > > - J2ME Web Services Specification (JSR-172) > > - File Connection and PIM (JSR-75) > > - Mobile Media API (JSR-135) > > - Advanced Multimedia Supplements (JSR-234) > > - Location API (JSR-179) > > > > Para aparelhos com outras configurações, como touchscreens, mais/menos > > softkeys, ecrãs de tamanhos diferentes ou outras nuances específicas a > > determinadas marcas e modelos, não é possível garantir o bom > > funcionamento da aplicação, sendo necessário alterar o código de modo > > a englobar esses aparelhos (consultar o ficheiro readme.txt para > > instrucções de configuração de ambiente de desenvolvimento, bem como a > > documentação online do J2ME Polish para ajustar o interface e o > > processo de compilação para dispositivos específicos). > > > > A funcionalidade de tirar fotografias directamente dentro da aplicação > > não está a funcionar correctamente devido a um erro na interface do > > polish, mas é possível navegar o sistema de ficheiros do telemóvel > > para as adicionar a um evento. > > > > Esperamos que o código disponibilizado possa servir de ponto de > > partida para a criação de uma aplicação mais polida e portável que os > > participantes no Projecto Limpar Portugal possam usar para conduzir as > > suas actividades mais eficientemente. > > > > Cumprimentos, > > Filipe Felisberto > > Ricardo Silva > > > > > ------------------------------------------------------------------------------ > > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > > http://p.sf.net/sfu/solaris-dev2dev > > _______________________________________________ > > Blackspotter-WebAPI mailing list > > Bla...@li... > > https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi > > > > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Blackspotter-WebAPI mailing list > Bla...@li... > https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi > |
From: João P. B. <jpb...@gm...> - 2010-02-12 12:07:49
|
Viva, Parabéns pela aplicação! Assim que pudermos adicionamos à página do 3rdblock para que seja do conhecimento público. Posso acrescentar que parece funcionar num Nokia E72 (não testei ainda tudo). É possível escolher o ponto de acesso? É que o mapa e fotos ainda consomem bastante dados 3g/gprs... :) Abraço João Paulo Barraca On 12 Feb 2010, at 0:50 , Filipe Felisberto wrote: > Saudações, > > Serve o presente para informar a comunidade de que foi disponibilizado > o código-fonte da aplicação desenvolvida no âmbito das unidades > curriculares de Interfaces para Ambientes Ubíquos e Plataformas de > Sistemas de Software afectas ao Mestrado de Engenharia Informática - > Computação Móvel do Instituto Politécnico de Leiria pelos alunos > Filipe Felisberto e Ricardo Silva. > > Foi criado um repositório SVN no Google Code onde poderão fazer > download do código e dos últimos binários compilados: > > http://code.google.com/p/plp-ipleiria/ > > A aplicação foi desenvolvida na plataforma Java ME, usando o toolkit > gráfico J2ME Polish e o NetBeans IDE. São consumidos todos os > webservices do 3rd Block, tanto quanto possível, na sua forma actual. > Adiantamos que apenas foi testada num aparelho virtual genérico para > propósitos de teste no emulador do Sun Wireless Toolkit, e num > telemóvel Sony Ericsson W880i, usando para este último uma versão sem > acesso à Location API (i.e. sem GPS, que o telemóvel não suporta, isto > porque embora existam directivas de pre-processador para verificar se > existe existe a API no telemovel estas estão a ser ignoradas e como > tal não corre no dito telem), versão essa também disponível no > repositório. > > A versão genérica deverá funcionar em aparelhos CLDC-1.1/MIDP-2.0 que > suportem as seguintes especificações Java: > > - J2ME Web Services Specification (JSR-172) > - File Connection and PIM (JSR-75) > - Mobile Media API (JSR-135) > - Advanced Multimedia Supplements (JSR-234) > - Location API (JSR-179) > > Para aparelhos com outras configurações, como touchscreens, mais/menos > softkeys, ecrãs de tamanhos diferentes ou outras nuances específicas a > determinadas marcas e modelos, não é possível garantir o bom > funcionamento da aplicação, sendo necessário alterar o código de modo > a englobar esses aparelhos (consultar o ficheiro readme.txt para > instrucções de configuração de ambiente de desenvolvimento, bem como a > documentação online do J2ME Polish para ajustar o interface e o > processo de compilação para dispositivos específicos). > > A funcionalidade de tirar fotografias directamente dentro da aplicação > não está a funcionar correctamente devido a um erro na interface do > polish, mas é possível navegar o sistema de ficheiros do telemóvel > para as adicionar a um evento. > > Esperamos que o código disponibilizado possa servir de ponto de > partida para a criação de uma aplicação mais polida e portável que os > participantes no Projecto Limpar Portugal possam usar para conduzir as > suas actividades mais eficientemente. > > Cumprimentos, > Filipe Felisberto > Ricardo Silva > > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Blackspotter-WebAPI mailing list > Bla...@li... > https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi |
From: Filipe F. <fmf...@gm...> - 2010-02-12 00:51:05
|
Saudações, Serve o presente para informar a comunidade de que foi disponibilizado o código-fonte da aplicação desenvolvida no âmbito das unidades curriculares de Interfaces para Ambientes Ubíquos e Plataformas de Sistemas de Software afectas ao Mestrado de Engenharia Informática - Computação Móvel do Instituto Politécnico de Leiria pelos alunos Filipe Felisberto e Ricardo Silva. Foi criado um repositório SVN no Google Code onde poderão fazer download do código e dos últimos binários compilados: http://code.google.com/p/plp-ipleiria/ A aplicação foi desenvolvida na plataforma Java ME, usando o toolkit gráfico J2ME Polish e o NetBeans IDE. São consumidos todos os webservices do 3rd Block, tanto quanto possível, na sua forma actual. Adiantamos que apenas foi testada num aparelho virtual genérico para propósitos de teste no emulador do Sun Wireless Toolkit, e num telemóvel Sony Ericsson W880i, usando para este último uma versão sem acesso à Location API (i.e. sem GPS, que o telemóvel não suporta, isto porque embora existam directivas de pre-processador para verificar se existe existe a API no telemovel estas estão a ser ignoradas e como tal não corre no dito telem), versão essa também disponível no repositório. A versão genérica deverá funcionar em aparelhos CLDC-1.1/MIDP-2.0 que suportem as seguintes especificações Java: - J2ME Web Services Specification (JSR-172) - File Connection and PIM (JSR-75) - Mobile Media API (JSR-135) - Advanced Multimedia Supplements (JSR-234) - Location API (JSR-179) Para aparelhos com outras configurações, como touchscreens, mais/menos softkeys, ecrãs de tamanhos diferentes ou outras nuances específicas a determinadas marcas e modelos, não é possível garantir o bom funcionamento da aplicação, sendo necessário alterar o código de modo a englobar esses aparelhos (consultar o ficheiro readme.txt para instrucções de configuração de ambiente de desenvolvimento, bem como a documentação online do J2ME Polish para ajustar o interface e o processo de compilação para dispositivos específicos). A funcionalidade de tirar fotografias directamente dentro da aplicação não está a funcionar correctamente devido a um erro na interface do polish, mas é possível navegar o sistema de ficheiros do telemóvel para as adicionar a um evento. Esperamos que o código disponibilizado possa servir de ponto de partida para a criação de uma aplicação mais polida e portável que os participantes no Projecto Limpar Portugal possam usar para conduzir as suas actividades mais eficientemente. Cumprimentos, Filipe Felisberto Ricardo Silva |
From: Meik S. <lim...@co...> - 2010-01-14 23:39:59
|
Boa noite Marco, Pode publicar o texto que me enviou. Problemas encontrados podem ser reportados através do iTunes ou então do meu endereço limparportugal@consjuri. net. Abraço Meik No dia 2010/01/14, às 23:10, Marco Ascensão <rea...@gm...> escreveu: > Boa noite, > > Posso efectuar a divulgação da aplicação desta forma? > > --- > Agora já é possível efectuar o registo de lixeiras utilizando o > seu iPhone! > A aplicação foi desenvolvida específicamente para o efeito e está > disponível através do serviço iTunes. > > Para começar a utilizar a aplicação deverá: > - Criar/ ter uma conta do utilizador no site das lixeiras www.3rdblock.net > > - Obter uma chave para aplicações móveis (na vossa conta de > utilizador) > > - Descarregar a aplicação LimparPT do iTunes (http://www.itunes.com/app/limpar > pt) > > - Introduzir a vossa chave de utilizador no arranque da aplicação no > depósito móvel. > > --- > > Falta algma coisa ou isto é suficiente? Não seria melhor incluir um > endereço de email para onde pudessem reportar eventuais bugs ou prob > lemas com a utilização? > > Abraço! > Marco |
From: Marco A. <rea...@gm...> - 2010-01-14 23:10:34
|
Boa noite, Posso efectuar a divulgação da aplicação desta forma? --- Agora já é possível efectuar o registo de lixeiras utilizando o seu iPhone! A aplicação foi desenvolvida específicamente para o efeito e está disponível através do serviço iTunes. Para começar a utilizar a aplicação deverá: - Criar/ ter uma conta do utilizador no site das lixeiras www.3rdblock.net - Obter uma chave para aplicações móveis (na vossa conta de utilizador) - Descarregar a aplicação LimparPT do iTunes ( http://www.itunes.com/app/limparpt) - Introduzir a vossa chave de utilizador no arranque da aplicação no depósito móvel. --- Falta algma coisa ou isto é suficiente? Não seria melhor incluir um endereço de email para onde pudessem reportar eventuais bugs ou problemas com a utilização? Abraço! Marco |
From: Henrique <hjr...@gm...> - 2010-01-14 19:30:19
|
Viva. A applicação para Android não sofreu grandes desenvolvimentos ultimamente, pois não tenho tido tempo para lhe dedicar. Neste momento, já consegue comunicar com os services por SOAP - no dia em que finalmente consegui pôr isso a funcionar, recebi o email sobre a implementação REST... Estava a ter problemas em mostrar o overlay do Google Maps com os Blackspots... Assim que tiver algum tempo vou olhar para isso. Tendo isso resolvido, a aplicação fica practicamente feita, pelo menos o básico - registar blackspots e obter spots dos webservices. Cumprimentos, Henrique Nunes 2010/1/14 Cláudio Teixeira <cl...@ua...> > Olá a todos. > > > > A aplicação mobile para i-phone é já uma realidade. > > > > As restantes, estão bem encaminhadas? > > > > Cláudio > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Blackspotter-WebAPI mailing list > Bla...@li... > https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi > > |
From: Cláudio T. <cl...@ua...> - 2010-01-14 14:46:23
|
Olá a todos. A aplicação mobile para i-phone é já uma realidade. As restantes, estão bem encaminhadas? Cláudio |
From: Meik S. <lim...@co...> - 2010-01-09 11:32:10
|
Bom dia Cláudio, os métodos implementados no cliente são os seguintes: NewBlackSpot AddMediaObject EditBlackSpot DeleteBlackSpot DeleteAllMediaObjects GetAllSpotsWithinDistance todos usam XML para enviar/receber a informação. Efectuei mesmo agora um teste que devia abranger todos os métodos suportados e não encontrei nenhum problema. Meik On 2010/01/08, at 23:58, Cláudio Teixeira wrote: > Boas, no 3rdblock já há sitio para os utilizadores se registarem para usar as apps mobile. > > Fiz mais algumas alterações ao spotterservice, incluindo aumentar para 50km o limite de pontos perto de coordenada. Assim têm mais por onde escolher… podes mostrar os pontos encostados, os da vizinhança, da cidade, etc… J > > A título de curiosidade, que métodos tens implementados e em que variante? Xml? Json? > > Podes verificar se houve alguma alteração de ontem para hoje, em termos de acesso aos métodos? À partida não, mas como não tenho (ainda) um tester para todas as interfaces… > > Cláudio |
From: Cláudio T. <cl...@ua...> - 2010-01-08 23:58:46
|
Boas, no 3rdblock já há sitio para os utilizadores se registarem para usar as apps mobile. Fiz mais algumas alterações ao spotterservice, incluindo aumentar para 50km o limite de pontos perto de coordenada. Assim têm mais por onde escolher podes mostrar os pontos encostados, os da vizinhança, da cidade, etc J A título de curiosidade, que métodos tens implementados e em que variante? Xml? Json? Podes verificar se houve alguma alteração de ontem para hoje, em termos de acesso aos métodos? À partida não, mas como não tenho (ainda) um tester para todas as interfaces Cláudio |
From: Cláudio T. <cl...@ua...> - 2010-01-07 12:59:08
|
Boas, peço a todos quantos estão a testar as aplicações para tentarem, sempre que possível, ir apagando os dados relativos aos testes que vão efectuando, para que estes não vão ficando no site principal. Em breve teremos uma BD de testes, cópia integral da actual, mas até lá Plo 3rblock, Cláudio Teixeira |
From: Cláudio T. <cl...@ua...> - 2010-01-06 00:52:34
|
Boas, creio que o problema está no ID. Apesar de estares a passar um spotid, este é ignorado na criação (o ID é criado pelo servidor) e devolvido na resposta. 918cf3ad-4826-47f6-ba02-13b5c3e75ec1, no exemplo que apresentas. Na hora de apagar estás a passar o spotid que tinhas enviado para uma criação, o que não está correcto. Se passasses o 918cf3ad-4826-47f6-ba02-13b5c3e75ec1 teria dado. Podes confirmar que era esse o problema? Cláudio From: Meik Schuetz [mailto:lim...@co...] Sent: terça-feira, 22 de Dezembro de 2009 19:50 To: Cláudio Teixeira Cc: Bla...@li... Subject: [Blackspotter-webapi] Sem permissões para remover blackspot Viva Cláudio, será que não posso remover uma lixeira que registrei com a chave RB-app1Key utilizando a mesma chave? Diz me "Wrong application key or no permission"... NewBlackSpot: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <NewBlackSpot xmlns="http://blackspotter.sourceforge.net/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <blackSpot> <latitude>0</latitude> <longitude>0</longitude> <quantity>Medium</quantity> <classification>Class1Plastic</classification> <estimatedNumberVolunteers>10</estimatedNumberVolunteers> <estimatedWasteVolume>Pequena</estimatedWasteVolume> <notes>ignorar por favor - testes cliente móvel</notes> <title>ignorar por favor - testes cliente móvel</title> <tags/> <inputDate>2009-12-22T19:39:24.3961406+00:00</inputDate> <lastEditDate>2009-12-22T19:39:24.3971171+00:00</lastEditDate> <status>Unconfirmed</status> <SpotId>591de85d-52fc-44e5-ad12-461a9156eee6</SpotId> </blackSpot> <ApplicationKey>RB-app1Key</ApplicationKey> </NewBlackSpot> </s:Body> </s:Envelope> Resposta: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <NewBlackSpotResponse xmlns="http://blackspotter.sourceforge.net/"> <NewBlackSpotResult> <NewId>918cf3ad-4826-47f6-ba02-13b5c3e75ec1</NewId> <OperationSuceeded>true</OperationSuceeded> </NewBlackSpotResult> </NewBlackSpotResponse> </soap:Body> </soap:Envelope> DeleteBlackSpot: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <DeleteBlackSpot xmlns="http://blackspotter.sourceforge.net/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <uId>591de85d-52fc-44e5-ad12-461a9156eee6</uId> <ApplicationKey>RB-app1Key</ApplicationKey> </DeleteBlackSpot> </s:Body> </s:Envelope> Resposta: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <DeleteBlackSpotResponse xmlns="http://blackspotter.sourceforge.net/"> <DeleteBlackSpotResult> <NewId xsi:nil="true" /> <OperationSuceeded>false</OperationSuceeded> <ErrorMessage>Wrong application key or no permission for executing the required task</ErrorMessage> </DeleteBlackSpotResult> </DeleteBlackSpotResponse> </soap:Body> </soap:Envelope> On 2009/12/21, at 11:22, Cláudio Teixeira wrote: Viva, realmente não está coerente. Posso enviar sem ser escaped. Na próxima release ficará resolvido. Cláudio From: Meik Schuetz [mailto:lim...@co...] Sent: domingo, 20 de Dezembro de 2009 18:48 To: Cláudio Teixeira Cc: Bla...@li... Subject: Re: [Blackspotter-webapi] interface rest para mobile, com dados por json ou xml Boas Claudio, apenas uma dúvida sobre o encoding/escaping dos strings do serviço: Exemplo da lixeira com título BRG Falperra 1. Nos campos normais recebo caracteres especiais sem de ser 'escaped', exemplo: <string>Plástico</string> No campo notes recebo as notas escaped com ampersand <notes>Acesso Facil Rampa da Falperra Zona com todo tipo de lixo malas colch&#245;es mais de 20 cadeiras de beb&#233; electrodomesticos sofas etc. necess&#225;rio cami&#227;o grande ou pick up para varias entregas.</notes> Existe maneira (mais) facil (do que em Objective-C) de transmitir estes &#nnn em caracteres sem ser escaped? Obrigado On 2009/12/14, at 23:48, Cláudio Teixeira wrote: Boas, a interface rest para mobile está pronta a ser usada. Endereço base: http://www.3rdblock.net/WS/SpotterService.svc exemplos de uso: http://www.3rdblock.net/WS/SpotterService.svc/RB-app1Key/9602f591-4046-4be6- bbe7-8c251fdb0d5a/Media?format=xml http://www.3rdblock.net/WS/SpotterService.svc/RB-app1Key/9602f591-4046-4be6- bbe7-8c251fdb0d5a/Media?format=json caso não consigam extrair de forma directa os links a usar, baseiem-se na interface seguinte: public interface ISpotterService { [OperationContract] [WebInvoke(BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}?format=xml")] OperationStatus NewBlackSpot(BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}?format=json")] OperationStatus NewBlackSpotAsJson(BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebInvoke(Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}?format=xml")] OperationStatus DeleteBlackSpot(string uId, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}?format=json")] OperationStatus DeleteBlackSpotAsJson(string uId, String ApplicationKey); [OperationContract] [WebInvoke(Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}?format=xml")] OperationStatus EditBlackSpot(string uId, BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}?format=json")] OperationStatus EditBlackSpotAsJson(string uId, BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebGet( UriTemplate = "{ApplicationKey}/{uId}?format=xml")] BlackSpot GetBlackSpot(string uId, String ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/{uId}?format=json")] BlackSpot GetBlackSpotAsJson(string uId, String ApplicationKey); [OperationContract] [WebGet(UriTemplate = "{ApplicationKey}?format=xml")] BlackSpot[] GetPendingBlackSpots(String ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}?format=json")] BlackSpot[] GetPendingBlackSpotsAsJson(String ApplicationKey); [OperationContract] [WebInvoke(Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Status?format=xml")] OperationStatus ChangeBlackSpotState(string uId, BlackSpotState newState, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Status?format=json")] OperationStatus ChangeBlackSpotStateAsJson(string uId, BlackSpotState newState, String ApplicationKey); [OperationContract] [WebInvoke(BodyStyle= WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] OperationStatus AddMediaObject(string uId, byte[] contents, string title, string description, string mimeType, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] OperationStatus AddMediaObjectAsJson(string uId, byte[] contents, string title, string description, string mimeType, String ApplicationKey); [OperationContract] [WebGet(UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] MediaReader[] GetAllMediaObjects(String uId, String ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] MediaReader[] GetAllMediaObjectsAsJson(String uId, String ApplicationKey); [OperationContract] [WebInvoke( Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] OperationStatus DeleteAllMediaObjects(string uId, String ApplicationKey); [OperationContract] [WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] OperationStatus DeleteAllMediaObjectsAsJson(string uId, String ApplicationKey); [OperationContract] [WebGet(UriTemplate = "{ApplicationKey}/?lat={latitude}&lon={longitude}&dist={distanceInMeters}&fo rmat=xml")] BlackSpot[] GetAllSpotsWithinDistance(double distanceInMeters, double latitude, double longitude, string ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/?lat={latitude}&lon={longitude}&dist={distanceInMeters}&fo rmat=json")] BlackSpot[] GetAllSpotsWithinDistanceAsJson(double distanceInMeters, double latitude, double longitude, string ApplicationKey); } ---------------------------------------------------------------------------- -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Blackspotter-WebAPI mailing list Bla...@li... https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi ---------------------------------------------------------------------------- -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Blackspotter-WebAPI mailing list Bla...@li... https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi |
From: Cláudio T. <cl...@ua...> - 2010-01-04 22:15:37
|
Boas, o processo passará pelo registo do utilizador no 3rdblock e, na parte dos dados pessoais, terá a opção "activar/desactivar" chave pessoal. Se quiseres, além da AppStore, pode-se colocar a app para download a partir do 3rdblock, com visibilidade também no limparportugal (download directo ou simples links para a AppStore). Cláudio -----Original Message----- From: Meik Schuetz [mailto:lim...@co...] Sent: domingo, 3 de Janeiro de 2010 14:04 To: Cláudio Teixeira Cc: Bla...@li... Subject: Possibilidade de criar chaves de utilização para aplicações moveís Boas Cláudio, estou na fase final e penduro de submeter a aplicação para iPhone neste próxima semana para a AppStore. Assim, se tudo corre bem com a aprovação da Apple, a aplicação estará disponível na semana seguinte. Gostava perguntar quando e como vai ser possível de obter as chaves de utilização (tipo RB-app1key e RB-app2key). Será essencial de ter esta funcionalidade anunciada e/ou visível para os utilizadores do site 3rdblock.net. Obrigado Meik |
From: Meik S. <lim...@co...> - 2010-01-03 14:04:16
|
Boas Cláudio, estou na fase final e penduro de submeter a aplicação para iPhone neste próxima semana para a AppStore. Assim, se tudo corre bem com a aprovação da Apple, a aplicação estará disponível na semana seguinte. Gostava perguntar quando e como vai ser possível de obter as chaves de utilização (tipo RB-app1key e RB-app2key). Será essencial de ter esta funcionalidade anunciada e/ou visível para os utilizadores do site 3rdblock.net. Obrigado Meik |
From: Cláudio T. <cl...@ua...> - 2009-12-22 22:55:11
|
Boas, estranho.. .vou analisar. Cláudio From: Meik Schuetz [mailto:lim...@co...] Sent: terça-feira, 22 de Dezembro de 2009 19:50 To: Cláudio Teixeira Cc: Bla...@li... Subject: [Blackspotter-webapi] Sem permissões para remover blackspot Viva Cláudio, será que não posso remover uma lixeira que registrei com a chave RB-app1Key utilizando a mesma chave? Diz me "Wrong application key or no permission"... NewBlackSpot: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <NewBlackSpot xmlns="http://blackspotter.sourceforge.net/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <blackSpot> <latitude>0</latitude> <longitude>0</longitude> <quantity>Medium</quantity> <classification>Class1Plastic</classification> <estimatedNumberVolunteers>10</estimatedNumberVolunteers> <estimatedWasteVolume>Pequena</estimatedWasteVolume> <notes>ignorar por favor - testes cliente móvel</notes> <title>ignorar por favor - testes cliente móvel</title> <tags/> <inputDate>2009-12-22T19:39:24.3961406+00:00</inputDate> <lastEditDate>2009-12-22T19:39:24.3971171+00:00</lastEditDate> <status>Unconfirmed</status> <SpotId>591de85d-52fc-44e5-ad12-461a9156eee6</SpotId> </blackSpot> <ApplicationKey>RB-app1Key</ApplicationKey> </NewBlackSpot> </s:Body> </s:Envelope> Resposta: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <NewBlackSpotResponse xmlns="http://blackspotter.sourceforge.net/"> <NewBlackSpotResult> <NewId>918cf3ad-4826-47f6-ba02-13b5c3e75ec1</NewId> <OperationSuceeded>true</OperationSuceeded> </NewBlackSpotResult> </NewBlackSpotResponse> </soap:Body> </soap:Envelope> DeleteBlackSpot: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <DeleteBlackSpot xmlns="http://blackspotter.sourceforge.net/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <uId>591de85d-52fc-44e5-ad12-461a9156eee6</uId> <ApplicationKey>RB-app1Key</ApplicationKey> </DeleteBlackSpot> </s:Body> </s:Envelope> Resposta: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <DeleteBlackSpotResponse xmlns="http://blackspotter.sourceforge.net/"> <DeleteBlackSpotResult> <NewId xsi:nil="true" /> <OperationSuceeded>false</OperationSuceeded> <ErrorMessage>Wrong application key or no permission for executing the required task</ErrorMessage> </DeleteBlackSpotResult> </DeleteBlackSpotResponse> </soap:Body> </soap:Envelope> On 2009/12/21, at 11:22, Cláudio Teixeira wrote: Viva, realmente não está coerente. Posso enviar sem ser escaped. Na próxima release ficará resolvido. Cláudio From: Meik Schuetz [mailto:lim...@co...] Sent: domingo, 20 de Dezembro de 2009 18:48 To: Cláudio Teixeira Cc: Bla...@li... Subject: Re: [Blackspotter-webapi] interface rest para mobile, com dados por json ou xml Boas Claudio, apenas uma dúvida sobre o encoding/escaping dos strings do serviço: Exemplo da lixeira com título BRG Falperra 1. Nos campos normais recebo caracteres especiais sem de ser 'escaped', exemplo: <string>Plástico</string> No campo notes recebo as notas escaped com ampersand <notes>Acesso Facil Rampa da Falperra Zona com todo tipo de lixo malas colch&#245;es mais de 20 cadeiras de beb&#233; electrodomesticos sofas etc. necess&#225;rio cami&#227;o grande ou pick up para varias entregas.</notes> Existe maneira (mais) facil (do que em Objective-C) de transmitir estes &#nnn em caracteres sem ser escaped? Obrigado On 2009/12/14, at 23:48, Cláudio Teixeira wrote: Boas, a interface rest para mobile está pronta a ser usada. Endereço base: http://www.3rdblock.net/WS/SpotterService.svc exemplos de uso: http://www.3rdblock.net/WS/SpotterService.svc/RB-app1Key/9602f591-4046-4be6- bbe7-8c251fdb0d5a/Media?format=xml http://www.3rdblock.net/WS/SpotterService.svc/RB-app1Key/9602f591-4046-4be6- bbe7-8c251fdb0d5a/Media?format=json caso não consigam extrair de forma directa os links a usar, baseiem-se na interface seguinte: public interface ISpotterService { [OperationContract] [WebInvoke(BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}?format=xml")] OperationStatus NewBlackSpot(BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}?format=json")] OperationStatus NewBlackSpotAsJson(BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebInvoke(Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}?format=xml")] OperationStatus DeleteBlackSpot(string uId, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}?format=json")] OperationStatus DeleteBlackSpotAsJson(string uId, String ApplicationKey); [OperationContract] [WebInvoke(Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}?format=xml")] OperationStatus EditBlackSpot(string uId, BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}?format=json")] OperationStatus EditBlackSpotAsJson(string uId, BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebGet( UriTemplate = "{ApplicationKey}/{uId}?format=xml")] BlackSpot GetBlackSpot(string uId, String ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/{uId}?format=json")] BlackSpot GetBlackSpotAsJson(string uId, String ApplicationKey); [OperationContract] [WebGet(UriTemplate = "{ApplicationKey}?format=xml")] BlackSpot[] GetPendingBlackSpots(String ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}?format=json")] BlackSpot[] GetPendingBlackSpotsAsJson(String ApplicationKey); [OperationContract] [WebInvoke(Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Status?format=xml")] OperationStatus ChangeBlackSpotState(string uId, BlackSpotState newState, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Status?format=json")] OperationStatus ChangeBlackSpotStateAsJson(string uId, BlackSpotState newState, String ApplicationKey); [OperationContract] [WebInvoke(BodyStyle= WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] OperationStatus AddMediaObject(string uId, byte[] contents, string title, string description, string mimeType, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] OperationStatus AddMediaObjectAsJson(string uId, byte[] contents, string title, string description, string mimeType, String ApplicationKey); [OperationContract] [WebGet(UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] MediaReader[] GetAllMediaObjects(String uId, String ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] MediaReader[] GetAllMediaObjectsAsJson(String uId, String ApplicationKey); [OperationContract] [WebInvoke( Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] OperationStatus DeleteAllMediaObjects(string uId, String ApplicationKey); [OperationContract] [WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] OperationStatus DeleteAllMediaObjectsAsJson(string uId, String ApplicationKey); [OperationContract] [WebGet(UriTemplate = "{ApplicationKey}/?lat={latitude}&lon={longitude}&dist={distanceInMeters}&fo rmat=xml")] BlackSpot[] GetAllSpotsWithinDistance(double distanceInMeters, double latitude, double longitude, string ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/?lat={latitude}&lon={longitude}&dist={distanceInMeters}&fo rmat=json")] BlackSpot[] GetAllSpotsWithinDistanceAsJson(double distanceInMeters, double latitude, double longitude, string ApplicationKey); } ---------------------------------------------------------------------------- -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Blackspotter-WebAPI mailing list Bla...@li... https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi ---------------------------------------------------------------------------- -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Blackspotter-WebAPI mailing list Bla...@li... https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi |
From: Meik S. <lim...@co...> - 2009-12-22 19:50:30
|
Viva Cláudio, será que não posso remover uma lixeira que registrei com a chave RB-app1Key utilizando a mesma chave? Diz me "Wrong application key or no permission"... NewBlackSpot: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <NewBlackSpot xmlns="http://blackspotter.sourceforge.net/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <blackSpot> <latitude>0</latitude> <longitude>0</longitude> <quantity>Medium</quantity> <classification>Class1Plastic</classification> <estimatedNumberVolunteers>10</estimatedNumberVolunteers> <estimatedWasteVolume>Pequena</estimatedWasteVolume> <notes>ignorar por favor - testes cliente móvel</notes> <title>ignorar por favor - testes cliente móvel</title> <tags/> <inputDate>2009-12-22T19:39:24.3961406+00:00</inputDate> <lastEditDate>2009-12-22T19:39:24.3971171+00:00</lastEditDate> <status>Unconfirmed</status> <SpotId>591de85d-52fc-44e5-ad12-461a9156eee6</SpotId> </blackSpot> <ApplicationKey>RB-app1Key</ApplicationKey> </NewBlackSpot> </s:Body> </s:Envelope> Resposta: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <NewBlackSpotResponse xmlns="http://blackspotter.sourceforge.net/"> <NewBlackSpotResult> <NewId>918cf3ad-4826-47f6-ba02-13b5c3e75ec1</NewId> <OperationSuceeded>true</OperationSuceeded> </NewBlackSpotResult> </NewBlackSpotResponse> </soap:Body> </soap:Envelope> DeleteBlackSpot: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <DeleteBlackSpot xmlns="http://blackspotter.sourceforge.net/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <uId>591de85d-52fc-44e5-ad12-461a9156eee6</uId> <ApplicationKey>RB-app1Key</ApplicationKey> </DeleteBlackSpot> </s:Body> </s:Envelope> Resposta: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <DeleteBlackSpotResponse xmlns="http://blackspotter.sourceforge.net/"> <DeleteBlackSpotResult> <NewId xsi:nil="true" /> <OperationSuceeded>false</OperationSuceeded> <ErrorMessage>Wrong application key or no permission for executing the required task</ErrorMessage> </DeleteBlackSpotResult> </DeleteBlackSpotResponse> </soap:Body> </soap:Envelope> On 2009/12/21, at 11:22, Cláudio Teixeira wrote: > Viva, realmente não está coerente. > Posso enviar sem ser escaped. > Na próxima release ficará resolvido. > > Cláudio > > From: Meik Schuetz [mailto:lim...@co...] > Sent: domingo, 20 de Dezembro de 2009 18:48 > To: Cláudio Teixeira > Cc: Bla...@li... > Subject: Re: [Blackspotter-webapi] interface rest para mobile, com dados por json ou xml > > Boas Claudio, > apenas uma dúvida sobre o encoding/escaping dos strings do serviço: > > Exemplo da lixeira com título BRG Falperra 1. > > Nos campos normais recebo caracteres especiais sem de ser 'escaped', exemplo: > <string>Plástico</string> > > No campo notes recebo as notas escaped com ampersand > > <notes>Acesso Facil Rampa da Falperra > > Zona com todo tipo de lixo > malas > colch&#245;es mais de 20 > cadeiras de beb&#233; > electrodomesticos > sofas > etc. > > necess&#225;rio cami&#227;o grande ou pick up para varias entregas.</notes> > > Existe maneira (mais) facil (do que em Objective-C) de transmitir estes &#nnn em caracteres sem ser escaped? > Obrigado > > On 2009/12/14, at 23:48, Cláudio Teixeira wrote: > > > Boas, a interface rest para mobile está pronta a ser usada. > > Endereço base: > http://www.3rdblock.net/WS/SpotterService.svc > > exemplos de uso: > http://www.3rdblock.net/WS/SpotterService.svc/RB-app1Key/9602f591-4046-4be6-bbe7-8c251fdb0d5a/Media?format=xml > http://www.3rdblock.net/WS/SpotterService.svc/RB-app1Key/9602f591-4046-4be6-bbe7-8c251fdb0d5a/Media?format=json > > caso não consigam extrair de forma directa os links a usar, baseiem-se na interface seguinte: > > public interface ISpotterService > { > > [OperationContract] > [WebInvoke(BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}?format=xml")] > OperationStatus NewBlackSpot(BlackSpot blackSpot, String ApplicationKey); > > [OperationContract] > [WebInvoke(RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}?format=json")] > OperationStatus NewBlackSpotAsJson(BlackSpot blackSpot, String ApplicationKey); > > > [OperationContract] > [WebInvoke(Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}?format=xml")] > OperationStatus DeleteBlackSpot(string uId, String ApplicationKey); > > [OperationContract] > [WebInvoke(RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}?format=json")] > OperationStatus DeleteBlackSpotAsJson(string uId, String ApplicationKey); > > [OperationContract] > [WebInvoke(Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}?format=xml")] > OperationStatus EditBlackSpot(string uId, BlackSpot blackSpot, String ApplicationKey); > > [OperationContract] > [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}?format=json")] > OperationStatus EditBlackSpotAsJson(string uId, BlackSpot blackSpot, String ApplicationKey); > > > [OperationContract] > [WebGet( UriTemplate = "{ApplicationKey}/{uId}?format=xml")] > BlackSpot GetBlackSpot(string uId, String ApplicationKey); > > [OperationContract] > [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/{uId}?format=json")] > BlackSpot GetBlackSpotAsJson(string uId, String ApplicationKey); > > [OperationContract] > [WebGet(UriTemplate = "{ApplicationKey}?format=xml")] > BlackSpot[] GetPendingBlackSpots(String ApplicationKey); > > [OperationContract] > [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}?format=json")] > BlackSpot[] GetPendingBlackSpotsAsJson(String ApplicationKey); > > > [OperationContract] > [WebInvoke(Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Status?format=xml")] > OperationStatus ChangeBlackSpotState(string uId, BlackSpotState newState, String ApplicationKey); > > [OperationContract] > [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Status?format=json")] > OperationStatus ChangeBlackSpotStateAsJson(string uId, BlackSpotState newState, String ApplicationKey); > > > [OperationContract] > [WebInvoke(BodyStyle= WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] > OperationStatus AddMediaObject(string uId, byte[] contents, string title, string description, string mimeType, String ApplicationKey); > [OperationContract] > [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] > OperationStatus AddMediaObjectAsJson(string uId, byte[] contents, string title, string description, string mimeType, String ApplicationKey); > > > [OperationContract] > [WebGet(UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] > MediaReader[] GetAllMediaObjects(String uId, String ApplicationKey); > > [OperationContract] > [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] > MediaReader[] GetAllMediaObjectsAsJson(String uId, String ApplicationKey); > > [OperationContract] > [WebInvoke( Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] > OperationStatus DeleteAllMediaObjects(string uId, String ApplicationKey); > > [OperationContract] > [WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] > OperationStatus DeleteAllMediaObjectsAsJson(string uId, String ApplicationKey); > > [OperationContract] > [WebGet(UriTemplate = "{ApplicationKey}/?lat={latitude}&lon={longitude}&dist={distanceInMeters}&format=xml")] > BlackSpot[] GetAllSpotsWithinDistance(double distanceInMeters, double latitude, double longitude, string ApplicationKey); > > [OperationContract] > [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/?lat={latitude}&lon={longitude}&dist={distanceInMeters}&format=json")] > BlackSpot[] GetAllSpotsWithinDistanceAsJson(double distanceInMeters, double latitude, double longitude, string ApplicationKey); > > } > > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Blackspotter-WebAPI mailing list > Bla...@li... > https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ > Blackspotter-WebAPI mailing list > Bla...@li... > https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi |
From: Cláudio T. <cl...@ua...> - 2009-12-21 11:22:49
|
Viva, realmente não está coerente. Posso enviar sem ser escaped. Na próxima release ficará resolvido. Cláudio From: Meik Schuetz [mailto:lim...@co...] Sent: domingo, 20 de Dezembro de 2009 18:48 To: Cláudio Teixeira Cc: Bla...@li... Subject: Re: [Blackspotter-webapi] interface rest para mobile, com dados por json ou xml Boas Claudio, apenas uma dúvida sobre o encoding/escaping dos strings do serviço: Exemplo da lixeira com título BRG Falperra 1. Nos campos normais recebo caracteres especiais sem de ser 'escaped', exemplo: <string>Plástico</string> No campo notes recebo as notas escaped com ampersand <notes>Acesso Facil Rampa da Falperra Zona com todo tipo de lixo malas colch&#245;es mais de 20 cadeiras de beb&#233; electrodomesticos sofas etc. necess&#225;rio cami&#227;o grande ou pick up para varias entregas.</notes> Existe maneira (mais) facil (do que em Objective-C) de transmitir estes &#nnn em caracteres sem ser escaped? Obrigado On 2009/12/14, at 23:48, Cláudio Teixeira wrote: Boas, a interface rest para mobile está pronta a ser usada. Endereço base: http://www.3rdblock.net/WS/SpotterService.svc exemplos de uso: http://www.3rdblock.net/WS/SpotterService.svc/RB-app1Key/9602f591-4046-4be6- bbe7-8c251fdb0d5a/Media?format=xml http://www.3rdblock.net/WS/SpotterService.svc/RB-app1Key/9602f591-4046-4be6- bbe7-8c251fdb0d5a/Media?format=json caso não consigam extrair de forma directa os links a usar, baseiem-se na interface seguinte: public interface ISpotterService { [OperationContract] [WebInvoke(BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}?format=xml")] OperationStatus NewBlackSpot(BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}?format=json")] OperationStatus NewBlackSpotAsJson(BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebInvoke(Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}?format=xml")] OperationStatus DeleteBlackSpot(string uId, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}?format=json")] OperationStatus DeleteBlackSpotAsJson(string uId, String ApplicationKey); [OperationContract] [WebInvoke(Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}?format=xml")] OperationStatus EditBlackSpot(string uId, BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}?format=json")] OperationStatus EditBlackSpotAsJson(string uId, BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebGet( UriTemplate = "{ApplicationKey}/{uId}?format=xml")] BlackSpot GetBlackSpot(string uId, String ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/{uId}?format=json")] BlackSpot GetBlackSpotAsJson(string uId, String ApplicationKey); [OperationContract] [WebGet(UriTemplate = "{ApplicationKey}?format=xml")] BlackSpot[] GetPendingBlackSpots(String ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}?format=json")] BlackSpot[] GetPendingBlackSpotsAsJson(String ApplicationKey); [OperationContract] [WebInvoke(Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Status?format=xml")] OperationStatus ChangeBlackSpotState(string uId, BlackSpotState newState, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Status?format=json")] OperationStatus ChangeBlackSpotStateAsJson(string uId, BlackSpotState newState, String ApplicationKey); [OperationContract] [WebInvoke(BodyStyle= WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] OperationStatus AddMediaObject(string uId, byte[] contents, string title, string description, string mimeType, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] OperationStatus AddMediaObjectAsJson(string uId, byte[] contents, string title, string description, string mimeType, String ApplicationKey); [OperationContract] [WebGet(UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] MediaReader[] GetAllMediaObjects(String uId, String ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] MediaReader[] GetAllMediaObjectsAsJson(String uId, String ApplicationKey); [OperationContract] [WebInvoke( Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] OperationStatus DeleteAllMediaObjects(string uId, String ApplicationKey); [OperationContract] [WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] OperationStatus DeleteAllMediaObjectsAsJson(string uId, String ApplicationKey); [OperationContract] [WebGet(UriTemplate = "{ApplicationKey}/?lat={latitude}&lon={longitude}&dist={distanceInMeters}&fo rmat=xml")] BlackSpot[] GetAllSpotsWithinDistance(double distanceInMeters, double latitude, double longitude, string ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/?lat={latitude}&lon={longitude}&dist={distanceInMeters}&fo rmat=json")] BlackSpot[] GetAllSpotsWithinDistanceAsJson(double distanceInMeters, double latitude, double longitude, string ApplicationKey); } ---------------------------------------------------------------------------- -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Blackspotter-WebAPI mailing list Bla...@li... https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi |
From: Meik S. <lim...@co...> - 2009-12-20 18:48:02
|
Boas Claudio, apenas uma dúvida sobre o encoding/escaping dos strings do serviço: Exemplo da lixeira com título BRG Falperra 1. Nos campos normais recebo caracteres especiais sem de ser 'escaped', exemplo: <string>Plástico</string> No campo notes recebo as notas escaped com ampersand <notes>Acesso Facil Rampa da Falperra Zona com todo tipo de lixo malas colch&#245;es mais de 20 cadeiras de beb&#233; electrodomesticos sofas etc. necess&#225;rio cami&#227;o grande ou pick up para varias entregas.</notes> Existe maneira (mais) facil (do que em Objective-C) de transmitir estes &#nnn em caracteres sem ser escaped? Obrigado On 2009/12/14, at 23:48, Cláudio Teixeira wrote: > Boas, a interface rest para mobile está pronta a ser usada. > > Endereço base: > http://www.3rdblock.net/WS/SpotterService.svc > > exemplos de uso: > http://www.3rdblock.net/WS/SpotterService.svc/RB-app1Key/9602f591-4046-4be6-bbe7-8c251fdb0d5a/Media?format=xml > http://www.3rdblock.net/WS/SpotterService.svc/RB-app1Key/9602f591-4046-4be6-bbe7-8c251fdb0d5a/Media?format=json > > caso não consigam extrair de forma directa os links a usar, baseiem-se na interface seguinte: > > public interface ISpotterService > { > > [OperationContract] > [WebInvoke(BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}?format=xml")] > OperationStatus NewBlackSpot(BlackSpot blackSpot, String ApplicationKey); > > [OperationContract] > [WebInvoke(RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}?format=json")] > OperationStatus NewBlackSpotAsJson(BlackSpot blackSpot, String ApplicationKey); > > > [OperationContract] > [WebInvoke(Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}?format=xml")] > OperationStatus DeleteBlackSpot(string uId, String ApplicationKey); > > [OperationContract] > [WebInvoke(RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}?format=json")] > OperationStatus DeleteBlackSpotAsJson(string uId, String ApplicationKey); > > [OperationContract] > [WebInvoke(Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}?format=xml")] > OperationStatus EditBlackSpot(string uId, BlackSpot blackSpot, String ApplicationKey); > > [OperationContract] > [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}?format=json")] > OperationStatus EditBlackSpotAsJson(string uId, BlackSpot blackSpot, String ApplicationKey); > > > [OperationContract] > [WebGet( UriTemplate = "{ApplicationKey}/{uId}?format=xml")] > BlackSpot GetBlackSpot(string uId, String ApplicationKey); > > [OperationContract] > [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/{uId}?format=json")] > BlackSpot GetBlackSpotAsJson(string uId, String ApplicationKey); > > [OperationContract] > [WebGet(UriTemplate = "{ApplicationKey}?format=xml")] > BlackSpot[] GetPendingBlackSpots(String ApplicationKey); > > [OperationContract] > [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}?format=json")] > BlackSpot[] GetPendingBlackSpotsAsJson(String ApplicationKey); > > > [OperationContract] > [WebInvoke(Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Status?format=xml")] > OperationStatus ChangeBlackSpotState(string uId, BlackSpotState newState, String ApplicationKey); > > [OperationContract] > [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Status?format=json")] > OperationStatus ChangeBlackSpotStateAsJson(string uId, BlackSpotState newState, String ApplicationKey); > > > [OperationContract] > [WebInvoke(BodyStyle= WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] > OperationStatus AddMediaObject(string uId, byte[] contents, string title, string description, string mimeType, String ApplicationKey); > [OperationContract] > [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] > OperationStatus AddMediaObjectAsJson(string uId, byte[] contents, string title, string description, string mimeType, String ApplicationKey); > > > [OperationContract] > [WebGet(UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] > MediaReader[] GetAllMediaObjects(String uId, String ApplicationKey); > > [OperationContract] > [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] > MediaReader[] GetAllMediaObjectsAsJson(String uId, String ApplicationKey); > > [OperationContract] > [WebInvoke( Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] > OperationStatus DeleteAllMediaObjects(string uId, String ApplicationKey); > > [OperationContract] > [WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] > OperationStatus DeleteAllMediaObjectsAsJson(string uId, String ApplicationKey); > > [OperationContract] > [WebGet(UriTemplate = "{ApplicationKey}/?lat={latitude}&lon={longitude}&dist={distanceInMeters}&format=xml")] > BlackSpot[] GetAllSpotsWithinDistance(double distanceInMeters, double latitude, double longitude, string ApplicationKey); > > [OperationContract] > [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/?lat={latitude}&lon={longitude}&dist={distanceInMeters}&format=json")] > BlackSpot[] GetAllSpotsWithinDistanceAsJson(double distanceInMeters, double latitude, double longitude, string ApplicationKey); > > } > > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Blackspotter-WebAPI mailing list > Bla...@li... > https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi |
From: Cláudio T. <cl...@ua...> - 2009-12-14 23:48:53
|
Boas, a interface rest para mobile está pronta a ser usada. Endereço base: http://www.3rdblock.net/WS/SpotterService.svc exemplos de uso: http://www.3rdblock.net/WS/SpotterService.svc/RB-app1Key/9602f591-4046-4be6- bbe7-8c251fdb0d5a/Media?format=xml http://www.3rdblock.net/WS/SpotterService.svc/RB-app1Key/9602f591-4046-4be6- bbe7-8c251fdb0d5a/Media?format=json caso não consigam extrair de forma directa os links a usar, baseiem-se na interface seguinte: public interface ISpotterService { [OperationContract] [WebInvoke(BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}?format=xml")] OperationStatus NewBlackSpot(BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}?format=json")] OperationStatus NewBlackSpotAsJson(BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebInvoke(Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}?format=xml")] OperationStatus DeleteBlackSpot(string uId, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}?format=json")] OperationStatus DeleteBlackSpotAsJson(string uId, String ApplicationKey); [OperationContract] [WebInvoke(Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}?format=xml")] OperationStatus EditBlackSpot(string uId, BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}?format=json")] OperationStatus EditBlackSpotAsJson(string uId, BlackSpot blackSpot, String ApplicationKey); [OperationContract] [WebGet( UriTemplate = "{ApplicationKey}/{uId}?format=xml")] BlackSpot GetBlackSpot(string uId, String ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/{uId}?format=json")] BlackSpot GetBlackSpotAsJson(string uId, String ApplicationKey); [OperationContract] [WebGet(UriTemplate = "{ApplicationKey}?format=xml")] BlackSpot[] GetPendingBlackSpots(String ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}?format=json")] BlackSpot[] GetPendingBlackSpotsAsJson(String ApplicationKey); [OperationContract] [WebInvoke(Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Status?format=xml")] OperationStatus ChangeBlackSpotState(string uId, BlackSpotState newState, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Status?format=json")] OperationStatus ChangeBlackSpotStateAsJson(string uId, BlackSpotState newState, String ApplicationKey); [OperationContract] [WebInvoke(BodyStyle= WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] OperationStatus AddMediaObject(string uId, byte[] contents, string title, string description, string mimeType, String ApplicationKey); [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, Method = "PUT", UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] OperationStatus AddMediaObjectAsJson(string uId, byte[] contents, string title, string description, string mimeType, String ApplicationKey); [OperationContract] [WebGet(UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] MediaReader[] GetAllMediaObjects(String uId, String ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] MediaReader[] GetAllMediaObjectsAsJson(String uId, String ApplicationKey); [OperationContract] [WebInvoke( Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}/Media?format=xml")] OperationStatus DeleteAllMediaObjects(string uId, String ApplicationKey); [OperationContract] [WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "DELETE", UriTemplate = "{ApplicationKey}/{uId}/Media?format=json")] OperationStatus DeleteAllMediaObjectsAsJson(string uId, String ApplicationKey); [OperationContract] [WebGet(UriTemplate = "{ApplicationKey}/?lat={latitude}&lon={longitude}&dist={distanceInMeters}&fo rmat=xml")] BlackSpot[] GetAllSpotsWithinDistance(double distanceInMeters, double latitude, double longitude, string ApplicationKey); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "{ApplicationKey}/?lat={latitude}&lon={longitude}&dist={distanceInMeters}&fo rmat=json")] BlackSpot[] GetAllSpotsWithinDistanceAsJson(double distanceInMeters, double latitude, double longitude, string ApplicationKey); } |
From: <lim...@co...> - 2009-12-03 10:06:05
|
Bom Dia Henrique, sem dúvida, REST será mais fácil de implementar. Mas uma vez que o WebAPI não é assim tão complexo na estrutura e SOAP também não é outra coisa do que XML enviado por um HTTP/POST é relativamente fácil de ligar o cliente ao servidor. Para dar os primeiros passos analisei o trafico entre WS e um cliente .NET numa máquina virtual, utilizando Visual Studio 2008 e o Fiddler (HTTP Debugging Proxy). Isto ajuda imenso em construir o HTTP/POST a extrair a informação devolvida pelo WS. Utilizo uma aplicação "Charles" para o HTTP debugging proxy no lado do Mac e assim funciona muito bem. Relativamente ao problema que estás a experimentar, a estrutura parece me bem. Nos namespaces do XML já não tenho tanta certeza, pode ser um namespace ou prefixo errado. Compara os namespaces do teu request com o que está esperado pelo WS http://www.3rdblock.net/ws/spotting.asmx?op=NewBlackSpot Qualquer dúvida, disponha... Meik > -----Ursprüngliche Nachricht----- > Von: "Henrique" <hjr...@gm...> > Gesendet: 03.12.2009 06:06:25 > An: > Betreff: [Blackspotter-webapi] cliente Android / WebAPI key > > Caríssimos, Iniciei há dois ou três dias o desenvolvimento de um cliente > Android para o projecto. Tenho tudo mais ou menos controlado a nível da > aplicação Android em si - é muito fácil mostrar mapas, etc em Android :) > - mas encontrei resistência na parte de comunicar com o WebAPI. O > Android não tem nenhum suporte para consumir web services SOAP, pelo > que tive de recorrer a uma lib externa - kSOAP2 - que, por sua vez, não > suporta ficheiros WSDL. De qualquer maneira, o meu problema reside no > facto de que cada vez que tento fazer um request ao web service live > recebo uma resposta de erro: anyType{NewId=null; > OperationSuceeded=false; ErrorMessage=Wrong application key or no > permission for executing the required task; } Já tentei com as duas > chaves e obtenho o mesmo resultado. Muito provavelmente o XML que estou > a mandar não está muito bom e essa é que acaba por ser a razão do > email... vai em anexo o request que, para já, consigo extrair do kSOAP2. > Sei que não está bem, mas dava-me jeito uma vista dos vossos olhos. :) > Não sou grande artista de web services nem de XML... muito menos .NET... > Ainda não tentei enviar o XML à pata para ver se é mesmo problema meu... > Já agora, a minha plataforma de desenvolvimento é mac pelo que, assim de > repente não consigo correr o web service localmente; o visual C# express > 2008 é suficiente para pôr isso a correr? Para acabar, não sei o que o > pessoal do iPhone acha mas, pelo que já vi, uma implementação REST > facilitava muito a vida para o Android... Cumprimentos,Henrique Nunes |
From: Francisco M. <fs...@di...> - 2009-12-03 09:28:41
|
Caro Henrique e restante pessoal do blackspotter, 1) O SoapUI ( http://www.soapui.org/ ) também corre no Mac e segundo creio permite a criação de um servidor local a partir do WSDL e o lançamento manual de invocações de webservices. No meu mac parece ter um "memory leak", mas no de um colega aguenta-se firme com resmas de benchmarks. Pode ser algo no meu java. 2) Sabem dizer-me quem está a desenvolver o cliente para Windows Mobile? Estou a tratar da formalização do apoio da Microsoft, que neste caso será apoio técnico a essa equipa de desenvolvimento, mas já tenho a pessoa a contactar. O apoio é tipo help desk, mas com alguma arte não será difícil pedir "código de demonstração"... Obrigado fsm On 2009/12/03, at 05:06, Henrique wrote: > Caríssimos, > > Iniciei há dois ou três dias o desenvolvimento de um cliente Android > para o projecto. Tenho tudo mais ou menos controlado a nível da > aplicação Android em si - é muito fácil mostrar mapas, etc em > Android :) - mas encontrei resistência na parte de comunicar com o > WebAPI. > > O Android não tem nenhum suporte para consumir web services SOAP, > pelo que tive de recorrer a uma lib externa - kSOAP2 - que, por sua > vez, não suporta ficheiros WSDL. De qualquer maneira, o meu problema > reside no facto de que cada vez que tento fazer um request ao web > service live recebo uma resposta de erro: > > anyType{NewId=null; OperationSuceeded=false; ErrorMessage=Wrong > application key or no permission for executing the required task; } > > Já tentei com as duas chaves e obtenho o mesmo resultado. Muito > provavelmente o XML que estou a mandar não está muito bom e essa é > que acaba por ser a razão do email... vai em anexo o request que, > para já, consigo extrair do kSOAP2. Sei que não está bem, mas dava- > me jeito uma vista dos vossos olhos. :) > Não sou grande artista de web services nem de XML... muito > menos .NET... > > Ainda não tentei enviar o XML à pata para ver se é mesmo problema > meu... > Já agora, a minha plataforma de desenvolvimento é mac pelo que, > assim de repente não consigo correr o web service localmente; o > visual C# express 2008 é suficiente para pôr isso a correr? > > Para acabar, não sei o que o pessoal do iPhone acha mas, pelo que já > vi, uma implementação REST facilitava muito a vida para o Android... > > Cumprimentos, > Henrique Nunes > < > request > .xml > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev_______________________________________________ > Blackspotter-WebAPI mailing list > Bla...@li... > https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi |
From: Luis M. <lui...@es...> - 2009-11-27 09:49:48
|
Bom dia, Somos docentes (de duas unidades curriculares) do Mestrado de Computação Móvel ministrado no Instituto Politécnico de Leiria e decidimos que o trabalho a realizar pelos alunos seria o desenvolvimento de um software que pudesse ser usado no âmbito do projecto Limpar Portugal. Como foi necessário publicar o enunciado antes de estar definida a API web do Black Spotter, decidimos definir o serviço web que permitisse uniformizar todas as implementações a realizar pelos vários alunos (os alunos têm de implementar tanto a parte do servidor como da aplicação móvel). Como a interface que definimos é mais complexa que a definida por este projecto (por exemplo, os utilizadores são registados) acreditamos que é relativamente simples transformar as aplicações desenvolvidas pelos nossos alunos em aplicações compatíveis com a interface web definida este projecto. Os alunos irão desenvolver aplicações em Java ME (podendo usar toolkits gráficos como por exemplo o LWUIT) que deverão depois disponibilizar ao público. Os requisitos que colocámos para a aplicação cliente a utilizar nos dispositivos móveis foram os seguintes : 1) Funcionamento com WIFI ou 3G; 2) Armazenamento de fotografias das lixeiras; 3) Registo das coordenadas GPS se o dispositivo o permitir ou Distrito/Concelho/Freguesia caso contrário; 4) Tenha um modo de funcionamento offline (ou seja permita enviar os dados mais tarde caso o dispositivo não tenha rede no momento); 5) Permita o registo de utilizadores. Poderemos enviar se alguém estiver interessado a definição dos WSDL que entregámos aos alunos (ou outras informações que achem pertinentes). Esperamos que possamos todos colaborar e "Limpar Portugal". Cumprimentos, Luis Marcelino Catarina Silva |
From: <lim...@co...> - 2009-11-26 12:08:40
|
Olá Claudio, estou tratar do software para iPhone/iPod touch, actualmente implementando UI e cenário offline, esperando chegar à integração do WebAPI para semana. Qualquer dúvida, disponha Abraço Meik > > -----Ursprüngliche Nachricht----- > Von: "=?iso-8859-1?Q?Cl=E1udio_Teixeira?=" <cl...@ua...> > Gesendet: 26.11.2009 05:04:52 > An: > Betreff: [Blackspotter-webapi] levantamento de projectos sobre WS > > Boas, não sei se esta info está já em algum sítio ou não, mas gostaria > de tentar fazer o levantamento dos equipamentos móveis para os quais > estão a desenvolver aplicações. Caso tal informação ainda não exista, > peço que respondam a este mail com os vossos targets. Caso já exista, > alguém que me diga onde está J Cláudio Teixeira |
From: Nelson R. <ner...@ne...> - 2009-11-26 11:23:44
|
Ola a todos, so pra dizer parabens pelo trabalho e que estou disponivel para outros desenvolvimentos que sejam necessarios. Cumprimentos, Nelson ________________________________ De: TERRACOTA-NUNO MENDES [mailto:nun...@gm...] Enviada: qui 26-11-2009 11:08 Para: Cláudio Teixeira Cc: Bla...@li... Assunto: Re: [Blackspotter-webapi] novidades WS Parabéns Claudo, JP e Cia! 2009/11/26 Cláudio Teixeira <cl...@ua...> Boas, o web service tem algumas novidades: todos os métodos de inserção, remoção ou edição devolvem um objecto com informação: ID (no caso de criação de novos eventos), mensagem de erro (se necessário) e info de operação bem sucedida ou não. Pegando na sugestão do Meik, foi implementado um método para saber todos os pontos já colocados num raio de x metros. Neste momento está limitado a 2000 metros. Razão para o limite: a listagem devolve toda a info (à excepção de media associado). Para manter tamanhos de mensagens aceitáveis, e prevendo focos de grande "actividade" creio que esta distância permite, por um lado, um raio razoavelmente abrangente, e por outro lado minimizar o possível impacto (quantas lixeiras conseguiram existir numa área de 4Km2? J ). Mais detalhes: a pesquisa em distância procura num quadrado e não numa circunferência. Conta mais fácil J Todos os métodos estão já testados. Qualquer dúvida, disponham. P'lo 3rdblock, Cláudio Teixeira ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Blackspotter-WebAPI mailing list Bla...@li... https://lists.sourceforge.net/lists/listinfo/blackspotter-webapi -- Abraço, Nuno Mendes www.terracotta.nireblog.com <http://www.terracotta.nireblog.com/> |