Windows Web Services API ForumDiscussion on the Windows Web Services API© 2009 Microsoft Corporation. All rights reserved.Mon, 23 Nov 2009 12:56:18 Z3b2d327e-ae60-42b0-8b5b-ff7be72c891chttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/20027676-ae30-457a-ac12-e49849aa7bfbhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/20027676-ae30-457a-ac12-e49849aa7bfbBob38http://social.msdn.microsoft.com/Profile/en-US/?user=Bob38Access to predefined global structures after calling the appropriate webserviceHello<br/> I would like to ask you for a help for retreiving some information after a webservice call using WWSAPI.<br/> Actually, after generating the c code using wsutil, I would like to use some global structures.<br/> For example, the generated code contains:<br/> - the definition of a structure VersionH as follow:<br/> <br/> // typeDescription: Testwsdl.globalTypes.VersionH<br/> typedef struct VersionH<br/> {<br/>     WCHAR* Version;<br/> } VersionH;<br/> <br/> and then later<br/> // typeDescription: Testwsdl.globalTypes.VersionH<br/>    WS_STRUCT_DESCRIPTION VersionH;<br/> <br/> So as per to my understanding, we have to use the variable Testwsdl.globalTypes.VersionH to get the value of VersionH after calling the webservice. But how can we have access to its field <strong><em>WCHAR* Version ?<br/> </em> </strong> My question is how to transform a WS_STRUCT_DEFINITION to the first type declared in the automatically generated code?<br/> Thanks <br/> <br/> <br/>  <br/>  Thu, 19 Nov 2009 10:42:31 Z2009-11-23T12:56:18Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/fa8b9831-028d-4ef7-9353-1ed7cb7ebb01http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/fa8b9831-028d-4ef7-9353-1ed7cb7ebb01sheraz1http://social.msdn.microsoft.com/Profile/en-US/?user=sheraz1getting error running WWSAPI SortService Demo<span style="font-size:x-small">i'm trying to run the sortservice demo on vs2008 sp1 on XP. i've download and installed the windows 7 sdk. everything compiles and builds ok and then i get error: <br/>&quot;This application has failed to start because <span style="background-color:#0a246a;color:#ffffff">webservices.dll</span> was not found. Re-installing the application may fix this problem”. Anyone have any idea on this.</span>Sat, 21 Nov 2009 19:08:39 Z2009-11-22T06:39:20Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/ce937e81-833e-4249-889a-d15d28c272a2http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/ce937e81-833e-4249-889a-d15d28c272a2AdamSisohttp://social.msdn.microsoft.com/Profile/en-US/?user=AdamSisoDhcpRequestParams returning other than 0Hi,<br/> <br/> I am calling DhcpRequestParams in my application.But It return other than. please give me the solution for this.<br/> <br/> Following is my code:<br/> <br/> #include &lt;winsock2.h&gt;<br/> #include &lt;iphlpapi.h&gt;<br/> #include &lt;stdio.h&gt;<br/> #include &lt;stdlib.h&gt;<br/> <br/> #include &lt;windows.h&gt;<br/> #include &lt;dhcpcsdk.h&gt;<br/> <br/> #pragma comment(lib, &quot;IPHLPAPI.lib&quot;)<br/> #pragma comment( lib, &quot;dhcpcsvc.lib&quot; )<br/> <br/> #define MALLOC(x) HeapAlloc(GetProcessHeap(), 0, (x))<br/> #define FREE(x) HeapFree(GetProcessHeap(), 0, (x))<br/> <br/> /* Note: could also use malloc() and free() */<br/> <br/> <br/> <br/> BOOL RetrieveHostName(   IN LPWSTR     pszAdapterName,<br/>                         IN OUT CHAR   pszHostNameBuf[], // must be large enough buffer<br/>                         IN DWORD      dwHostNameBufSize);<br/> int __cdecl main()<br/> {<br/> <br/> <br/> <br/>     PIP_ADAPTER_INFO pAdapterInfo;<br/>     PIP_ADAPTER_INFO pAdapter = NULL;<br/>     DWORD dwRetVal = 0;<br/>     UINT i;<br/> <br/>     BOOL Result;<br/> <br/>     CHAR   pszHostNameBuf[200];<br/> <br/> /* variables used to print DHCP time info */<br/>     struct tm newtime;<br/>     char buffer[32];<br/>     errno_t error;<br/> <br/>     DWORD APIENTRY DhcpCApiInitialize(__out  LPDWORD Version);<br/> <br/>     ULONG ulOutBufLen = sizeof (IP_ADAPTER_INFO);<br/>     pAdapterInfo = (IP_ADAPTER_INFO *) MALLOC(sizeof (IP_ADAPTER_INFO));<br/>     if (pAdapterInfo == NULL) {<br/>         printf(&quot;Error allocating memory needed to call GetAdaptersinfo\n&quot;);<br/>         return 1;<br/>     }<br/> // Make an initial call to GetAdaptersInfo to get<br/> // the necessary size into the ulOutBufLen variable<br/>     if (GetAdaptersInfo(pAdapterInfo, &amp;ulOutBufLen) == ERROR_BUFFER_OVERFLOW) {<br/>         FREE(pAdapterInfo);<br/>         pAdapterInfo = (IP_ADAPTER_INFO *) MALLOC(ulOutBufLen);<br/>         if (pAdapterInfo == NULL) {<br/>             printf(&quot;Error allocating memory needed to call GetAdaptersinfo\n&quot;);<br/>             return 1;<br/>         }<br/>     }<br/> <br/>     if ((dwRetVal = GetAdaptersInfo(pAdapterInfo, &amp;ulOutBufLen)) == NO_ERROR) {<br/>         pAdapter = pAdapterInfo;<br/>         while (pAdapter) {<br/>             printf(&quot;\tComboIndex: \t%d\n&quot;, pAdapter-&gt;ComboIndex);<br/>             printf(&quot;\tAdapter Name: \t%s\n&quot;, pAdapter-&gt;AdapterName);<br/>            <br/>             Result = RetrieveHostName(pAdapter-&gt;AdapterName,pszHostNameBuf,200);<br/>             pAdapter = pAdapter-&gt;Next;<br/>             printf(&quot;\n&quot;);<br/>         }<br/>     } else {<br/>         printf(&quot;GetAdaptersInfo failed with error: %d\n&quot;, dwRetVal);<br/> <br/>     }<br/> <br/>     <br/> <br/>     if (pAdapterInfo)<br/>         FREE(pAdapterInfo);<br/> <br/>     getch();<br/>     return 0;<br/> }<br/> <br/> <br/> <br/> BOOL RetrieveHostName(<br/>     IN LPWSTR     pszAdapterName,<br/>     IN OUT CHAR   pszHostNameBuf[], // must be large enough buffer<br/>     IN DWORD      dwHostNameBufSize)<br/> {<br/> <br/>     DWORD dwError, dwSize;<br/>     CHAR TmpBuffer[1000]; // host name won't be larger than this<br/>    <br/>     DHCPCAPI_PARAMS DhcpApiHostNameParams = {<br/>             0,                // Flags<br/>             OPTION_HOST_NAME, // OptionId<br/>             FALSE,            // vendor specific?<br/>             NULL,             // data filled in on return<br/>             0                 // nBytes<br/>         }; <br/>     DHCPCAPI_PARAMS_ARRAY RequestParams = {<br/>             1,  // only one option to request <br/>             &amp;DhcpApiHostNameParams<br/>         };<br/> <br/>     DHCPCAPI_PARAMS_ARRAY SendParams = {<br/>             0,   <br/>             NULL<br/>         };<br/>     //printf (&quot;%s&quot;,pszAdapterName);<br/> <br/>     dwSize = sizeof(TmpBuffer);<br/>     <br/>    // dwRetVal = GetInterfaceInfo(NULL, &amp;ulOutBufLen);<br/> <br/>     dwError = DhcpRequestParams(<br/>             DHCPCAPI_REQUEST_SYNCHRONOUS, // Flags<br/>             NULL,                         // Reserved<br/>             pszAdapterName,               // Adapter Name<br/>             NULL,                         // not using class id<br/>                SendParams,                         // sent parameters<br/>             RequestParams,                // requesting params<br/>             (PBYTE) TmpBuffer,            // buffer<br/>             &amp;dwSize,                      // buffer size<br/>             NULL                          // Request ID<br/>         );<br/> <br/>     if( ERROR_MORE_DATA == dwError ) <br/>     {<br/>             //<br/>             // dwSize is not large enough.<br/>         printf(&quot;dwSize is not large enough %d \n&quot;,ERROR_MORE_DATA);<br/>             //<br/>     }<br/>     printf(&quot;dwSize is not large enough %d \n&quot;,ERROR_BUFFER_OVERFLOW);<br/>     <br/>     if( NO_ERROR == dwError ) <br/>     {<br/> <br/>             // Check if the requested option was obtained.<br/> <br/>             if( DhcpApiHostNameParams.nBytesData ) <br/>             {<br/> <br/>                 // Check size with dwHostNameBufSize.<br/> <br/>                 CopyMemory(<br/>                      pszHostNameBuf, DhcpApiHostNameParams.Data,<br/>                      DhcpApiHostNameParams.nBytesData<br/>                      );<br/>                 pszHostNameBuf[DhcpApiHostNameParams.nBytesData] = '\0';<br/>                 return TRUE;<br/>             }<br/>     }<br/> <br/>     return FALSE;<br/> }<br/>Thu, 19 Nov 2009 10:55:08 Z2009-11-19T19:07:24Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/800c61f6-0e14-4a1c-bb8d-0e14761ddcdbhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/800c61f6-0e14-4a1c-bb8d-0e14761ddcdbBob38http://social.msdn.microsoft.com/Profile/en-US/?user=Bob38The size of the message being read exceeds the quota of 65536 (0x10000) bytes.Hello all<br/> I need some help please for a problem that I face while using Windows Web Services APIs.<br/> After converting my wsdl to a C code, I succeed in creating the proxy, opening it on the url but while calling the web service I get the following error:<br/> &quot;Failed to create an heap object<br/> Failure errorCode=0x803d0008<br/> <br/> There was an error communicating with the endpoint at 'URL'.<br/> <br/> The size of the message being read exceeds the quota of 65536 (0x10000) bytes. &quot;<br/> <br/> Here is the line of my code where I create the heap :<br/> &lt;!-- /* Font Definitions */ @font-face {font-family:&quot;Cambria Math&quot;; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-alt:&quot;Calisto MT&quot;; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-alt:&quot;Times New Roman&quot;; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:&quot;&quot;; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-bidi-font-family:&quot;Times New Roman&quot;;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 70.85pt 70.85pt 70.85pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --&gt; <p class=MsoNormal><span style="font-size:10pt;font-family:'Courier New'">hr = WsCreateHeap(<span style="color:green">/*maxSize*/</span> 65536, <span style="color:green">/*trimSize*/</span> 512, NULL, 0, &amp;heap, error);</span> <span style="color:#1f497d"></span></p> <br/> <br/> It seems like the output message sent by the Webservice is too big to enter in the heap.<br/> Please note that when use WireShark, the answer seems to be the correct one.<br/> How can I make the size of the heap bigger? <br/> Does anyone face a similar issue? Is there anything related with channel creation ?<br/> <br/> Thanks a lotMon, 02 Nov 2009 15:03:39 Z2009-11-18T10:03:18Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/34856ecd-1169-4de7-950a-9d8802111f23http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/34856ecd-1169-4de7-950a-9d8802111f23AdamSisohttp://social.msdn.microsoft.com/Profile/en-US/?user=AdamSisoDHCP Inform messageHi,<br/> I want to send DHCP Inform message could you please give me some example code for DHCP inform message.<br/> Thanx in advance.Tue, 17 Nov 2009 06:52:34 Z2009-11-17T20:02:01Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/928071ee-da0d-4457-990b-0f0660201545http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/928071ee-da0d-4457-990b-0f0660201545Rene1965http://social.msdn.microsoft.com/Profile/en-US/?user=Rene1965Where to get WWSAPI for VistaUnfortunately the links to download the WWSAPI for Vista/XP are not valid anymore.&nbsp;<br /><br />see:<br /><a href="http://blogs.msdn.com/nikolad/archive/2009/05/20/release-candidate-of-windows-web-services-api-is-now-available.aspx">http://blogs.msdn.com/nikolad/archive/2009/05/20/release-candidate-of-windows-web-services-api-is-now-available.aspx</a><br /><br />I should do some tests on Vista. <br />Does anyone know where I can get the webservices.dll for vista ?<br />Thu, 08 Oct 2009 08:36:13 Z2009-11-17T23:13:31Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/2f15c2d7-a9b1-499c-8ef3-ff9651c7cd92http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/2f15c2d7-a9b1-499c-8ef3-ff9651c7cd92Tharigondahttp://social.msdn.microsoft.com/Profile/en-US/?user=TharigondaSoap Header<div class=container> <div class=body><span class=v11 style="color:darkblue"><br/> <span style="font-family:Arial;color:black">Hi All,<br/> <br/> I have an SOAP Message, WSDL file and added this file to my Windows Application. This webservice is not coded in .NET. The XML will be <br/> &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br/> &lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:ns1=&quot;http://ws.ecprovws.bcs.com/&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;<br/> &lt;soapenv:Header&gt;<br/> &lt;ecProvAuthHeader0&gt;&lt;clientId&gt;ClientId&lt;/clientId&gt;&lt;clientKey&gt;ClientKey&lt;/clientKey&gt;&lt;/ecProvAuthHeader0&gt;<br/> &lt;/soapenv:Header&gt;<br/> &lt;soapenv:Body&gt;<br/> &lt;createRegistrant xmlns=&quot;http://ws.ecprovws.bcs.com/&quot;&gt;<br/> &lt;registrantWs xmlns=&quot;&quot;&gt;<br/> &lt;conferenceId&gt;ConferenceId&lt;/conferenceId&gt;<br/> &lt;firstName&gt;FirstName&lt;/firstName&gt;<br/> &lt;lastName&gt;LastName&lt;/lastName&gt;<br/> &lt;email&gt;Email&lt;/email&gt;<br/> &lt;maxPin&gt;MaxPIN&lt;/maxPin&gt;<br/> &lt;pin&gt;PIN&lt;/pin&gt;<br/> &lt;role&gt;Role&lt;/role&gt;<br/> &lt;txId&gt;TxId&lt;/txId&gt;<br/> &lt;/registrantWs&gt;<br/> &lt;/createRegistrant&gt;<br/> &lt;/soapenv:Body&gt;<br/> &lt;/soapenv:Envelope&gt;<br/> <br/> <br/> I have created a proxy class for the WSDL file and added to my windows application. I want to call a method<br/> &quot;createRegistrant&quot; so I have used the below code <br/> EcProvWsService objService = new EcProvWsService();<br/> registrantWs objRegistrant = new registrantWs();<br/> objRegistrant.email = &quot;&quot;;<br/> objRegistrant.conferenceId =&quot;&quot;;<br/> objRegistrant.firstName = &quot;&quot;;<br/> objRegistrant.lastName = &quot;&quot;;<br/> objService.createRegistrant(objRegistrant);<br/> <br/> But for SoapHeader I am not able to create intance for &quot;ecProvAuthHeader0&quot; just like <br/> ecProvAuthHeader0 obj = new ecProvAuthHeader0();<br/> obj.ClientID= &quot;&quot;;<br/> obj.ClientKey = &quot;&quot;;<br/> objService.ecProvAuthHeaderoValue = obj;<br/> <br/> So please anybody help me how to code for soap header in this case.<br/> <br/> Thanks in Advace.</span> </span></div> </div>Wed, 11 Nov 2009 09:47:02 Z2009-11-13T06:07:12Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/32c85bf8-e966-40a9-9caa-b7d13cb7406ehttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/32c85bf8-e966-40a9-9caa-b7d13cb7406enithy_ecehttp://social.msdn.microsoft.com/Profile/en-US/?user=nithy_eceWsCreateService proxy for reliable WCF session<p>Hi,<br/><br/>I am into a project where I have to create a C++ SDK for consuming WCF services. I have choosed to go with Microsoft WWSAPI.<br/>Here is my development environment: Windows XP SP3, Visual Studio 2008, .NET Framework 3.5 sp1, Windows 7 SDK Beta.<br/><br/>Issues:</p> <p>1) For a WCF service with reliable session enabled, wsdl file does not have policy information. As a result the WsUtil does not generate helper methods for CreateServiceProxy.</p> <p><strong>&lt;reliableSession ordered=&quot;true&quot; inactivityTimeout=&quot;00:10:00&quot; enabled=&quot;true&quot; /&gt;</strong></p> <p>So I am forced to create service proxy as</p> <p>  hr = WsCreateServiceProxy (WS_CHANNEL_TYPE_DUPLEX_SESSION,<br/>         WS_TCP_CHANNEL_BINDING, <br/>         NULL, <br/>         NULL, <br/>         0, <br/>         NULL,<br/>         0,<br/>         &amp;m_pServiceProxy, <br/>         error);</p> <p>I am successful in creating the proxy and opening it. However when i tried to call a method on the server, I am getting error string as <strong><em>&quot;The server returned an addressing fault: 'The action cannot be processed at the receiver&quot;</em></strong></p> <p>When I make enabled = &quot;false&quot; for the reliableSession there were no issues. Please let me know how should I create a service proxy in this case.</p> <p>2) I am trying to generate proxy files for a WCF service that has Events as shown below.</p> <p> public interface IEventCallback<br/>    {<br/>        [OperationContract(IsOneWay = true)]<br/>        void ClientDisconnect(User user);<br/>    }</p> <p>If we use WsUtil for generating proxy on the downloaded metadata, I am getting the below error message.</p> <p><strong>error WSUTIL0059  There is no input binding information for operation 'ClientDisconnect'.<br/>warning WSUTIL0083  Error during compilation. No file was generated.</strong><br/><br/>Please let me know the solution for these problems.</p>Fri, 19 Jun 2009 11:50:09 Z2009-11-13T05:55:22Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/08dec496-34f3-46c6-a1eb-c552f66e9bcdhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/08dec496-34f3-46c6-a1eb-c552f66e9bcdSPCShttp://social.msdn.microsoft.com/Profile/en-US/?user=SPCSHow to programmatically use integrated windows authentication ?I have a 3-tiered windows application. Following this link : <a href="http://support.microsoft.com/kb/810572">http://support.microsoft.com/kb/810572</a><br/>1 - I have configured IIS to use 'integrated windows authentication', <br/>2 - configured web.config of the web service to 'authentication mode = windows, impersonate = true'. <br/>3 - I have then configured the active directory to allow application server computer to be trusted for delegation. <br/>What are the changes needed in the client code which do not require step 3 ?Mon, 09 Nov 2009 14:28:52 Z2009-11-13T06:07:42Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/e08aa6e9-fd92-43b1-9008-ea6e8fc61338http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/e08aa6e9-fd92-43b1-9008-ea6e8fc61338Bob38http://social.msdn.microsoft.com/Profile/en-US/?user=Bob38WS_CUSTOM_CHANNEL_BINDING  Hello all<br/> <br/> I need your help to implement a way to overload the HTTP protocol by another one. As per to my understanding, I should use the structure<br/> <span style="font-size:10pt;font-family:Consolas;color:#1f497d">WS_CHANNEL_BINDING</span> which allows to define a custom channel using the parameter <span style="font-size:10pt;font-family:Consolas;color:#1f497d">WS_CUSTOM_CHANNEL_BINDING.<br/> </span> Unfortunately, there is not enough documentation on the web on this function. I only find in Windows Web Services Examples the project <a href="http://msdn.microsoft.com/en-us/library/dd815288(VS.85).aspx">HttpCalculatorWithLayeredChannelClientExample</a> that uses this mechanism.<br/> <br/> The summary of the project says: This example show how to use the service proxy to talk to an HTTP based calculator service using a custom channel. The custom channel is a layered channel which simply delegates all functionality to the existing HTTP channel.<br/> <br/> But it's really not clear when we read the code <strong><em>how it delegates all functionality to the existing HTTP channel.<br/> <br/> </em> </strong> Can anyone help us to find out how we can use this principle.<br/> What are the basic steps ? and if there is another sample that use WS_CUSTOM_CHANNEL_BINDING, I would be very grateful.<br/> <br/> Thanks a lot<br/>Wed, 04 Nov 2009 16:42:23 Z2009-11-10T05:43:43Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/53e655f0-32b8-43ec-8d76-4c0a9eac646fhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/53e655f0-32b8-43ec-8d76-4c0a9eac646fSimply Gedhttp://social.msdn.microsoft.com/Profile/en-US/?user=Simply%20GedCannot call methods on Https service<p>Hi<br /><br />I've created a service that I need to make available using either Https or net.tcp. The service is written in .net and uses Transport security. And, I can host the service in IIS7 or WAS (Note: Only 1 service is running at any one time)<br />My client, written in C++, is using the WWSAPI to call the service.<br /><br />When I use the net.tcp protocol, everything is good. I can call the methods on the service and receive the response. However, when I switch to Https, my calls fail with the following error message :<br /><br />Failure errorCode=0x80070057<br />Custom identities are not supported for this binding.<br /><br />(Note: The WsCreateServiceProxy and WsOpenServiceProxy have both succeeded)<br />I have checked around for the&nbsp;error and can only find references to the E_INVALIDARG being related to&nbsp;incorrect sizes being sent to the service. But, I cannot find&nbsp;any errors in my code.&nbsp;Everything is ULONG or BOOL etc. The calls to the service are generic i.e. they are the same for the Net.tcp host as they are for the Https host - so I know they work :)<br /><br />I am running a 32bit service (Windows 7 RTM) and a 32bit client (Windows XP). They are both on the same domain and I can access the hosted site from IE.<br />I have installed a self-signed certificate on the server to host the IIS7 and installed it in IE certificate store. Could this be the problem? Do I need to override something in the client to tell it to accept the certificate, even though it might not be from a trusted source (i.e. because it is self-signed)?<br /><br />Does anyone know what the problem might be?<br />Is it certificate related? (Not obvious from the error message)<br />Is it something in the generated code? (Do I need to wait for the Release version of the tools? My colleague has sent an email requesting the Release versions)<br /><br />Any help is appreciated<br /><br />Thanks<br /><br />Ged</p>Tue, 13 Oct 2009 17:54:50 Z2009-11-03T23:07:00Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/759c2548-e7af-448b-ab6b-26142ee71186http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/759c2548-e7af-448b-ab6b-26142ee71186Ganglihttp://social.msdn.microsoft.com/Profile/en-US/?user=Ganglihow can I get new pnpdtest.exe?<br/>I installed win2000 ddk, but the pnpdtest.exe can't support &quot;pnpdtest /surprise&quot;.  <br/>so I want to find the new pnpdtest.exe.<br/>how can I get new pnpdtest.exe?<br/>Fri, 30 Oct 2009 06:49:33 Z2009-11-10T05:43:01Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/61ce7af0-c131-44bf-8be9-f6a5e7725a39http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/61ce7af0-c131-44bf-8be9-f6a5e7725a39DRManhttp://social.msdn.microsoft.com/Profile/en-US/?user=DRManWSE 2.0 The signature or decryption was invalid<p>I am using WSE 2.0 SP3, I need to connect to a Web service which implements WS Security;therefore, it needs the request encrypted and signed using a certificates with X509Data, and the response is encrypted and signed as well.<br/><br/>Right now, I can create the response encrypted and signed using the certificates; however, I received the following message:<br/><br/>&quot;The signature or decryption was invalid&quot;</p>Thu, 29 Oct 2009 00:44:52 Z2009-11-02T22:28:48Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/fa9b8295-1c4a-4a2c-87f5-78e934080bb0http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/fa9b8295-1c4a-4a2c-87f5-78e934080bb0Cary Lihttp://social.msdn.microsoft.com/Profile/en-US/?user=Cary%20LiWWSAPI service for Silverlight clientsHi,<br/> <br/> To allow Silverlight clients to call into a self hosted WCF service cross domain, I implemented a custom IPolilcyRetriever interface that provides the &quot;clientaccesspolicy.xml&quot; file through a WebServiceHost.<br/> <br/>         [OperationContract, WebGet(UriTemplate = &quot;/clientaccesspolicy.xml&quot;)]<br/>         Stream GetSilverlightPolicy();<br/> <br/> Now I'm trying to convert my self hosted WCF service into WWSAPI, however, I'm experiencing some problems in exposing this interface through web model.<br/> <br/> I'm just wondering, is there a way to do this in WWSAPI?<br/> <br/> Thanks a lot.<br/> <br/> Regards,<br/> CaryTue, 27 Oct 2009 05:22:43 Z2009-11-02T22:28:37Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/cebde093-d68e-416e-8890-1b85058e6551http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/cebde093-d68e-416e-8890-1b85058e6551jeffr2600http://social.msdn.microsoft.com/Profile/en-US/?user=jeffr2600Using Web Services API for restful web service client codeI need to&nbsp;create a client for&nbsp;a RESTful web service using C++. Is the Web Services API a reasonable choice to&nbsp;implement such a client or is it designed more for building services on the server? Are there better alternatives?<br /><br />Thanks,<br />JeffThu, 15 Oct 2009 16:37:41 Z2009-10-16T00:14:23Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/49615264-bfb3-449c-bf28-62354712fb76http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/49615264-bfb3-449c-bf28-62354712fb76Andy McMullanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Andy%20McMullan0x80070057: "A structure that supports derivation may not be used in this context."I'm using a WWSAPI proxy to talk to a WCF service.&nbsp;&nbsp; I had a basic interface working fine, but now I've made my interface a little more complex, I'm getting the above error at run-time when I invoke a method.&nbsp;&nbsp;Tracing indicates the error is coming from WsCall, but gives no more details.&nbsp;&nbsp; <br /><br />I'm using inheritance which I presume is the source of the problem, even though the documentation claims that xsd extension is supported, and wsutil seems to handle&nbsp;the interface&nbsp;fine.&nbsp;&nbsp; The code is a little complex to post - before I put the effort into producing a concise repro, does anyone know a likely cause of this error?&nbsp; <br /><br />Thanks<br /><br />AndyMon, 12 Oct 2009 13:48:56 Z2009-10-14T19:12:27Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/12498215-97b4-41bc-bc0f-d27c07a5eb36http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/12498215-97b4-41bc-bc0f-d27c07a5eb36Miquel Colomhttp://social.msdn.microsoft.com/Profile/en-US/?user=Miquel%20ColomIs compression enabled at service levelHi All<br /><br />I was wondering if wwsapi, at the service level, supports&nbsp;out-of-the-box&nbsp;standard HTTP content compression (http header accept-encoding:gzip,deflate and response body returned compressed) and if not, how it could be done. I've searched the project documentation and cannot find anything related to this. Its important to me cos my SOAP client will be managing 1 MB response messages quite often and at that file size sending compressed content makes a big difference in overall response times.<br /><br />Thanks in advanceFri, 09 Oct 2009 16:42:34 Z2009-10-14T21:50:30Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/d0be5051-5bec-4ffd-b17a-3fca0a399e8fhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/d0be5051-5bec-4ffd-b17a-3fca0a399e8fArmen Anoyanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Armen%20AnoyanRun-Time bindings in WWSAPI<p>Does WWSAPI support Run-Time bindings of SOAP services and parameters?<br/>In our project our single WS client is used to access many Web Services.<br/>A new Web Services support can be added or removed frequently.<br/>Also Web Services provided by our servers can be changed, thus with current approach (using WsUtil compiler)<br/>WS client should be recompiled to generate new C sources, which is evidently not convenient to maintain in our project.<br/>Do you have a plan to support some kind of WSDL file processing in Run-Time?<br/>For example based on WSDL create SOAP request for specific operation in that WSDL with specified parameters?<br/><br/>Thank You,<br/>Armen Anoyan.</p>Fri, 04 Sep 2009 02:23:47 Z2009-09-15T20:35:59Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/072cc8b0-d3ad-4eb2-8986-649d3c459954http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/072cc8b0-d3ad-4eb2-8986-649d3c459954thstarthttp://social.msdn.microsoft.com/Profile/en-US/?user=thstartWWSAPI as a serverAll examples are with WaitForSingleObject. I can call the web service<br/>but it exits after this. <div><br/></div> <div>How is the best practice to install and run the server waiting for calls </div> <div>and serving the calls.</div> <div><br/></div> <div>I suppose a simple loop is OK?</div>Tue, 08 Sep 2009 22:37:02 Z2009-09-11T20:39:40Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/cc49657e-126f-4040-86c3-e9915a0b412bhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/cc49657e-126f-4040-86c3-e9915a0b412bthstarthttp://social.msdn.microsoft.com/Profile/en-US/?user=thstartcalling Bingare there a quick example how to create a ws client calling Bing?Tue, 25 Aug 2009 21:20:10 Z2009-08-26T18:55:50Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/05dba5a9-375f-48eb-9b68-82fbe53dc0cbhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/05dba5a9-375f-48eb-9b68-82fbe53dc0cbss123456http://social.msdn.microsoft.com/Profile/en-US/?user=ss123456Hosting WWS API Service in IIS?Is it possible to host a windows web service api based service in IIS?<br/><br/>Thanks in advance.Wed, 26 Aug 2009 02:35:50 Z2009-09-30T04:25:24Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/6b5e5829-9d7a-4b27-9a00-1125a42ecc99http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/6b5e5829-9d7a-4b27-9a00-1125a42ecc99hegsiehttp://social.msdn.microsoft.com/Profile/en-US/?user=hegsieHow do we use WWSAPI generated functions that have a WS_XML_BUFFER* because of a 'fallback'?Hi, <br/> I have a wsutil generated header file that 'fell back' to using the WS_XML_BUFFER, does anyone know how we are to generate these buffers for 'fall back' generated functions...<br/> <br/> <pre>// operation: DLLogonSoap_ValidateLogon HRESULT WINAPI DLLogonSoap_ValidateLogon( __in WS_SERVICE_PROXY* _serviceProxy, __in_opt __nullterminated WCHAR* sCurrentSessionID, __in WS_XML_BUFFER* LogonFlags, __out int* ValidateLogonResult, __in WS_HEAP* _heap, __in_ecount_opt(_callPropertyCount) const WS_CALL_PROPERTY* _callProperties, __in const ULONG _callPropertyCount, __in_opt const WS_ASYNC_CONTEXT* _asyncContext, __in_opt WS_ERROR* _error);</pre> the LogonFlags parameter is a simple type...<br/> <br/> <pre lang=x-xml> &lt;s:element name=&quot;ValidateLogon&quot;&gt; &lt;s:complexType&gt; &lt;s:sequence&gt; &lt;s:element minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; name=&quot;sCurrentSessionID&quot; type=&quot;s:string&quot; /&gt; &lt;s:element minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; name=&quot;LogonFlags&quot; type=&quot;tns:LogonType&quot; /&gt; &lt;/s:sequence&gt; &lt;/s:complexType&gt; &lt;/s:element&gt; &lt;s:simpleType name=&quot;LogonType&quot;&gt; &lt;s:list&gt; &lt;s:simpleType&gt; &lt;s:restriction base=&quot;s:string&quot;&gt; &lt;s:enumeration value=&quot;ClientSideSSL&quot; /&gt; &lt;s:enumeration value=&quot;GoodPassword&quot; /&gt; &lt;s:enumeration value=&quot;OkPassword&quot; /&gt; &lt;s:enumeration value=&quot;NoPassword&quot; /&gt; &lt;s:enumeration value=&quot;Guest&quot; /&gt; &lt;s:enumeration value=&quot;UnknownORFlag6&quot; /&gt; &lt;s:enumeration value=&quot;UnknownORFlag7&quot; /&gt; &lt;s:enumeration value=&quot;UnknownORFlag8&quot; /&gt; &lt;s:enumeration value=&quot;UnknownORFlag9&quot; /&gt; &lt;s:enumeration value=&quot;UnknownORFlag10&quot; /&gt; &lt;s:enumeration value=&quot;UnknownORFlag11&quot; /&gt; &lt;s:enumeration value=&quot;UnknownORFlag12&quot; /&gt; &lt;s:enumeration value=&quot;UnknownORFlag13&quot; /&gt; &lt;s:enumeration value=&quot;UnknownORFlag14&quot; /&gt; &lt;s:enumeration value=&quot;UnknownORFlag15&quot; /&gt; &lt;s:enumeration value=&quot;UnknownORFlag16&quot; /&gt; &lt;s:enumeration value=&quot;TrustedConsumer&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag2&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag3&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag4&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag5&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag6&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag7&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag8&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag9&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag10&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag11&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag12&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag13&quot; /&gt; &lt;s:enumeration value=&quot;UnknownANDFlag14&quot; /&gt; &lt;/s:restriction&gt; &lt;/s:simpleType&gt; &lt;/s:list&gt; &lt;/s:simpleType&gt; &lt;s:element name=&quot;ValidateLogonResponse&quot;&gt; &lt;s:complexType&gt; &lt;s:sequence&gt; &lt;s:element minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; name=&quot;ValidateLogonResult&quot; type=&quot;s:int&quot; /&gt; &lt;/s:sequence&gt; &lt;/s:complexType&gt; &lt;/s:element&gt;</pre> <br/> <br/> <div style="color:Black;background-color:White"></div> I just can't find any examples of how to use these WS_XML_BUFFER's when the generated function 'falls back' to these types?<br/> Any help appreciated.Thu, 20 Aug 2009 14:59:41 Z2009-08-21T15:46:58Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/b7ed03ca-9d9e-4904-a3d5-ae6821e78adehttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/b7ed03ca-9d9e-4904-a3d5-ae6821e78adethstarthttp://social.msdn.microsoft.com/Profile/en-US/?user=thstartREST and XML with WWSAPII was able to implement REST and XML variants based on SOAP with WCF using<br/> <div>XMLServiceHostFactory. Here is the VB.NET code: <div>===========================================</div> <div> <div>Public Class XMLServiceHostFactory</div> <div>    Inherits ServiceHostFactory</div> <div>    Protected Overloads Overrides Function CreateServiceHost(ByVal serviceType As Type, ByVal baseAddresses As Uri()) As ServiceHost</div> <div>        Return New XMLServiceHost(GetType(Service), baseAddresses)</div> <div>    End Function</div> <div>End Class</div> <div><br/></div> <div>Public Class XMLServiceHost</div> <div>    Inherits ServiceHost</div> <div>    Public Sub New(ByVal serviceType As Type, ByVal ParamArray baseAddresses As Uri())</div> <div>        MyBase.New(serviceType, baseAddresses)</div> <div>    End Sub</div> <div><br/></div> <div>    Protected Overloads Overrides Sub ApplyConfiguration()</div> <div>        MyBase.ApplyConfiguration()</div> <div>        For Each endpoint As ServiceEndpoint In Me.Description.Endpoints</div> <div>            If endpoint.Name = &quot;SereviceRESTEndpoint&quot; Then</div> <div>                Dim newBinding As New CustomBinding(endpoint.Binding)</div> <div>                Dim webMEBE As WebMessageEncodingBindingElement = newBinding.Elements.Find(Of WebMessageEncodingBindingElement)()</div> <div>                webMEBE.ContentTypeMapper = New XMLWebContentTypeMapper()</div> <div>                endpoint.Binding = newBinding</div> <div>            End If</div> <div>        Next</div> <div>    End Sub</div> <div><br/></div> <div>    Public Class XMLWebContentTypeMapper</div> <div>        Inherits WebContentTypeMapper</div> <div>        Public Overloads Overrides Function GetMessageFormatForContentType(ByVal contentType As String) As WebContentFormat</div> <div>            Return WebContentFormat.Raw</div> <div>        End Function</div> <div>    End Class</div> <div><br/></div> <div><br/></div> <div>End Class</div> <div><br/></div> </div> <div>===========================================</div> <div><br/></div> <div>Is this possible with <span style="font-family:Arial;font-size:13px;white-space:pre">WWSAPI?</span></div> </div>Tue, 28 Jul 2009 21:36:44 Z2009-08-20T17:25:01Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/42cc7af6-2798-4591-8881-0deefd342c02http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/42cc7af6-2798-4591-8881-0deefd342c02testiy87bohttp://social.msdn.microsoft.com/Profile/en-US/?user=testiy87bomaximum mime part of a document cannot exceed 64K...hello all:<br/> <br/> <span style="font-size:10pt;color:#00b050;font-family:'Verdana','sans-serif'">we were looking at the wwsapi for one of our projects to interact with a jax-ws from our native code. we have a need where in large blobs of data needs to be sent from the client to the jax-ws. we couldn't use streaming, as this doesn't seem to be supported on w2k3 (and it is a requirement for our product to be run on this platform). thus, we were looking to see if we may use mtom to send this information over to the other end. MTOM seems to be supported, but oddly enough does *<strong>not</strong> * let the MIME part of a single <br/> message to be &gt;64KB. this happens when i invoke the stub method generated by the wsutil compiler.<br/> <br/> the error we seem to be getting is:<br/> <br/> The maximum size of the MIME parts for the document (65536 (0x10000)) was exceeded by (356351 (0x56FFF)) bytes.<br/> <br/> I have struggled with this to see if I can somehow reach under the hoods to grab the XML writer that is involved in this and to see if its properties could be set to overcome this limitation. however, my efforts have been futile thus far. </span> <span style="font-size:10pt;color:#00b050;font-family:'Verdana','sans-serif'"><br/> <br/> i'm assuming that the following property is what needs to be defined on the underlying XML writer to change this. I could enable this and push an XML message that is MTOM encoded into this. however, there doesn’t seem to be an API to write this (content from the XML writer) to the underlying channel</span> <span style="font-size:10pt;color:#00b050;font-family:'Verdana','sans-serif'"> </span> <p class=MsoNormal><span style="font-size:10pt;color:#00b050;font-family:'Verdana','sans-serif'">    // This is the maximum that a single mime part can buffer when</span></p> <p class=MsoNormal><span style="font-size:10pt;color:#00b050;font-family:'Verdana','sans-serif'">    // mtom encoding is enabled.</span></p> <p class=MsoNormal><span style="font-size:10pt;color:#00b050;font-family:'Verdana','sans-serif'">    // WS_XML_WRITER_PROPERTY_MAX_MIME_PARTS_BUFFER_SIZE </span></p> <p class=MsoNormal><span style="font-size:10pt;color:#00b050;font-family:'Verdana','sans-serif'">    // WS_XML_WRITER_PROPERTY_ID</span></p> <span style="font-size:10pt;color:#00b050;font-family:'Verdana','sans-serif'">basically, i did the following:<br/> <br/> 1. create an xml writer with the above prop-set (defined with a value &gt; 64K)<br/> 2. create a channel (with its properties) and opened it<br/> 3. created a message for this channel<br/> 4. initialized the message<br/> 5. created an WS_XML_WRITER_BUFFER_OUTPUT with o/p type </span> <span style="font-size:10pt;color:#00b050;font-family:'Verdana','sans-serif'">WS_XML_WRITER_OUTPUT_TYPE_BUFFER<br/> 6. created WS_XML_WRITER_MTOM_ENCODING with encoding type </span> <span style="font-size:10pt;color:#00b050;font-family:'Verdana','sans-serif'">WS_XML_WRITER_ENCODING_TYPE_MTOM</span> <br/> 7. set o/p to the xml writer to #6<br/> 8. associate the writer to the message via WsWriteEnvelopeStart<br/> 9. invoke writebody to write the contents<br/> 10. tried to send message via sendmessage, writeenvelopeend etc. to no avail<br/> <br/> questions:<br/> <br/> 1. how do we increase this default size of 64K such that we can push more than that in a mime encoded message via mtom<br/> 2. is that the right property we should be tweaking<br/> 3. how do we send the message when we have buffered all the content that needs to be written to the channel inside the xml writer?<br/> 4. is there a way to change this propery *and* still use the stub method generated by the wsutil compiler<br/> 5. any examples that demonstrates this (i have looked at a few - messageencoding, readwitexml, httprawservice, httpgetservice etc.; but they do not seem to be demonstrating this)<br/> <br/> thanks in advance for everyones time.<br/> <span style="font-size:10pt;color:#00b050;font-family:'Verdana','sans-serif'"></span>Mon, 17 Aug 2009 15:08:28 Z2009-08-20T17:20:21Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/0fb740e7-1106-4888-8a9e-328ead735a71http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/0fb740e7-1106-4888-8a9e-328ead735a71MR07http://social.msdn.microsoft.com/Profile/en-US/?user=MR07E_INVALIDARG - The count for parameter description is 4111 (0x100F) while parameterDescription is NULL on WS_OPERATION_DESCRIPTION<p>Hi, <br/>I'm trying to run the sample ICalculator project to connect a Cpp client to a WCF service. I get an E_INVALIDARG error when I try to invoke an operation. On getting the error string it shows: The count for parameter description is 4111 (0x100F) while parameterDescription is NULL on WS_OPERATION_DESCRIPTION. <br/><br/>Here is the operation call and the parameters that are getting passed:<br/><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><br/>double</span></span><span style="font-size:x-small"> n1 =14.67, n2=56.57, MultiplyResult; <p> </p> <p>hr = basicHttpBindingEndpoint_Multiply( serviceProxy, n1, n2, &amp;MultiplyResult, heap, NULL, 0,NULL,error);</p> <font size=2> <p> </p> </font></span></p> <p>I looked at another thread in the forum where the suggestion was to regenerate the proxy classes. I did this by getting the wsdl and xsd using svcutil and then ran wsutil. It all compiled fine, but again on running the client, I get the same E_INVALID_ARG error. <br/><br/>Any thoughts on what might be wrong? I'm running this on a Windows XP 64-bit SP2 machine. I am hosting the WCF Service in a ConsoleApp with the endpoint configured as:<br/><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>&lt;</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">endpoint</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> </span></span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">name</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">basicHttpBindingEndpoint</span></span><span style="font-size:x-small">&quot; </span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">address</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">http://localhost:8901/Demo1CalcService</span></span><span style="font-size:x-small">&quot;</span></p> <span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p> </p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">contract</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Microsoft.ServiceModel.Samples.ICalculator</span></span><span style="font-size:x-small">&quot;</span></p> <span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p> </p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">binding</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">basicHttpBinding</span></span><span style="font-size:x-small">&quot;</span></p> <span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p> </p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">bindingConfiguration</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> =</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">basicHttpConfig</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/><br/></span></span></p>Mon, 10 Aug 2009 07:49:52 Z2009-08-19T18:36:43Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/ad5f7bc6-88fb-4577-954e-8accc6dd4645http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/ad5f7bc6-88fb-4577-954e-8accc6dd4645Shauncohttp://social.msdn.microsoft.com/Profile/en-US/?user=ShauncoFinal API Redistributables?Since Win7 has RTM'd, have the final API redistributables for XP/Vista/2003/2008 been posted anywhere?  The latest I can find are the May 18th RC (<span>6.0.6001.18241) at <a href="https://connect.microsoft.com/WNDP/Downloads/DownloadDetails.aspx?DownloadID=18901&amp;wa=wsignin1.0">https://connect.microsoft.com/WNDP/Downloads/DownloadDetails.aspx?DownloadID=18901&amp;wa=wsignin1.0</a></span>Sat, 08 Aug 2009 06:14:44 Z2009-08-10T17:17:23Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/e3602210-be9e-4ae9-bf07-f2b2d98b077bhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/e3602210-be9e-4ae9-bf07-f2b2d98b077bR.Jahanbakhshihttp://social.msdn.microsoft.com/Profile/en-US/?user=R.JahanbakhshiC++ WrapperIt is cool. But I think having C++ wrappers for it would be nice and useful.<br>I really like to see more in native development world in windows .<br><br>Thanks, Sat, 03 Jan 2009 20:37:31 Z2009-08-06T19:13:30Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/adf2a58c-32b7-477a-adcc-f2d053e2902bhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/adf2a58c-32b7-477a-adcc-f2d053e2902bsteve_olivierhttp://social.msdn.microsoft.com/Profile/en-US/?user=steve_olivierWWSAPI with EWSI was wondering if anyone had some WWSAPI experience with Exchange Web Services. Any examples to share?Wed, 22 Jul 2009 02:29:39 Z2009-07-29T21:27:13Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/745cafb7-5f71-4059-8c0b-82df113acb93http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/745cafb7-5f71-4059-8c0b-82df113acb93paparipotehttp://social.msdn.microsoft.com/Profile/en-US/?user=paparipoteSome questions about WWSAPI and Web Services.<span style="font-family:Calibri;font-size:small"> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt">Hello:</p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="" lang=EN-US>I have two kind of old and working C++ Windows programs which I need to convert into web services taking advantage of WWSAPI:</span></p> <p class=MsoListParagraphCxSpFirst style="line-height:normal;text-indent:-18pt;margin:0cm 0cm 0pt 36pt"><span style="" lang=EN-US><span style="">1)<span style="font:7pt &quot;Times New Roman&quot;">      </span></span></span><span style="" lang=EN-US>main() programs, which receive parameters using <em style="">*argv[]</em>, they read database and <em style="">printf</em> control/total results on screen when they run online, and they redirect into a file when running as a windows service. These programs can also be invoked from command line or from another main() program.</span></p> <p class=MsoListParagraphCxSpLast style="line-height:normal;text-indent:-18pt;margin:0cm 0cm 0pt 36pt"><span style="" lang=EN-US><span style="">2)<span style="font:7pt &quot;Times New Roman&quot;">      </span></span></span><span style="" lang=EN-US>Dll programs, which receive parameters using an c structure, after running they return an integer which indicates if the invoked dll function terminated OK or not, additionally they returns an array structure containing data. These .dlls can be called from C++ main() programs or from other .dlls. </span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="" lang=EN-US>Given this, let me ask next questions:</span></p> <p class=MsoListParagraphCxSpFirst style="line-height:normal;text-indent:-18pt;margin:0cm 0cm 0pt 36pt"><span style="" lang=EN-US><span style="">a)<span style="font:7pt &quot;Times New Roman&quot;">      </span></span></span><span style="" lang=EN-US>How can I generate the corresponding .wsdl and xsd files of the indicated kind of programs, i.e. main() and dlls? Or should I write them manually?</span></p> <p class=MsoListParagraphCxSpMiddle style="line-height:normal;text-indent:-18pt;margin:0cm 0cm 0pt 36pt"><span style="" lang=EN-US><span style="">b)<span style="font:7pt &quot;Times New Roman&quot;">      </span></span></span><span style="" lang=EN-US>Which modifications should I do to the main() and .dll programs in order to allow them to work as windows services?</span></p> <p class=MsoListParagraphCxSpLast style="line-height:normal;text-indent:-18pt;margin:0cm 0cm 0pt 36pt"><span style="" lang=EN-US><span style="">c)<span style="font:7pt &quot;Times New Roman&quot;">       </span></span></span><span style="" lang=EN-US>If I do not modify the main() and dll original programs I suppose I need to create more C++ programs to capture the results that original programs give and send this results to client programs using serialization, is that correct? Doesn’t this action duplicate times for the provision of info i.e. original programs give results and these same results are serialized to give results to the client programs?</span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="" lang=EN-US>Thanks for your attention.</span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="" lang=EN-US><span style=""> </span></span></p> <font face=Calibri size=3> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"> </p> </font></span> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"> </p><hr class="sig">PaparipoteTue, 28 Jul 2009 04:50:40 Z2009-07-28T20:35:39Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/825a2ee9-872b-4d5f-a828-3dc738686bc7http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/825a2ee9-872b-4d5f-a828-3dc738686bc7Anda B.http://social.msdn.microsoft.com/Profile/en-US/?user=Anda%20B.E_INVALIDARG<p>Hi,<br/><br/>I'm trying to write a native code client app that uses WWSAPI. The server side is an Azure cloud app written in C#. I added a service to my cloud app called IGDConfigWCFService. I have a function in that service called DoWork() that I would like to call.<br/><br/>I ran the service on my machine, used svcutil.exe to get the *.wsdl and *.xsd files. I also used svcutil.exe to generate C# source code for a client. Then I used wsutil.exe to generate C source code for a client. I create and ran both clients (in C# and C). The C# client works but the C client doesn't. Here's the main function for my C client:<br/><br/>int _tmain(int argc, _TCHAR* argv[])<br/>{<br/> // Declaring HRESULT for capturing return calue from Ws*() functions<br/> HRESULT hr;</p> <p> // Creating error object<br/> WS_ERROR* error;<br/> hr = WsCreateError(NULL, 0, &amp;error);<br/> if (FAILED(hr))<br/>  return -1;</p> <p> // Creating heap handle<br/> WS_HEAP* heap;<br/> hr = WsCreateHeap(100, 0, NULL, 0, &amp;heap, error);<br/> if (FAILED(hr))<br/> {<br/>  WsFreeError(error);<br/>  return -1;<br/> }</p> <p> // IMPLEMENT A-B-C<br/> WS_SERVICE_PROXY* serviceProxy;</p> <p> // Creating b) Binding<br/> WS_HTTP_BINDING_TEMPLATE templateValue = {};<br/> hr = BasicHttpBinding_IIGDConfigWCFService_CreateServiceProxy(<br/>  &amp;templateValue,<br/>  NULL,<br/>  0,<br/>  &amp;serviceProxy,<br/>  error);</p> <p> if (FAILED(hr))<br/> {<br/>  WsFreeHeap(heap);<br/>  WsFreeError(error);<br/>  return -1;<br/> }</p> <p> // Creating a) Address<br/> WS_ENDPOINT_ADDRESS address = {};<br/> WS_STRING Url = WS_STRING_VALUE(L&quot;<a href="http://localhost:81/IGDConfigWCFService.svc">http://localhost:81/IGDConfigWCFService.svc</a>&quot;);<br/> address.url = Url;</p> <p> hr = WsOpenServiceProxy(<br/>  serviceProxy,<br/>  &amp;address,<br/>  NULL,<br/>  error);</p> <p> if (FAILED(hr))<br/> {<br/>  WsFreeServiceProxy(serviceProxy);<br/>  WsFreeHeap(heap);<br/>  WsFreeError(error);<br/>  return -1;<br/> }</p> <p> hr = BasicHttpBinding_IIGDConfigWCFService_DoWork(<br/>  serviceProxy,<br/>  heap,<br/>  NULL,<br/>  0,<br/>  NULL,<br/>  error);</p> <p> if (SUCCEEDED(hr))<br/> {<br/>  wprintf(L&quot;Succeded.\n&quot;);<br/> }<br/> else<br/> {<br/>  wprintf(L&quot;Failed.\n&quot;);<br/> }<br/> char c;<br/> scanf(&quot;%c&quot;, &amp;c);</p> <p> // Closing the service proxy<br/> WsCloseServiceProxy(serviceProxy, NULL, error);<br/> WsFreeServiceProxy(serviceProxy);</p> <p> // Freeing Heap and Error handles<br/> WsFreeHeap(heap);<br/> WsFreeError(error);</p> <p> return 0;<br/>}</p> <p>I debugged the C client for a while and found out that every function call succeeds up until the BasicHttpBinding_IIGDConfigWCFService_DoWork(...) call. After that call the hr variable becomes &quot;E_INVALIDARG&quot;.<br/><br/>Any ideas? Why is my function call failing?<br/><br/>Thanks.<br/><br/>-Anda</p>Thu, 23 Jul 2009 23:37:13 Z2009-07-28T17:04:39Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/037274ad-61e0-4db4-a376-757e16baceechttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/037274ad-61e0-4db4-a376-757e16baceecpaparipotehttp://social.msdn.microsoft.com/Profile/en-US/?user=paparipoteSample program XMLDictionary<p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8.5pt;font-family:'MS Shell Dlg','sans-serif'" lang=EN-US>Hello:</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8.5pt;font-family:'MS Shell Dlg','sans-serif'" lang=EN-US>I am trying program XmlDictionary on a Win XP SP3 x86 platform, I run .exe program that comes in the sample and IT gets an error that I traced: </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8.5pt;font-family:'MS Shell Dlg','sans-serif'" lang=EN-US> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8pt;font-family:'Courier New'" lang=EN-US>'XmlDictionary.exe': Loaded 'C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\Web\WWSAPI\XmlDictionary\Win32\bin\Debug\XmlDictionary.exe', Symbols loaded.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8pt;font-family:'Courier New'" lang=EN-US>'XmlDictionary.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8pt;font-family:'Courier New'" lang=EN-US>'XmlDictionary.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8pt;font-family:'Courier New'" lang=EN-US>'XmlDictionary.exe': Loaded 'C:\WINDOWS\system32\webservices.dll'</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8pt;font-family:'Courier New'" lang=EN-US>'XmlDictionary.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8pt;font-family:'Courier New'" lang=EN-US>'XmlDictionary.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8pt;font-family:'Courier New'" lang=EN-US>'XmlDictionary.exe': Loaded 'C:\WINDOWS\system32\secur32.dll'</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8pt;font-family:'Courier New'" lang=EN-US>'XmlDictionary.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\msvcr90.dll', Symbols loaded.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8pt;font-family:'Courier New'" lang=EN-US>First-chance exception at 0x0044d31f in XmlDictionary.exe: 0xC0000005: Access violation reading location 0x00000004.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8pt;font-family:'Courier New'" lang=EN-US>Unhandled exception at 0x0044d31f in XmlDictionary.exe: 0xC0000005: Access violation reading location 0x00000004.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8.5pt;font-family:'MS Shell Dlg','sans-serif'" lang=EN-US> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8.5pt;font-family:'MS Shell Dlg','sans-serif'" lang=EN-US>Windows event log indicates:</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="font-size:8.5pt;font-family:'MS Shell Dlg','sans-serif'" lang=EN-US>Faulting application xmldictionary.exe, version 0.0.0.0, faulting module webservices.dll, version 6.0.6001.18241, fault address 0x0002d31f.</span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="" lang=EN-US><span style="font-size:small;font-family:Calibri"> </span></span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri">During the debug I can see that the problem is in the WsWriteEndElement function. The two input parameters (writer and error) seem to point to correct addresses.</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri">Hope it helps to identify the possible causes.</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri">Many, many thanks for your attention.</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri">Regards</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="" lang=EN-US><span style="font-size:small;font-family:Calibri"> </span></span></p><hr class="sig">PaparipoteThu, 23 Jul 2009 18:43:34 Z2009-07-26T18:03:26Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/7e7c3902-f37b-4919-b665-4d0766c9f4eehttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/7e7c3902-f37b-4919-b665-4d0766c9f4eepaparipotehttp://social.msdn.microsoft.com/Profile/en-US/?user=paparipoteFailure: errorCode=0x803d0021<p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri">Hello:</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="" lang=EN-US><span style="font-size:small;font-family:Calibri">When I try to execute the sample program HttpCalculatorService on a Win Xp sp3 with VS2008 Pro, it gets next error at command window when calling </span></span><span style="font-size:10pt;line-height:115%;font-family:'Courier New'" lang=EN-US>WsOpenServiceHost function:</span><span style="" lang=EN-US></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri">Failure: errorCode=0x803d0021</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri">Unable to add URL to HTTP request queue.</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri">Unrecognized error occured in the Windows Web Services framework.</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri">The process cannot access the file because it is being used by another process.</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri">Press any key to continue . . .</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="" lang=EN-US><span style="font-size:small;font-family:Calibri"> </span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri">Is this possible for you to give me some guidelines about this matter?</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="" lang=EN-US><span style="font-size:small"><span style="font-family:Calibri">Regards.</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;line-height:normal"><span style="" lang=EN-US><span style="font-size:small;font-family:Calibri"> </span></span></p><hr class="sig">PaparipoteWed, 22 Jul 2009 14:31:58 Z2009-07-23T04:40:23Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/17b80b74-2b1a-4db0-b0df-88858dcaf5b9http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/17b80b74-2b1a-4db0-b0df-88858dcaf5b9Nishant Sivakumarhttp://social.msdn.microsoft.com/Profile/en-US/?user=Nishant%20SivakumarWWSAPI - ServiceMetadataBehavior equivalentWith WCF you can use ServiceMetadataBehavior to provide metadata options programatically (without needing to hand-code a config/wsdl file).<br/><br/>Is there an equivalent for creating a service in WWSAPI? Or will I have to manually handcode a wsdl file first?<br/><br/>If the question is ambiguous, I'll rephrase it as :<br/><br/>Assuming I am writing a WWSAPI service from scratch, would the first step be to handcode my wsdl from which I can generate the required source files using wsutil.exe?<hr class="sig"><a href="http://blog.voidnish.com">http://blog.voidnish.com</a>Wed, 22 Jul 2009 04:29:28 Z2009-07-22T05:25:54Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/fe48a544-a95a-487b-8a02-6686ee98234dhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/fe48a544-a95a-487b-8a02-6686ee98234dNishant Sivakumarhttp://social.msdn.microsoft.com/Profile/en-US/?user=Nishant%20Sivakumarwsutil : policy related errorsI ran wsutil on a simple wcf service with and without the /nopolicy switch and both times, I got the very same errors (or perhaps warnings) :<br/><br/>I tried :<br/><br/><em>wsutil /nopolicy *.wsdl *.xsd</em><br/><br/>and<br/><br/><em>wsutil *.wsdl *.xsd</em><br/><br/>The output was :<br/><br/><em>Microsoft (R) Windows Web Services Tool, version 1.0092 <br/>Copyright (c) Microsoft Corporation.  All rights reserved.<br/>warning WSUTIL0018  Specified extension 'wsp:Policy' in wsdl file is not supported. <br/>warning WSUTIL0018  Specified extension 'wsp:Policy' in wsdl file is not supported. <br/>warning WSUTIL0018  Specified extension 'wsp:Policy' in wsdl file is not supported. <br/>warning WSUTIL0018  Specified extension 'wsp:PolicyReference' in wsdl file is not supported. <br/>warning WSUTIL0018  Specified extension 'wsp:PolicyReference' in wsdl file is not supported. <br/>warning WSUTIL0018  Specified extension 'wsp:PolicyReference' in wsdl file is not supported. <br/>Compilation finished successfully with warning.<br/>Description for schema information, WSDL information has been generated.<br/></em><br/>Are these safe to ignore?<br/><br/>This is on 64 bit Windows 7 RC with the Windows 7 RC SDK. <hr class=sig> <a href="http://blog.voidnish.com">http://blog.voidnish.com</a>Sun, 19 Jul 2009 00:52:51 Z2009-07-21T14:06:00Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/0cc77121-b969-473e-a536-46391991ffe6http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/0cc77121-b969-473e-a536-46391991ffe6regimkahttp://social.msdn.microsoft.com/Profile/en-US/?user=regimkacan't find WebServices.h in win2003I have the same problem in Win2003 +VC2005. I installed sp2 and Windows Web Services Api, but I can't find in my computer WebServices.h and WebServices.lib only WebServices.dll, so I can't compile any example. Also I can't find wsutil.exe. Please, help.Mon, 11 May 2009 10:06:32 Z2009-06-17T17:36:51Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/ea254cb0-df66-4f9e-8e0a-0c69130196ebhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/ea254cb0-df66-4f9e-8e0a-0c69130196ebRichard I M Longhttp://social.msdn.microsoft.com/Profile/en-US/?user=Richard%20I%20M%20LongSerialization of structuresAll,<br/> <br/> I was wondering if someone could help me please.<br/> <br/> The wsdl file that I am using has a number of arrays of complex types (ie arrays of structs), and for each of these wsutil returns a 'warning WSUTIL0031'.<br/> <br/> In the xml.h file generated by wsutil, the structs that represent the arrays just contain 'WS_XML_BUFFER* _unhandled', which is seemingly meant to be a buffer containing an xml stream containing the serialzed structures.<br/> <br/> My question is quite simple - is there a quick and easy way of serializing to XML a generated struct using the WWSAPI?  I know that there is an XML Writer class, but it looks to me like you need to manually serialize all the structs members based on basic types.  Or is there an easier way to serialize an entire struct in one go?<br/> <br/> Thanks in advance,<br/> Rich<br/>Wed, 27 May 2009 18:12:29 Z2009-07-28T19:49:25Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/3695b934-2713-4ecc-bbd7-164774b2a83fhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/3695b934-2713-4ecc-bbd7-164774b2a83fAdvihttp://social.msdn.microsoft.com/Profile/en-US/?user=AdviConnecting to web service behind ISA under Vista<p>Hello,<br/><br/>We are calling web services from within C++ application using soap generated headers for web service reference. We needed to modify atlsoap.h in order to support username and password for the url.<br/><br/>Everything works fine in xp but there are some problems when runing under Vista when the webserver with service is behind ISA. The failure was traced down to be at point where HttpSendRequest is called (all parameters are same as on XP where it works) and the error is 12057: ERROR_INTERNET_SEC_CERT_REV_FAILED<br/><br/>When connecting directly to web service, it works from both, XP and Vista<br/>When connecting through ISA, it works from XP but fails from Vista<br/><br/>Is Vista handling certificates differently?<br/>Any idea how could I disable certificate revocation check if that is a problem?<br/><br/>Thanks.</p>Wed, 27 May 2009 17:56:22 Z2009-06-02T00:07:59Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/c64fa117-aff3-44ce-a45f-1e8bbe048abdhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/c64fa117-aff3-44ce-a45f-1e8bbe048abdlr1234http://social.msdn.microsoft.com/Profile/en-US/?user=lr1234WSHttpBinding and Certificate WHY?This is regarding WCF service.<br/> I understand Certificate is for message level encryption.<br/> One thing I am curious for sometime now about:<br/> 1) Why do we use CERTIFICATE on WSHTTPBINDING OR WS2007HTTPBINDING since it by default encrypt message that passed through the wire?<br/> <br/> 2) If I am passing username/password(not winnt) from the client to the service on WsHttpBinding/Ws2007HttpBinding setting binding security to &quot;None&quot;. Is the message that pass through the wire still encrypted?<br/> <br/> Please let me know if I understood wrong.<br/> Thank you in advance<br/> <br/>Thu, 21 May 2009 02:05:40 Z2009-06-02T00:08:32Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/a3f189db-6bdf-4854-aaad-a2ae7c0bf781http://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/a3f189db-6bdf-4854-aaad-a2ae7c0bf781karumbohttp://social.msdn.microsoft.com/Profile/en-US/?user=karumboWhere to download the API?Hi,<br/> <br/> I'm having trouble obtaining the wwsapi download.<br/> <br/> The links in the announcement at the top of the forums, and also the blog <a href="http://blogs.msdn.com/nikolad/archive/2009/02/20/release-of-wwsapi-beta-for-windows-xp-vista-server-2003-and-server-2008.aspx">here</a> give page not found errors.<br/> <br/> Any advice on where to obtain it from would be appreciated.<br/> <br/> Thanks.Wed, 20 May 2009 08:11:46 Z2009-05-22T15:58:43Zhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/5726b832-cd9c-4b72-92a4-6858b5a5008dhttp://social.msdn.microsoft.com/Forums/en-US/wwsapi/thread/5726b832-cd9c-4b72-92a4-6858b5a5008dOliverParishttp://social.msdn.microsoft.com/Profile/en-US/?user=OliverParisFinding WebServices.hHi,<br/><br/>I can't find WebServices.h or WebServices.lib when I try to compile samples from the PDC talk or from MSDN Networking Developer Platform.<br/><br/>I've downloaded and installed the Microsft Update package for Vista 64 (Windows6.0-KB959175-x64.msu), I have a WebServices.dll, but can't find the correponding .h <br/>(tried looking in C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include and everywhere in my folders)<br/><br/>What am I doing wrong ?<br/><br/>ps : my C++ skills are a bit rusty<br/><br/>Fri, 24 Apr 2009 17:11:16 Z2009-05-11T17:47:12Z