wsdl

How to add soap basic auth request to WSDL

时光毁灭记忆、已成空白 提交于 2020-01-02 13:20:10
问题 How can I had soap AUTH BASIC auth to a WSDL, so who ever reads the WSDL knows I require that operation for a specific method ? 回答1: Using the example bellow I have managed to pass the SOAP basic autentication to the php webservice on the other end. The PHP.net/Soapclient has a simple working example, but in csharp I found this link to be a solution to my problem. link Michaelis.MockService is the Webservice library extracted you may see an example on how to do this in: link Mono project

Is there a way to expose a static XSD in Spring WS 2?

北城余情 提交于 2020-01-02 12:40:47
问题 If, for example orders.wsdl imports Orders.xsd, how can it be configured using static-wsdl <sws:static-wsdl id="orders" location="/WEB-INF/wsdl/orders.wsdl"/> such that Orders.xsd can be viewed in the browser like http://host/context/Orders.xsd Dynamic wsdl supports it. <sws:dynamic-wsdl id="orders" portTypeName="Orders" locationUri="http://localhost:8080/ordersService/"> <sws:xsd location="/WEB-INF/xsd/Orders.xsd"/> </sws:dynamic-wsdl> But static-wsdl doesn't have the sws:xsd property. 回答1:

javax.xml.ws.WebServiceException: Failed to access the WSDL. Response: '401: Unauthorized'

醉酒当歌 提交于 2020-01-02 10:05:51
问题 I am trying to access a web service for a project i'm working on. I'm using JAX-WS and the app is deployed on weblogic. When i'm trying to access the WS, i get the following exception: javax.portlet.PortletException: javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://xxx.xxxx.ro:40000/idm/ws/cup?wsdl. It failed with: Response: '401: Unauthorized' for url: 'http://xxx.xxxx.ro:40000/idm/ws/cup?wsdl'. at com.bea.portlet.container.PortletStub.processAction(PortletStub.java:346

How to test the availability of WSDL programmatically using Java

别等时光非礼了梦想. 提交于 2020-01-02 10:02:36
问题 This means i would NOT use SoapUI, or any other Application to test the WSDL. i am looking at wsdl4j as this is potentially the only one out there, unless i am missing something available in jdk. Here is what i tried: class : WSDLtestvip.java import java.net.HttpURLConnection; import java.net.URL; public class WSDLtestvip { public boolean isWSDLAvailable(String wsdlAddr) { HttpURLConnection c = null; try { URL u = new URL(wsdlAddr); c = (HttpURLConnection) u.openConnection(); c

How to test the availability of WSDL programmatically using Java

戏子无情 提交于 2020-01-02 10:01:54
问题 This means i would NOT use SoapUI, or any other Application to test the WSDL. i am looking at wsdl4j as this is potentially the only one out there, unless i am missing something available in jdk. Here is what i tried: class : WSDLtestvip.java import java.net.HttpURLConnection; import java.net.URL; public class WSDLtestvip { public boolean isWSDLAvailable(String wsdlAddr) { HttpURLConnection c = null; try { URL u = new URL(wsdlAddr); c = (HttpURLConnection) u.openConnection(); c

SOAPUI Error : java.io.IOException: Attempted read from closed stream

穿精又带淫゛_ 提交于 2020-01-02 08:34:29
问题 Am trying to view a wsdl file from SOAPUI but it throws the following error. I have researched the internet for a way to fix this but to no avail. What could be the issue here? Error loading [http://XX.X.X.X:XXXX/XXXXXXXXX?xsd=xsd0]: java.io.IOException: Attempted read from closed stream 来源: https://stackoverflow.com/questions/33501762/soapui-error-java-io-ioexception-attempted-read-from-closed-stream

Unable to connect to OnVif enabled camera using C#

一世执手 提交于 2020-01-02 07:36:33
问题 I am working with IPCams for the first time and I am trying to connect to an OnVif camera. I have looked on various forums and stack overflow and I have come up with the following code.I know the code doesn't do anything useful but it is just a proof of concept for now. It finds all 4 cameras on my network and then I am manually connecting to one of them to pull back some information such as GetServices . I get a 400 bad response error at this stage. I have looked at the traffic back and

What tool can I use to merge wsdl and xsd file?

空扰寡人 提交于 2020-01-02 05:20:09
问题 I have two files, one with webservice description (wsdl), second with data structures used in webservice (xsd). I have nothing more, webservice doesn't work yet. I need to merge them into one, because Delphi 7 WSDL Importer doesn't handle included xsd files to well. Where can I find tool to do it? EDIT I copied xsd content into <types> section and it works. I tried it before, but I must have made a mistake and Delphi WSDL import didn't work. I have to improve my copy/paste skills. 回答1: You

WCF Callback: Is it interoperable with Java?

夙愿已清 提交于 2020-01-02 04:57:05
问题 Currently I implement all my webservices in the "normal" fashion... that is, I create a WSDL file in Eclipse and then use WSCF.blue (A visual studio extension) to auto-generate the necessary code and it is reply/request. However I was hoping to use callbacks instead, so I can have my services become "push" services. Before I jump into reworking my application, I was wondering about its interoperability. If I use callbacks (WCF), can my Java client still use this? Oh, and I guess I should

Code generation from WSDL causes exception

北慕城南 提交于 2020-01-02 04:24:07
问题 I'm using Axis2 1.5.1 (wsdl2java) for code generation (client stubs) from a given WSDL file. The webservice is provided by an external application. <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility- 1.0.xsd" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://tempuri