OpenHome Forum
[Solved] Cant Subscribe to ContentDirectory / getting Error on any Method on Content - Printable Version

+- OpenHome Forum (http://forum.openhome.org)
+-- Forum: OpenHome (/forumdisplay.php?fid=1)
+--- Forum: Net (/forumdisplay.php?fid=5)
+--- Thread: [Solved] Cant Subscribe to ContentDirectory / getting Error on any Method on Content (/showthread.php?tid=1353)



[Solved] Cant Subscribe to ContentDirectory / getting Error on any Method on Content - ChriD - 19-02-2015 07:48 PM

I'm having the Problem that i can't subscribe to a content directory with the error message:
Code:
XMLError attemting to subscribe to.... (then there comes some xml code)

If i try do to a search on the ContentDirectory it says this:
Code:
Error Level: Socket
Error Code: 1
Error Description: Unknown


Renderer Subscription an Method calling on AvTransportService and RenderingControl works without any Problem.

I'm using the C++ Stack.
I did the same thing in .NET Stack about a year ago. There it worked.

Any suggestions where the problem could be or where i can start searching?

Thanks!


RE: Cant Subscribe to ContentDirectory - ChriD - 19-02-2015 09:05 PM

Well.. It seems that the OhNetGen created some wrong cpp file for my device... if i use a standard ServiceDescription file for generating the proxy it works...


I 'll add the special methods by my own


RE: Cant Subscribe to ContentDirectory - simonc - 19-02-2015 10:26 PM

(19-02-2015 09:05 PM)ChriD Wrote:  Well.. It seems that the OhNetGen created some wrong cpp file for my device... if i use a standard ServiceDescription file for generating the proxy it works...


I 'll add the special methods by my own

Do you mean that OhNetGen generated incorrect code based on valid service XML? If so, I'd be very interested to see the problematic XML.


Cant Subscribe to ContentDirectory / getting Error on any Method on Content - ChriD - 19-02-2015 10:42 PM

I did not figured it out until now if ohNetGen did wrong or if the device provides a wrong XML.

I'll investigate it. Maybe i can find something