RkoornneefOccasional ContributorJoined 7 years ago6 Posts1 LikeLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsRe: Unexpected token name beyond expression Here are some screenshots: In one instance (with your solution) it gives back to much info The other screenshot is with the "solution" I found. Re: Unexpected token name beyond expression Hi HimanshuTayal, Thanks for your swift response. Unfortunately your suggestion gives the exact same problem. I did manage to find out what caused the problem. It does apear that due this this piece of xml: xsi:type="xsd:string" a little change has to be made within SOAPiu to transfer the actual text content as a string. There is a little button in the Property transfer option "Transfer text content" that solves my issue on the matter. Unexpected token name beyond expression While trying to store a session ID from a SOAP response into a property I am encountering a problem. The response I want to retrieve info from is: <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" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:NS1="urn:InvokableUserManagement-IinvUserManagement"> <NS1:CreateSessionResponse> <return xsi:type="xsd:string">6Tx5Lq33VLVWQiLLmKlRbQ==</return> </NS1:CreateSessionResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> When pressing the ns button to declare the namespaces I receive this: declare namespace soap='http://schemas.xmlsoap.org/soap/envelope/'; declare namespace ns1='urn:InvokableUserManagement'; declare namespace ns2='***'; declare namespace ns3='***'; Then when setting the path to what I want to return: //ns1:CreateSessionResponse/return xsi:type="xsd:string" I get the errorXPath syntax error{...} Unexpected token name "xsi:type" beyond end of expression. //return xsi:type="xsd:string" gives me the same error while //return stores the entire return (including header info) in the transferred property. What is it that goes wrong? The space or special characters in the return tag??? Any help is greatly appreciated Re: How to add certificate in TestComplete in a SOAPui import I have found out that while within SOAPui it is enough to simply assign the keystore, when running the tests via TestComplete the incoming WS configuration in SOAPui has to be configured as well. At least this fixed the issue for me. Thanks for the tips! Re: How to add certificate in TestComplete in a SOAPui import Thanks Alex, I was thinking there should be an easier way... SOAPui allows simple adding of certificates in keystores set in project settings menu. When I run my tests directly from here everything goes as expected. I have integrated my SOAPui projects within testComplete and I can easily run all test that go over http (no certificate). All other test that go over https where a certificate is needed fail due to missing client certificate. I need a way to import the correct certificate(s) INSIDE the testcomplete project. I assume I need to add the certificate in the store and than with a script tell TC where the certificate is located... It is strange however since within SOAPui the certificates are inside my projects but apparently within TC they are not used. Possible things that cross my mind: 1. file type of cert that TC can use (SOAPui accept .pfx files, so that's what I'm using). 2. location of cert. (does the certificate require to be located in a specific folder where TC can look for it) 3. adding of script and/or file within TC prior to any test so some kind of property is set first. Any info will be appreciated. How to add certificate in TestComplete in a SOAPui import Hi there, I have recently added my SOAPui projects in TestComplete (so I can run the automated test via Jenkins). My test cases from SOAPui were easily imported within TestComplete except for the certification. Within SOAPui you can easily set a keystore and incoming/outgoing WS security configuration. These certificates, unfortunately, are not used after import within TestComplete and I seem to be unable to add them somewhere. Does anyone have an idea how to run my SOAPui tests WITH sll authentication via TestComplete? Kind regards, Ronald Solved