soap

How do i sign a BinarySecurityToken in soap message

自闭症网瘾萝莉.ら 提交于 2020-01-03 17:26:16
问题 I have the following C# code to call a web service. System.ServiceModel.Channels.AsymmetricSecurityBindingElement asbe = new AsymmetricSecurityBindingElement(); asbe.MessageSecurityVersion = MessageSecurityVersion.WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10; asbe.InitiatorTokenParameters = new System.ServiceModel.Security.Tokens.X509SecurityTokenParameters(); asbe.RecipientTokenParameters = new System.ServiceModel.Security.Tokens

Slow initialization of apache cxf client

 ̄綄美尐妖づ 提交于 2020-01-03 16:51:37
问题 I'm using wsdl2java generated classes and this code: MyService f = new MyService(); MyServicePortType type = f.getMyServicePortType(); Each of these calls is taking up to 30 seconds. Why is that? 回答1: After hours of googling and tinkering the problem was in how scheme files were referenced: although WSDL and XSD were locally stored there was still some referenced to w3.org that looked like this: <!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd"

Exception thrown by application class 'com.sun.xml.messaging.saaj.soap.SOAPPartImpl.:119'

拟墨画扇 提交于 2020-01-03 11:47:20
问题 I am trying to Deploy a Java application over Bluemix. When I deploy it on my local Liberty Server(Liberty 16.0.0.2) , it works fine and I am able to hit the URL from a SOAP client. But when I try it on Bluemix, it gives me this error: Exception thrown by application class 'com.sun.xml.messaging.saaj.soap.SOAPPartImpl.:119' java.lang.VerifyError: JVMVRFY012 stack shape inconsistent; class=com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl, method=createDocumentFragment()Lorg/w3c/dom

wsimport fails when trying to create client service library

前提是你 提交于 2020-01-03 08:31:27
问题 I am trying to create a client library to access Mantis from java. The problem is that I am getting an error and I don't know why. Running this command: wsimport http://www.mantisbt.org/demo/api/soap/mantisconnect.php?wsdl simply fails. It is supposed to create some kind of client libraries for access to the service from java, but I get this error: [ERROR] "Use of SOAP Encoding is not supported. SOAP extension element on line 1,075 in http://www.mantisbt.org/demo/api /soap/mantisconnect.php

Java proxy server which will monitor & log the traffic (HTTP, SOAP ,REST)

拜拜、爱过 提交于 2020-01-03 05:51:32
问题 I basically want to set up a proxy server using Java which will capture the outgoing requests and the incoming response and dump it in a file. It should be able to handle SOAP and REST 回答1: It looks like Muffin will support these requirements. 回答2: You may want to look at this monitoring tool: http://www.membrane-soa.org/soap-monitor/ Cheers! 回答3: I'd use WireMock (Java) --if I wasn't already using Mountebank (NodeJS). 回答4: Apache JMeter (100% Java) Open Source Supports: Web - HTTP, HTTPS

Android SOAP request is returning HTTP Response 405

99封情书 提交于 2020-01-03 05:43:08
问题 I see a couple of similar questions on here but mine has one big difference. I was able to use my login web client web method for about 9 months and then yesterday afternoon I started getting the 405 response. Below is my code: class Login extends AsyncTask<String, String, Integer> { StringManipulator stringManipulator = new StringManipulator(); String result = ""; ParseSessionId parseSessionId = new ParseSessionId(); @Override protected Integer doInBackground(String... args) { int statusCode

SOAP Attachments using apache axis2

久未见 提交于 2020-01-03 05:18:13
问题 Does anyone know a good beginner's tutorial on how to send attachments with SOAP messages using axis2. Every tutorial I have found so far has been very difficult to follow. Any pointers will be appreciated. 回答1: Few months ago I've read the book "Developing Web Services with Apache Axis2" by Mr. Kent Ka Iok Tong . I think this is an excellent book for beginners, example driven and easy to understand. It contains plenty of code/xml snippets and has a chapter devoted to your question. Perhaps

How to call web service to achieve login system in Android?

夙愿已清 提交于 2020-01-03 05:09:08
问题 i have a xml project. this is the Login sample code http://10.99.99.99:8087/item/services/ItemService <soapenv:Header/> <soapenv:Body> <ser:userLogin> <!--Optional:--> <arg0>admin</arg0> <!--Optional:--> <arg1>admin</arg1> </ser:userLogin> </soapenv:Body> </soapenv:Envelope> If Succeed <soap:Body> <ns2:userLoginResponse xmlns:ns2="http://services.ws.item/"> <return> <result>1</result> <msg>Login Succeed</msg> </return> </ns2:userLoginResponse> </soap:Body> </soap:Envelope> If Not Succeed

How to send XML soap request using php curl

半城伤御伤魂 提交于 2020-01-03 04:25:11
问题 I am sending request through soap using php curl getting java Exception. When I request for response I am getting error. I tried a lot at my end but problem is not solve. $soap_request = "<?xml version=\"1.0\"?>"; $soap_request .= "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"; $soap_request .= " <soap:Body>\n"; $soap_request .= " <RevodocLead xmlns='http://localhost/'>\n"; $soap_request .= " <inode>\n"; $soap_request .= " <version>1.0</version>\n"; $soap_request

SOAP - nillable=“true”

对着背影说爱祢 提交于 2020-01-03 03:38:10
问题 I am building a web service using the Zend Framework. I am using the Zend_Soap_AutoDiscover class for the generation of my WSDL. I am using various complex type in this web service form example: StockItemEntity Class class StockItemEntity { /** @var string */ public $sStockCode; /** @var string */ public $sQty; public function __construct($sStockCode, $sQty){ $this->sStockCode = $sStockCode; $this->sQty = $sQty; } } WSDL Definition <xsd:complexType name="StockItemEntity"> <xsd:all> <xsd