soap

How to host a SOAP service and REST service at the same port?

女生的网名这么多〃 提交于 2019-12-21 12:37:04
问题 Does anyone know how to configure it so that a SOAP service and REST service can share the same port using Jersey (Grizzly) outside of an application server? My soap service is at www.someurl.com:port/soap/crm My rest service is at www.someurl.com:port/crm These services share the same port but not the same base url and therefor should be able to run side by side on that port. However, there is a port bind error .. All of this is in a custom service application and there is no web.xml or such

SOAP xml client - using Visual Studio 2010 c# - how?

◇◆丶佛笑我妖孽 提交于 2019-12-21 12:21:50
问题 I'm new to .NET world, yet have to use VStudio C# 2010 (.NET 4.0) to produce a client that requests data from a web service in SOAP Xml fashion. I've searched here for answers but got confused even more. MSDN says that "Building XML Web Service Clients" is legacy for .NET 4.0, i.e. WSDL is legacy. Use "WCF" instead, they say. In WCF i got lost - too much and too vague. It must be simpler then that... And all examples that i could find on the web - they all use WSDL, "the legacy". Here are the

soap ui generated code

南楼画角 提交于 2019-12-21 11:25:23
问题 I have a webservice I am trying to build a client for. I have the following wsdl: http://www.cmicdataservices.com/datacenter/service.asmx?wsdl It requires authentication. Looking at the WSDL description I see no method that takes an authentication object, nor username and passwords as arguments. Using Netbeans I have generated jax-ws sources for the WSDL. I however can not figure out what to do after that. Using soapui I can connect to the webservice and run all the methods. But once again, I

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch - Heroku

岁酱吖の 提交于 2019-12-21 11:25:10
问题 I am trying to deploy my server on heroku. I got this error: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch This is my Java class: package introsde.document.endpoint; import javax.xml.ws.Endpoint; import introsde.assignment.soap.PeopleImpl; public class PeoplePublisher { public static String SERVER_URL = "http://localhost"; public static String PORT = "6902"; public static String BASE_URL = "/ws/people"; public static String getEndpointURL() {

Custom header using PHP soap functions

試著忘記壹切 提交于 2019-12-21 10:17:34
问题 I am having a problem getting a custom soap header to work with PHP5. Can anybody guide me please. What I require is something like this <SOAP-ENV:Header> <USER>myusername</USER> <PASSWORD>mypassword</PASSWORD> </SOAP-ENV:Header> What I get is : <SOAP-ENV:Header> <ns2:null> <USER>myusername</USER> <PASSWORD>mypassword</PASSWORD> </ns2:null> </SOAP-ENV:Header> I would like to remove the namespace tags. The code I use to get this is: class Authstuff { public $USER; public $PASSWORD; public

Apache CXF Exception: java.lang.RuntimeException: Could not find conduit initiator for address

余生颓废 提交于 2019-12-21 09:38:29
问题 I want call a .net SOAP web service from java. .net Service has ws-security module and I used apache CXF for setting username and password (and maybe later X.509 certificate). The code I used is: ITaxOrganService wsHttpBindingITaxOrganService = new TaxOrganService().getWSHttpBindingITaxOrganService(); Endpoint endpoint = ClientProxy.getClient(wsHttpBindingITaxOrganService).getEndpoint(); Map<String,Object> outProps = new HashMap<>(); outProps.put(WSHandlerConstants.ACTION,WSHandlerConstants

Adding Http Header in an existing WCF SOAP Service is not working

只谈情不闲聊 提交于 2019-12-21 09:34:47
问题 I would like to an HTTP header to my WCF SOAP Service. My end goal is to send API keys through this HTTP header. Below is my code: [ServiceBehavior(Namespace = "http://****.com/**/1.1")] public class MyWcfSvc : IMyVerify { const int MaxResponseSize = 0xffff; // 64K max size - Normally it will be MUCH smaller than this private static readonly NLogLogger Logger; static MyWcfSvc() { Logger = new NLogLogger(); // Add an HTTP Header to an outgoing request HttpRequestMessageProperty requestMessage

PHP SOAP client calling function with parameters

我的未来我决定 提交于 2019-12-21 08:47:58
问题 I created a SOAP client like so: $client = new SoapClient("file.wsdl"); And then when I want to call an API function $client->Authenticate("user", "password"); I get the following error: The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'Authenticate'. End element 'Body' from namespace 'http://schemas.xmlsoap.org/soap/envelope/' expected. Found element 'param1' from namespace ''. But when I try to pass

PHP SOAP client calling function with parameters

为君一笑 提交于 2019-12-21 08:45:19
问题 I created a SOAP client like so: $client = new SoapClient("file.wsdl"); And then when I want to call an API function $client->Authenticate("user", "password"); I get the following error: The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'Authenticate'. End element 'Body' from namespace 'http://schemas.xmlsoap.org/soap/envelope/' expected. Found element 'param1' from namespace ''. But when I try to pass

CXF client exception: Interceptor for {XXX} has thrown exception, unwinding now

社会主义新天地 提交于 2019-12-21 07:14:22
问题 I am encountering this following CXF exception: warning: Interceptor for {http://example.com/wsdl/esc/2011-12-12/}AmazonEC2#{http://example.com/wsdl/esc/2011-12-12/}NewDescribeImages has thrown exception, unwinding now java.lang.NullPointerException at org.apache.cxf.binding.soap.interceptor.StartBodyInterceptor.handleMessage(StartBodyInterceptor.java:59) at org.apache.cxf.binding.soap.interceptor.StartBodyInterceptor.handleMessage(StartBodyInterceptor.java:37) at org.apache.cxf.phase