Hi Jeffrey, can you post the solution you found?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#2
Thin Client/WindX / Re: Windx on a MAC
February 19, 2025, 01:54:55 PM
Hi,
Is it possible to run pxplus using Windows in parallels with the Apple M chip?
Regards,
HendersonS
Is it possible to run pxplus using Windows in parallels with the Apple M chip?
Regards,
HendersonS
#3
Web Services / Re: Custom content for http error responses
December 19, 2024, 04:55:40 PM
mike, I can Access without problems to: https://www.myserver.com/somefolder/restapi.pxp?route=/customers
The problem comes when I use AliasMatch and try to Access to: https://www.myserver.com/api/customers
I will continue investigating to see Apache permissions with directories
HendersonS
The problem comes when I use AliasMatch and try to Access to: https://www.myserver.com/api/customers
I will continue investigating to see Apache permissions with directories
HendersonS
#4
Web Services / Re: Custom content for http error responses
December 19, 2024, 11:47:33 AMQuote from: Mike King on December 17, 2024, 04:35:40 PMIf using Apache you can likely use AliasMatch or RedirectMatch to accomplish this. Something like:
AliasMatch "^/api/(.*)" "/somefolder/restapi.pxp?route=/$1"
RedirectMatch would let you route to another server.
Using a generic match means you only need to setup one redirection/alias.
hi mike,
Have you tried this configuration? because I have tried it in every possible way and Apache always returns 403 forbidden, Maybe I'm doing something wrong but I don't know what it is, I mean I gave permissions to the directory, Alias works but AliasMatch doesn't.
Do you have any idea what might be wrong?
thanks in advance.
HendesonS
#5
Web Services / Re: Custom content for http error responses
December 18, 2024, 10:51:28 AM
Thanks Mike/Stéphane , I'm going to try that.
#6
Web Services / Re: Custom content for http error responses
December 17, 2024, 02:39:43 PM
Hello Stéphane,
I know this is a very old post, but can I ask you how you were able to make the rest api with pxplus, I mean, do you have to write every endpoint in the URL rewrite?
Thanks,
Henderson
I know this is a very old post, but can I ask you how you were able to make the rest api with pxplus, I mean, do you have to write every endpoint in the URL rewrite?
Thanks,
Henderson
#7
Programming / Re: Mobile application
September 18, 2024, 06:30:10 PM
Hi everyone, is there a way to download a copy of the demo that is at https://demosite.pvxplus.com/?
#8
Web Services / Re: Posting a File to a Web Service
May 25, 2024, 03:15:43 PM
Hi,
Jeff and Stéphane, thank you for your help, I was finally able to find the solution with the help you gave me.
the line looked like this:
Content-Disposition: form-data; name="xml"; filename="xmlsing.xml"
Jeff and Stéphane, thank you for your help, I was finally able to find the solution with the help you gave me.
the line looked like this:
Content-Disposition: form-data; name="xml"; filename="xmlsing.xml"
#9
Web Services / Re: Posting a File to a Web Service
May 24, 2024, 05:01:04 PM
jeff,
I tested both ways that you showed me and I still get the same "invalid file" response, I will continue trying...
I tested both ways that you showed me and I still get the same "invalid file" response, I will continue trying...
#10
Web Services / Re: Posting a File to a Web Service
May 24, 2024, 04:23:52 PM
jeff, this is what it returns:
1>print mid(body$,1,300)
------PxPlusFormDataBoundary_zNYKbtQdhRIYGlYIDBoKNPAdi7un9gGR
Content-Disposition: form-data; name="xmlsing"; filename="xmlsing.xml"
Content-Type: text/xml
<?xml version="1.0" encoding="utf-8"?>
<SemillaModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="h
ttp://www.w3.
1>
1>print mid(body$,1,300)
------PxPlusFormDataBoundary_zNYKbtQdhRIYGlYIDBoKNPAdi7un9gGR
Content-Disposition: form-data; name="xmlsing"; filename="xmlsing.xml"
Content-Type: text/xml
<?xml version="1.0" encoding="utf-8"?>
<SemillaModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="h
ttp://www.w3.
1>
#11
Web Services / Re: Posting a File to a Web Service
May 24, 2024, 03:58:55 PM
Jeff thanks for your help,
I have something very similar to what you showed, I also added Stephane's program to calculate the boundaries but when I send it with pxplus the API returns an "invalid file" error, I tried it with CURL and the api receives the file correctly, does it work? How could I replicate it? in Pxplus?
Example with CURL:
I have something very similar to what you showed, I also added Stephane's program to calculate the boundaries but when I send it with pxplus the API returns an "invalid file" error, I tried it with CURL and the api receives the file correctly, does it work? How could I replicate it? in Pxplus?
Example with CURL:
Code Select
curl -X 'POST' \
'https://url/api' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'xml=@xmldata.xml;type=text/xml'
#12
Web Services / Re: Posting a File to a Web Service
May 24, 2024, 02:36:43 PM
Hi Jeff, I'm stuck in the same place trying to send a file via API, could you post the final solution? Maybe it can help me too!
#13
Programming / Re: *web\request
April 01, 2024, 09:57:37 PM
Jeffrey Ferreira,
I'm working on something similar, how did you create the boundary?
I'm working on something similar, how did you create the boundary?
#14
Programming / Re: Sign XML Documents with Digital Signatures
February 23, 2024, 12:43:19 PM
Loren, thanks for your demonstration,
so far I have not been able to install xmlsec on Windows, and I have not been able to find a solution with pxplus either, so I will have to make some program in C# or another language to invoke it from pxplus, since I do not see a solution with pxplus.
so far I have not been able to install xmlsec on Windows, and I have not been able to find a solution with pxplus either, so I will have to make some program in C# or another language to invoke it from pxplus, since I do not see a solution with pxplus.
#15
Programming / Re: Sign XML Documents with Digital Signatures
February 20, 2024, 04:47:02 PM
Thanks Mike for your instructions.
If I understood correctly, you mean that I can invoke this tool from pxplus? And just in case I take another route to do it with pxplus, is there any utility to extract the private key from a .pem?
If I understood correctly, you mean that I can invoke this tool from pxplus? And just in case I take another route to do it with pxplus, is there any utility to extract the private key from a .pem?