soap

Object reference not set to an instance of an object error when trying SOAP call

我的未来我决定 提交于 2019-12-21 05:17:05
问题 I am trying to connect to and authenticate with a webservice using SOAP / wsdl, but I constantly get the error: <b>Fatal error</b>: Uncaught SoapFault exception: [a:InternalServiceFault] Object reference not set to an instance of an object. in /path/install.php:16 Below is my current code: <?php header("Content-Type: text/plain"); $userinfo = array( 'Username'=>'test', 'Password'=>'test' ); $wsdl_url = 'https://ws-e-distribution.kmd.dk/standard/ServiceAutorisation/ServiceAutorisation.svc?wsdl

Adding User/Password to SOAPHeader for WebService client call with AXIS2

点点圈 提交于 2019-12-21 05:06:20
问题 Please help: I am trying to call a WebService from SOAPUI and I notice that the service requires username and password which I am providing through the request parameters. I notice that raw XML contains user/password snippet added to SOAPHeader. The snippet is as below: <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:UsernameToken wsu:Id="UsernameToken-3" xmlns:wsu="http://docs.oasis-open.org/wss

Calling WebService and having SSL / cert issue

北城以北 提交于 2019-12-21 04:53:14
问题 I'll begin with the fact that I have not much knowledge about setting up keystore, etc in Java I am trying to call a SOAP web service, I got the wsdl, generated the code, etc. Everything seems okay until I deployed it and trying to trigger the WS call. Here's my setup: Tomcat 7.0.35 Java, jdk 1.6.0_39 pfx file and the password project deployed as standard web app (war) to tomcat When I run the code, I got the following exception: Caused by: javax.net.ssl.SSLHandshakeException:

How can I deserialize a custom SOAP header in WCF?

╄→尐↘猪︶ㄣ 提交于 2019-12-21 04:31:26
问题 I'm attempting to add a custom header to all SOAP requests over WCF. I found this fantastic article on how to do exactly this. My MessageHeader class looks like this: public class OperatorNameMessageHeader : MessageHeader { private string opName; public const string HeaderName = "OperatorNameMessageHeader"; public const string HeaderNamespace = "http://schemas.microsoft.com/scout"; public override string Name { get { return HeaderName; } } public override string Namespace { get { return

Issues using a Fedex Webservice via WSDL/SOAP

不问归期 提交于 2019-12-21 04:02:13
问题 I downloaded the sample code to request a rate from fedex's website... i placed the WSDL file in the proper location, I have my acct number, password, meter number, and key. When I run the script I get this error: Error in processing transaction. ERROR prof 1000 Authentication Failed The script they give is as follows, and yes i do actually replace the XXX and YYY everywhere it says.: <?php // Copyright 2009, FedEx Corporation. All rights reserved. // Version 7.0.0 require_once('fedex-common

SOAP in Node.js

安稳与你 提交于 2019-12-21 03:59:11
问题 Sure, you're gonna tell me that SOAP is deprecated and all, well I'm forced to use it. Now, I've tried with the douche module (https://github.com/marcgreenstock/douche) but it fails when I do this (the WSDL url is fine, in fact I'm trying the provided example at test/index.js ) Client.wsdl.parse(function(wsdl) { console.log(wsdl); }); The error is: /usr/local/lib/node_modules/douche/lib/douche/wsdl.js:74 attrs.forEach(function(url,index) { ^ TypeError: Object #<Object> has no method 'forEach'

java.lang.NoClassDefFoundError : javax/xml/soap/SOAPException

巧了我就是萌 提交于 2019-12-21 03:34:12
问题 I have created a Web Service using Spring. It works fine when running it on my embedded tomcat server. However when I package it as a JAR file and run it with java -jar command, I am receiving this exception. My service sends a simple soap request and the server response is: "exception": "java.lang.NoClassDefFoundError", "message": "javax/xml/soap/SOAPException", That's the response I get in Postman. Any ideas where I can look for the problem. 回答1: JavaSE 8 includes package java.xml.soap .

SOAP message to webservice - HTTP response code: 403 for URL

拥有回忆 提交于 2019-12-21 03:34:11
问题 I try to send a SOAP message in an XML file to a webservice and than grab the binary output and decode it. Endpoint uses HTTPS protocol, so I used TrustManager in my code to avoid PKIX problems. You can see my code here: import javax.net.ssl.*; import java.io.*; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLConnection; import java.security.cert.X509Certificate; public class Main{ public static void sendSoapRequest() throws Exception { String SOAPUrl = "URL HERE";

Magento create category with soap v2

北城余情 提交于 2019-12-21 03:09:14
问题 I want to crate categories in Magento with a webservice request (soap v2). I use Magento 1.4.2.0 and as I said the v2 of magentos soap api. If I send the request I get the following error as response: <?xml version="1.0" encoding="UTF-8" ?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>103</faultcode> <faultstring>Attribute "include_in_menu" is required.</faultstring> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV

ASP.NET Web Service Security

可紊 提交于 2019-12-21 02:56:24
问题 I've built ASP.NET Web Services in the past that either were publicly consumed, or used Windows Authentication. I now need to build a Web Service that uses the SOAP 1.1 protocol and it needs to be secured with a username and password from the caller. It seems setting up the infrastructure for WCP is overkill for one or two Web Services. Any other suggestions? I was also thinking of using ASP.NET 4.0 Beta, if anyone has explored that for this scenario, it would be helpful to know your opinion.