web-services

How to extract the values from request input xml in jmeter

南笙酒味 提交于 2019-12-24 19:57:04
问题 I wanted to extract the value of refid1 and refid2 tags form the input xml in Http request . refID1 and refid2 values are generated at runtime using random number function . please find below attached screenshot for the problem : Request tab snapshot from Jmeter. Thanks in advance! 回答1: Since you're generating the data, I suppose you have access to the XML request data. So in this case, you can make those 2 fields variables extracted from CSV using CSV Data Set config. If you're generating

Consume XML SOAP Webservice in Java

为君一笑 提交于 2019-12-24 19:55:24
问题 I need to know what is the best way to consume an XML SOAP Webservice in Java. I need to send the following request: POST /cfdi/wsTimbrado.asmx HTTP/1.1 Host: test.timbrado.com.mx Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://test.timbrado.com.mx/cfdi/GeneraTimbre" <?xml version="1.0" encoding="utf-8"?> <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

WCF Service Method Not Allowed When Using WebsiteName

跟風遠走 提交于 2019-12-24 19:44:07
问题 I have the following service contract [OperationContract] [WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "POST")] List<Myobject> GetAll(); When I call the service method using the IP of the server (An online server) it works, but when I call it using the name of the website it does not work, it returns "Method Not Allowed". The Url of the server is of format "https://www.example.com/myweb (This is not working) While for example xxxx.xx.xx.xx/myweb is working. Please note the

Windows Gadget for Sharepoint 2007 List using SOAP, Javascript, C#, Webservices, jQuery

自古美人都是妖i 提交于 2019-12-24 19:32:06
问题 I am trying to develop a Gadget for Sharepoint 2007, which will authenticate a user and then fetch him a sharepoint list from a specific URL, For the last 4 days I have been working on it and came across different ways of making it, but because solutions are either half done, dont work or too confusing to get help from or convert into what I want. Because Windows Gadget uses Scripting + HTML so I have following options to carry on work with to make this gadget, Create a Visual studio project

Problem creating proxy class with wsdl.exe

吃可爱长大的小学妹 提交于 2019-12-24 19:30:02
问题 I need to create a .net client which consumes a webservice from a SAP CRM application. I just got the wsdl file. But when i try to create a proxy class with wsdl.exe i get a warning that no classes are generated. What am I doing wrong? There is the header of the wsdl file. <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns

WS-Security, sslv3 alert handshake failure

三世轮回 提交于 2019-12-24 19:18:46
问题 Documentation of the service, says I need to use WS-Security. From they support, i got a p12 file, which I should be using. What worked I ran up SoapUI application, configured it, added wsdl etc, and got message <faultstring>These policy alternatives can not be satisfied: (...)</faultstring> So I found I need to add basic Auth to the request. And i got my proper answer. What I did so far Found a function which generates almost the same xml as the SoapUI, so I could use that probably. I call

How to stop WSDL detail?

故事扮演 提交于 2019-12-24 19:17:55
问题 I would like to configure my WebService enpoint to NOT to return the WSDL information using ?wsdl . I have an Web Service application deployed on Wildfly. The web service interface implemented using Apache CXF 3.1.6 I would like a way to configure my endpoint such that when the following is performed, the WSDL detail is not returned but just empty. The WSDL detail can be read using http://localhost:8080/me/myapp?wsdl Is there a way to prevent the wsdl and service details from being returned.

Fetching and modifying the child elements in an xml Document

岁酱吖の 提交于 2019-12-24 19:03:52
问题 Here is a tricky bit of situation. I have a webservice that returns an XML document. This XML document has a root element that is called <Entities .... > The Entities element has child elements called <Article..> . I need to modify one of the child elements of Article and "PUT" each article element back to the webservice. The reason why I can not post the whole document with Entities is because the webservice does not recognize the Entities as an object and I can not perform an update

WSDL schemaLocation : Is it possible to import a .xsd into a .wsdl using a relative path?

独自空忆成欢 提交于 2019-12-24 19:03:46
问题 Here is my WSDL : <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://xxx" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns0="http://xxx/commun/axis" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://xxx" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <xsd:schema targetNamespace="http://xxx/commun/axis" xmlns="http://www.w3.org/2001/XMLSchema"> <xsd:include schemaLocation="https://host

Axis Web Service Keep Alive

佐手、 提交于 2019-12-24 18:53:01
问题 I have an axis web service running in Tomcat. Clients are making connections without sending a Connection: close header in HTTP 1.1 which means that the default is Keep-Alive. Unfortunately the client seems to be having a problem and when it gets an exception the client is not closing the connection. Since these clients are sending lots of traffic in batch jobs this quickly eats up all my connections. I want to force my web service to close each connection as soon as a particular Handler