You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want consume an SOAP-Webservice
The following curl-Command is working (all files are in the same folder) curl --insecure --cert ./client.pem --key ./privkey.pem -X POST -H 'Content-Type: application/soap+xml; charset=utf-8' --data @request_body.xml 'https://www.../queryws_1_0/VeKa_Query_1_0.asmx';
I have a spring-boot-application, with following structure:
-src/main/resources/cert/client.pem (Zertificate)
-src/main/resources/cert/privkey.pem (Private Key)
-src/main/resources/cert/request_body.xml (Settings for SOAP)
I execute in spring-boot the following CURL-Command HttpResponse response = curl("--insecure --cert src/main/resources/cert/client.pem --key src/main/resources/cert/privkey.pem -X POST -H 'Content-Type: application/soap+xml; charset=utf-8' --data src/main/resources/cert/request_body.xml https://www..../queryws_1_0/VeKa_Query_1_0.asmx");
When i execute it in SpringBoot as RestController via GetMapping
=> I get the following error:
java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x000xf70x010x000x000xf30x030x030x180xd0RNT0x170xa0Pp0xd20xde0x0a0x9aSaQ0xad90xd7Md0xebWP0x17TE0xe90x05I0x1c0x1e ]. HTTP method names must be tokens
The text was updated successfully, but these errors were encountered:
I want consume an SOAP-Webservice
The following curl-Command is working (all files are in the same folder)
curl --insecure --cert ./client.pem --key ./privkey.pem -X POST -H 'Content-Type: application/soap+xml; charset=utf-8' --data @request_body.xml 'https://www.../queryws_1_0/VeKa_Query_1_0.asmx';
I have a spring-boot-application, with following structure:
-src/main/resources/cert/client.pem (Zertificate)
-src/main/resources/cert/privkey.pem (Private Key)
-src/main/resources/cert/request_body.xml (Settings for SOAP)
I execute in spring-boot the following CURL-Command
HttpResponse response = curl("--insecure --cert src/main/resources/cert/client.pem --key src/main/resources/cert/privkey.pem -X POST -H 'Content-Type: application/soap+xml; charset=utf-8' --data src/main/resources/cert/request_body.xml https://www..../queryws_1_0/VeKa_Query_1_0.asmx");
When i execute it in SpringBoot as RestController via GetMapping
=> I get the following error:
java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x000xf70x010x000x000xf30x030x030x180xd0RNT0x170xa0Pp0xd20xde0x0a0x9aSaQ0xad90xd7Md0xebWP0x17TE0xe90x05I0x1c0x1e ]. HTTP method names must be tokens
The text was updated successfully, but these errors were encountered: