web-services

Read a PDF file and return as stream from a WCF service?

不问归期 提交于 2020-01-04 13:29:54
问题 I want to create a WCF service (working like windows service). This service will read a PDF file from a specific path, extract pages, create a new PDF file and return it to the caller. How can I do this ? I use QuickPDF to process on PDF files, I can extract and create new PDF file. How can use this in a WCF service ? Waiting your helps... This is only sample code : public Stream ExtractPdf(string PathOfOriginalPdfFile, int StartPage,int PageCount) { PDFLibrary qp = new PDFLibrary(); Stream

Read a PDF file and return as stream from a WCF service?

和自甴很熟 提交于 2020-01-04 13:29:37
问题 I want to create a WCF service (working like windows service). This service will read a PDF file from a specific path, extract pages, create a new PDF file and return it to the caller. How can I do this ? I use QuickPDF to process on PDF files, I can extract and create new PDF file. How can use this in a WCF service ? Waiting your helps... This is only sample code : public Stream ExtractPdf(string PathOfOriginalPdfFile, int StartPage,int PageCount) { PDFLibrary qp = new PDFLibrary(); Stream

encrypting soap in .net

做~自己de王妃 提交于 2020-01-04 11:43:21
问题 I have been trying to encrypt soap message and send to the server, so that the server can decrypt, process the message, encrypt the response again and send back to the client... I short i want to implement security in ASMX web services.... Please help me Thanks Sandeep 回答1: https and soap extensions are good solutions; you can always 'roll your own' by encryting the inputs and outputs directly [WebMethod] public string SecureMethodX(string secureInput) { string plainText = decrypt(secureInput

encrypting soap in .net

こ雲淡風輕ζ 提交于 2020-01-04 11:43:20
问题 I have been trying to encrypt soap message and send to the server, so that the server can decrypt, process the message, encrypt the response again and send back to the client... I short i want to implement security in ASMX web services.... Please help me Thanks Sandeep 回答1: https and soap extensions are good solutions; you can always 'roll your own' by encryting the inputs and outputs directly [WebMethod] public string SecureMethodX(string secureInput) { string plainText = decrypt(secureInput

Setting up web services with x509 and multiple clients and how to distinguish clients?

ⅰ亾dé卋堺 提交于 2020-01-04 09:39:49
问题 Following these two links, I was able to implement a simple web service with x509 certification, and an authenticated test client to consume the service. Right now, it looks something like this: -------------- | ServiceA.svc | ------------> Test Client 1 | -GetData() | -------------- How can I extend what I have to accomplish something like this: -------------- | ServiceA.svc | ------------> Test Client 1 | -GetData() | ------------> Test Client 2 | -SaveData() | -------------- | ServiceB.svc

Setting up web services with x509 and multiple clients and how to distinguish clients?

我的梦境 提交于 2020-01-04 09:39:13
问题 Following these two links, I was able to implement a simple web service with x509 certification, and an authenticated test client to consume the service. Right now, it looks something like this: -------------- | ServiceA.svc | ------------> Test Client 1 | -GetData() | -------------- How can I extend what I have to accomplish something like this: -------------- | ServiceA.svc | ------------> Test Client 1 | -GetData() | ------------> Test Client 2 | -SaveData() | -------------- | ServiceB.svc

Axis2 web service error: services.xml not found

*爱你&永不变心* 提交于 2020-01-04 09:12:19
问题 I have been trying to deploy a simple axis2 web service onto a wso2 application server but I keep on getting the error: Error: org.apache.axis2.deployment.DeploymentException: The services.xml file cannot be found for the service: /WSO2/wso2as-4.1.0/repository/deployment/server/axis2services/SomeService.aar However, a quick peek at that .aar file revealed that the services.xml file was indeed contained in the META-INF folder as needed. What would cause such an error, and how do I proceed with

C#/Java - Consuming WCF Service from Android emulator

和自甴很熟 提交于 2020-01-04 07:19:10
问题 I'm trying to learn how Android interacts with WCF (C#) service. I have gone through a lot of posts regarding the same, here at SO. However, I couldn't find a definite answer to the problem. Every body has posted their own approach and it is confusing me. I have created a demo service which just returns the string "Hello World!!". public string HelloWorld() { return ("Hello World!"); } I have defined the service contract as: [OperationContract] [XmlSerializerFormat(Style =

Handle Authentication and Authorization in jax-rs webservice with cxf

隐身守侯 提交于 2020-01-04 06:55:07
问题 I have a webapp which has jsps. am not using any struts or mvc framework. We have JAX-RS service build using Apache CXF. Now i want to do following Allow user to login with username and password. For all subsequent calls to webservice, same authentication info should be used. Logged in user has some details (profile photo, full name), which i want to keep it constant across session. Also, its role are defined. Based on role(s) only certain jax-rs calls will be allowed. Roles are also used in

How to return a custom complex type in JAX-WS web services?

泄露秘密 提交于 2020-01-04 06:49:13
问题 I have been attempting recently to write a web service that returns a custom object. This object is very simple: public class AppInfo { private int AppID; private String Appname; private String AppDesc; private String AppPriv; public int GetAppID() { return this.AppID;} public void SetAppID(int AppID) { this.AppID = AppID;} public String GetAppName() { return this.Appname;} public void SetAppName(String AppName) { this.Appname = AppName;} public String GetAppDesc() { return this.AppDesc;}