[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nyphp-talk
Subject:    Re: [nyphp-talk] Error Fetching http headers
From:       "Todd Sinagra" <tsinagra () gmail ! com>
Date:       2007-12-26 12:25:23
Message-ID: 8c3fe96a0712260425o492bcd3ex1753a0cfda89cf48 () mail ! gmail ! com
[Download RAW message or body]

There a three methods that are giving me that error. They are
CreateReceivablesInvoice, CreateSalesOrder, and CreatePayablesInvoice.
At one point in time, those three methods did work on the version of
PHP I am currently running, which is 5.2.1. I have not tried PHP 5.1
yet.
The web service is a commercial package it is M/S Dynamics GP (Great Plains).

Here is the request that is getting sent over for CreatePayablesInvoice.

<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://schemas.microsoft.com/dynamics/gp/2006/01"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns2="http://schemas.microsoft.com/dynamics/2006/01"><SOAP-ENV:Body><ns1:CreatePa \
yablesInvoice><ns1:payablesInvoice><ns1:Key><ns1:Id>0000006</ns1:Id></ns1:Key><ns1:VendorDocumentNumber>DOCUMENT
 06</ns1:VendorDocumentNumber><ns1:DocumentAmount><ns1:Currency>USD</ns1:Currency><ns1 \
:Value>250.00</ns1:Value><ns1:DecimalDigits>2</ns1:DecimalDigits></ns1:DocumentAmount><ns1:Date>2007-12-26</ns1:Date><ns1:GeneralLedgerPostingDate
 xsi:nil="true"/><ns1:PurchasesAmount><ns1:Currency>USD</ns1:Currency><ns1:Value>250.0 \
0</ns1:Value><ns1:DecimalDigits>2</ns1:DecimalDigits></ns1:PurchasesAmount><ns1:TaxAmo \
unt><ns1:Currency>USD</ns1:Currency><ns1:Value>0</ns1:Value><ns1:DecimalDigits>2</ns1:DecimalDigits></ns1:TaxAmount><ns1:ExchangeRate
 xsi:nil="true"/><ns1:ExchangeDate
xsi:nil="true"/><ns1:Type>Invoice</ns1:Type><ns1:TransactionState
xsi:nil="true"/><ns1:ChargeAmount><ns1:Currency>USD</ns1:Currency><ns1:Value>250</ns1: \
Value><ns1:DecimalDigits>2</ns1:DecimalDigits></ns1:ChargeAmount><ns1:ModifiedDate \
xsi:nil="true"/><ns1:PostedDate xsi:nil="true"/><ns1:TaxDate \
xsi:nil="true"/><ns1:IsVoided xsi:nil="true"/><ns1:IsIntercompanyTransaction
xsi:nil="true"/><ns1:HasIntercompanyDistributions
xsi:nil="true"/><ns1:BatchKey><ns1:Id>PAYABLES
BATCH</ns1:Id><ns1:CreatedDateTime>2007-12-26</ns1:CreatedDateTime></ns1:BatchKey><ns1 \
:VendorKey><ns1:Id>007380</ns1:Id></ns1:VendorKey></ns1:payablesInvoice><ns2:Context><ns2:OrganizationKey
 xsi:type="ns2:CompanyKey"><ns2:Id>-1</ns2:Id></ns2:OrganizationKey><ns2:CultureName>e \
n-US</ns2:CultureName><ns2:CurrencyType>Transactional</ns2:CurrencyType></ns2:Context> \
<ns1:policy><ns1:Key><ns1:Id>f39624cb-97f1-4d5a-a67f-9b66e95d8930</ns1:Id></ns1:Key><ns1:Name>Create
 Payables Invoice Policy</ns1:Name><ns1:RootBusinessObjectName>Payables
Document</ns1:RootBusinessObjectName></ns1:policy></ns1:CreatePayablesInvoice></SOAP-ENV:Body></SOAP-ENV:Envelope>


What should be returned is a CreatePayablesInvoiceResponse. Which is
pretty much nothing.

I pretty much and at a loss at this point. Any help is greatly appreciated.

- Todd


On Dec 24, 2007 6:20 PM, Tom Melendez <tom@supertom.com> wrote:
> Hi Todd,
> 
> Could you tell us which methods are experiencing the problem?
> Could you show us the data you are sending and what you expect to receive?
> Judging by the naming of the directory in the error below, it seems
> that you are using a package (commercial or open source) of some
> sorts?  Which package is it?
> Did this ever work for you?  Perhaps in 5.1x?
> 
> Thanks,
> 
> Tom
> http://www.liphp.org
> 
> 
> 
> On Dec 24, 2007 5:44 AM, Todd Sinagra <tsinagra@gmail.com> wrote:
> > Whenever calling certain SOAP methods I get the following error.
> > 
> > SoapFault exception: [HTTP] Error Fetching http headers in
> > /home/enc/www/bancard/gp/sample_files/create_receivables_invoice.php:54
> > Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml
> > version="...', 'http://nabacct0...', 'http://schemas....', 2, 0) #1
> > [internal function]: SoapClient->__call('CreateReceivabl...', Array)
> > #2 /home/enc/www/bancard/gp/sample_files/create_receivables_invoice.php(54):
> > SoapClient->CreateReceivablesInvoice(Array) #3 {main}
> > 
> > However, other SOAP methods work just fine without any problems.
> > 
> > I've tried different PHP versions (5.2.1, 5.2.3) and different
> > solutions on the web with no luck.
> > 
> > Any suggestions?
> > _______________________________________________
> > New York PHP Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> > 
> > NYPHPCon 2006 Presentations Online
> > http://www.nyphpcon.com
> > 
> > Show Your Participation in New York PHP
> > http://www.nyphp.org/show_participation.php
> > 
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
> 
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
> 
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
> 
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic