[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Anyone got any idea on why this comes up with a 400 BAd Request?



   Here is the specifications of the web service call


   POST /Enterprise/DataNotificationService.asmx HTTP/1.1

   Host: ws20dev.pmsionline.com

   Content-Type: text/xml; charset=utf-8

   Content-Length: length

   SOAPAction:
   "http://pmsionline.com/enterprise/PublishBILL_REVIEW_STATUS";


   <?xml version="1.0" encoding="utf-8"?>

   <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xmlns:xsd="http://www.w3.org/2001/XMLSchema";
   xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>

     <soap:Body>

       <PublishBILL_REVIEW_STATUS
   xmlns="http://pmsionline.com/enterprise/";>

         <XmlAsString>string</XmlAsString>

       </PublishBILL_REVIEW_STATUS>

     </soap:Body>

   </soap:Envelope>


   Here is the XML I am generating


   <?xml version="1.0" encoding="utf-8"?> <soap:Envelope
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xmlns:xsd="http://www.w3.org/2001/XMLSchema";
   xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";> <soap:Body>
   <Publish/BILL_REVIEW_STATUS
   xmlns="http://pmsionline.com/enterprise/";>

   <XmlAsString> <?xml version="1.0" encoding="iso-8859-1"
   standalone="no"?>   <BILL_REVIEW_STATUS.Insert.Request>
   <MessageHeader>  <MessageVersion>1</MessageVersion>
   <MessageId>BILL_REVIEW_STATUS.Insert.Request20101221104916</MessageId>
     <MessageSource>2</MessageSource>  <MessageDestinations>
   <MessageDestination>7</MessageDestination>  </MessageDestinations>
   <MessageReference />  </MessageHeader>  <MessageBody>
   <TransactionData>
   <SOURCETABLENAME>BILL_REVIEW_STATUS</SOURCETABLENAME>  <BCN_NO />
   <PTBILL_NO>12345678901234567890</PTBILL_NO>  <RX_NO>1234567</RX_NO>
   <STAGE>40</STAGE>  <STAGE_TS>2010-12-21 10:49:16</STAGE_TS>
   <SOURCE_SYSTEM>4</SOURCE_SYSTEM><INVOICE_CONTROL>123456789</INVOICE_CO
   NTROL>  <INVOICE_LINE>123</INVOICE_LINE> <USERID>DWZPGMR</USERID>
   </TransactionData>  </MessageBody>
   </BILL_REVIEW_STATUS.Insert.Request>  </XmlAsString>
   </Publish/BILL_REVIEW_STATUS> </soap:Body>

   </soap:Envelope>


   When I take the xml between the tags XmlAsString and run it through
   the browser I get success. But when I run the entire XML from the the
   AS/400 I get 400 BAD REQUEST.


   If I happen to remove the second xml version (inside XmlAsString) I
   get the web service to invoke but it then fails on an instance not
   created error.  I am sure it has something to do with the second xml
   version but I am not sure why.


   Any ideas?


   Notice: THIS DOCUMENT MAY CONTAIN CONFIDENTIAL OR PROPRIETARY
   INFORMATION, INCLUDING PATIENT HEALTH INFORMATION THAT IS PROTECTED
   UNDER HIPAA AND OTHER STATE AND FEDERAL CONFIDENTIALITY LAWS. PLEASE
   DELIVER IMMEDIATELY ONLY TO THE INTENDED RECIPIENT. IF THIS
   TRANSMISSION WAS RECEIVED IN ERROR, PLEASE CONTACT THE SENDER
   IMMEDIATELY AND DO NOT DISTRIBUTE THE INFORMATION TO ANY OTHER PERSON.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------