login about faq

Hi folks! I hope somebody can help me before I go nuts! I am NOT using .NET or something like this. I use the good old Visual FoxPro from Microsoft. There are many example scripts for using the chilkat classes with FoxPro, and I use it already to send signed XML files to SFTP servers.

Now, I have to use another web server, wich is secured SSL, send Data (XML again) an call a method of the server. But anything I try, ends with a "handshake error".

But step by step... This is my Code (if somebody can read it...):

    ****************************************************************************
LPARAMETERS pcWebService, pcName, pcPW, pcArt, pnPort, plSecure, plTest

LOCAL loHttp, lnSuccess, loSoapXml, loReq, loResp, loXmlResponse

**********************************************************************
* create XML
**********************************************************************
this.cUserName                              = ALLTRIM(pcName)
this.cPassword                              = ALLTRIM(pcPW)
m.lcString                              = this.TestString("XYZ")
loHttp                                  = CreateObject('Chilkat.Http')
lnSuccess                               = loHttp.UnlockComponent("BlaBlupp")
**********************************************************************
* XML-Object 
**********************************************************************
loSoapXml                               = CreateObject('Chilkat.Xml')
loSoapXml.Tag                               = "soap12:Envelope"
loSoapXml.AddAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance")
loSoapXml.AddAttribute("xmlns:xsd","http://www.w3.org/2001/XMLSchema")
loSoapXml.AddAttribute("xmlns:soap12","http://www.w3.org/2003/05/soap-envelope")
loSoapXml.NewChild2("soap12:Body",m.lcString)
loSoapXml.GetChild2(0)
loSoapXml.AddAttribute("xmlns",pcWebService)
loSoapXml.GetRoot2()
**********************************************************************
* Request
**********************************************************************
loReq                                   = CreateObject('Chilkat.HttpRequest')
loReq.HttpVerb                              = "POST"
loReq.SendCharset                           = 0
*loReq.AddHeader("Content-Type","application/soap+xml; charset=utf-8")
*loReq.AddHeader("SOAPAction",ALLTRIM(pcWebService))                            
loReq.LoadBodyFromString(loSoapXml.GetXml(),"utf-8")
loHttp.FollowRedirects                          = 1
loHttp.SessionLogFilename                       = "C:\tmp\httpSessionLog.txt"
**********************************************************************
loResp                                  = loHttp.SynchronousRequest("https://test-dspone.deltavista.com",pnPort,plSecure,loReq)
**********************************************************************
IF ISNULL(loResp)
    m.lcLastError                                                       = TRANSFORM(loHttp.LastErrorText)
ELSE
    loXmlResponse                                                       = CreateObject('Chilkat.Xml')
    loXmlResponse.LoadXml(loResp.BodyStr)
ENDIF

The result is the same anytime I try to make ist:

ChilkatLog:
  SynchronousRequest:
    DllDate: Apr 17 2012
    UnlockPrefix: ZEHNERHttp
    Username: EMPFANG:Stefan
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    domain: https://test-dspone.deltavista.com/dspone/services/OrderCheckService
    port: 443
    ssl: 1
    RequestData:
      HttpVersion: 1.1
      Verb: POST
      Path: /
      Charset: utf-8
      SendCharset: 0
      MimeHeader: 
    --RequestData
    ReadTimeout: 20
    ConnectTimeout: 10
    httpConnect:
      hostname: test-dspone.deltavista.comdsponeservicesordercheckservice
      port: 443
      ssl: 1
      Need to establish connection to the HTTP server...
      ConnectTimeoutMs_1: 10000
      calling ConnectSocket2
      IPV6 enabled connect with NO heartbeat.
      connectingTo: test-dspone.deltavista.comdsponeservicesordercheckservice
      dnsCacheLookup: test-dspone.deltavista.comdsponeservicesordercheckservice
      Resolving domain name (IPV4)
      GetHostByNameHB_ipv4: Elapsed time: 62 millisec
      Cannot get host by name..
      hostname: test-dspone.deltavista.comdsponeservicesordercheckservice
      Domain name lookup failed.
      Failed to connect.
    --httpConnect
    connectTime1: Elapsed time: 62 millisec
    totalTime: Elapsed time: 62 millisec
    Failed.
  --SynchronousRequest
--ChilkatLog

As you can see, I connect the domain with "...OrderCheckService" at the end. Further down you can see, that Chilkat writes the whole link without back slashes. See "hostname". I am sure, that is not correct, is it? Any suggestions what I can do? I will be very thankfull if somebody can help me fix my "connection" :-).

Stefan

asked Apr 24 '15 at 03:23

zehnernet's gravatar image

zehnernet
1112

edited Apr 24 '15 at 13:15

jpbro's gravatar image

jpbro ♦
1.1k2618


The 1st argument to SyncrhonousRequest is the "hostname". It is NOT a full URL. It is simply the domain name of where the request is to be sent. Passing a full URL results in DNS lookup issue, because there is no domain named "https://test-dspone. ..."

link

answered Apr 24 '15 at 09:07

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Thanks for your answer :-). I figured out meanwhile, that there is - for me - a new version with only 1 DLL 9_5_=. So I installed that one and I got NO ERROR and last_error_text. :-) I changed the entry with the "https" as well. Now I have a response and a session-Log. Not that these are very helpfull for me... :-(.

Session-log:

---- Sending ----
POST / HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
SOAPAction: OrdeCheckService
Host: test-dspone.deltavista.com
Content-Length: 2748

<?xml version="1.0" encoding="utf-8" ?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body xmlns="https://test-dspone.deltavista.com/dspone/services/OrderCheckService"><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">                         
   <SOAP-ENV:Header>                          
      <messageContext xmlns="http://www.deltavista.com/dspone/ordercheck-if/V001">                            
         <credentials>                            
            <user>interfina_test_xml</user>                         
            <password>q@Y8tmru</password>                           
         </credentials>                           
         <correlationID>DE-456321</correlationID>                           
      </messageContext>                           
   </SOAP-ENV:Header>                         
   <SOAP-ENV:Body>                            
      <orderCheckRequest xmlns="http://www.deltavista.com/dspone/ordercheck-if/V001">                         
         <product>                            
            <name>IdentCheckConsumer</name>                         
            <country>DEU</country>                          
            <proofOfInterest>ABK</proofOfInterest>                          
         </product>                           
         <searchedAddress>                            
            <legalForm>PERSON</legalForm>                           
            <address>                         
               <name>Hartwig</name>                         
               <firstName>Olaf</firstName>                          
               <gender>MALE</gender>                            
               <dateOfBirth></dateOfBirth>                          
               <location>                         
                  <street>Sonnentalweg 13</street>                          
                  <house>2</house>                          
                  <city>Wasserbad</city>                            
                  <zip>73888</zip>                          
                  <country>DEU</country>                            
               </location>                            
            </address>                            
         </searchedAddress>                           
         <clientData>                         
            <reference>Test_Ident_01</reference>                            
            <order>                           
               <contact>                          
                  <item>email</item>                            
                  <value></value>                           
               </contact>                         
            </order>                          
         </clientData>                            
      </orderCheckRequest>                            
   </SOAP-ENV:Body>                           
</SOAP-ENV:Envelope>      </soap12:Body>
</soap12:Envelope>

---- Received ----
HTTP/1.1 302 Moved Temporarily
Server: Apache-Coyote/1.1
P3P: CP = CAO PSA OUR
Location: https://test-dspone.deltavista.com/dspone-portal-web-portal/login
Content-Length: 0
Date: Fri, 24 Apr 2015 13:45:28 GMT
Set-Cookie: dsponePersistence=!e/PdZ75v8A36M6qi1DM2RXmwPHuTQJY9rCNh0ZSHj+CL/PowpurAaOOovvidOYi7R+ZlJy2kTB1awo0=; path=/
Connection: close

---- Sending ----
GET /dspone-portal-web-portal/login HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
SOAPAction: OrdeCheckService
Host: test-dspone.deltavista.com
Content-Length: 2748

---- Received ----
HTTP/1.1 302 Moved Temporarily
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 01:00:00 CET
Set-Cookie: JSESSIONID=29B832A65C1803361B532CACCD2B47A0.tomcat_gepard_a; Path=/dspone-portal-web-portal
P3P: CP = CAO PSA OUR
Location: https://test-dspone.deltavista.com/dspone-portal-web-portal/com.deltavista.portal.login.Login/Login.jsp
Content-Length: 0
Date: Fri, 24 Apr 2015 13:45:28 GMT
Set-Cookie: dsponePersistence=!Wfy+J/9zUgiBL1trKDHVMTD3iv2AfvS7JXYO7rkFJyu+bZHLUD2gK9dsBNyLi2eycgYJcT49jok2m/k=; path=/
Connection: close

---- Sending ----
GET /dspone-portal-web-portal/com.deltavista.portal.login.Login/Login.jsp HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
SOAPAction: OrdeCheckService
Host: test-dspone.deltavista.com
Content-Length: 2748

---- Received ----
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
P3P: CP = CAO PSA OUR
Set-Cookie: JSESSIONID=E3D704E61664B1A80A3C54101565816A.tomcat_gepard_b; Path=/dspone-portal-web-portal
Content-Type: text/html;charset=UTF-8
Content-Length: 7650
Date: Fri, 24 Apr 2015 13:45:28 GMT
Set-Cookie: dsponePersistence=!6fg+mjlpoOHcU8Si1DM2RXmwPHuTQB5jyP/B21nARA501SJAbAdc66fEf+f2qWZY1tllawlGNdEhumQ=; path=/
Connection: close
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
 <meta http-equiv="Pragma" content="no-cache"></meta>
 <meta http-equiv="Cache-Control" content="no-store,no-cache,must-revalidate"></meta>
 <meta http-equiv="Expires" content="-1"></meta>

<title>Deltavista portal application</title>

<link href="css/ext-all.css" rel="stylesheet" type="text/css"/>
 <link href="css/xtheme-gray.css" rel="stylesheet" type="text/css"/>
 <link href="css/portal-styles.css" rel="stylesheet" type="text/css"/>
 <link href="css/flat.css" rel="stylesheet" type="text/css"/>
 <link rel="shortcut icon" href="/favicon.ico?v=1419249684000">
 <!--link rel="shortcut icon" href="../images/geppard.ico" /-->
</head>
<body class="login-bg">
<div class="login-logo"></div>
<iframe src="javascript:''" id='__gwt_historyFrame' style='width:0;height:0;border:0'></iframe>

<script language='javascript'>
 try {
   if (self.parent.location.trim() != document.location.trim()) {
     self.parent.location=document.location.trim();
   }
 } catch (Exception) {}

function com_deltavista_portal_login_Login(){var l='',F='" for "gwt:onLoadErrorFn"',D='" for "gwt:onPropertyErrorFn"',n='"><\/script>',p='#',r='/',ub='0FE2A025A6290A55BB29E76C1D117A84.cache.html',sb='1C3B163074D9226AFD4710DEDC0C0BA3.cache.html',vb='598DD43666646529133A40FCA07B9B49.cache.html',tb='99BC0F540E77D43DD9FE60A7C2B19D77.cache.html',cc='<script defer="defer">com_deltavista_portal_login_Login.onInjectionDone(\'com.deltavista.portal.login.Login\')<\/script>',gc='<script id="',ac='<script language="javascript" src="',A='=',q='?',C='Bad handler "',wb='D5A8F61982407AF8D616B17BC4862C47.cache.html',Eb='DOMContentLoaded',o='SCRIPT',fc='__gwt_marker_com.deltavista.portal.login.Login',s='base',nb='begin',cb='bootstrap',u='clear.cache.gif',m='com.deltavista.portal.login.Login',z='content',xb='css/login.css',ec='end',lb='gecko',mb='gecko1_8',yb='gwt.hybrid',E='gwt:onLoadErrorFn',B='gwt:onPropertyErrorFn',y='gwt:property',Db='head',rb='hosted.html?com_deltavista_portal_login_Login',Cb='href',kb='ie6',ab='iframe',t='img',bb="javascript:''",Fb='js/ruzeeborders_pack.js',bc='js/ruzeeborders_pack.js"><\/script>',zb='link',pb='loadExternalRefs',v='meta',eb='moduleRequested',dc='moduleStartup',jb='msie',w='name',gb='opera',db='position:absolute;width:0;height:0;border:none',Ab='rel',ib='safari',qb='selectingPermutation',x='startup',Bb='stylesheet',ob='unknown',fb='user.agent',hb='webkit';var ic=window,k=document,hc=ic.__gwtStatsEvent?function(a){return ic.__gwtStatsEvent(a)}:null,Cc,sc,nc,mc=l,vc={},Fc=[],Bc=[],lc=[],yc,Ac;hc&&hc({moduleName:m,subSystem:x,evtGroup:cb,millis:(new Date()).getTime(),type:nb});if(!ic.__gwt_stylesLoaded){ic.__gwt_stylesLoaded={}}if(!ic.__gwt_scriptsLoaded){ic.__gwt_scriptsLoaded={}}function rc(){try{return ic.external&&(ic.external.gwtOnLoad&&ic.location.search.indexOf(yb)==-1)}catch(a){return false}}
function uc(){if(Cc&&sc){var c=k.getElementById(m);var b=c.contentWindow;b.__gwt_initHandlers=com_deltavista_portal_login_Login.__gwt_initHandlers;if(rc()){b.__gwt_getProperty=function(a){return oc(a)}}com_deltavista_portal_login_Login=null;b.gwtOnLoad(yc,m,mc);hc&&hc({moduleName:m,subSystem:x,evtGroup:dc,millis:(new Date()).getTime(),type:ec})}}
function pc(){var j,h=fc,i;k.write(gc+h+n);i=k.getElementById(h);j=i&&i.previousSibling;while(j&&j.tagName!=o){j=j.previousSibling}function f(b){var a=b.lastIndexOf(p);if(a==-1){a=b.length}var c=b.indexOf(q);if(c==-1){c=b.length}var d=b.lastIndexOf(r,Math.min(c,a));return d>=0?b.substring(0,d+1):l}
;if(j&&j.src){mc=f(j.src)}if(mc==l){var e=k.getElementsByTagName(s);if(e.length>0){mc=e[e.length-1].href}else{mc=f(k.location.href)}}else if(mc.match(/^\w+:\/\//)){}else{var g=k.createElement(t);g.src=mc+u;mc=f(g.src)}if(i){i.parentNode.removeChild(i)}}
function zc(){var f=document.getElementsByTagName(v);for(var d=0,g=f.length;d<g;++d){var e=f[d],h=e.getAttribute(w),b;if(h){if(h==y){b=e.getAttribute(z);if(b){var i,c=b.indexOf(A);if(c>=0){h=b.substring(0,c);i=b.substring(c+1)}else{h=b;i=l}vc[h]=i}}else if(h==B){b=e.getAttribute(z);if(b){try{Ac=eval(b)}catch(a){alert(C+b+D)}}}else if(h==E){b=e.getAttribute(z);if(b){try{yc=eval(b)}catch(a){alert(C+b+F)}}}}}}
function Ec(d,e){var a=lc;for(var b=0,c=d.length-1;b<c;++b){a=a[d[b]]||(a[d[b]]=[])}a[d[c]]=e}
function oc(d){var e=Bc[d](),b=Fc[d];if(e in b){return e}var a=[];for(var c in b){a[b[c]]=c}if(Ac){Ac(d,a,e)}throw null}
var qc;function tc(){if(!qc){qc=true;var a=k.createElement(ab);a.src=bb;a.id=m;a.style.cssText=db;a.tabIndex=-1;k.body.appendChild(a);hc&&hc({moduleName:m,subSystem:x,evtGroup:dc,millis:(new Date()).getTime(),type:eb});a.contentWindow.location.replace(mc+Dc)}}
Bc[fb]=function(){var d=navigator.userAgent.toLowerCase();var b=function(a){return parseInt(a[1])*1000+parseInt(a[2])};if(d.indexOf(gb)!=-1){return gb}else if(d.indexOf(hb)!=-1){return ib}else if(d.indexOf(jb)!=-1){var c=/msie ([0-9]+)\.([0-9]+)/.exec(d);if(c&&c.length==3){if(b(c)>=6000){return kb}}}else if(d.indexOf(lb)!=-1){var c=/rv:([0-9]+)\.([0-9]+)/.exec(d);if(c&&c.length==3){if(b(c)>=1008)return mb}return lb}return ob};Fc[fb]={gecko:0,gecko1_8:1,ie6:2,opera:3,safari:4};com_deltavista_portal_login_Login.onScriptLoad=function(){if(qc){sc=true;uc()}};com_deltavista_portal_login_Login.onInjectionDone=function(){Cc=true;hc&&hc({moduleName:m,subSystem:x,evtGroup:pb,millis:(new Date()).getTime(),type:ec});uc()};pc();zc();hc&&hc({moduleName:m,subSystem:x,evtGroup:cb,millis:(new Date()).getTime(),type:qb});var Dc;if(rc()){Dc=rb}else{try{Ec([gb],sb);Ec([kb],tb);Ec([ib],ub);Ec([lb],vb);Ec([mb],wb);Dc=lc[oc(fb)]}catch(a){return}}var xc;function wc(){if(!nc){nc=true;if(!__gwt_stylesLoaded[xb]){var a=k.createElement(zb);__gwt_stylesLoaded[xb]=a;a.setAttribute(Ab,Bb);a.setAttribute(Cb,mc+xb);k.getElementsByTagName(Db)[0].appendChild(a)}uc();if(k.removeEventListener){k.removeEventListener(Eb,wc,false)}if(xc){clearInterval(xc)}}}
if(k.addEventListener){k.addEventListener(Eb,function(){tc();wc()},false)}var xc=setInterval(function(){if(/loaded|complete/.test(k.readyState)){tc();wc()}},50);hc&&hc({moduleName:m,subSystem:x,evtGroup:cb,millis:(new Date()).getTime(),type:ec});hc&&hc({moduleName:m,subSystem:x,evtGroup:pb,millis:(new Date()).getTime(),type:nb});if(!__gwt_scriptsLoaded[Fb]){__gwt_scriptsLoaded[Fb]=true;document.write(ac+mc+bc)}k.write(cc)}
com_deltavista_portal_login_Login.__gwt_initHandlers=function(i,e,j){var d=window,g=d.onresize,f=d.onbeforeunload,h=d.onunload;d.onresize=function(a){try{i()}finally{g&&g(a)}};d.onbeforeunload=function(a){var c,b;try{c=e()}finally{b=f&&f(a)}if(c!=null){return c}if(b!=null){return b}};d.onunload=function(a){try{j()}finally{h&&h(a);d.onresize=null;d.onbeforeunload=null;d.onunload=null}}};com_deltavista_portal_login_Login();
</script> 
<div style="display:none">
  <form action="/dspone-portal-web-portal/loginSubmit" method="post" name="form1" autocomplete="off">
   <input type="hidden" name="loginForm" value="true" />

<input type="text" id="userNameId" name="loginusername" maxlength="100" value=""></input>  
   <input type="password" id="passwordId" name="loginpassword" maxlength="30"></input>
   <input type="submit" id="submitId" class="button2" value="Submit" ></input>
  </form>

<input type="hidden" id="panelTitleId" value="loginTitle" ></input>

<input type="hidden" id="errorMsgId" value="" ></input>

<input type="hidden" id="userObjSession" value="0" ></input>
   <input type="hidden" id="rememberInCookie" value="0" />
 </div>

</body>
</html>

And the response:

<?xml version="1.0" encoding="utf-8" ?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Cache-Control" content="no-store,no-cache,must-revalidate" />
        <meta http-equiv="Expires" content="-1" />
        <title>Deltavista portal application</title>
        <link href="css/ext-all.css" rel="stylesheet" type="text/css" />
        <link href="css/xtheme-gray.css" rel="stylesheet" type="text/css" />
        <link href="css/portal-styles.css" rel="stylesheet" type="text/css" />
        <link href="css/flat.css" rel="stylesheet" type="text/css" />
        <link rel="shortcut icon" href="/favicon.ico?v=1419249684000" />
        <body class="login-bg">
            <div class="login-logo" />
            <iframe src="javascript:''" id="__gwt_historyFrame" style="width:0;height:0;border:0" />
            <script language="javascript">try {
   if (self.parent.location.trim() != document.location.trim()) {
     self.parent.location=document.location.trim();
   }
 } catch (Exception) {}

function com_deltavista_portal_login_Login(){var l='',F='" for "gwt:onLoadErrorFn"',D='" for "gwt:onPropertyErrorFn"',n='"> ',p='#',r='/',ub='0FE2A025A6290A55BB29E76C1D117A84.cache.html',sb='1C3B163074D9226AFD4710DEDC0C0BA3.cache.html',vb='598DD43666646529133A40FCA07B9B49.cache.html',tb='99BC0F540E77D43DD9FE60A7C2B19D77.cache.html',cc='
                <nothing script="" />
                <script defer="defer">com_deltavista_portal_login_Login.onInjectionDone(\'com.deltavista.portal.login.Login\') ',gc='
                    <nothing script="" />
                    <script id="',ac='<script language=" javascript="" src="',A='=',q='?',C='Bad handler " wb="D5A8F61982407AF8D616B17BC4862C47.cache.html" Eb="DOMContentLoaded" o="SCRIPT" fc="__gwt_marker_com.deltavista.portal.login.Login" s="base" nb="begin" cb="bootstrap" u="clear.cache.gif" m="com.deltavista.portal.login.Login" z="content" xb="css/login.css" ec="end" lb="gecko" mb="gecko1_8" yb="gwt.hybrid" E="gwt:onLoadErrorFn" B="gwt:onPropertyErrorFn" y="gwt:property" Db="head" rb="hosted.html?com_deltavista_portal_login_Login" Cb="href" kb="ie6" ab="iframe" t="img" bb="javascript:''" Fb="js/ruzeeborders_pack.js" bc="js/ruzeeborders_pack.js"><\/script>" zb="link" pb="loadExternalRefs" v="meta" eb="moduleRequested" dc="moduleStartup" jb="msie" w="name" gb="opera" db="position:absolute;width:0;height:0;border:none" Ab="rel" ib="safari" qb="selectingPermutation" x="startup" Bb="stylesheet" ob="unknown" fb="user.agent" hb="webkit" var="" ic="window,k=document,hc=ic.__gwtStatsEvent?function(a){return ic.__gwtStatsEvent(a)}:null,Cc,sc,nc,mc=l,vc={},Fc=[],Bc=[],lc=[],yc,Ac;hc&&hc({moduleName:m,subSystem:x,evtGroup:cb,millis:(new Date()).getTime(),type:nb});if(!ic.__gwt_stylesLoaded){ic.__gwt_stylesLoaded={}}if(!ic.__gwt_scriptsLoaded){ic.__gwt_scriptsLoaded={}}function rc(){try{return ic.external&&(ic.external.gwtOnLoad&&ic.location.search.indexOf(yb)==-1)}catch(a){return false}}
function uc(){if(Cc&&sc){var c=k.getElementById(m);var b=c.contentWindow;b.__gwt_initHandlers=com_deltavista_portal_login_Login.__gwt_initHandlers;if(rc()){b.__gwt_getProperty=function(a){return oc(a)}}com_deltavista_portal_login_Login=null;b.gwtOnLoad(yc,m,mc);hc&&hc({moduleName:m,subSystem:x,evtGroup:dc,millis:(new Date()).getTime(),type:ec})}}
function pc(){var j,h=fc,i;k.write(gc+h+n);i=k.getElementById(h);j=i&&i.previousSibling;while(j&&j.tagName!=o){j=j.previousSibling}function f(b){var a=b.lastIndexOf(p);if(a==-1){a=b.length}var c=b.indexOf(q);if(c==-1){c=b.length}var d=b.lastIndexOf(r,Math.min(c,a));return d>=0?b.substring(0,d+1):l}
;if(j&&j.src){mc=f(j.src)}if(mc==l){var e=k.getElementsByTagName(s);if(e.length>0){mc=e[e.length-1].href}else{mc=f(k.location.href)}}else if(mc.match(/^\w+:\/\//)){}else{var g=k.createElement(t);g.src=mc+u;mc=f(g.src)}if(i){i.parentNode.removeChild(i)}}
function zc(){var f=document.getElementsByTagName(v);for(var d=0,g=f.length;d<g;++d){var e=f[d],h=e.getAttribute(w),b;if(h){if(h==y){b=e.getAttribute(z);if(b){var i,c=b.indexOf(A);if(c>=0){h=b.substring(0,c);i=b.substring(c+1)}else{h=b;i=l}vc[h]=i}}else if(h==B){b=e.getAttribute(z);if(b){try{Ac=eval(b)}catch(a){alert(C+b+D)}}}else if(h==E){b=e.getAttribute(z);if(b){try{yc=eval(b)}catch(a){alert(C+b+F)}}}}}}
function Ec(d,e){var a=lc;for(var b=0,c=d.length-1;b<c;++b){a=a[d[b]]||(a[d[b]]=[])}a[d[c]]=e}
function oc(d){var e=Bc[d](),b=Fc[d];if(e in b){return e}var a=[];for(var c in b){a[b[c]]=c}if(Ac){Ac(d,a,e)}throw null}
var qc;function tc(){if(!qc){qc=true;var a=k.createElement(ab);a.src=bb;a.id=m;a.style.cssText=db;a.tabIndex=-1;k.body.appendChild(a);hc&&hc({moduleName:m,subSystem:x,evtGroup:dc,millis:(new Date()).getTime(),type:eb});a.contentWindow.location.replace(mc+Dc)}}
Bc[fb]=function(){var d=navigator.userAgent.toLowerCase();var b=function(a){return parseInt(a[1])*1000+parseInt(a[2])};if(d.indexOf(gb)!=-1){return gb}else if(d.indexOf(hb)!=-1){return ib}else if(d.indexOf(jb)!=-1){var c=/msie ([0-9]+)\.([0-9]+)/.exec(d);if(c&&c.length==3){if(b(c)>=6000){return kb}}}else if(d.indexOf(lb)!=-1){var c=/rv:([0-9]+)\.([0-9]+)/.exec(d);if(c&&c.length==3){if(b(c)>=1008)return mb}return lb}return ob};Fc[fb]={gecko:0,gecko1_8:1,ie6:2,opera:3,safari:4};com_deltavista_portal_login_Login.onScriptLoad=function(){if(qc){sc=true;uc()}};com_deltavista_portal_login_Login.onInjectionDone=function(){Cc=true;hc&&hc({moduleName:m,subSystem:x,evtGroup:pb,millis:(new Date()).getTime(),type:ec});uc()};pc();zc();hc&&hc({moduleName:m,subSystem:x,evtGroup:cb,millis:(new Date()).getTime(),type:qb});var Dc;if(rc()){Dc=rb}else{try{Ec([gb],sb);Ec([kb],tb);Ec([ib],ub);Ec([lb],vb);Ec([mb],wb);Dc=lc[oc(fb)]}catch(a){return}}var xc;function wc(){if(!nc){nc=true;if(!__gwt_stylesLoaded[xb]){var a=k.createElement(zb);__gwt_stylesLoaded[xb]=a;a.setAttribute(Ab,Bb);a.setAttribute(Cb,mc+xb);k.getElementsByTagName(Db)[0].appendChild(a)}uc();if(k.removeEventListener){k.removeEventListener(Eb,wc,false)}if(xc){clearInterval(xc)}}}
if(k.addEventListener){k.addEventListener(Eb,function(){tc();wc()},false)}var xc=setInterval(function(){if(/loaded|complete/.test(k.readyState)){tc();wc()}},50);hc&&hc({moduleName:m,subSystem:x,evtGroup:cb,millis:(new Date()).getTime(),type:ec});hc&&hc({moduleName:m,subSystem:x,evtGroup:pb,millis:(new Date()).getTime(),type:nb});if(!__gwt_scriptsLoaded[Fb]){__gwt_scriptsLoaded[Fb]=true;document.write(ac+mc+bc)}k.write(cc)}
com_deltavista_portal_login_Login.__gwt_initHandlers=function(i,e,j){var d=window,g=d.onresize,f=d.onbeforeunload,h=d.onunload;d.onresize=function(a){try{i()}finally{g&&g(a)}};d.onbeforeunload=function(a){var c,b;try{c=e()}finally{b=f&&f(a)}if(c!=null){return c}if(b!=null){return b}};d.onunload=function(a){try{j()}finally{h&&h(a);d.onresize=null;d.onbeforeunload=null;d.onunload=null}}};com_deltavista_portal_login_Login();
</script> 
<div style=" display:none="">
                        <form action="/dspone-portal-web-portal/loginSubmit" method="post" name="form1" autocomplete="off">
                            <input type="hidden" name="loginForm" value="true" />
                            <input type="text" id="userNameId" name="loginusername" maxlength="100" value="" />
                            <input type="password" id="passwordId" name="loginpassword" maxlength="30" />
                            <input type="submit" id="submitId" class="button2" value="Submit" />
                        </form>
                        <input type="hidden" id="panelTitleId" value="loginTitle" />
                        <input type="hidden" id="errorMsgId" value="" />
                        <input type="hidden" id="userObjSession" value="0" />
                        <input type="hidden" id="rememberInCookie" value="0" />
                    </script>
                </script>
            </script>
        </body>
    </head>
</html>

Sorry for all that mess :-(. Any help again?

Thanks in advance, Stefan

link

answered Apr 24 '15 at 09:47

zehnernet's gravatar image

zehnernet
1112

edited Apr 24 '15 at 13:14

jpbro's gravatar image

jpbro ♦
1.1k2618

In your original code you have https://test-dspone.deltavista.com/dspone/services/OrderCheckService, but in the later error logs from your new code it has SOAPAction: OrdeCheckService - note the missing "R" from Order, and also where is the path to dspone/services? It looks like you might have a typo causing the receiving web service to be redirecting you to a login form.

Dan

link

answered Apr 27 '15 at 03:24

AgeofStrife's gravatar image

AgeofStrife
9614

Thanks to all, Now it works. I started from Scratch and used POSTXML instead of SynchronousRequest. With that it worked fine for me :-).

Stefan

link

answered Apr 28 '15 at 04:22

zehnernet's gravatar image

zehnernet
1112

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5

Asked: Apr 24 '15 at 03:23

Seen: 1,075 times

Last updated: Apr 28 '15 at 04:22

powered by OSQA