# Peoplesoft webservice works with SoapUI, gets http 500 when I run REQUEST DOCUMENT

**URL:** <https://techcommunity.softwareag.com/t/peoplesoft-webservice-works-with-soapui-gets-http-500-when-i-run-request-document/172125>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Web-and-XML-Technology\
**Created:** [August 1, 2013, 6:22pm UTC](https://techcommunity.softwareag.com/t/peoplesoft-webservice-works-with-soapui-gets-http-500-when-i-run-request-document/172125 "2013-08-01T18:22:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gil\_Wildin](https://avatars.discourse-cdn.com/v4/letter/g/8c91f0/32.png) [@Gil\_Wildin](https://techcommunity.softwareag.com/u/Gil_Wildin)\
**Post date:** [August 1, 2013, 6:22pm UTC](https://techcommunity.softwareag.com/t/peoplesoft-webservice-works-with-soapui-gets-http-500-when-i-run-request-document/172125/1 "2013-08-01T18:22:36Z")

</div>

Hello I am trying to write a REQUEST DOCUMENT statement to access a Peoplesoft web service. I get an HTTP 500 response when I run it, yet the same SOAP request works in SoapUI. What could be causing this? a difference in the headers? The SOAP request is the same unless I made a typo.

```auto

REQUEST DOCUMENT FROM #FROM                             
  WITH                                                  
    HEADER 'Content-Type' 'text/xml;charset=UTF-8'     
** HEADER 'Content-Type' 'text/xml;charset=iso-8859-1'
    'SOAPAction' 'UTZ_FP134_VENDOR_ADDR.v1'             
**'Accept-Encoding' 'gzip,deflate'                    
**'Content-type' 'text/xml;charset=UTF-8'             
    'Host' 'z-hr-fin-test-broker.shared.utsystem.edu'   
**'Content-Length' '1548'                             
**'Connection' 'Keep-Alive'                          
    'Request-method' 'POST'                             
**'User-Agent' 'Apache-HttpClient/4.11(java 1.5)'     
    DATA ALL #DOCUMENT                               
** ENCODED CODEPAGE 'UTF-8'                          
      ENCODED CODEPAGE 'iso-8859-1'     
  RETURN                                    
    HEADER ALL #HEADER          
      NAME 'Content-Type' #DOC-CHARSET   
    PAGE #PAGE ENCODED                      
RESPONSE #RC                                
  GIVING #RTERR                             
```

I have successfully written a similar request to a different PeopleSoft interface in Natural, yet this one perplexes me so far. Thanks for any help! (Notice I have a lot of stuff commented out that I have tried. I tried making the header like the SoapUI header).

---

<div class="post-metadata">

**Author:** ![Gil\_Wildin](https://avatars.discourse-cdn.com/v4/letter/g/8c91f0/32.png) [@Gil\_Wildin](https://techcommunity.softwareag.com/u/Gil_Wildin)\
**Post date:** [August 1, 2013, 6:33pm UTC](https://techcommunity.softwareag.com/t/peoplesoft-webservice-works-with-soapui-gets-http-500-when-i-run-request-document/172125/2 "2013-08-01T18:33:38Z")

</div>

whoops, forgot to post output.  
HTTP RESPONSE 500 RECEIVED  
GOODBYE #N3: 500  
#HEADER: HTTP/1.1 500 Internal Server Error?Connection: close?Date: Thu, 01 Aug  
2013 16:32:14 GMT?Content-Length: 524?Content-Type: text/xml; charset=UTF-8?X-  
Powered-By: Servlet/2.5 JSP/2.1??

* * *

* * *

* * *

BEFORE PARSE

\<?xml version="1.0" ?\>xmlsoap.org/soap/envelope/"\>SOAP-ENV:BodySOAP-ENV:FaultSOAP-ENV:  
ServerServer ErrorIntegration Broker Response\<  
StatusCode\>2010201  
Integration Gateway failed while processing the message\</  
IBResponse\>\</SOAP-ENV:Fault\>\</SOAP-ENV:Body\>\</SOAP-ENV:Envelope\>

---

<div class="post-metadata">

**Author:** ![Gil\_Wildin](https://avatars.discourse-cdn.com/v4/letter/g/8c91f0/32.png) [@Gil\_Wildin](https://techcommunity.softwareag.com/u/Gil_Wildin)\
**Post date:** [August 1, 2013, 9:59pm UTC](https://techcommunity.softwareag.com/t/peoplesoft-webservice-works-with-soapui-gets-http-500-when-i-run-request-document/172125/3 "2013-08-01T21:59:18Z")

</div>

🙂 Solved my own problem. I found two very minor errors in the SOAP request, although I tried to cut and paste it from SoapUI. I left out some spaces which I found when I changed the mustUnderstand in the header from 1 to 0. Then I got some meaningful error messages.

```auto

 COMPRESS                                                                
   '<?xml version="1.0" encoding="UTF-8"?>' -                            
   '<soapenv:Envelope xmlns:soapenc=' -                                  
   '"http://schemas.xmlsoap.org/soap/encoding/" ' -                      
   'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" ' -        
   'xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing/" ' -    
   'xmlns:xsd="http://www.w3.org/2001/XMLSchema/" ' -                    
   'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/">' -       
...    
```

I had left out the space at the end of some of the lines, and the SOAP envelope got confused.  
thanks.

---

<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:29pm UTC](https://techcommunity.softwareag.com/t/peoplesoft-webservice-works-with-soapui-gets-http-500-when-i-run-request-document/172125/4 "2021-04-02T15:29:15Z")

</div>


