Hello all I have a problem with querying the rfc of the functional module provided by the web service - which has tables
***************************************************************************************************
And as I try to query SAP from C # I have a problem with type references Function code in C #:
public ZPK_S_CRM_ZPARRAP2.ZPK_S_CRM_ZPARRAP2Response Obrót_sklepu(string dzienod, string dziendo, string zaklad) { BasicHttpBinding binding = new BasicHttpBinding(); binding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly; binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic; binding.Name = "MyBinding"; binding.MaxReceivedMessageSize = Int32.MaxValue; string uri = V; EndpointAddress endpoint = new EndpointAddress(uri); //SI_SEND_ORG_DATAClient client = new SI_SEND_ORG_DATAClient(binding, endpoint); ZPK_S_CRM_ZPARRAP2.ZPK_S_CRMClient client = new ZPK_S_CRM_ZPARRAP2.ZPK_S_CRMClient(binding, endpoint); // teraz funkcja ZPK_S_CRM_ZPARRAP2.ZPK_S_CRM_ZPARRAP2 zparrap1_fn = new ZPK_S_CRM_ZPARRAP2.ZPK_S_CRM_ZPARRAP2(); // parametry wejście zparrap1_fn.DZIENDO = dzienod; zparrap1_fn.DZIENOD = dziendo; zparrap1_fn.ZAKLAD = new ZPK_S_CRM_ZPARRAP2.WERKS {WERKS1 = zaklad }; //client.ClientCredentials.UserName.UserName = "admnet"; //client.ClientCredentials.UserName.Password = "Pysiek,1972"; List<string> sapauth = auth.PodajAutoryzacje();
client.ClientCredentials.UserName.UserName = sapauth[0]; client.ClientCredentials.UserName.Password = sapauth[1];
ZPK_S_CRM_ZPARRAP2.ZPK_S_CRM_ZPARRAP2 res = client.ZPK_S_CRM_ZPARRAP2(zparrap1_fn);
return res; }
The problem is in this line:
ZPK_S_CRM_ZPARRAP2.ZPK_S_CRM_ZPARRAP2 res = client.ZPK_S_CRM_ZPARRAP2(zparrap1_fn);
What's more strange with other functions by SOAP I call and I have no problem in this way. I suspect that it may be that this function has tables in its definition ... in addition to the IMPORT and EXPORT parameters.
And should it be questioned differently? Ask for a hint?
Piotr