webservice-client

Changing the default XML namespace prefix generated with JAXWS

Deadly 提交于 2020-01-08 21:39:46
问题 I am using JAXWS to generate a WebService client for a Java Application we're building. When JAXWS build its XMLs to use in SOAP protocol, it generates the following namespace prefix: <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Body ...> <!-- body goes here --> </env:Body> </env:Envelope> My problem is that my Counterpart (a big money transfer company) which manages the server my client is connecting to, refuses to accept the WebService call ( please don't ask my

Spring Mvc Rest Webservice jstl form submittion HTTP Status 415 Content type 'application/x-www-form-urlencoded' not supported

你说的曾经没有我的故事 提交于 2020-01-06 15:12:26
问题 I am Using Spring Mvc Rest Webservice with JSTL form submittion. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%> <%@ page session="false" %> <html> <head> </head> <body> <form:form method="POST" action="rest/save" modelAttribute="employee"> <table> <tr><td> id &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<form:input type="text" path="id"/> <

How to get form data in controller which is sent by mobile (webservice) in angularjs

流过昼夜 提交于 2020-01-06 07:43:09
问题 I am working on a mobile application project and I am creating webservices in angularjs. My question is how to get form data in controller which are sent through Mobile Application. There is a action to call in controller if we have html form but here I am trying to fetch form data through webservice (mobile) in angularjs. I don't know how to post this question, so please give me suggestion for this question if it is wrong. There is so much confusion. Edit Simple explanation <form name=

Suggestion for getting data from a web server?

倖福魔咒の 提交于 2020-01-05 05:30:08
问题 I have a web server which contains a list of "interesting locations". These are "hard coded" on the web server, and maintained from an administrator on the server-side. Users can't add or remove anything. From within my app, I want to make a button "fetch locations", and the app should then contact the web server and ask for that "interesting locations" list. I'm using Core Data and have an InterestingLocation entity in my model. The goal is to get the data from the web server and persist it

How to get SOAP message while using a Axis 1.4 wsdl2java-generated client

人走茶凉 提交于 2020-01-03 10:52:45
问题 This is probably an easy question for anyone with any moderate expertise with web services using Apache Axis. I have a web service client that was generated by wsdl2java in Axis 1.4. I am writing unit tests that need to access the actual SOAP message itself, and do a comparison to the client side java classes which are generated by Axis. (don't ask) How can I retrieve the actual SOAP message from a response from the service? From what I can gather from searching around is that I have to get

org.apache.axis2.AxisFault: Transport out has not been set

青春壹個敷衍的年華 提交于 2020-01-03 04:27:05
问题 I have a big problem with WS with Axis2 use case (localhost server, no internet access [under proxy]) : I have created a little local web service and a client which calls this service.... endpoint is something like this "http://localhost:8080/MyService" that's all ok: client requests and server responses!! i'm bas***d and i want test my client, so i have changed endpoint in "http://localhost:8082/MyService" (port is changed) that's all ok: client requests...and it goes in timeout...no service

How to Consume a WebService using CXF in Eclipse

偶尔善良 提交于 2020-01-03 02:25:27
问题 I am trying to consume a WEBSERVICE (http://www.detecno.mx/WCFTimbrador/DetecnoPac.svc?wsdl) using Eclipse and Apache CXF. I already downloaded the latest Apache CXF version (2.5.2) from http://cxf.apache.org/ and already configured its location in Eclipse Preferences > Web Services > CXF 2.x Preferences When trying to create the new Web Service Client in my project, I can't select Apache CXF as the WS runtime (OK button is disabled) My project is not a dynamic web project, does it have to do

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 create an Axis2 Web Service Client in Eclipse?

喜你入骨 提交于 2020-01-01 09:19:29
问题 I'd like to use the "Web Service Client" wizard to create a web service client in Eclipse, but the wizard doesn't allow me to choose Axis2 as the web service runtime; I'm stuck with just plain Axis. I start off at the following screen (which I got to via File -> New -> Other -> Web Service Client ): I click on "Web service runtime: Apache Axis", to get this new "Client Environment Configuration" dialog: I've chosen "Apache Axis2", but the OK button is grayed out. Not matter what I choose in

How to use T4 to generate two files at the same time from one template?

混江龙づ霸主 提交于 2020-01-01 04:22:12
问题 I am having a case in which I need to generate two CSharp code files with pretty the same code but different namespace of the input and output types of the methods. In fact each file is for a specific country and the types come from country specific WSDL's. I am writing some wrappers around the services and the logic is exactly the same but the types automatically generated from WSDL's are different. How could I reduce the coding effort and write the logic at one place and get it generated