Some fixes for web services

This commit is contained in:
Laurent Destailleur 2011-05-04 15:19:38 +00:00
parent afc6f28a03
commit 5d1e7c2d85
12 changed files with 660 additions and 396 deletions

View File

@ -358,7 +358,6 @@ class FactureFournisseur extends Facture
{ {
$this->error='Bill with id '.$rowid.' not found sql='.$sql; $this->error='Bill with id '.$rowid.' not found sql='.$sql;
dol_syslog(get_class($this).'::Fetch rowid='.$rowid.' numrows=0 sql='.$sql); dol_syslog(get_class($this).'::Fetch rowid='.$rowid.' numrows=0 sql='.$sql);
dol_print_error('',$sql);
return -2; return -2;
} }

View File

@ -21,6 +21,9 @@ Replace
By By
if (! is_array($this->methodreturn) && isset($this->methodreturn) && ((get_class($this->methodreturn) == 'soap_fault') || (get_class($this->methodreturn) == 'nusoap_fault'))) { if (! is_array($this->methodreturn) && isset($this->methodreturn) && ((get_class($this->methodreturn) == 'soap_fault') || (get_class($this->methodreturn) == 'nusoap_fault'))) {
* In file nusoap.php, to avoid a warning,
Replace call to serialize_val with no bugged value
FPDF: FPDF:
----- -----

View File

@ -576,8 +576,11 @@ class nusoap_base {
} }
$array_types[$tt] = 1; $array_types[$tt] = 1;
// TODO: for literal, the name should be $name // TODO: for literal, the name should be $name
$xml .= $this->serialize_val($v,'item',false,false,false,false,$use); //DOL_CHANGE This is to have tag name with name reported by wsdl and not "item"
++$i; //$xml .= $this->serialize_val($v,'item',false,false,false,false,$use);
$tmp=preg_replace('/s$/i','',$name);
$xml .= $this->serialize_val($v,$tmp?$tmp:'item',false,false,false,false,$use);
++$i;
} }
if(count($array_types) > 1){ if(count($array_types) > 1){
$array_typename = 'xsd:anyType'; $array_typename = 'xsd:anyType';
@ -589,7 +592,7 @@ class nusoap_base {
} elseif(isset($tt) && $tt == 'arraySimple'){ } elseif(isset($tt) && $tt == 'arraySimple'){
$array_typename = 'SOAP-ENC:Array'; $array_typename = 'SOAP-ENC:Array';
} elseif(isset($tt) && $tt == 'arrayStruct'){ } elseif(isset($tt) && $tt == 'arrayStruct'){
$array_typename = 'unnamed_struct_use_soapval'; $array_typename = 'unnamed_struct_use_soapval';
} else { } else {
// if type is prefixed, create type prefix // if type is prefixed, create type prefix
if ($tt_ns != '' && $tt_ns == $this->namespaces['xsd']){ if ($tt_ns != '' && $tt_ns == $this->namespaces['xsd']){
@ -6134,7 +6137,10 @@ class wsdl extends nusoap_base {
if (!in_array($typeDef['arrayType'],$this->typemap['http://www.w3.org/2001/XMLSchema'])) { if (!in_array($typeDef['arrayType'],$this->typemap['http://www.w3.org/2001/XMLSchema'])) {
$contents .= $this->serializeType('item', $typeDef['arrayType'], $v, $use); $contents .= $this->serializeType('item', $typeDef['arrayType'], $v, $use);
} else { } else {
$contents .= $this->serialize_val($v, 'item', $typeDef['arrayType'], null, $this->XMLSchemaVersion, false, $use); // DOL_CHANGE This is to have tag name with name reported by wsdl and not "item"
//$contents .= $this->serialize_val($v, 'itemzzzz', $typeDef['arrayType'], null, $this->XMLSchemaVersion, false, $use);
$tmp=array_keys($typeDef['elements']); //var_dump($tmp[0]);
$contents .= $this->serialize_val($v, ($tmp[0]?$tmp[0]:'item'), $typeDef['arrayType'], null, $this->XMLSchemaVersion, false, $use);
} }
} }
} else { } else {

View File

@ -603,7 +603,8 @@ function dol_print_date($time,$format='',$tzoutput='tzserver',$outputlangs='',$e
if ($format == 'dayhourldap') $format='%Y%m%d%H%M%SZ'; if ($format == 'dayhourldap') $format='%Y%m%d%H%M%SZ';
if ($format == 'dayhourxcard') $format='%Y%m%dT%H%M%SZ'; if ($format == 'dayhourxcard') $format='%Y%m%dT%H%M%SZ';
if ($format == 'dayxcard') $format='%Y%m%d'; if ($format == 'dayxcard') $format='%Y%m%d';
if ($format == 'dayhourrfc') $format='%Y-%m-%dT%H:%M:%SZ'; // DATE_RFC3339 if ($format == 'dayrfc') $format='%Y-%m-%d'; // DATE_RFC3339
if ($format == 'dayhourrfc') $format='%Y-%m-%dT%H:%M:%SZ'; // DATETIME RFC3339
// If date undefined or "", we return "" // If date undefined or "", we return ""
if (dol_strlen($time) == 0) return ''; // $time=0 allowed (it means 01/01/1970 00:00:00) if (dol_strlen($time) == 0) return ''; // $time=0 allowed (it means 01/01/1970 00:00:00)

View File

@ -29,7 +29,7 @@ require_once("../master.inc.php");
require_once(NUSOAP_PATH.'/nusoap.php'); // Include SOAP require_once(NUSOAP_PATH.'/nusoap.php'); // Include SOAP
$WS_DOL_URL = DOL_MAIN_URL_ROOT.'/webservices/server_invoice.php'; $WS_DOL_URL = DOL_MAIN_URL_ROOT.'/webservices/server_invoice.php';
//$WS_DOL_URL = 'http://localhost:8080/'; // If not a page, should end with / //$WS_DOL_URL = 'http://localhost:8080/'; // To test with Soapui mock. If not a page, should end with /
$WS_METHOD1 = 'getInvoice'; $WS_METHOD1 = 'getInvoice';
$WS_METHOD2 = 'getInvoicesForThirdParty'; $WS_METHOD2 = 'getInvoicesForThirdParty';
$ns='http://www.dolibarr.org/ns/'; $ns='http://www.dolibarr.org/ns/';
@ -58,30 +58,39 @@ $authentication=array(
'password'=>'changeme', 'password'=>'changeme',
'entity'=>''); 'entity'=>'');
$parameters = array('authentication'=>$authentication,'id'=>1,'ref'=>'');
dol_syslog("Call method ".$WS_METHOD1); // Test url 1
$result1 = $soapclient1->call($WS_METHOD1,$parameters,$ns,''); if ($WS_METHOD1)
if (! $result1)
{ {
print $soapclient1->error_str; $parameters = array('authentication'=>$authentication,'id'=>1,'ref'=>'');
print "<br>\n\n"; dol_syslog("Call method ".$WS_METHOD1);
print $soapclient1->request; $result1 = $soapclient1->call($WS_METHOD1,$parameters,$ns,'');
print "<br>\n\n"; if (! $result1)
print $soapclient1->response; {
exit; print $soapclient1->error_str;
print "<br>\n\n";
print $soapclient1->request;
print "<br>\n\n";
print $soapclient1->response;
exit;
}
} }
$parameters = array('authentication'=>$authentication,'idthirdparty'=>'1'); // Test url 2
dol_syslog("Call method ".$WS_METHOD2); if ($WS_METHOD2)
$result2 = $soapclient2->call($WS_METHOD2,$parameters,$ns,'');
if (! $result2)
{ {
print $soapclient2->error_str; $parameters = array('authentication'=>$authentication,'idthirdparty'=>'4');
print "<br>\n\n"; dol_syslog("Call method ".$WS_METHOD2);
print $soapclient2->request; $result2 = $soapclient2->call($WS_METHOD2,$parameters,$ns,'');
print "<br>\n\n"; if (! $result2)
print $soapclient2->response; {
exit; print $soapclient2->error_str;
print "<br>\n\n";
print $soapclient2->request;
print "<br>\n\n";
print $soapclient2->response;
exit;
}
} }

View File

@ -50,21 +50,27 @@ $authentication=array(
'login'=>'admin', 'login'=>'admin',
'password'=>'changeme', 'password'=>'changeme',
'entity'=>''); 'entity'=>'');
$parameters = array('authentication'=>$authentication);
dol_syslog("Call method ".$WS_METHOD); // Test URL
$result = $soapclient->call($WS_METHOD,$parameters,$ns,''); if ($WS_METHOD)
if (! $result)
{ {
//var_dump($soapclient); $parameters = array('authentication'=>$authentication);
//print_r($soapclient); dol_syslog("Call method ".$WS_METHOD);
print $soapclient->error_str; $result = $soapclient->call($WS_METHOD,$parameters,$ns,'');
print "<br>\n\n"; if (! $result)
print $soapclient->request; {
print "<br>\n\n"; //var_dump($soapclient);
print $soapclient->response; //print_r($soapclient);
exit; print $soapclient->error_str;
print "<br>\n\n";
print $soapclient->request;
print "<br>\n\n";
print $soapclient->response;
exit;
}
} }
/* /*
* View * View
*/ */

View File

@ -50,19 +50,26 @@ $authentication=array(
'login'=>'admin', 'login'=>'admin',
'password'=>'changeme', 'password'=>'changeme',
'entity'=>''); 'entity'=>'');
$parameters = array('authentication'=>$authentication,'id'=>0,'name'=>'aaa','ref_ext'=>'');
dol_syslog("Call method ".$WS_METHOD);
$result = $soapclient->call($WS_METHOD,$parameters,$ns,''); // Test URL
if (! $result) if ($WS_METHOD)
{ {
print $soapclient->error_str; $parameters = array('authentication'=>$authentication,'id'=>0,'name'=>'aaa','ref_ext'=>'');
print "<br>\n\n"; dol_syslog("Call method ".$WS_METHOD);
print $soapclient->request; $result = $soapclient->call($WS_METHOD,$parameters,$ns,'');
print "<br>\n\n"; if (! $result)
print $soapclient->response; {
exit; print $soapclient->error_str;
print "<br>\n\n";
print $soapclient->request;
print "<br>\n\n";
print $soapclient->response;
exit;
}
} }
/* /*
* View * View
*/ */

View File

@ -54,22 +54,23 @@ $server->wsdl->schemaTargetNamespace=$ns;
// Define WSDL content // Define WSDL content
$server->wsdl->addComplexType( $server->wsdl->addComplexType(
'authentication', 'authentication',
'complexType', 'complexType',
'struct', 'struct',
'all', 'all',
'', '',
array( array(
'dolibarrkey' => array('name'=>'dolibarrkey','type'=>'xsd:string'), 'dolibarrkey' => array('name'=>'dolibarrkey','type'=>'xsd:string'),
'sourceapplication' => array('name'=>'sourceapplication','type'=>'xsd:string'), 'sourceapplication' => array('name'=>'sourceapplication','type'=>'xsd:string'),
'login' => array('name'=>'login','type'=>'xsd:string'), 'login' => array('name'=>'login','type'=>'xsd:string'),
'password' => array('name'=>'password','type'=>'xsd:string'), 'password' => array('name'=>'password','type'=>'xsd:string'),
'entity' => array('name'=>'entity','type'=>'xsd:string'), 'entity' => array('name'=>'entity','type'=>'xsd:string'),
)); )
);
$server->wsdl->addComplexType( $server->wsdl->addComplexType(
'line', 'line',
'element', 'complexType',
'struct', 'struct',
'all', 'all',
'', '',
@ -104,10 +105,26 @@ $server->wsdl->addComplexType(
), ),
'tns:line' 'tns:line'
); );
$server->wsdl->addComplexType(
'LinesArray2',
'complexType',
'array',
'sequence',
'',
array(
'line' => array(
'name' => 'line',
'type' => 'tns:line',
'minOccurs' => '0',
'maxOccurs' => 'unbounded'
)
)
);
$server->wsdl->addComplexType( $server->wsdl->addComplexType(
'invoice', 'invoice',
'element', // If we put element here instead of complexType to have tag called invoice in getInvoicesForThirdParty we brek getInvoice 'complexType',
'struct', 'struct',
'all', 'all',
'', '',
@ -130,7 +147,7 @@ $server->wsdl->addComplexType(
'status' => array('name'=>'status','type'=>'xsd:int'), 'status' => array('name'=>'status','type'=>'xsd:int'),
'close_code' => array('name'=>'close_code','type'=>'xsd:string'), 'close_code' => array('name'=>'close_code','type'=>'xsd:string'),
'close_note' => array('name'=>'close_note','type'=>'xsd:string'), 'close_note' => array('name'=>'close_note','type'=>'xsd:string'),
'lines' => array('name'=>'lines','type'=>'tns:LinesArray') 'lines' => array('name'=>'lines','type'=>'tns:LinesArray2')
) )
); );
@ -146,31 +163,43 @@ $server->wsdl->addComplexType(
), ),
'tns:invoice' 'tns:invoice'
); );
$server->wsdl->addComplexType( $server->wsdl->addComplexType(
'invoices', 'InvoicesArray2',
'complexType', 'complexType',
'array', 'array',
'sequence',
'', '',
'SOAP-ENC:Array',
array(),
array( array(
array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:invoice[]') 'invoice' => array(
), 'name' => 'invoice',
'tns:invoice' 'type' => 'tns:invoice',
'minOccurs' => '0',
'maxOccurs' => 'unbounded'
)
)
); );
$server->wsdl->addComplexType(
'result',
'complexType',
'struct',
'all',
'',
array(
'result_code' => array('name'=>'result_code','type'=>'xsd:string'),
'result_label' => array('name'=>'result_label','type'=>'xsd:string'),
));
$server->wsdl->addComplexType(
'result',
'complexType',
'struct',
'all',
'',
array(
'result_code' => array('name'=>'result_code','type'=>'xsd:string'),
'result_label' => array('name'=>'result_label','type'=>'xsd:string'),
)
);
// 5 styles: RPC/encoded, RPC/literal, Document/encoded (not WS-I compliant), Document/literal, Document/literal wrapped
// Style merely dictates how to translate a WSDL binding to a SOAP message. Nothing more. You can use either style with any programming model.
// http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/
$styledoc='rpc'; // rpc/document (document is an extend into SOAP 1.0 to support unstructured messages)
$styleuse='encoded'; // encoded/literal/literal wrapped
// Better choice is document/literal wrapped but literal wrapped not supported by nusoap.
// Register WSDL // Register WSDL
$server->register('getInvoice', $server->register('getInvoice',
@ -178,14 +207,33 @@ $server->register('getInvoice',
array('authentication'=>'tns:authentication','id'=>'xsd:string','ref'=>'xsd:string','ref_ext'=>'xsd:string'), array('authentication'=>'tns:authentication','id'=>'xsd:string','ref'=>'xsd:string','ref_ext'=>'xsd:string'),
// Exit values // Exit values
array('result'=>'tns:result','invoice'=>'tns:invoice'), array('result'=>'tns:result','invoice'=>'tns:invoice'),
$ns $ns,
$ns.'#getInvoice',
$styledoc,
$styleuse,
'WS to get a particular invoice'
); );
$server->register('getInvoicesForThirdParty', $server->register('getInvoicesForThirdParty',
// Entry values // Entry values
array('authentication'=>'tns:authentication','idthirdparty'=>'xsd:string'), array('authentication'=>'tns:authentication','idthirdparty'=>'xsd:string'),
// Exit values // Exit values
array('result'=>'tns:result','invoices'=>'tns:invoices'), array('result'=>'tns:result','invoices'=>'tns:InvoicesArray2'),
$ns $ns,
$ns.'#getInvoicesForThirdParty',
$styledoc,
$styleuse,
'WS to get all invoices of a third party'
);
$server->register('createInvoice',
// Entry values
array('authentication'=>'tns:authentication','idthirdparty'=>'xsd:string','invoice'=>'tns:invoice'),
// Exit values
array('result'=>'tns:result','id'=>'xsd:string','ref'=>'xsd:string'),
$ns,
$ns.'#createInvoice',
$styledoc,
$styleuse,
'WS to create an invoice'
); );
@ -279,11 +327,23 @@ function getInvoice($authentication,$id='',$ref='',$ref_ext='')
'invoice'=>array( 'invoice'=>array(
'id' => $invoice->id, 'id' => $invoice->id,
'ref' => $invoice->ref, 'ref' => $invoice->ref,
'ref_ext' => $invoice->ref_ext, 'ref_ext' => $invoice->ref_ext?$invoice->ref_ext:'', // If not defined, field is not added into soap
'status'=>$invoice->statut, 'fk_user_author' => $invoice->user_author?$invoice->user_author:'',
'fk_user_author' => $invoice->fk_user_author, 'fk_user_valid' => $invoice->user_valid?$invoice->user_valid:'',
'fk_user_valid' => $invoice->fk_user_valid, 'date' => $invoice->date?dol_print_date($invoice->date,'dayrfc'):'',
'lines' => $linesresp 'date_creation' => $invoice->date_creation?dol_print_date($invoice->date_creation,'dayhourrfc'):'',
'date_validation' => $invoice->date_validation?dol_print_date($invoice->date_creation,'dayhourrfc'):'',
'date_modification' => $invoice->datem?dol_print_date($invoice->datem,'dayhourrfc'):'',
'type' => $invoice->type,
'total_net' => $invoice->total_ht,
'total_vat' => $invoice->total_tva,
'total' => $invoice->total_ttc,
'note' => $invoice->note?$invoice->note:'',
'note_public' => $invoice->note_public?$invoice->note_public:'',
'status'=> $invoice->statut,
'close_code' => $invoice->close_code?$invoice->close_code:'',
'close_note' => $invoice->close_note?$invoice->close_note:'',
'lines' => $linesresp
// 'lines' => array('0'=>array('id'=>222,'type'=>1), // 'lines' => array('0'=>array('id'=>222,'type'=>1),
// '1'=>array('id'=>333,'type'=>1)) // '1'=>array('id'=>333,'type'=>1))
@ -384,14 +444,24 @@ function getInvoicesForThirdParty($authentication,$idthirdparty)
// Now define invoice // Now define invoice
$linesinvoice[]=array( $linesinvoice[]=array(
'id'=>$invoice->id, 'id' => $invoice->id,
'ref'=>$invoice->ref, 'ref' => $invoice->ref,
'ref_ext'=>$invoice->ref_ext, 'ref_ext' => $invoice->ref_ext?$invoice->ref_ext:'', // If not defined, field is not added into soap
'type'=>$invoice->type, 'fk_user_author' => $invoice->user_author?$invoice->user_author:'',
'status'=>$invoice->statut, 'fk_user_valid' => $invoice->user_valid?$invoice->user_valid:'',
'total_net'=>$invoice->total_ht, 'date' => $invoice->date?dol_print_date($invoice->date,'dayrfc'):'',
'total_vat'=>$invoice->total_tva, 'date_creation' => $invoice->date_creation?dol_print_date($invoice->date_creation,'dayhourrfc'):'',
'total'=>$invoice->total_ttc, 'date_validation' => $invoice->date_validation?dol_print_date($invoice->date_creation,'dayhourrfc'):'',
'date_modification' => $invoice->datem?dol_print_date($invoice->datem,'dayhourrfc'):'',
'type' => $invoice->type,
'total_net' => $invoice->total_ht,
'total_vat' => $invoice->total_tva,
'total' => $invoice->total_ttc,
'note' => $invoice->note?$invoice->note:'',
'note_public' => $invoice->note_public?$invoice->note_public:'',
'status'=> $invoice->statut,
'close_code' => $invoice->close_code?$invoice->close_code:'',
'close_note' => $invoice->close_note?$invoice->close_note:'',
'lines' => $linesresp 'lines' => $linesresp
); );
@ -420,6 +490,50 @@ function getInvoicesForThirdParty($authentication,$idthirdparty)
} }
/**
* Get list of invoices for third party
*/
function createInvoice($authentication,$idthirdparty,$invoice)
{
global $db,$conf,$langs;
dol_syslog("Function: createInvoiceForThirdParty login=".$authentication['login']." idthirdparty=".$idthirdparty);
if ($authentication['entity']) $conf->entity=$authentication['entity'];
$objectresp=array();
$errorcode='';$errorlabel='';
$error=0;
if (! $error && ($authentication['dolibarrkey'] != $conf->global->WEBSERVICES_KEY))
{
$error++;
$errorcode='BAD_VALUE_FOR_SECURITY_KEY'; $errorlabel='Value provided into dolibarrkey entry field does not match security key defined in Webservice module setup';
}
if (! $error && empty($idthirdparty))
{
$error++;
$errorcode='BAD_PARAMETERS'; $errorlabel='Parameter id is not provided';
}
if (! $error)
{
//var_dump($invoice['ref_ext']);
//var_dump($invoice['lines'][0]['type']);
}
if ($error)
{
$objectresp = array('result'=>array('result_code' => $errorcode, 'result_label' => $errorlabel));
}
return $objectresp;
}
// Return the results. // Return the results.
$server->service($HTTP_RAW_POST_DATA); $server->service($HTTP_RAW_POST_DATA);

View File

@ -79,13 +79,25 @@ $server->wsdl->addComplexType(
)); ));
// 5 styles: RPC/encoded, RPC/literal, Document/encoded (not WS-I compliant), Document/literal, Document/literal wrapped
// Style merely dictates how to translate a WSDL binding to a SOAP message. Nothing more. You can use either style with any programming model.
// http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/
$styledoc='rpc'; // rpc/document (document is an extend into SOAP 1.0 to support unstructured messages)
$styleuse='encoded'; // encoded/literal/literal wrapped
// Better choice is document/literal wrapped but literal wrapped not supported by nusoap.
// Register WSDL // Register WSDL
$server->register('getVersions', $server->register('getVersions',
// Entry values // Entry values
array('authentication'=>'tns:authentication'), array('authentication'=>'tns:authentication'),
// Exit values // Exit values
array('result'=>'tns:result','dolibarr'=>'xsd:string','os'=>'xsd:string','php'=>'xsd:string','webserver'=>'xsd:string'), array('result'=>'tns:result','dolibarr'=>'xsd:string','os'=>'xsd:string','php'=>'xsd:string','webserver'=>'xsd:string'),
$ns); $ns,
$ns.'#getVersions',
$styledoc,
$styleuse,
'WS to get Versions'
);

View File

@ -174,20 +174,35 @@ $server->wsdl->addComplexType(
)); ));
// 5 styles: RPC/encoded, RPC/literal, Document/encoded (not WS-I compliant), Document/literal, Document/literal wrapped
// Style merely dictates how to translate a WSDL binding to a SOAP message. Nothing more. You can use either style with any programming model.
// http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/
$styledoc='rpc'; // rpc/document (document is an extend into SOAP 1.0 to support unstructured messages)
$styleuse='encoded'; // encoded/literal/literal wrapped
// Better choice is document/literal wrapped but literal wrapped not supported by nusoap.
// Register WSDL // Register WSDL
$server->register('getSupplierInvoice', $server->register('getSupplierInvoice',
// Entry values // Entry values
array('authentication'=>'tns:authentication','id'=>'xsd:string','ref'=>'xsd:string','ref_ext'=>'xsd:string'), array('authentication'=>'tns:authentication','id'=>'xsd:string','ref'=>'xsd:string','ref_ext'=>'xsd:string'),
// Exit values // Exit values
array('result'=>'tns:result','invoice'=>'tns:invoice'), array('result'=>'tns:result','invoice'=>'tns:invoice'),
$ns $ns,
$ns.'#getSupplierInvoice',
$styledoc,
$styleuse,
'WS to get SupplierInvoice'
); );
$server->register('getSupplierInvoicesForThirdParty', $server->register('getSupplierInvoicesForThirdParty',
// Entry values // Entry values
array('authentication'=>'tns:authentication','idthirdparty'=>'xsd:string'), array('authentication'=>'tns:authentication','idthirdparty'=>'xsd:string'),
// Exit values // Exit values
array('result'=>'tns:result','invoices'=>'tns:invoices'), array('result'=>'tns:result','invoices'=>'tns:invoices'),
$ns $ns,
$ns.'#getSupplierInvoicesForThirdParty',
$styledoc,
$styleuse,
'WS to get SupplierInvoicesForThirdParty'
); );

View File

@ -115,16 +115,28 @@ $server->wsdl->addComplexType(
)); ));
// 5 styles: RPC/encoded, RPC/literal, Document/encoded (not WS-I compliant), Document/literal, Document/literal wrapped
// Style merely dictates how to translate a WSDL binding to a SOAP message. Nothing more. You can use either style with any programming model.
// http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/
$styledoc='rpc'; // rpc/document (document is an extend into SOAP 1.0 to support unstructured messages)
$styleuse='encoded'; // encoded/literal/literal wrapped
// Better choice is document/literal wrapped but literal wrapped not supported by nusoap.
// Register WSDL // Register WSDL
$server->register('getThirdParty', $server->register('getThirdParty',
// Entry values // Entry values
array('authentication'=>'tns:authentication','id'=>'xsd:string','ref'=>'xsd:string','ref_ext'=>'xsd:string'), array('authentication'=>'tns:authentication','id'=>'xsd:string','ref'=>'xsd:string','ref_ext'=>'xsd:string'),
// Exit values // Exit values
array('result'=>'tns:result','thirdparty'=>'tns:thirdparty'), array('result'=>'tns:result','thirdparty'=>'tns:thirdparty'),
$ns $ns,
$ns.'#getVersions',
$styledoc,
$styleuse,
'WS to get Versions'
); );
// Full methods code // Full methods code
function getThirdParty($authentication,$id='',$ref='',$ref_ext='') function getThirdParty($authentication,$id='',$ref='',$ref_ext='')
{ {

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project name="Dolibarr" soapui-version="3.6.1" abortOnError="false" runType="SEQUENTIAL" resourceRoot="" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="WebServicesDolibarrOtherBinding" type="wsdl" bindingName="{http://www.dolibarr.org/ns/}WebServicesDolibarrOtherBinding" soapVersion="1_1" anonymous="optional" definition="file:/home/ldestail/Téléchargements/server_other_ko.xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="file:/home/ldestail/Téléchargements/server_other_ko.xml"><con:part><con:url>file:/home/ldestail/Téléchargements/server_other_ko.xml</con:url><con:content><![CDATA[<definitions targetNamespace="http://www.dolibarr.org/ns/" 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/" xmlns:tns="http://www.dolibarr.org/ns/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <con:soapui-project name="Dolibarr" soapui-version="3.6.1" abortOnError="false" runType="SEQUENTIAL" resourceRoot="" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="WebServicesDolibarrOtherBinding" type="wsdl" bindingName="{http://www.dolibarr.org/ns/}WebServicesDolibarrOtherBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost/dolibarrnew/webservices/server_other.php?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost/dolibarrnew/webservices/server_other.php?wsdl"><con:part><con:url>http://localhost/dolibarrnew/webservices/server_other.php?wsdl</con:url><con:content><![CDATA[<definitions targetNamespace="http://www.dolibarr.org/ns/" 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/" xmlns:tns="http://www.dolibarr.org/ns/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types> <types>
<xsd:schema targetNamespace="http://www.dolibarr.org/ns/"> <xsd:schema targetNamespace="http://www.dolibarr.org/ns/">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
@ -33,6 +33,7 @@
</message> </message>
<portType name="WebServicesDolibarrOtherPortType"> <portType name="WebServicesDolibarrOtherPortType">
<operation name="getVersions"> <operation name="getVersions">
<documentation>WS to get Versions</documentation>
<input message="tns:getVersionsRequest"/> <input message="tns:getVersionsRequest"/>
<output message="tns:getVersionsResponse"/> <output message="tns:getVersionsResponse"/>
</operation> </operation>
@ -40,7 +41,7 @@
<binding name="WebServicesDolibarrOtherBinding" type="tns:WebServicesDolibarrOtherPortType"> <binding name="WebServicesDolibarrOtherBinding" type="tns:WebServicesDolibarrOtherPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getVersions"> <operation name="getVersions">
<soap:operation soapAction="http://localhost/dolibarrnew/webservices/server_other.php/getVersions" style="rpc"/> <soap:operation soapAction="http://www.dolibarr.org/ns/#getVersions" style="rpc"/>
<input> <input>
<soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> <soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input> </input>
@ -54,21 +55,7 @@
<soap:address location="http://localhost/dolibarrnew/webservices/server_other.php"/> <soap:address location="http://localhost/dolibarrnew/webservices/server_other.php"/>
</port> </port>
</service> </service>
</definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost/dolibarrnew/webservices/server_other.php</con:endpoint><con:endpoint>https://www.rhumato.eu/webservices/server_other.php</con:endpoint></con:endpoints><con:operation isOneWay="false" action="http://localhost/dolibarrnew/webservices/server_other.php/getVersions" name="getVersions" bindingOperationName="getVersions" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>https://www.rhumato.eu/webservices/server_other.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/"> </definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost/dolibarrnew/webservices/server_other.php</con:endpoint></con:endpoints><con:operation isOneWay="false" action="http://www.dolibarr.org/ns/#getVersions" name="getVersions" bindingOperationName="getVersions" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost/dolibarrnew/webservices/server_other.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/">
<soapenv:Header/>
<soapenv:Body>
<ns:getVersions soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<authentication xsi:type="ns:authentication">
<!--You may enter the following 5 items in any order-->
<dolibarrkey xsi:type="xsd:string">dolibarrkey</dolibarrkey>
<sourceapplication xsi:type="xsd:string">?</sourceapplication>
<login xsi:type="xsd:string">?</login>
<password xsi:type="xsd:string">?</password>
<entity xsi:type="xsd:string">?</entity>
</authentication>
</ns:getVersions>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://localhost/dolibarrnew/webservices/server_other.php/getVersions"/><con:wsrmConfig version="1.2"/></con:call><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost/dolibarrnew/webservices/server_other.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/">
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ns:getVersions soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <ns:getVersions soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
@ -78,11 +65,11 @@
<sourceapplication xsi:type="xsd:string">?</sourceapplication> <sourceapplication xsi:type="xsd:string">?</sourceapplication>
<login xsi:type="xsd:string">?</login> <login xsi:type="xsd:string">?</login>
<password xsi:type="xsd:string">?</password> <password xsi:type="xsd:string">?</password>
<entity xsi:type="xsd:string">?</entity> <entity xsi:type="xsd:string"></entity>
</authentication> </authentication>
</ns:getVersions> </ns:getVersions>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://wiki.dolibarr.org/dolibarr/webservices/server_other.php/getVersions"/></con:call></con:operation></con:interface><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="WebServicesDolibarrThirdPartyBinding" type="wsdl" bindingName="{http://www.dolibarr.org/ns/}WebServicesDolibarrThirdPartyBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost/dolibarrnew/webservices/server_thirdparty.php?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost/dolibarrnew/webservices/server_thirdparty.php?wsdl"><con:part><con:url>http://localhost/dolibarrnew/webservices/server_thirdparty.php?wsdl</con:url><con:content><![CDATA[<definitions targetNamespace="http://www.dolibarr.org/ns/" 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/" xmlns:tns="http://www.dolibarr.org/ns/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://www.dolibarr.org/ns/#getVersions"/><con:wsrmConfig version="1.2"/></con:call></con:operation></con:interface><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="WebServicesDolibarrThirdPartyBinding" type="wsdl" bindingName="{http://www.dolibarr.org/ns/}WebServicesDolibarrThirdPartyBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost/dolibarrnew/webservices/server_thirdparty.php?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost/dolibarrnew/webservices/server_thirdparty.php?wsdl"><con:part><con:url>http://localhost/dolibarrnew/webservices/server_thirdparty.php?wsdl</con:url><con:content><![CDATA[<definitions targetNamespace="http://www.dolibarr.org/ns/" 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/" xmlns:tns="http://www.dolibarr.org/ns/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types> <types>
<xsd:schema targetNamespace="http://www.dolibarr.org/ns/"> <xsd:schema targetNamespace="http://www.dolibarr.org/ns/">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
@ -146,6 +133,7 @@
</message> </message>
<portType name="WebServicesDolibarrThirdPartyPortType"> <portType name="WebServicesDolibarrThirdPartyPortType">
<operation name="getThirdParty"> <operation name="getThirdParty">
<documentation>WS to get Versions</documentation>
<input message="tns:getThirdPartyRequest"/> <input message="tns:getThirdPartyRequest"/>
<output message="tns:getThirdPartyResponse"/> <output message="tns:getThirdPartyResponse"/>
</operation> </operation>
@ -153,7 +141,7 @@
<binding name="WebServicesDolibarrThirdPartyBinding" type="tns:WebServicesDolibarrThirdPartyPortType"> <binding name="WebServicesDolibarrThirdPartyBinding" type="tns:WebServicesDolibarrThirdPartyPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getThirdParty"> <operation name="getThirdParty">
<soap:operation soapAction="http://localhost/dolibarrnew/webservices/server_thirdparty.php/getThirdParty" style="rpc"/> <soap:operation soapAction="http://www.dolibarr.org/ns/#getVersions" style="rpc"/>
<input> <input>
<soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> <soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input> </input>
@ -167,7 +155,7 @@
<soap:address location="http://localhost/dolibarrnew/webservices/server_thirdparty.php"/> <soap:address location="http://localhost/dolibarrnew/webservices/server_thirdparty.php"/>
</port> </port>
</service> </service>
</definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost/dolibarrnew/webservices/server_thirdparty.php</con:endpoint></con:endpoints><con:operation isOneWay="false" action="http://localhost/dolibarrnew/webservices/server_thirdparty.php/getThirdParty" name="getThirdParty" bindingOperationName="getThirdParty" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost/dolibarrnew/webservices/server_thirdparty.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/"> </definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost/dolibarrnew/webservices/server_thirdparty.php</con:endpoint></con:endpoints><con:operation isOneWay="false" action="http://www.dolibarr.org/ns/#getVersions" name="getThirdParty" bindingOperationName="getThirdParty" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost/dolibarrnew/webservices/server_thirdparty.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/">
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ns:getThirdParty soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <ns:getThirdParty soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
@ -184,7 +172,7 @@
<ref_ext xsi:type="xsd:string">?</ref_ext> <ref_ext xsi:type="xsd:string">?</ref_ext>
</ns:getThirdParty> </ns:getThirdParty>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://localhost/dolibarrnew/webservices/server_thirdparty.php/getThirdParty"/><con:wsrmConfig version="1.2"/></con:call></con:operation></con:interface><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="WebServicesDolibarrInvoiceBinding" type="wsdl" bindingName="{http://www.dolibarr.org/ns/}WebServicesDolibarrInvoiceBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost/dolibarrnew/webservices/server_invoice.php?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost/dolibarrnew/webservices/server_invoice.php?wsdl"><con:part><con:url>http://localhost/dolibarrnew/webservices/server_invoice.php?wsdl</con:url><con:content><![CDATA[<definitions targetNamespace="http://www.dolibarr.org/ns/" 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/" xmlns:tns="http://www.dolibarr.org/ns/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"> </soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://www.dolibarr.org/ns/#getVersions"/></con:call></con:operation></con:interface><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="WebServicesDolibarrInvoiceBinding" type="wsdl" bindingName="{http://www.dolibarr.org/ns/}WebServicesDolibarrInvoiceBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost/dolibarrnew/webservices/server_invoice.php?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost/dolibarrnew/webservices/server_invoice.php?wsdl"><con:part><con:url>http://localhost/dolibarrnew/webservices/server_invoice.php?wsdl</con:url><con:content><![CDATA[<definitions targetNamespace="http://www.dolibarr.org/ns/" 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/" xmlns:tns="http://www.dolibarr.org/ns/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types> <types>
<xsd:schema targetNamespace="http://www.dolibarr.org/ns/"> <xsd:schema targetNamespace="http://www.dolibarr.org/ns/">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
@ -202,6 +190,7 @@
<xsd:all> <xsd:all>
<xsd:element name="id" type="xsd:string"/> <xsd:element name="id" type="xsd:string"/>
<xsd:element name="type" type="xsd:int"/> <xsd:element name="type" type="xsd:int"/>
<xsd:element name="desc" type="xsd:string"/>
<xsd:element name="fk_product" type="xsd:int"/> <xsd:element name="fk_product" type="xsd:int"/>
<xsd:element name="total_net" type="xsd:double"/> <xsd:element name="total_net" type="xsd:double"/>
<xsd:element name="total_vat" type="xsd:double"/> <xsd:element name="total_vat" type="xsd:double"/>
@ -222,6 +211,11 @@
</xsd:restriction> </xsd:restriction>
</xsd:complexContent> </xsd:complexContent>
</xsd:complexType> </xsd:complexType>
<xsd:complexType name="LinesArray2">
<xsd:sequence>
<xsd:element name="line" type="tns:line" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="invoice"> <xsd:complexType name="invoice">
<xsd:all> <xsd:all>
<xsd:element name="id" type="xsd:string"/> <xsd:element name="id" type="xsd:string"/>
@ -242,7 +236,7 @@
<xsd:element name="status" type="xsd:int"/> <xsd:element name="status" type="xsd:int"/>
<xsd:element name="close_code" type="xsd:string"/> <xsd:element name="close_code" type="xsd:string"/>
<xsd:element name="close_note" type="xsd:string"/> <xsd:element name="close_note" type="xsd:string"/>
<xsd:element name="lines" type="tns:LinesArray"/> <xsd:element name="lines" type="tns:LinesArray2"/>
</xsd:all> </xsd:all>
</xsd:complexType> </xsd:complexType>
<xsd:complexType name="InvoicesArray"> <xsd:complexType name="InvoicesArray">
@ -252,12 +246,10 @@
</xsd:restriction> </xsd:restriction>
</xsd:complexContent> </xsd:complexContent>
</xsd:complexType> </xsd:complexType>
<xsd:complexType name="invoices"> <xsd:complexType name="InvoicesArray2">
<xsd:complexContent> <xsd:sequence>
<xsd:restriction base="SOAP-ENC:Array"> <xsd:element name="invoice" type="tns:invoice" minOccurs="0" maxOccurs="unbounded"/>
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:invoice[]" xmlns:wsdl1="http://schemas.xmlsoap.org/wsdl/"/> </xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType> </xsd:complexType>
<xsd:complexType name="result"> <xsd:complexType name="result">
<xsd:all> <xsd:all>
@ -275,7 +267,7 @@
</message> </message>
<message name="getInvoiceResponse"> <message name="getInvoiceResponse">
<part name="result" type="tns:result"/> <part name="result" type="tns:result"/>
<part name="invoice" element="tns:invoice"/> <part name="invoice" type="tns:invoice"/>
</message> </message>
<message name="getInvoicesForThirdPartyRequest"> <message name="getInvoicesForThirdPartyRequest">
<part name="authentication" type="tns:authentication"/> <part name="authentication" type="tns:authentication"/>
@ -283,22 +275,39 @@
</message> </message>
<message name="getInvoicesForThirdPartyResponse"> <message name="getInvoicesForThirdPartyResponse">
<part name="result" type="tns:result"/> <part name="result" type="tns:result"/>
<part name="invoices" type="tns:invoices"/> <part name="invoices" type="tns:InvoicesArray2"/>
</message>
<message name="createInvoiceRequest">
<part name="authentication" type="tns:authentication"/>
<part name="idthirdparty" type="xsd:string"/>
<part name="invoice" type="tns:invoice"/>
</message>
<message name="createInvoiceResponse">
<part name="result" type="tns:result"/>
<part name="id" type="xsd:string"/>
<part name="ref" type="xsd:string"/>
</message> </message>
<portType name="WebServicesDolibarrInvoicePortType"> <portType name="WebServicesDolibarrInvoicePortType">
<operation name="getInvoice"> <operation name="getInvoice">
<documentation>WS to get a particular invoice</documentation>
<input message="tns:getInvoiceRequest"/> <input message="tns:getInvoiceRequest"/>
<output message="tns:getInvoiceResponse"/> <output message="tns:getInvoiceResponse"/>
</operation> </operation>
<operation name="getInvoicesForThirdParty"> <operation name="getInvoicesForThirdParty">
<documentation>WS to get all invoices of a third party</documentation>
<input message="tns:getInvoicesForThirdPartyRequest"/> <input message="tns:getInvoicesForThirdPartyRequest"/>
<output message="tns:getInvoicesForThirdPartyResponse"/> <output message="tns:getInvoicesForThirdPartyResponse"/>
</operation> </operation>
<operation name="createInvoice">
<documentation>WS to create an invoice</documentation>
<input message="tns:createInvoiceRequest"/>
<output message="tns:createInvoiceResponse"/>
</operation>
</portType> </portType>
<binding name="WebServicesDolibarrInvoiceBinding" type="tns:WebServicesDolibarrInvoicePortType"> <binding name="WebServicesDolibarrInvoiceBinding" type="tns:WebServicesDolibarrInvoicePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getInvoice"> <operation name="getInvoice">
<soap:operation soapAction="http://localhost/dolibarrnew/webservices/server_invoice.php/getInvoice" style="rpc"/> <soap:operation soapAction="http://www.dolibarr.org/ns/#getInvoice" style="rpc"/>
<input> <input>
<soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> <soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input> </input>
@ -307,7 +316,16 @@
</output> </output>
</operation> </operation>
<operation name="getInvoicesForThirdParty"> <operation name="getInvoicesForThirdParty">
<soap:operation soapAction="http://localhost/dolibarrnew/webservices/server_invoice.php/getInvoicesForThirdParty" style="rpc"/> <soap:operation soapAction="http://www.dolibarr.org/ns/#getInvoicesForThirdParty" style="rpc"/>
<input>
<soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
<operation name="createInvoice">
<soap:operation soapAction="http://www.dolibarr.org/ns/#createInvoice" style="rpc"/>
<input> <input>
<soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> <soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input> </input>
@ -321,24 +339,80 @@
<soap:address location="http://localhost/dolibarrnew/webservices/server_invoice.php"/> <soap:address location="http://localhost/dolibarrnew/webservices/server_invoice.php"/>
</port> </port>
</service> </service>
</definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost/dolibarrnew/webservices/server_invoice.php</con:endpoint></con:endpoints><con:operation isOneWay="false" action="http://localhost/dolibarrnew/webservices/server_invoice.php/getInvoice" name="getInvoice" bindingOperationName="getInvoice" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost/dolibarrnew/webservices/server_invoice.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/"> </definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost/dolibarrnew/webservices/server_invoice.php</con:endpoint></con:endpoints><con:operation isOneWay="false" action="http://www.dolibarr.org/ns/#createInvoice" name="createInvoice" bindingOperationName="createInvoice" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost/dolibarrnew/webservices/server_invoice.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/">
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ns:getInvoice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <ns:createInvoice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<authentication xsi:type="ns:authentication"> <authentication xsi:type="ns:authentication">
<!--You may enter the following 5 items in any order--> <!--You may enter the following 5 items in any order-->
<dolibarrkey xsi:type="xsd:string">dolibarrkey</dolibarrkey> <dolibarrkey xsi:type="xsd:string">?</dolibarrkey>
<sourceapplication xsi:type="xsd:string">?</sourceapplication> <sourceapplication xsi:type="xsd:string">?</sourceapplication>
<login xsi:type="xsd:string">admin</login> <login xsi:type="xsd:string">admin</login>
<password xsi:type="xsd:string">admin</password> <password xsi:type="xsd:string">admin</password>
<entity xsi:type="xsd:string"></entity> <entity xsi:type="xsd:string"></entity>
</authentication> </authentication>
<id xsi:type="xsd:string"></id> <idthirdparty xsi:type="xsd:string">1</idthirdparty>
<invoice xsi:type="ns:invoice">
<!--You may enter the following 19 items in any order-->
<id xsi:type="xsd:string">?</id>
<ref xsi:type="xsd:string">?</ref>
<ref_ext xsi:type="xsd:string">?</ref_ext>
<fk_user_author xsi:type="xsd:string">?</fk_user_author>
<fk_user_valid xsi:type="xsd:string">?</fk_user_valid>
<date xsi:type="xsd:date">?</date>
<date_creation xsi:type="xsd:dateTime">?</date_creation>
<date_validation xsi:type="xsd:dateTime">?</date_validation>
<date_modification xsi:type="xsd:dateTime">?</date_modification>
<type xsi:type="xsd:int">?</type>
<total_net xsi:type="xsd:double">?</total_net>
<total_vat xsi:type="xsd:double">?</total_vat>
<total xsi:type="xsd:double">?</total>
<note xsi:type="xsd:string">?</note>
<note_public xsi:type="xsd:string">?</note_public>
<status xsi:type="xsd:int">?</status>
<close_code xsi:type="xsd:string">?</close_code>
<close_note xsi:type="xsd:string">?</close_note>
<lines xsi:type="ns:LinesArray2">
<!--Zero or more repetitions:-->
<line xsi:type="ns:line">
<!--You may enter the following 14 items in any order-->
<id xsi:type="xsd:string">?</id>
<type xsi:type="xsd:int">?</type>
<desc xsi:type="xsd:string">?</desc>
<fk_product xsi:type="xsd:int">?</fk_product>
<total_net xsi:type="xsd:double">?</total_net>
<total_vat xsi:type="xsd:double">?</total_vat>
<total xsi:type="xsd:double">?</total>
<vat_rate xsi:type="xsd:double">?</vat_rate>
<qty xsi:type="xsd:double">?</qty>
<date_start xsi:type="xsd:date">?</date_start>
<date_end xsi:type="xsd:date">?</date_end>
<product_ref xsi:type="xsd:string">?</product_ref>
<product_label xsi:type="xsd:string">?</product_label>
<product_desc xsi:type="xsd:string">?</product_desc>
</line>
</lines>
</invoice>
</ns:createInvoice>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://www.dolibarr.org/ns/#createInvoice"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="http://www.dolibarr.org/ns/#getInvoice" name="getInvoice" bindingOperationName="getInvoice" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost/dolibarrnew/webservices/server_invoice.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/">
<soapenv:Header/>
<soapenv:Body>
<ns:getInvoice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<authentication xsi:type="ns:authentication">
<!--You may enter the following 5 items in any order-->
<dolibarrkey xsi:type="xsd:string">?</dolibarrkey>
<sourceapplication xsi:type="xsd:string">?</sourceapplication>
<login xsi:type="xsd:string">admin</login>
<password xsi:type="xsd:string">admin</password>
<entity xsi:type="xsd:string"></entity>
</authentication>
<id xsi:type="xsd:string">1</id>
<ref xsi:type="xsd:string"></ref> <ref xsi:type="xsd:string"></ref>
<ref_ext xsi:type="xsd:string">ppp</ref_ext> <ref_ext xsi:type="xsd:string"></ref_ext>
</ns:getInvoice> </ns:getInvoice>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://localhost/dolibarrnew/webservices/server_invoice.php/getInvoice"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="http://localhost/dolibarrnew/webservices/server_invoice.php/getInvoicesForThirdParty" name="getInvoicesForThirdParty" bindingOperationName="getInvoicesForThirdParty" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost/dolibarrnew/webservices/server_invoice.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/"> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://www.dolibarr.org/ns/#getInvoice"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="http://www.dolibarr.org/ns/#getInvoicesForThirdParty" name="getInvoicesForThirdParty" bindingOperationName="getInvoicesForThirdParty" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost/dolibarrnew/webservices/server_invoice.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/">
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ns:getInvoicesForThirdParty soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <ns:getInvoicesForThirdParty soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
@ -346,14 +420,14 @@
<!--You may enter the following 5 items in any order--> <!--You may enter the following 5 items in any order-->
<dolibarrkey xsi:type="xsd:string">?</dolibarrkey> <dolibarrkey xsi:type="xsd:string">?</dolibarrkey>
<sourceapplication xsi:type="xsd:string">?</sourceapplication> <sourceapplication xsi:type="xsd:string">?</sourceapplication>
<login xsi:type="xsd:string">?</login> <login xsi:type="xsd:string">admin</login>
<password xsi:type="xsd:string">?</password> <password xsi:type="xsd:string">admin</password>
<entity xsi:type="xsd:string">?</entity> <entity xsi:type="xsd:string"></entity>
</authentication> </authentication>
<idthirdparty xsi:type="xsd:string">?</idthirdparty> <idthirdparty xsi:type="xsd:string">4</idthirdparty>
</ns:getInvoicesForThirdParty> </ns:getInvoicesForThirdParty>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://localhost/dolibarrnew/webservices/server_invoice.php/getInvoicesForThirdParty"/></con:call></con:operation></con:interface><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="WebServicesDolibarrSupplierInvoiceBinding" type="wsdl" bindingName="{http://www.dolibarr.org/ns/}WebServicesDolibarrSupplierInvoiceBinding" soapVersion="1_1" anonymous="optional" definition="file:/home/ldestail/Téléchargements/server_supplier_invoice.php" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="file:/home/ldestail/Téléchargements/server_supplier_invoice.php"><con:part><con:url>file:/home/ldestail/Téléchargements/server_supplier_invoice.php</con:url><con:content><![CDATA[<definitions targetNamespace="http://www.dolibarr.org/ns/" 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/" xmlns:tns="http://www.dolibarr.org/ns/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://www.dolibarr.org/ns/#getInvoicesForThirdParty"/><con:wsrmConfig version="1.2"/></con:call></con:operation></con:interface><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="WebServicesDolibarrSupplierInvoiceBinding" type="wsdl" bindingName="{http://www.dolibarr.org/ns/}WebServicesDolibarrSupplierInvoiceBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost/dolibarrnew/webservices/server_supplier_invoice.php?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost/dolibarrnew/webservices/server_supplier_invoice.php?wsdl"><con:part><con:url>http://localhost/dolibarrnew/webservices/server_supplier_invoice.php?wsdl</con:url><con:content><![CDATA[<definitions targetNamespace="http://www.dolibarr.org/ns/" 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/" xmlns:tns="http://www.dolibarr.org/ns/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types> <types>
<xsd:schema targetNamespace="http://www.dolibarr.org/ns/"> <xsd:schema targetNamespace="http://www.dolibarr.org/ns/">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
@ -371,6 +445,7 @@
<xsd:all> <xsd:all>
<xsd:element name="id" type="xsd:string"/> <xsd:element name="id" type="xsd:string"/>
<xsd:element name="type" type="xsd:int"/> <xsd:element name="type" type="xsd:int"/>
<xsd:element name="desc" type="xsd:string"/>
<xsd:element name="fk_product" type="xsd:int"/> <xsd:element name="fk_product" type="xsd:int"/>
<xsd:element name="total_net" type="xsd:double"/> <xsd:element name="total_net" type="xsd:double"/>
<xsd:element name="total_vat" type="xsd:double"/> <xsd:element name="total_vat" type="xsd:double"/>
@ -396,12 +471,14 @@
<xsd:element name="id" type="xsd:string"/> <xsd:element name="id" type="xsd:string"/>
<xsd:element name="ref" type="xsd:string"/> <xsd:element name="ref" type="xsd:string"/>
<xsd:element name="ref_ext" type="xsd:string"/> <xsd:element name="ref_ext" type="xsd:string"/>
<xsd:element name="ref_supplier" type="xsd:string"/>
<xsd:element name="fk_user_author" type="xsd:string"/> <xsd:element name="fk_user_author" type="xsd:string"/>
<xsd:element name="fk_user_valid" type="xsd:string"/> <xsd:element name="fk_user_valid" type="xsd:string"/>
<xsd:element name="date" type="xsd:date"/>
<xsd:element name="date_creation" type="xsd:dateTime"/> <xsd:element name="date_creation" type="xsd:dateTime"/>
<xsd:element name="date_validation" type="xsd:dateTime"/> <xsd:element name="date_validation" type="xsd:dateTime"/>
<xsd:element name="date_modification" type="xsd:dateTime"/> <xsd:element name="date_modification" type="xsd:dateTime"/>
<xsd:element name="date_invoice" type="xsd:date"/>
<xsd:element name="date_term" type="xsd:date"/>
<xsd:element name="type" type="xsd:int"/> <xsd:element name="type" type="xsd:int"/>
<xsd:element name="total_net" type="xsd:double"/> <xsd:element name="total_net" type="xsd:double"/>
<xsd:element name="total_vat" type="xsd:double"/> <xsd:element name="total_vat" type="xsd:double"/>
@ -456,10 +533,12 @@
</message> </message>
<portType name="WebServicesDolibarrSupplierInvoicePortType"> <portType name="WebServicesDolibarrSupplierInvoicePortType">
<operation name="getSupplierInvoice"> <operation name="getSupplierInvoice">
<documentation>WS to get SupplierInvoice</documentation>
<input message="tns:getSupplierInvoiceRequest"/> <input message="tns:getSupplierInvoiceRequest"/>
<output message="tns:getSupplierInvoiceResponse"/> <output message="tns:getSupplierInvoiceResponse"/>
</operation> </operation>
<operation name="getSupplierInvoicesForThirdParty"> <operation name="getSupplierInvoicesForThirdParty">
<documentation>WS to get SupplierInvoicesForThirdParty</documentation>
<input message="tns:getSupplierInvoicesForThirdPartyRequest"/> <input message="tns:getSupplierInvoicesForThirdPartyRequest"/>
<output message="tns:getSupplierInvoicesForThirdPartyResponse"/> <output message="tns:getSupplierInvoicesForThirdPartyResponse"/>
</operation> </operation>
@ -467,7 +546,7 @@
<binding name="WebServicesDolibarrSupplierInvoiceBinding" type="tns:WebServicesDolibarrSupplierInvoicePortType"> <binding name="WebServicesDolibarrSupplierInvoiceBinding" type="tns:WebServicesDolibarrSupplierInvoicePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getSupplierInvoice"> <operation name="getSupplierInvoice">
<soap:operation soapAction="http://localhost/dolibarrnew/webservices/server_supplier_invoice.php/getSupplierInvoice" style="rpc"/> <soap:operation soapAction="http://www.dolibarr.org/ns/#getSupplierInvoice" style="rpc"/>
<input> <input>
<soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> <soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input> </input>
@ -476,7 +555,7 @@
</output> </output>
</operation> </operation>
<operation name="getSupplierInvoicesForThirdParty"> <operation name="getSupplierInvoicesForThirdParty">
<soap:operation soapAction="http://localhost/dolibarrnew/webservices/server_supplier_invoice.php/getSupplierInvoicesForThirdParty" style="rpc"/> <soap:operation soapAction="http://www.dolibarr.org/ns/#getSupplierInvoicesForThirdParty" style="rpc"/>
<input> <input>
<soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> <soap:body use="encoded" namespace="http://www.dolibarr.org/ns/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input> </input>
@ -490,35 +569,36 @@
<soap:address location="http://localhost/dolibarrnew/webservices/server_supplier_invoice.php"/> <soap:address location="http://localhost/dolibarrnew/webservices/server_supplier_invoice.php"/>
</port> </port>
</service> </service>
</definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhostdolibarrnew/dolibarrnew/webservices/server_supplier_invoice.php</con:endpoint></con:endpoints><con:operation isOneWay="false" action="http://localhost/dolibarrnew/webservices/server_supplier_invoice.php/getSupplierInvoice" name="getSupplierInvoice" bindingOperationName="getSupplierInvoice" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhostdolibarrnew/dolibarrnew/webservices/server_supplier_invoice.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/"> </definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost/dolibarrnew/webservices/server_supplier_invoice.php</con:endpoint></con:endpoints><con:operation isOneWay="false" action="http://www.dolibarr.org/ns/#getSupplierInvoice" name="getSupplierInvoice" bindingOperationName="getSupplierInvoice" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost/dolibarrnew/webservices/server_supplier_invoice.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/">
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ns:getSupplierInvoice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <ns:getSupplierInvoice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<authentication xsi:type="ns:authentication"> <authentication xsi:type="ns:authentication">
<dolibarrkey xsi:type="xsd:string">dolibarrkey</dolibarrkey> <!--You may enter the following 5 items in any order-->
<sourceapplication xsi:type="xsd:string">DOLISTORE</sourceapplication> <dolibarrkey xsi:type="xsd:string">?</dolibarrkey>
<sourceapplication xsi:type="xsd:string">?</sourceapplication>
<login xsi:type="xsd:string">admin</login> <login xsi:type="xsd:string">admin</login>
<password xsi:type="xsd:string">admin</password> <password xsi:type="xsd:string">admin</password>
<entity xsi:type="xsd:string"/> <entity xsi:type="xsd:string"></entity>
</authentication> </authentication>
<id xsi:type="xsd:string">1</id> <id xsi:type="xsd:string">1</id>
<ref xsi:type="xsd:string"></ref> <ref xsi:type="xsd:string"></ref>
<ref_ext xsi:type="xsd:string"></ref_ext> <ref_ext xsi:type="xsd:string"></ref_ext>
</ns:getSupplierInvoice> </ns:getSupplierInvoice>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://localhost/dolibarrnew/webservices/server_supplier_invoice.php/getSupplierInvoice"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="http://localhost/dolibarrnew/webservices/server_supplier_invoice.php/getSupplierInvoicesForThirdParty" name="getSupplierInvoicesForThirdParty" bindingOperationName="getSupplierInvoicesForThirdParty" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhostdolibarrnew/dolibarrnew/webservices/server_supplier_invoice.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/"> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://www.dolibarr.org/ns/#getSupplierInvoice"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="http://www.dolibarr.org/ns/#getSupplierInvoicesForThirdParty" name="getSupplierInvoicesForThirdParty" bindingOperationName="getSupplierInvoicesForThirdParty" type="Request-Response" inputName="" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost/dolibarrnew/webservices/server_supplier_invoice.php</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.dolibarr.org/ns/">
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ns:getSupplierInvoicesForThirdParty soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <ns:getSupplierInvoicesForThirdParty soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<authentication xsi:type="ns:authentication"> <authentication xsi:type="ns:authentication">
<!--You may enter the following 5 items in any order--> <!--You may enter the following 5 items in any order-->
<dolibarrkey xsi:type="xsd:string">dolibarrkey</dolibarrkey> <dolibarrkey xsi:type="xsd:string">?</dolibarrkey>
<sourceapplication xsi:type="xsd:string">DOLISTORE</sourceapplication> <sourceapplication xsi:type="xsd:string">?</sourceapplication>
<login xsi:type="xsd:string">admin</login> <login xsi:type="xsd:string">?</login>
<password xsi:type="xsd:string">admin</password> <password xsi:type="xsd:string">?</password>
<entity xsi:type="xsd:string"/> <entity xsi:type="xsd:string"></entity>
</authentication> </authentication>
<idthirdparty xsi:type="xsd:string">3</idthirdparty> <idthirdparty xsi:type="xsd:string">2</idthirdparty>
</ns:getSupplierInvoicesForThirdParty> </ns:getSupplierInvoicesForThirdParty>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://localhost/dolibarrnew/webservices/server_supplier_invoice.php/getSupplierInvoicesForThirdParty"/><con:wsrmConfig version="1.2"/></con:call></con:operation></con:interface><con:properties/><con:wssContainer/></con:soapui-project> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://www.dolibarr.org/ns/#getSupplierInvoicesForThirdParty"/><con:wsrmConfig version="1.2"/></con:call></con:operation></con:interface><con:properties/><con:wssContainer/></con:soapui-project>