Search found 645 matches

by gabrielp
Tue Sep 09, 2014 3:11 pm
Forum: LEGACY scripting
Topic: PHP Websample
Replies: 23
Views: 38552

PHP Websample

Thanks for all who chimed in with the explanation. The web services module does sound pretty cool. As far as the error, I'm not 100% sure I'm understanding what the issue is because I'm a little confused about how this is setup. But... the main issue seems to be that there is an uncaught SoapFault e...
by gabrielp
Mon Sep 08, 2014 4:38 pm
Forum: LEGACY scripting
Topic: PHP Websample
Replies: 23
Views: 38552

PHP Websample

Just curious -- what does the web services module do? I've done a lot with PHP's SoapClient and it's really great. I did some stuff with Switch in Javascript using their Soap class which turned out all right but it would be great if I could roll in my PHP code into Switch somehow.
by gabrielp
Thu Aug 28, 2014 6:39 pm
Forum: LEGACY scripting
Topic: Database entries
Replies: 12
Views: 23297

Database entries

congomonster wrote: That's the error: v1.21,2A3QV,Leseansicht_Standard_721691_21_08_14__20_35_#_A5.pdf,SQL error: [MySQL][ODBC 5.2(w) Driver][mysqld-5.6.14]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Leseansic...
by gabrielp
Thu Aug 28, 2014 5:27 pm
Forum: LEGACY scripting
Topic: Database entries
Replies: 12
Views: 23297

Database entries

congomonster wrote: Hi and thanks for your reply. But i must do something wrong. Switch says that there is an error in my syntax. The error has something to do with the filename. Any idea what is wrong? It would help if you posted the error. In SwitchScripter you can right click on the message > Cop...
by gabrielp
Mon Aug 18, 2014 4:26 pm
Forum: LEGACY scripting
Topic: How can I view a SOAP response?
Replies: 7
Views: 9720

How can I view a SOAP response?

One more update. It appears that the code above did not actually work. This is because EPMS Connect returns nodes with a null namespace when the default namespace of "soap" is set on the response. This means, you have to specify a null namespace when trying to grab values out in your xpath...
by gabrielp
Tue Aug 12, 2014 3:02 pm
Forum: LEGACY scripting
Topic: How can I view a SOAP response?
Replies: 7
Views: 9720

How can I view a SOAP response?

dkelly wrote: Here's a routine I wrote to dump any JS object. Awesome Dwight. That will come in handy. Jonas from Enfocus was able to answer my question. Here it is for anyone who might encounter this in the future: s.log(2, response.parseBody("//GetDetailJobStatusResponse/GetDetailJobStatusRes...
by gabrielp
Mon Aug 11, 2014 7:54 pm
Forum: Flows
Topic: Forum buggy
Replies: 7
Views: 7351

Forum buggy

Another issue I've encountered is a redirect loop when clicking onto the forums sometimes.
by gabrielp
Mon Aug 11, 2014 6:36 pm
Forum: Flows
Topic: Forum buggy
Replies: 7
Views: 7351

Forum buggy

Hi, Not sure where this should be posted, so sorry for posting it here. The forum logs me out and up top it will say "Logged in as: anonymous". But, at the same time on the top right it will say "Welcome [My Name]!". It's almost like there's two different sessions: one for the fo...
by gabrielp
Mon Aug 11, 2014 6:33 pm
Forum: LEGACY scripting
Topic: Including files
Replies: 8
Views: 9085

Including files

Is there any way to include scripting files? For example, if I had a function that I wanted to use in two different scripts, is there anyway to import those somehow? Something like a use or include/require statement?



Thanks in advance
by gabrielp
Mon Aug 11, 2014 4:32 pm
Forum: LEGACY scripting
Topic: How can I view a SOAP response?
Replies: 7
Views: 9720

How can I view a SOAP response?

dkelly wrote: Try something like: s.log(-1, "Result: %1", result[http://localhost/EnterpriseWebService/Enterprise Connect:GetDetailJobStatusResponse][GetDetailJobStatusResult]); Getting this: Error: Trying to access undefined member 'http://localhost/EnterpriseWebService/Enterprise Connect...
by gabrielp
Fri Aug 08, 2014 9:25 pm
Forum: LEGACY scripting
Topic: insert private Data
Replies: 6
Views: 8401

insert private Data

Danny wrote: I'm trying to set the private data to the current job state. Could you please give an example of this? I would need a script element for this, correct? Thank you! I think so. This should do it: var jobstate = job.getJobState(); job.setPrivateData('YourKey', jobstate); job.sendToSingle( ...
by gabrielp
Fri Aug 08, 2014 9:22 pm
Forum: LEGACY scripting
Topic: How can I view a SOAP response?
Replies: 7
Views: 9720

How can I view a SOAP response?

Okay, answered my own question. These lines allowed me to overwrite the input file with the resulting response: // Overwrite the input file with the response response.writeToFile( job.getPath() ); job.sendToSingle( job.getPath() ); Now the issue I'm having is parsing the response. This is my respons...
by gabrielp
Fri Aug 08, 2014 8:20 pm
Forum: LEGACY scripting
Topic: How can I view a SOAP response?
Replies: 7
Views: 9720

How can I view a SOAP response?

Hey guys, I'm stuck on this problem. I think I'm getting a SOAP exception as a response but I can't view it. I tried logging the response but it just shows "[object Network8::SOAP_ex]". Does anyone know how I could examine this response? I tried taking the response and using writeToFile() ...
by gabrielp
Fri Aug 08, 2014 4:33 pm
Forum: LEGACY scripting
Topic: Inlcude another javascript library
Replies: 0
Views: 4167

Inlcude another javascript library

Hey guys,

I'm trying to include a Soap Client library in Javascript into a Switch script so I can make some SOAP calls. Is there an easy way to include an external Javascript file into a Switch script somehow?



Has anyone done any SOAP stuff with Switch before I get started?