Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 05 14:57
    heretogo closed #38
  • Dec 13 2019 17:01
    chris-rxr edited #51
  • Dec 13 2019 16:55
    chris-rxr edited #51
  • Dec 13 2019 16:54
    chris-rxr edited #51
  • Dec 13 2019 16:39
    chris-rxr opened #51
  • Aug 21 2019 14:14
    3mp3ri0r commented #50
  • Aug 21 2019 12:40
    moszeed commented #50
  • Aug 21 2019 01:17
    3mp3ri0r commented #50
  • Aug 15 2019 10:16
    ciforusalterra commented #50
  • Aug 15 2019 03:33
    ciforusalterra commented #50
  • Aug 14 2019 10:49
    ciforusalterra commented #50
  • Aug 14 2019 10:46
    ciforusalterra synchronize #50
  • Aug 14 2019 10:12
    ciforusalterra commented #50
  • Aug 14 2019 10:08
    moszeed commented #50
  • Aug 14 2019 10:01
    ciforusalterra commented #50
  • Aug 14 2019 09:59
    ciforusalterra synchronize #50
  • Aug 14 2019 08:57
    moszeed commented #50
  • Aug 14 2019 08:18
    ciforusalterra opened #50
  • Jun 06 2019 11:32
    Edijae edited #49
  • Jun 06 2019 11:23
    Edijae edited #49
Moszeed
@moszeed
@jerbob92 hi, if your nodejs version is lower than 4.0.0 then yes ...
jerbob92
@jerbob92
@moszeed it was. Upgraded and now all is fine :) Thanks
Ido Ivri
@idoivri
Hi! I'm getting a strange "Error: Error: Unquoted attribute value" every time I call a method. Is there any simple explanation for that?
This is my code:
soapClient.call({
method : 'GetLayer',
attributes: {
// xmlns: 'http://schemas.xmlsoap.org/wsdl/'
xmlns:"http://tempuri.org/"
},
params : {
        'layerCode':'555',
        'layerWhere':'',
        'xmin':'',
        'ymin':'',
        'xmax':'',
        'ymax':'',
        'projection':'',
    }
})
.then(function(data, header) {

    console.log(data, header);
}, function(err) {

    console.log('Error: '+err);
});
Maciej Ziehlke
@digitalmio
Hey, is it possible to make calls without WSDL (working in non-WSDL mode) ?
pnnaj
@pnnaj
Hi There, I cannot get easySoap to make sample call to the blzservice available online.
The WSDL is http://www.thomas-bayer.com/axis2/services/BLZService.wsdl
My file is

(function() {
"use strict";

var easysoap = require('easysoap');

// define soap params
var params = {
host: 'http://www.thomas-bayer.com',
path: '/axis2/services/',
wsdl: '/axis2/services/BLZService?WSDL'
/headers: [{
'name': 'item_name',
'value': 'item_value',
'namespace': 'item_namespace'
}]
/
}

console.log("START SOAP TEST");

/*

  • create the client
    */
    var soapClient = easysoap.createClient(params);

/*

  • get all available functions
    */
    soapClient.getAllFunctions()
    .then(function(functionArray){
     console.log(functionArray);
    })
    .catch((err) => {
     throw new Error(err);
    });

/*

  • get the method params by given methodName
    */
    soapClient.getMethodParamsByName('getBank')
    .then((methodParams) => {
     console.log(methodParams.request);
     console.log(methodParams.response);
    })
    .catch((err) => {
     throw new Error(err);
    });

/*

  • call soap method
    */
    soapClient.call({
     method: 'getBank',
     attributes: {
         xmlns: 'http://thomas-bayer.com/blz/'
     },
     params: {
         blz: '36010424'
     }
    })
    .then((callResponse) => {
     console.log(callResponse.data); // response data as json
     console.log(callResponse.body); // response body
     console.log(callResponse.header); //response header
    })
    .catch((err) => {
     throw new Error(err);
    });

})();

Moszeed
@moszeed

@pnnaj seem your soap params are wrong:

-> your wsdl endpoint is: "/axis2/services/BLZService.wsdl"
-> and your path seems not available

@digitalmio currently not ...
Ido Ivri
@idoivri
Hey @moszeed did you see my question above? can you help perhaps?
Moszeed
@moszeed

@idoivri hi, yes now is see the question ^^

"Unquoted attribute value" means that there are attributes without quotes in the xml,
maybe your empty params !? (could be a possible Bug in easysoap)

can you look into the requestXml ? ( https://github.com/moszeed/easysoap/blob/master/src/request/request.js#L260 )

Ido Ivri
@idoivri
will do, @moszeed , later on today hopefully
and thanks!
Ran Wahle
@ranwahle
Hi. Is there any way of changing hte request content-type?
I get an error of "Invalid request format: text/xml"
Moszeed
@moszeed
@ranwahle currently only the hard code way ...
skippy1976
@skippy1976
I am getting error back after making call to method. Error is: Non-whitespace before first tag
skippy1976
@skippy1976
Ah, looks like the response body says "Bad Request" hence why it is failing to decode, now I need to figure out why it is a bad request.
skippy1976
@skippy1976

Ok, so I receive a response back from the server stating "please supply a valid SOAP action". When I take a look at the request, I see the name space: xmlns:tns="http://my.e2rm.com/webGetService/" However, in the body of the request, the atributes do not have the namespace (tns) before. them: <?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://my.e2rm.com/webGetService/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" >
<SOAP-ENV:Body>
<getNextNewExportFile>
<organizationID>XXXXXX</organizationID>
<userName>XXXXXX</userName>
<password>XXXXXX</password>
<XMLVersin>xml1_8</XMLVersin>
</getNextNewExportFile>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Michał Wójcik
@michalmw
Hello friend. I have 2 question:
Is possible to renate 'soap-env' on 'soapenv'?
  1. Can i add in my method name ':' tag?
    e.x. my method' GetUsers' but in documentation i have
    <soapenv:Body>
       <tem:GetUsers>
    But i don't know how to send 'tem'
Ghost
@ghost~5397365aa9176b500d1cd9b0
Anyone around who can help me debug something?
Ivan Polchenko
@i5okie
maybe
Kevin Compton
@kevincompton
i cant even load this thing. Line 82: Unexpected token function
at Deps.parseDeps. help for this?