http://mac.tutsplus.com/tutorials/productivity/how-to-reveal-your-library-folder-in-lion-or-mountain-lion/

Has all you need! :)

Once you open your Library you can then navigate to IPhone Simulator/[Version]/Applications/[...]/ to locate your App Data in the Simulator.

 

Hopefully this small piece of code will save you some grief when integrating the EBAY Finding API into your application.

Here are  the Steps -

Step 1 – Create a C# Console Application and Add a Service Reference

Step 2 – Enter Code to Call findItemsByKeywords with the Ebay SOA Custom Headers

using System;

using System.ServiceModel;

using System.ServiceModel.Channels;

using EbayTestWCFConsoleApplication.EbayServiceReference;

namespace EbayTestWCFConsoleApplication

{

class Program

{

static void Main(string[] args)

{


using
(FindingServicePortTypeClient client = new FindingServicePortTypeClient())

{

MessageHeader header = MessageHeader.CreateHeader(“My-CustomHeader”,http://www.mycustomheader.com”,“Custom Header”);


using
(OperationContextScope scope = new OperationContextScope(client.InnerChannel))

{

OperationContext.Current.OutgoingMessageHeaders.Add(header);


HttpRequestMessageProperty
httpRequestProperty = new HttpRequestMessageProperty();

httpRequestProperty.Headers.Add(“X-EBAY-SOA-SECURITY-APPNAME”, “YOUR-APPID”);

httpRequestProperty.Headers.Add(“X-EBAY-SOA-OPERATION-NAME”, “findItemsByKeywords”);

httpRequestProperty.Headers.Add(“X-EBAY-SOA-GLOBAL-ID”, “EBAY-US”);

OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty;


FindItemsByKeywordsRequest
request = new FindItemsByKeywordsRequest();


request.keywords = “ipod”;


FindItemsByKeywordsResponse
response = client.findItemsByKeywords(request);


foreach
(var item in response.searchResult.item)

{

Console.WriteLine(item.title);

}

}

}


Console
.ReadKey();

}

}

}

Step 3 – Tweak Response Message size in App.Config and Press F5

You must change maxBufferSize=”655360” and maxReceivedMessageSize=”655360” to same ‘increased’ value.  In this example I have simply added another “0″.

<?xml version=1.0 encoding=utf-8 ?>

<configuration>

<configSections>

</configSections>

<system.serviceModel>

<bindings>

<customBinding>

<binding name=FindingServiceSOAPBinding>

<textMessageEncoding maxReadPoolSize=64 maxWritePoolSize=16

messageVersion=Soap12 writeEncoding=utf-8>

<readerQuotas maxDepth=32 maxStringContentLength=8192 maxArrayLength=16384

maxBytesPerRead=4096 maxNameTableCharCount=16384 />

</textMessageEncoding>

<httpsTransport manualAddressing=false maxBufferPoolSize=524288

maxReceivedMessageSize=655360 allowCookies=false authenticationScheme=Anonymous

bypassProxyOnLocal=false hostNameComparisonMode=StrongWildcard

keepAliveEnabled=true maxBufferSize=655360 proxyAuthenticationScheme=Anonymous

realm=“” transferMode=Buffered unsafeConnectionNtlmAuthentication=false

useDefaultWebProxy=true requireClientCertificate=false>

<extendedProtectionPolicy policyEnforcement=Never />

</httpsTransport>

</binding>

</customBinding>

</bindings>

<client>

<endpoint address=https://svcs.ebay.com/services/search/FindingService/v1

binding=customBinding bindingConfiguration=FindingServiceSOAPBinding

contract=EbayServiceReference.FindingServicePortType name=FindingServiceSOAPPort />

</client>

</system.serviceModel>

</configuration>

Please excuse the code formatting, but you’ll get the idea if you cut and paste it in.

Take Care,

Matt

using System;

using System.ServiceModel;

using System.ServiceModel.Channels;

using EbayTestWCFConsoleApplication.EbayServiceReference;

namespace EbayTestWCFConsoleApplication

{

class Program

{

static void Main(string[] args)

{

using (FindingServicePortTypeClient client = new FindingServicePortTypeClient())

{

MessageHeader header = MessageHeader.CreateHeader(“My-CustomHeader”,http://www.mycustomheader.com&#8221;,“Custom Header”);

using (OperationContextScope scope = new OperationContextScope(client.InnerChannel))

{

OperationContext.Current.OutgoingMessageHeaders.Add(header);

HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty();

httpRequestProperty.Headers.Add(“X-EBAY-SOA-SECURITY-APPNAME”, “PriceIns-e439-4e18-8678-7ecd8f6f26ba”);

httpRequestProperty.Headers.Add(“X-EBAY-SOA-OPERATION-NAME”, “findItemsByKeywords”);

httpRequestProperty.Headers.Add(“X-EBAY-SOA-GLOBAL-ID”, “EBAY-US”);

OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty;

FindItemsByKeywordsRequest request = new FindItemsByKeywordsRequest();

request.keywords = “ipod”;

FindItemsByKeywordsResponse response = client.findItemsByKeywords(request);

foreach (var item in response.searchResult.item)

{

Console.WriteLine(item.title);

}

}

}

Console.ReadKey();

}

}

}

http://www.motion504.com/AICP_show/

Sounds easy doesnt it!? Well it is, eventually …

Well this simple task sure proved I had no clue on using any of the stream classes (apart from cut + paste specific examples from the web).

Like some (most?) developers (hackers?) I sat down with intellisense and started nessing around with

Stream st = new …

nope stream is an abstract class.

StringReader sr = …

It’s got string in the name right? This should take 10 seconds.

Yes you can easily create one of these, but cast to (Stream) sr doesn’t work!, why? time to look at the stream inheritance hierarchy.

This diagram from http://blogs.msdn.com/bindeshv/archive/2008/07/24/file-io-system-in-net.aspx sort of shows it.

As does this -

Hierarchy

 Excuse the awful scan, but you can just make it out.

Basically StringReader/Writer inherits from TextReader/Writer which inherits from System.IO (off top left).

This does not touch stream, so it looks like we need to use a MemoryStream. Like so -

MemoryStream memStream = new MemoryStream();

byte[] data = Encoding.UTF8.GetBytes(“XML long string”);

memStream.Write(data, 0, data.Length);

memStream.Position = 0; // we can also ensure reset stream for consumption

http://weblogs.asp.net/whaggard/archive/2004/09/23/233535.aspx says it far more succintly (choose your encoding as you require)

Stream s = new MemoryStream(ASCIIEncoding.Default.GetBytes(“Test String”));

Cheers.

I am trying to debug a WCF Service from Silverlight (the service is in its own library within the SAME SOLUTION)

Simply ‘No joy’, tried attaching to process etc, was getting ‘wcf no symbols have been loaded for this document’ in the IDE also!!

Tried this, it did not work :(http://blogs.msdn.com/greggm/archive/2008/03/17/debugging-wcf-services-in-visual-studio-2008.aspx

This is useful to know anyway – http://bbits.co.uk/blog/archive/0001/01/01/missing-wfc-service-configuration-editor.aspx

Double checked all this -

http://msdn.microsoft.com/en-us/library/bb157688.aspx (How to: Step into WCF Services)

http://msdn.microsoft.com/en-us/library/bb157687.aspx (Limitations on WCF Debugging) -

So, you cant step into it from calling code if its an asynchronous call, which is ALL CALLS in silverlight :) but it should be ok anyway for normal debug?! so what gives?

In the end I created a simple console/windows app as discussed for IIS (I am using internal server though in this example) -
http://dotnet.org.za/willy/archive/2006/12/19/WCF-Debugging-_2D00_-IIS-hosted-services.aspx
http://silverlight.net/forums/t/17669.aspx 
the debugger then worked fine for my async call? does anyone know what I was missing in the SL version?

Also, dont forget to put a nice wait for keypress in your app if your using Async ! :)

Console.WriteLine(“Press any key to continue…”);
Console.ReadKey(true);

Out & Merry Xmas!

Hi All,

We use an old version of sharepoint in work (but I think this applies to SP2007 also).

Basically I think this maybe occurs when you install different apps from Office 2003/2007 in certain sequences (this may include 2007 viewers/trial versions?) which messes offices tiny little massive brain up.  I think Visio 2003 was the tipping point for me.

Either way, trying to open a word doc (or other?) from a sharepoint site makes IE (7 in my case) go BOOOOOM!

These threads help fix it for me -

http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/a2c1b98a-2259-4d70-b15b-ceb2eb549e50/

This wasn’t related to my bug but may help someone - http://support.microsoft.com/kb/938888

I basically, renamed OWSSUPP.DLL to OWSSUPP.DLL-old whereever it resided in -

C:\Program Files\Microsoft Office\Office10

C:\Program Files\Microsoft Office\Office11 (just here for me)

C:\Program Files\Microsoft Office\Office12

Then ran Microsoft Office Diagnostics for good effect, retried IE7, done

! Too early to see any side effects of this, your mileage may vary, good luck … .. .

Set Up Remote Management

Somebody lent me a Mac Mini in work, thought I’d try it.  Wanted to remote control it (save mouse, monitor etc)

Set Up Remote Management

Turned on above, ticked all the options for allow access for on previous screen (your mileage may vary on this),  installed RealVNC, typed in the MAC IP, then boom, crashed! VNC gone!

It turns out you must allow best colour quality ELSE YOUR KNACKERED, thanks to many other forums, blogs for this.

Like So!

Like So!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Good night!

Follow

Get every new post delivered to your Inbox.