# Request document http vs https

**URL:** <https://techcommunity.softwareag.com/t/request-document-http-vs-https/195379>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Web-and-XML-Technology\
**Created:** [June 30, 2017, 2:03pm UTC](https://techcommunity.softwareag.com/t/request-document-http-vs-https/195379 "2017-06-30T14:03:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elmar](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Elmar](https://techcommunity.softwareag.com/u/Elmar)\
**Post date:** [June 30, 2017, 2:03pm UTC](https://techcommunity.softwareag.com/t/request-document-http-vs-https/195379/1 "2017-06-30T14:03:35Z")

</div>

Hi all.

I’m using request document to call a Web service (with basic auth). works fine in dev when I hit the http url but in production the url is https. When I call the https endpoint I just get a 500 - Internal Server error back.

Is there something I have to change code wise from http endpoint vs https endpoint? (that being the only variable changing. )

My code looks as follows:

```auto
001600 request document from #WS-ENDPOINT
001610 with
001620 USER 'natfmsuser'
001630 PASSWORD 'xxxxxxx'
001640 header
001650 name 'Request-Method' value 'POST'
001660 name 'Content-Type' value 'text/xml; charset=UTF-8'
001670 name 'SOAPAction' value 'Enqueue'
001680 data all #request
001690 return
001700 header name ' ' value http-status-text
001710 page #response
001720 response #rc
```

and the SOAP packet I’m sending looks as follows

\<?xml version = '1.0' encoding = 'UTF-8'?\>

\<env:Envelope xmlns:env=‘[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)’ xmlns:xsd=‘[XML Schema](http://www.w3.org/2001/XMLSchema)’ xmlns:xsi=‘[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)’ xmlns:ns0=‘[http://www.example.org](http://www.example.org)’\>  
env:Body  
ns0:Message  
\<ns0:Message xsi:type=‘xsd:string’\>Hello\</ns0:Message\>  
\</ns0:Message\>  
\</env:Body\>  
\</env:Envelope\>

I can successfully call the service via SOAPUI and I’ve compared the two request packets and they look the same.

Any help would be greatly appreciated.

Elmar

---

<div class="post-metadata">

**Author:** ![Finn\_the\_Dane1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/finn_the_dane1/32/132_2.png) [@Finn\_the\_Dane1](https://techcommunity.softwareag.com/u/Finn_the_Dane1)\
**Post date:** [June 30, 2017, 3:14pm UTC](https://techcommunity.softwareag.com/t/request-document-http-vs-https/195379/2 "2017-06-30T15:14:13Z")

</div>

Hi Elmar,

You haven’t told which platform - but let me guess; z/OS ? 😉  
If that is the case then there are quite a few extra things needed, since the HTTPS certificates etc are not just default as on LUW ☹

See doc [http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat826mf/pg/pg\_xml.htm?hi=tls+tl#pg\_xml\_https\_supp](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat826mf/pg/pg_xml.htm?hi=tls+tl#pg_xml_https_supp)

Finn

---

<div class="post-metadata">

**Author:** ![Elmar](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Elmar](https://techcommunity.softwareag.com/u/Elmar)\
**Post date:** [June 30, 2017, 3:18pm UTC](https://techcommunity.softwareag.com/t/request-document-http-vs-https/195379/3 "2017-06-30T15:18:02Z")

</div>

Hi Finn…

Sorry yes, its actually on a Solaris Platform.

I’ll read through the docs thanks.

Elmar

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:38pm UTC](https://techcommunity.softwareag.com/t/request-document-http-vs-https/195379/4 "2021-04-02T15:38:49Z")

</div>


