- Community Home
- >
- Welcome
- >
- Other HPE Product Questions
- >
- HTTP Status-Code=415 on an HTML POST request
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2017 06:06 AM
05-16-2017 06:06 AM
HTTP Status-Code=415 on an HTML POST request
Hi,
I've a script registered with HTML protocol, using a web_custom_request function to recall a web service with HTML body.
web_custom_request("Script01_CRE",
"URL=http://salclc0049....?wsdl",
"Method=POST",
"RecContentType=text/xml",
"Snapshot=t1.inf",
"EncType=text/xml; charset=utf-8",
"Body="
"<soap:Envelope xmlns:soap=\"http://www.w3.org/..../\">"
"<soap:Header/>"
"<soap:Body>"
"<ser:ricercaCRESA>"
"<!--Optional:-->"
"<RicercaCREInput>"
"<!--Optional:-->"
....
If I execute the script, VuGen Log return the error showed below:
Error -26616: HTTP Status-Code=415 (Unsupported Media Type) for "http://salclc0049.sede.corp.sanpaoloimi.com:17042/pore-be-webservices/WsRicercaCRESAService?wsdl"
How can I resolve the error? There's a particular condition to put before the web_custom_request function?
Thanks a lot for the support,
Lorenzo
- Tags:
- SW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2017 06:02 AM
05-23-2017 06:02 AM
Re: HTTP Status-Code=415 on an HTML POST request
I've resolved the problem changing the values of "RecContentType" and "EncType" attributes.
For example, the old function is modified in the next "web_custom_request",
web_custom_request("Script09_SalvaDatiInput",
"URL=http://…",
"Method=POST",
"RecContentType=application/soap+xml",
"EncType=application/soap+xml; charset=utf-8",
"Body="
…
That solution is Ok for VuGen or Controller execution mode.
Thanks for support,
Lorenzo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2017 09:02 AM
05-23-2017 09:02 AM
Re: HTTP Status-Code=415 on an HTML POST request
Hello
Sorry for the inconvenience of having the Software content in read-only as we migrated to a new instance. The new Software Community is now live at community.saas.hpe.com. You can use your same credentials to log in.
Please repost your question to the Software Community:
https://community.saas.hpe.com/t5/Software/ct-p/sws-top
Thanks,