Advertisement
Advertisement
| 05.14.2008 at 06:16PM PDT, ID: 23403727 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: |
WSDL:
<?xml version="1.0" ?>
- <definitions name="CSP" targetNamespace="urn:CSP" xmlns:tns="urn:CSP" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:typens="urn:CSP" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
- <types>
- <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:CSP">
- <xsd:complexType name="cpxKeysRequest">
- <xsd:all>
<xsd:element name="sKey1" type="xsd:string" />
<xsd:element name="sKey2" type="xsd:string" />
<xsd:element name="sKey3" type="xsd:string" />
<xsd:element name="sKey4" type="xsd:string" />
<xsd:element name="sKey5" type="xsd:string" />
<xsd:element name="sKey6" type="xsd:string" />
<xsd:element name="sKey7" type="xsd:string" />
<xsd:element name="sKey8" type="xsd:string" />
<xsd:element name="sKey9" type="xsd:string" />
</xsd:all>
</xsd:complexType>
- <xsd:complexType name="cpxComputerinfoRequest">
- <xsd:all>
<xsd:element name="sComputerDescription" type="xsd:string" />
<xsd:element name="sComputerInternetexplorerversion" type="xsd:string" />
<xsd:element name="sComputerUsername" type="xsd:string" />
<xsd:element name="iComputerInstalledram" type="xsd:int" />
<xsd:element name="iComputerMemoryavailable" type="xsd:int" />
<xsd:element name="iComputerNumbercpu" type="xsd:int" />
<xsd:element name="sComputerClockfrequency" type="xsd:string" />
<xsd:element name="sComputerBrand" type="xsd:string" />
<xsd:element name="iComputerColordepth" type="xsd:int" />
<xsd:element name="iComputerPixelwidth" type="xsd:int" />
<xsd:element name="iComputerPixelheight" type="xsd:int" />
<xsd:element name="sComputerUnderlyingoperatingsystem" type="xsd:string" />
<xsd:element name="sComputerIpaddress" type="xsd:string" />
<xsd:element name="sComputerActualname" type="xsd:string" />
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
- <message name="authorizeComputerRequest">
<part name="aKeys" type="typens:cpxKeysRequest" />
<part name="aComputerinfo" type="typens:cpxComputerinfoRequest" />
</message>
- <message name="authorizeComputerResponse">
<part name="sResponse" type="xsd:string" />
</message>
- <portType name="CspPorts">
- <operation name="authorizeComputer">
<input message="authorizeComputerRequest" />
<output message="authorizeComputerResponse" />
</operation>
</portType>
- <binding name="MyBinding" type="typens:CspPorts">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="authorizeComputer">
<soap:operation soapAction="http://dev.appcluster01.ezmax.ca/soap/authorizecomputer.cmd?wsdl" />
- <input name="authorizeComputerRequest">
<soap:body use="literal" />
</input>
- <output name="authorizeComputerResponse">
<soap:body use="literal" />
</output>
</operation>
</binding>
- <service name="MyWebService">
<documentation>Mon Service web</documentation>
- <port name="CspPorts" binding="typens:MyBinding">
<soap:address location="http://dev.appcluster01.ezmax.ca/soap/authorizecomputer.cmd" />
</port>
</service>
</definitions>
~~~~
SERVER:
<?php
class authorizecomputer {
public function authorizeComputer($a_sKeys, $a_sComputerInfo) {
}
}
ini_set('soap.wsdl_cache_enabled',0);
$server = new SoapServer('http://dev.appcluster01.ezmax.ca/soap/authorizecomputer.cmd?wsdl');
$server -> setclass('authorizecomputer');
$server -> handle();
?>
~~~~~
SOAP CLIENT
<?php
ini_set('soap.wsdl_cache_enabled',0);
$clientAutorizeComputer = new SoapClient('http://dev.appcluster01.ezmax.ca/soap/authorizecomputer.cmd?wsdl', array('trace' => 1 ));
$mAutorizeComputerResult = $clientAutorizeComputer->authorizeComputer(
array(
'sKey1' => 'xxx',
'sKey2' => 'xxx',
'sKey3' => 'xxx',
'sKey4' => 'xxx',
'sKey5' => 'xxx',
'sKey6' => 'xxx',
'sKey7' => 'xxx',
'sKey8' => 'xxx',
'sKey9' => 'xxx',
),
array(
'sComputerDescription' => 'xxx',
'sComputerInternetexplorerversion' => '7.0.5730.11',
'sComputerUsername' => 'xxx',
'iComputerInstalledram' => '1023',
'iComputerMemoryavailable' => '177364',
'iComputerNumbercpu' => '1',
'sComputerClockfrequency' => '2017',
'sComputerBrand' => 'AMD Athlon(tm) 64 Processor 3200+',
'iComputerColordepth' => '32',
'iComputerPixelwidth' => '2560',
'iComputerPixelheight' => '1024',
'sComputerUnderlyingoperatingsystem' => 'Windows 2000 Professional v5.01 Build:2600 Service Pack:2',
'sComputerIpaddress' => 'xxx',
'sComputerActualname' => 'xxx',
)
);
echo $mAutorizeComputerResult;
?>
~~~~
Here are some debugging infos:
Functions:
Array
(
[0] => string authorizeComputer(cpxKeysRequest $aKeys, cpxComputerinfoRequest $aComputerinfo)
)
Types:
Array
(
[0] => struct cpxKeysRequest {
string sKey1;
string sKey2;
string sKey3;
string sKey4;
string sKey5;
string sKey6;
string sKey7;
string sKey8;
string sKey9;
}
[1] => struct cpxComputerinfoRequest {
string sComputerDescription;
string sComputerInternetexplorerversion;
string sComputerUsername;
int iComputerInstalledram;
int iComputerMemoryavailable;
int iComputerNumbercpu;
string sComputerClockfrequency;
string sComputerBrand;
int iComputerColordepth;
int iComputerPixelwidth;
int iComputerPixelheight;
string sComputerUnderlyingoperatingsystem;
string sComputerIpaddress;
string sComputerActualname;
}
)
Last Request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:authorizeComputer><aKeys><sKey1>xxx</sKey1><sKey2>xxx</sKey2><sKey3>xxx</sKey3><sKey4>xxx</sKey4><sKey5>xxx</sKey5><sKey6>xxx</sKey6><sKey7>xxx</sKey7><sKey8>xxx</sKey8><sKey9>xxx</sKey9></aKeys><aComputerinfo><sComputerDescription>xxx</sComputerDescription><sComputerInternetexplorerversion>7.0.5730.11</sComputerInternetexplorerversion><sComputerUsername>xxx</sComputerUsername><iComputerInstalledram>1023</iComputerInstalledram><iComputerMemoryavailable>177364</iComputerMemoryavailable><iComputerNumbercpu>1</iComputerNumbercpu><sComputerClockfrequency>2017</sComputerClockfrequency><sComputerBrand>AMD Athlon(tm) 64 Processor 3200+</sComputerBrand><iComputerColordepth>32</iComputerColordepth><iComputerPixelwidth>2560</iComputerPixelwidth><iComputerPixelheight>1024</iComputerPixelheight><sComputerUnderlyingoperatingsystem>Windows 2000 Professional v5.01 Build:2600 Service Pack:2</sComputerUnderlyingoperatingsystem><sComputerIpaddress>xxx</sComputerIpaddress><sComputerActualname>xxx</sComputerActualname></aComputerinfo></SOAP-ENV:authorizeComputer></SOAP-ENV:Body></SOAP-ENV:Envelope>
Last Request Headers:
POST /soap/authorizecomputer.cmd HTTP/1.1
Host: dev.appcluster01.ezmax.ca
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.2.6
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://dev.appcluster01.ezmax.ca/soap/authorizecomputer.cmd?wsdl"
Content-Length: 1499
Last response:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:authorizeComputerResponse><sResponse/></SOAP-ENV:authorizeComputerResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
Last Response Headers:
HTTP/1.1 200 OK
Date: Thu, 15 May 2008 01:09:44 GMT
Server: Apache
Content-Length: 254
Cache-Control: max-age=0
Keep-Alive: timeout=15, max=500
Connection: Keep-Alive
Content-Type: text/xml; charset=utf-8
IN PHP ERROR I See:
14-May-2008 21:09:44] PHP Warning: Missing argument 1 for authorizecomputer::authorizeComputer() in /xxx/authorizecomputer.cmd on line 5
[14-May-2008 21:09:44] PHP Warning: Missing argument 2 for authorizecomputer::authorizeComputer() in /xxx/authorizecomputer.cmd on line 5
|