Event inventory web services

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shobhit
Forum Newbie
Posts: 1
Joined: Wed Mar 07, 2007 7:21 am

Event inventory web services

Post by shobhit »

The Ninja Space Goat | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


HI all,
I m trying to make a soapclient for EVENTINVENTORY WEB SERVICES . 
after compiled my code it return
Result

Code: Select all

array(1) { ["ROOT"]=> array(2) { ["METHODINFO"]=> array(4) { 
["channelName"]=> string(10) "Basic View" ["methodName"]=> string(12) 
"GetVenueList" ["parameters"]=> string(43) 
"APPCLIENT_ID=&EVENT_ID=&STARTDATE=&INCDAYS=" ["processTime"]=> string(6) "1.9101" } ["MESSAGE"]=> string(141) 
"You did not provide a Security Token (APPCLIENT_ID). Please contact 
Customer Service at 877.800.3434 (ext. 4110) to obtain a Security Token." 
} } 
Request
POST /webservices/TicketSearch.asmx HTTP/1.0
Host: services.Preview.EventInventory.com
User-Agent: NuSOAP/0.7.2 (1.94)
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: "http://www.eventinventory.com/webservices/GetVenueList"
Content-Length: 679

<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns6521:GetVenueList 
xmlns:ns6521="http://www.eventinventory.com/webservices/"><APPCLIENT_ID 
xsi:type="xsd:string"></APPCLIENT_ID><EVENT_ID 
xsi:type="xsd:string">6</EVENT_ID><STARTDATE xsi:type="xsd:string"></STARTDATE><INCDAYS 
xsi:type="xsd:string"></INCDAYS></ns6521:GetVenueList></SOAP-ENV:Body></SOAP-ENV:Envelope>
Response
HTTP/1.1 200 OK
Connection: keep-alive
Date: Wed, 07 Mar 2007 13:15:25 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 797

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetVenueListResponse 
xmlns="http://www.eventinventory.com/webservices/"><GetVenueListResult><ROOT 
xmlns=""><METHODINFO><channelName>Basic 
View</channelName><methodName>GetVenueList</methodName><parameters>APPCLIENT_ID=&EVENT_ID=&STARTDATE=&INCDAYS=</parameters><processTime 
type="milliseconds">1.9101</processTime></METHODINFO><MESSAGE>You did 
not provide a Security Token (APPCLIENT_ID).  Please contact Customer 
Service at 877.800.3434 (ext. 4110) to obtain a Security 
Token.</MESSAGE></ROOT></GetVenueListResult></GetVenueListResponse></soap:Body></soap:Envelope>
Debug
2007-03-07 18:58:20.131054 soapclient1: instantiate SOAP with endpoint 
at 
http://services.Preview.EventInventory.com/webservices/TicketSearch.asmx
2007-03-07 18:58:20.131349 soapclient1: call: operation=GetVenueList, 
namespace=http://www.eventinventory.com/webservices/, 
soapAction=http://www.eventinventory.com/webservices/GetVenueList, rpcParams=, 
style=rpc, use=encoded, endpointType=soap
params=array(4) {
  ["APPCLIENT_ID"]=>
  string(0) ""
  ["EVENT_ID"]=>
  string(1) "6"
  ["STARTDATE"]=>
  string(0) ""
  ["INCDAYS"]=>
  string(0) ""
}
headers=bool(false)
2007-03-07 18:58:20.131546 soapclient1: serializing param array for 
operation GetVenueList
2007-03-07 18:58:20.131707 soapclient1: in serialize_val: 
name=APPCLIENT_ID, type=, name_ns=, type_ns=, use=encoded
value=string(0) ""
attributes=bool(false)
2007-03-07 18:58:20.131912 soapclient1: in serialize_val: 
name=EVENT_ID, type=, name_ns=, type_ns=, use=encoded
value=string(1) "6"
attributes=bool(false)
2007-03-07 18:58:20.132084 soapclient1: in serialize_val: 
name=STARTDATE, type=, name_ns=, type_ns=, use=encoded
value=string(0) ""
attributes=bool(false)
2007-03-07 18:58:20.132255 soapclient1: in serialize_val: name=INCDAYS, 
type=, name_ns=, type_ns=, use=encoded
value=string(0) ""
attributes=bool(false)
2007-03-07 18:58:20.132422 soapclient1: wrapping RPC request with 
encoded method element
2007-03-07 18:58:20.132565 soapclient1: In serializeEnvelope length=282 
body (max 1000 characters)=<ns6521:GetVenueList 
xmlns:ns6521="http://www.eventinventory.com/webservices/"><APPCLIENT_ID 
xsi:type="xsd:string"></APPCLIENT_ID><EVENT_ID 
xsi:type="xsd:string">6</EVENT_ID><STARTDATE xsi:type="xsd:string"></STARTDATE><INCDAYS 
xsi:type="xsd:string"></INCDAYS></ns6521:GetVenueList> style=rpc use=encoded 
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
2007-03-07 18:58:20.132685 soapclient1: headers:
bool(false)
2007-03-07 18:58:20.132813 soapclient1: namespaces:
array(0) {
}
2007-03-07 18:58:20.132985 soapclient1: 
endpoint=http://services.Preview.EventInventory.com/webservices/TicketSearch.asmx, 
soapAction=http://www.eventinventory.com/webservices/GetVenueList, 
namespace=http://www.eventinventory.com/webservices/, style=rpc, 
use=encoded, encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
2007-03-07 18:58:20.133111 soapclient1: SOAP message 
length=679contents(max 1000 bytes)=<?xml version="1.0" 
encoding="ISO-8859-1"?><SOAP-ENV:Envelope 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns6521:GetVenueList 
xmlns:ns6521="http://www.eventinventory.com/webservices/"><APPCLIENT_ID 
xsi:type="xsd:string"></APPCLIENT_ID><EVENT_ID 
xsi:type="xsd:string">6</EVENT_ID><STARTDATE xsi:type="xsd:string"></STARTDATE><INCDAYS 
xsi:type="xsd:string"></INCDAYS></ns6521:GetVenueList></SOAP-ENV:Body></SOAP-ENV:Envelope>
2007-03-07 18:58:20.133254 soapclient1: transporting via HTTP
2007-03-07 18:58:20.134376 soapclient1: sending message, length=679
2007-03-07 18:58:20.133471 soap_transport_http: scheme = http
2007-03-07 18:58:20.133596 soap_transport_http: host = 
services.Preview.EventInventory.com
2007-03-07 18:58:20.133716 soap_transport_http: path = 
/webservices/TicketSearch.asmx
2007-03-07 18:58:20.133848 soap_transport_http: set Host: 
services.Preview.EventInventory.com
2007-03-07 18:58:20.133995 soap_transport_http: set User-Agent: 
NuSOAP/0.7.2 (1.94)
2007-03-07 18:58:20.134129 soap_transport_http: set Content-Type: 
text/xml; charset=ISO-8859-1
2007-03-07 18:58:20.134254 soap_transport_http: set SOAPAction: 
"http://www.eventinventory.com/webservices/GetVenueList"
2007-03-07 18:58:20.134515 soap_transport_http: entered send() with 
data of length: 679
2007-03-07 18:58:20.134651 soap_transport_http: connect 
connection_timeout 0, response_timeout 30, scheme http, host 
services.Preview.EventInventory.com, port 80
2007-03-07 18:58:20.134775 soap_transport_http: calling fsockopen with 
host services.Preview.EventInventory.com connection_timeout 0
2007-03-07 18:58:23.472170 soap_transport_http: set response timeout to 
30
2007-03-07 18:58:23.472407 soap_transport_http: socket connected
2007-03-07 18:58:23.472570 soap_transport_http: set Content-Length: 679
2007-03-07 18:58:23.472703 soap_transport_http: HTTP request: POST 
/webservices/TicketSearch.asmx HTTP/1.0
2007-03-07 18:58:23.472832 soap_transport_http: HTTP header: Host: 
services.Preview.EventInventory.com
2007-03-07 18:58:23.472956 soap_transport_http: HTTP header: 
User-Agent: NuSOAP/0.7.2 (1.94)
2007-03-07 18:58:23.473078 soap_transport_http: HTTP header: 
Content-Type: text/xml; charset=ISO-8859-1
2007-03-07 18:58:23.473199 soap_transport_http: HTTP header: 
SOAPAction: "http://www.eventinventory.com/webservices/GetVenueList"
2007-03-07 18:58:23.473322 soap_transport_http: HTTP header: 
Content-Length: 679
2007-03-07 18:58:23.473478 soap_transport_http: wrote data to socket, 
length = 938
2007-03-07 18:58:23.843914 soap_transport_http: read line of 17 bytes: 
HTTP/1.1 200 OK
2007-03-07 18:58:23.844158 soap_transport_http: read line of 24 bytes: 
Connection: keep-alive
2007-03-07 18:58:23.844293 soap_transport_http: read line of 37 bytes: 
Date: Wed, 07 Mar 2007 13:15:25 GMT
2007-03-07 18:58:23.844425 soap_transport_http: read line of 27 bytes: 
Server: Microsoft-IIS/6.0
2007-03-07 18:58:23.844555 soap_transport_http: read line of 23 bytes: 
X-Powered-By: ASP.NET
2007-03-07 18:58:23.844685 soap_transport_http: read line of 28 bytes: 
X-AspNet-Version: 1.1.4322
2007-03-07 18:58:23.844817 soap_transport_http: read line of 35 bytes: 
Cache-Control: private, max-age=0
2007-03-07 18:58:23.844947 soap_transport_http: read line of 39 bytes: 
Content-Type: text/xml; charset=utf-8
2007-03-07 18:58:23.845079 soap_transport_http: read line of 21 bytes: 
Content-Length: 797
2007-03-07 18:58:23.845215 soap_transport_http: read line of 2 bytes: 
2007-03-07 18:58:23.845407 soap_transport_http: found end of headers 
after length 253
2007-03-07 18:58:23.845631 soap_transport_http: want to read content of 
length 797
2007-03-07 18:58:23.845773 soap_transport_http: read buffer of 797 
bytes
2007-03-07 18:58:23.845911 soap_transport_http: read to EOF
2007-03-07 18:58:23.846034 soap_transport_http: read body of length 797
2007-03-07 18:58:23.846158 soap_transport_http: received a total of 
1050 bytes of data from server
2007-03-07 18:58:23.846333 soap_transport_http: closed socket
2007-03-07 18:58:23.846480 soap_transport_http: No Content-Encoding 
header
2007-03-07 18:58:23.846607 soap_transport_http: end of send()
2007-03-07 18:58:23.846775 soapclient1: got response, length=797 
type=text/xml; charset=utf-8
2007-03-07 18:58:23.846903 soapclient1: Entering parseResponse() for 
data of length 797 and type text/xml; charset=utf-8
2007-03-07 18:58:23.847034 soapclient1: Got response encoding: utf-8
2007-03-07 18:58:23.847174 soapclient1: Use encoding: UTF-8 when 
creating soap_parser
2007-03-07 18:58:23.847425 soap_parser: Charset from HTTP Content-Type 
matches encoding from XML declaration
2007-03-07 18:58:23.847549 soap_parser: Entering soap_parser(), 
length=797, encoding=UTF-8
2007-03-07 18:58:23.848035 soap_parser: found root struct 
GetVenueListResponse, pos 2
2007-03-07 18:58:23.848722 soap_parser: in buildVal() for 
METHODINFO(pos 5) of type 
2007-03-07 18:58:23.848852 soap_parser: in buildVal, there are children
2007-03-07 18:58:23.848988 soap_parser: in buildVal, adding Java Vector 
METHODINFO
2007-03-07 18:58:23.849246 soap_parser: in buildVal() for ROOT(pos 4) 
of type 
2007-03-07 18:58:23.849373 soap_parser: in buildVal, there are children
2007-03-07 18:58:23.849501 soap_parser: in buildVal, adding Java Vector 
ROOT
2007-03-07 18:58:23.849668 soap_parser: in buildVal() for 
GetVenueListResult(pos 3) of type 
2007-03-07 18:58:23.849790 soap_parser: in buildVal, there are children
2007-03-07 18:58:23.849914 soap_parser: in buildVal, adding Java Vector 
GetVenueListResult
2007-03-07 18:58:23.850074 soap_parser: in buildVal() for 
GetVenueListResponse(pos 2) of type struct
2007-03-07 18:58:23.850194 soap_parser: in buildVal, there are children
2007-03-07 18:58:23.850320 soap_parser: in buildVal, adding Java Vector 
GetVenueListResponse
2007-03-07 18:58:23.850506 soap_parser: parsed successfully, found root 
struct: 2 of name GetVenueListResponse
2007-03-07 18:58:23.850723 soapclient1: sent message successfully and 
got a(n) array
return=array(1) {
  ["GetVenueListResult"]=>
  array(1) {
    ["ROOT"]=>
    array(2) {
      ["METHODINFO"]=>
      array(4) {
        ["channelName"]=>
        string(10) "Basic View"
        ["methodName"]=>
        string(12) "GetVenueList"
        ["parameters"]=>
        string(43) "APPCLIENT_ID=&EVENT_ID=&STARTDATE=&INCDAYS="
        ["processTime"]=>
        string(6) "1.9101"
      }
      ["MESSAGE"]=>
      string(141) "You did not provide a Security Token (APPCLIENT_ID).  
Please contact Customer Service at 877.800.3434 (ext. 4110) to obtain a 
Security Token."
    }
  }
}
2007-03-07 18:58:23.850900 soapclient1: return shifted value: 
array(1) {
  ["ROOT"]=>
  array(2) {
    ["METHODINFO"]=>
    array(4) {
      ["channelName"]=>
      string(10) "Basic View"
      ["methodName"]=>
      string(12) "GetVenueList"
      ["parameters"]=>
      string(43) "APPCLIENT_ID=&EVENT_ID=&STARTDATE=&INCDAYS="
      ["processTime"]=>
      string(6) "1.9101"
    }
    ["MESSAGE"]=>
    string(141) "You did not provide a Security Token (APPCLIENT_ID).  
Please contact Customer Service at 877.800.3434 (ext. 4110) to obtain a 
Security Token."
  }
}
can You tell me where is problem. Please response me it is very urjent
for me, I m waiting for ur response

The Ninja Space Goat | I have edited your thread title as well (removed all caps)

The Ninja Space Goat | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Welcome to the the boards. :)

That's a hideously large amount of text to post. I don't think many people are going to try and sift through that to find the problem. If you explain your problem in more detail, you'll be much more likely to get a quality response.

Also, please do not post your thread title in all caps. It's annoying, and is more likely to get people NOT to open this thread. Please familiarize yourself with the forum rules (take the tour in my sig).

I realize your problem is important to you, but everybody's problems are important to them.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Ah, it's here's-some-output-now-guess-what-my-code-looks-like time again. Might be fun but since it's urgent you might want to skip this part and show us the code. Please no "here's code that is somewhat similar to what I'm actually doing" but "the real code" aka copy&paste (without any credentials). That doesn't guarantee a quick solution (not even a quick response) but it increases the probability a lot. Please add your environment description, too. os, webserver, php version, soap extensions/classes used (if any).

My first guess is
You did not provide a Security Token (APPCLIENT_ID).
Please contact Customer Service at 877.800.3434 (ext. 4110) to obtain a
Security Token.
might be related to the problem. And another look at the request shows
<APPCLIENT_ID
xsi:type="xsd:string"></APPCLIENT_ID>
the server is right, there's no value for APPCLIENT_ID.


btw: this forum is labled as
General Discussion
[...]
This forum is not for asking programming related questions.
apart from this: hi.
Post Reply